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 and object services

Former Member
0 Likes
487

Hello experts,

I am using object services to save my objects to data base.

I designed, amongst others, one class for a business partner.

I am just wondering about a behaviour of the BAPI 'BAPI_BUPR_RELATIONSHIP_REMOVE'. I call this BADI in the method IF_OS_STATE~INVALIDATE. Background is: I want to delete all entries of this business partner which has a special relationtype. I loop at the return table after the call of the BAPI. If nothing is wrong (no 'E' or 'A' messages) I call the BAPI 'BAPI_TRANSACTION_COMMIT' to save everything into data base.

I expect to see changes in data base table BUT050, but there is no change after calling COMMIT.

Nevertheless, in some cases (I didn't get the logic until now... ) after my program has finished all entries except one are deleted..

Does anybody know if there are some relations between BAPI calls and Object Services? Do I have to pay attention to something? I couldn't find anything about it in literature...

Thanks in advance!!

Anne

1 REPLY 1
Read only

former_member208517
Participant
0 Likes
370

no problem for the BAPI part.

BAPI_BUPR_RELATIONSHIP_REMOVE can fulfill your requirement.

Maybe you can move your codes for this logic into a single report to verify the logic correct first.

And then you can see it is the problem of the object service or your coding.

Edited by: Kangbo Wang on Jun 1, 2010 9:09 AM