‎2010 May 28 3:54 PM
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
‎2010 Jun 01 8:02 AM
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