Requirement for VA01 / VA02
I have a problem in VA02/VA01:
While processing the sales order(VA02), if the Purchase order no.(VBKD-BSTKD_E)is null for the output type 'XXXX' (NAST-KSCHL) & for medium EDI, it should display warning message before saving the document.
Currently for include MV45AFZZ, i can able to fetch the(VBKD-BSTKD_E) value, i couldn't get the NAST-KSCHL value.
Thanks in advance.
Please try the field exit FIELD_EXIT_NA_KSCHL with the following code:
DATA V_KSCHL LIKE NAST-KSCHL.
V_KSCHL = INPUT.
EXPORT V_KSCHL TO MEMORY ID 'KSCHL'.
Similarly, in MV45AFZZ import the variable checking for the condition:
DATA: V_KSCHL LIKE NAST-KSCHL.
IMPORT V_KSCHL FROM MEMORY ID 'KSCHL'.
IF V_KSCHL = 'XXXX'.
IF VBKD-BSTKD_E = ' '.
MESSAGE WXXX .....
I am sure the abovecode will help you resolve the issue.
Please confirm if my solution has met your requirements.
Mary Premalatha Danam