Application Development 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: 

BAPI_PO_CREATE1 not creating PO in LOOP

Former Member
0 Kudos

Hi All,

BAPI_PO_CREATE1 not creating PO in LOOP, creating PO succefully for the first loop iteration but not creating after that. Along with PO, SES and Invoice also generating .

12 REPLIES 12

MANIS
Active Contributor
0 Kudos

BAPI_PO_CREATE1 not creating PO in LOOP creating PO succefully for the first loop iteration but not creating after that - Since you are calling function module and passing the data to that, don't you think you need to check your program logic to read the data in loop

Along with PO, SES and Invoice also generating - What is your business expectation, how is the system configured, Talk to your Functional consultant

Former Member
0 Kudos

in first iteration and debug mode or with enough wait statements its working , not working in direct execution, no issue with config.

sathyags
Active Participant
0 Kudos

Try introducing a wait statement then 🙂

former_member182550
Active Contributor
0 Kudos

Bapis require commit works - BAPI_TRANSACTION_COMMIT

0 Kudos

Commit there, issue during 2nd PO creation in loop, cleared all variables.

0 Kudos

Can you confirm parameter WAIT is filled with 'X' when you call FUNCTION BAPI_TRANSACTION_COMMIT?

0 Kudos

yes, Wait = 'X' already there.

Error: SE026, this happening in 2nd PO creation onwards in loop.

0 Kudos

And the text for SE026? Have you check for any long text?

bertrand_delvallee
Active Participant
0 Kudos

This BAPI is full of BADI, enhancement points and user-exits. You should check that there is no specific codes making trouble.

For example in SE38 check for ZXMEWU10 and ZXMEWU11 existence

In SE18, for enhancement point ES_SAPL2012, look in "implementations" tab for Z* and Y* implementations.

former_member182550
Active Contributor
0 Kudos

search using coogle: you are not populating your transfer structure properly. Further info is available if you google Sap se026

former_member182550
Active Contributor
0 Kudos

search using google: you are not populating your transfer structure properly. Further info is available if you google Sap se026

satyapriyanka_vana
Active Participant
0 Kudos

Can you post your piece of code which is written inside the loop. We may try to give you a better solution.

thanks,

Priyanka.