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: 

Multiple PO changes

Former Member
0 Kudos
187

Hi All,

I have to change bunch of po's . I 'm using BAPI_PO_CHANGE(Can Change 1 po at a time), but my problem if for any reason i cannot change one po , then i should roll back the changes made to any po's earluier to processing the current po.

I'm doing a test run and locking all the po's and only if i have no issues with test run and i'm not unlocking the po's until i finish the actual run.

Is there any better approach than this

Thanks in Advance

3 REPLIES 3

nabheetscn
Active Contributor
0 Kudos
108

Call commit only if everything is processed succesfully else do not commit after loop..loop is for yourprocessing of po's one by one..

Nabheet

0 Kudos
108

Hi ,

Is it a good idea to Call commit after the loop only when everything is ok .

So you're saying if i call Call commit once after loop then it would be good for all po's inside the loop and same is inthe case with roll back

Please confirm

Thanks

0 Kudos
108

The idea is you commit if everything ok else no need of rollback changes will already be ineffective..

Nabheet