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 not creating PO in LOOP

Former Member
0 Likes
2,830

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
Read only

MANIS
Active Contributor
0 Likes
2,475

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

Read only

Former Member
0 Likes
2,475

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

Read only

0 Likes
2,475

Try introducing a wait statement then 🙂

Read only

Former Member
0 Likes
2,475

Bapis require commit works - BAPI_TRANSACTION_COMMIT

Read only

0 Likes
2,475

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

Read only

0 Likes
2,475

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

Read only

0 Likes
2,475

yes, Wait = 'X' already there.

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

Read only

0 Likes
2,475

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

Read only

bertrand_delvallee
Active Participant
0 Likes
2,475

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.

Read only

Former Member
0 Likes
2,475

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

Read only

Former Member
0 Likes
2,475

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

Read only

satyapriyanka_vana
Active Participant
0 Likes
2,475

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

thanks,

Priyanka.