‎2010 Apr 14 10:19 AM
Hi All,
I have a scenario where I create a PO via ME21N Tcode or change a PO via ME22N, if the PO line item Tax Codes are not unique then there must be a Pop Up while saving the PO. Pop up will have 2 buttons 'Continue' and 'Cancel'.
Cancel button must stop the PO processing at the same screen and user must be able to make changes desired and then save them. I do not have a idea how to achieve this functionality where I can stop the PO processing at the current screen.
Currently I used Error Message which did stop the PO processing at the current screen but there was a additional pop up after pressing Save button saying that 'PO Header Data is still faulty'. Please help me with Cancel button functionality.
I have used ME_PROCESS_PO_CUST enhancement spot and method used is PROCESS_HEADER.
Thanks & Regards
Amit Sharma
‎2010 Apr 14 11:22 AM
Hi Amith,
Use this Function Module To get Popup 'POPUP_TO_CONFIRM'.
in that if answer = 1, Save PO (when User Press Save)
else (when User Canceled)
use code
Leave to Transaction 'ME22n'.
Regards,
Raghava Channooru.
‎2010 Apr 14 11:22 AM
Hi Amith,
Use this Function Module To get Popup 'POPUP_TO_CONFIRM'.
in that if answer = 1, Save PO (when User Press Save)
else (when User Canceled)
use code
Leave to Transaction 'ME22n'.
Regards,
Raghava Channooru.