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

inside a loop - BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
1,060

Hello Friends,

i am facing a strange behaviour..... I am doing some coading in user-exit.... all thing is happeing inside a loop. things looks pretty fine, but sometimes, when the control reach to the bapi BAPI_ALM_ORDER_MAINTAIN (which i am using to create the operations ), so when control reachs to this bapi, it did not proceed rather the control goes back to the loop at lt_tab ....... and sometimes it works fine, that after BAPI_ALM_ORDER_MAINTAIN it proceed normal..........

So far is one issue, but sometimes its also happend that, when control goes back to loop, if procees then outside the loop, and then automatically comes again to BAPI_ALM_ORDER_MAINTAIN.. and proceed further.... dont know what is going on...

Any one has any idea, what is happening ?

Regards,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
756

this may not be the case:

Since you are calling the Bapi inside a loop, be sure to clear the buffer of the BAPI.

(FM BUFFER_REFRESH_ALL) before calling each time also put the commit statement immediately after the call. Also check in the interfaces passed to the Bapi.

Regards,

A.Singh

1 REPLY 1
Read only

Former Member
0 Likes
757

this may not be the case:

Since you are calling the Bapi inside a loop, be sure to clear the buffer of the BAPI.

(FM BUFFER_REFRESH_ALL) before calling each time also put the commit statement immediately after the call. Also check in the interfaces passed to the Bapi.

Regards,

A.Singh