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

BAPI_PO_CREATE1

Former Member
0 Likes
495

Hi,

I am using the exit ZXM06U43 to make some validation during the create of a PO using BAPI_PO_CREATE1.

In order to make this validation I need to know if the PO is been creating online or by the BAPI_PO_CREATE1.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

Hi,

you can check variable SY-TCODE. If it's ME21n (or whatever transaction you use for creating the PO), then it's online. Anything else would then be via the BAPI.

Hope this helps.

1 REPLY 1
Read only

Former Member
0 Likes
394

Hi,

you can check variable SY-TCODE. If it's ME21n (or whatever transaction you use for creating the PO), then it's online. Anything else would then be via the BAPI.

Hope this helps.