How can I capture the PO Number while executing Me21N.
In one report I am called ME21N. SAP Displays message PO <PO Number > Created. I want to capture the PO Number and wanted to do further processing.
I tried to get data from SYST MSGV1, MSGV2 MSGV3 MSGV3. But all variables are blank.
I cant use set and get parameters. Because if user exit PO creation without creating the PO then get parameter picks the last created PO number.
CALL TRANSACTION 'ME21N'.
EBELN = ???????