Here is a quick walkthrough on how you can add custom fields in plant master transactions, using BAdI WB0X_ADD_CUST_DATA_E. You can also use this as a general guide for adding fields, to any supporting transaction, through classic BAdI. Some developers will also call this as a “screen exit”.
First add custom fields to T001W table with an append structure.
![](https://abappolice.com/wp-content/uploads/2023/09/image-6.png)
Go to SE18, get interface name from BAdI and get parameter types from PUT_DATA_TO_SCREEN method.
![](https://abappolice.com/wp-content/uploads/2023/09/image-12.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-16.png)
Create a function group which will host our custom subscreen.
![](https://abappolice.com/wp-content/uploads/2023/09/image-7.png)
Switch to the TOP include and define required structures and variables.
![](https://abappolice.com/wp-content/uploads/2023/09/image-17.png)
Create a screen…
![](https://abappolice.com/wp-content/uploads/2023/09/image-9.png)
…and set it as “subscreen”.
![](https://abappolice.com/wp-content/uploads/2023/09/image-10.png)
Add the fields.
![](https://abappolice.com/wp-content/uploads/2023/09/image-29.png)
Set and create modules.
![](https://abappolice.com/wp-content/uploads/2023/09/image-11.png)
Add required coding.
![](https://abappolice.com/wp-content/uploads/2023/09/image-14.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-18.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-32.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-33.png)
Go back to SE18 and create an implementation.
![](https://abappolice.com/wp-content/uploads/2023/09/image-23.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-24.png)
Switch to the “Subscreens” tab and paste the function group name and screen number.
![](https://abappolice.com/wp-content/uploads/2023/09/image-25.png)
Swtich back to the “Interface” tab and create implementations for both of the methods. Just uncomment the default coding.
![](https://abappolice.com/wp-content/uploads/2023/09/image-26.png)
![](https://abappolice.com/wp-content/uploads/2023/09/image-27.png)
Activate the implementation.
![](https://abappolice.com/wp-content/uploads/2023/09/image-28.png)
And you are done.
![](https://abappolice.com/wp-content/uploads/2023/09/image-34.png)