Skip to Content
0

BAPI_PO_CREATE1 not creating PO in LOOP

Jul 11, 2017 at 12:54 PM

154

avatar image
Former Member

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 .

10 |10000 characters needed characters left characters exceeded

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

thanks,

Priyanka.

0
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Richard Harper Jul 11, 2017 at 01:40 PM
0

Bapis require commit works - BAPI_TRANSACTION_COMMIT

Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0
Former Member

yes, Wait = 'X' already there.

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

0

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

0
Bertrand DELVALLEE Jul 11, 2017 at 03:13 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Richard Harper Jul 12, 2017 at 08:22 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Richard Harper Jul 12, 2017 at 08:22 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Manish Kumar Jul 11, 2017 at 01:06 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

Try introducing a wait statement then :)

0