cancel
Showing results for 
Search instead for 
Did you mean: 

Badi VENDOR_ADD_DATA, method CHECK_ALL_DATA??

Former Member
0 Kudos

Hello all,

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.

Thanks

Bruce

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bruce

I found out the solution for your problem. Insead of using the screen # 4000 use your Custom Screen # in my case it the screen # was 1010.

regards

- Sreeni

Former Member
0 Kudos

I have developed the entire BADI enhancement.

for CHECK_ALL_DATA messaging I used my own message class/Message # it works fine;And the message stops in the Custom developed table control...

regards

Sreeni

Former Member
0 Kudos

Sreenivas S Rao,

I did not want to create any other new custom objects. I just wanted the error message to display on the new screen rather than the standard SAP screen. The message displays on the standard screen whether a use screen 4000 or my new screen number, 0100.

Thanks for your answer. The problem I was attempting to solve is is not large enough to be worth spending any additional time trying to solve it.

Bruce