I have successfully created my own sub screen for Vendor Master Data with the BADI:s VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS. The button is there and the tab is there. I added an append structure to table LFB1. The new field in table LFB1 is displaying properly and I'm able to edit this field.
There is one small problem that I am experiencing. In method CHECK_ALL_DATA I am doing some data validation. I want the error message to be displayed on the new tab screen rather than the standard SAP screen. This will allow data that does not pass the validation check to be changed.
The SAP documentation for this method implies that you should be able to display the message on the new tab screen. Has anyone succeeded in doing what I'm trying to do?
Here is the SAP documentation for these two parameters associated with error message.
The parameter E_DYNNR determines the screen on which the message determined by the parameters E_MSGID and E_MSGNO is output. If this is a screen from the standard dialog, define the number of the standard screen concerned under E_DYNNR. If this is one of your own screens that was integrated in the vendor master dialog using the BADI VENDOR_ADD_DATA_CS, define the value '4000' in E_DYNNR.
Both parameters E_SCRGR and E_FCODE may only have values if the error occurs on one of your own screens that was integrated in the vendor master dialog using the BADI VENDOR_ADD_DATA_CS.
In parameter E_SCRGR, enter the screen group. It is identical to the filter value that you use in the implementation of the BADI VENDOR_ADD_DATA_CS.