Delete realtionship in BUT050 table
My requirement is to create and delete BP relationship between sold to and ship to/ sold to and bill to.
For creating relationship, i have used the fm BUPR_RELATIONSHIP_CREATE and its working fine.
But while deleting the relationship, I am using the FM BUPR_RELATIONSHIP_DELETE
CALL FUNCTION ‘BUPR_RELATIONSHIP_DELETE’
IV_PARTNER_1 = lv_sid
IV_PARTNER_2 = lv_rid
IV_RELATIONSHIP = lv_rtype
IV_X_SAVE = ‘X’
ET_RETURN = lt_return .
Note: partner1 is the sold to party and partner2 is the bill to party and the relation still exists in BUT050 table when i check from back end.
but it returns the message saying “Relationship between partners doesnot exist”
If anyone had faced similar issue, Please post your suggestions.
Thanks in advance,