Return to main screen after validation by ME_PURCHDOC_POSTED
I tried to validate whether batch is input on the PO by using the BADI ME_PURCHDOC_POSTED~POSTED method.
I can successfully stop the posting if no batch is input for line item, however, message "PO XXXX is changed" is still issued. How can I return to main screen, so that user can change the input and post again?
there is , But it will hidden,
from the header object read the item objects -> then read the schedule lines data.
IM_HEADER->GET_ITEMS, now loop each item object and get the schedules information using the method item->GET_SCHEDULES