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

Clear Return from BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
574

Using function BAPI_ALM_ORDER_MAINTAIN in a loop to update PM Work Orders.

The return table is being appended to after every call and I cannot seem to clear it out.

I have tried Clear, Refresh, and Free. They clear it out ahead of the call, but after the call it always remembers the results of the previous calls. I only perform Commit Work when for successful calls but I cannot rely on the results when the results of prior calls are still there.

What steps should be taken to clear return?

Regards

Using function BAPI_ALM_ORDER_MAINTAIN in a loop to update PM Work Orders.

The return table is being appended to after every call and I cannot seem to clear it out.

I have tried Clear, Refresh, and Free. They clear it out ahead of the call, but after the call it always remembers the results of the previous calls. I only perform Commit Work when for successful calls but I cannot rely on the results when the results of prior calls are still there.

What steps should be taken to clear return?

Regards

1 REPLY 1
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
483

Go into the bapi you will find dome import statement clear that memory but make sure for each and every call you are passing new order data to bapi.

Nabheet