Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Stop PO processing at current screen

Former Member
0 Likes
498

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
375

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.

1 REPLY 1
Read only

Former Member
0 Likes
376

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.