cancel
Showing results for 
Search instead for 
Did you mean: 

The Custom fields added in MARC has validation through check table in screen not working in BAPI

0 Kudos
377

Added custom fields in the material master screen . This is done using append structure for the field with value table & check table which validates the entry based on the check table & allows only the required entry. Same thing is not working when used it through the BAPI & this allows wrong entry.

Summary: At screen level the check table validation is working not from BAPI ( BAPI_MATERIAL_SAVEDATA ).

Sandra_Rossi
Active Contributor

The screen validations have never been checked by BAPI automatically. You must implement the checks yourself in the customer exit corresponding to this BAPI.

thkolz
Contributor
0 Kudos

sandra.rossi Except if you have BAPIs that perform batch input…

Sandra_Rossi
Active Contributor

c12b61ded10b4e18beae75c3b6218d2c yep, it's an exception. I would hardly consider them BAPI outside the fact that the function module name is prefixed BAPI... 😉

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Yes. Used BADI : BADI_MATERIAL_CHECK . To explicitly add the logic to do the validation. Had to check against the value table & the domain maintained for those fields.

raymond_giuseppi
Active Contributor
0 Kudos

Did you look at BADI_MATERIAL_CHECK?