Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Requirement for VA01 / VA02

Hi,

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.

please suggest.

Thanks in advance.

Rajani

Tags:
replied

Rajani,

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 .....

ENDIF.

ENDIF.

I am sure the abovecode will help you resolve the issue.

Please confirm if my solution has met your requirements.

Thanks

Mary Premalatha Danam

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question