Skip to Content
0
Former Member
Sep 15, 2011 at 04:55 PM

Validation for PO text in the material master :- BADI implementation

128 Views

Hi experts,

I am trying to do a validation on the Purchase Order Text (long text) which must always be filled in Language EN and DE.

Thus if a user tries to edit a material in MM02 or creates a new one in MM01 - this box of long text (PO text) must be filled, else it should throw an error.

i created a BADI and inside that i am calling the FM read_text , but it check for only existing text already saved in the database.

WHAT ABOUT THE RUN-TIME (ex creating a material).

or what if the user purposely deletes an existing PO long text and then tries to save it (database might already have a PO long text saved for that material).

Kindly help me if there is any FM which can be called to check in the Runtime if the PO long text is filled or if we can do some customizing and make that PO long text Mandatory.

Please not we need this field mandatory only for only 03 plants, that's where the problem is coming.

Many Many thanks in advance.

Rittik.