Hello experts,
I have a requirement to reject items from SoCo programatically.
If the RFQ is created and quotations are created. Then Quotations can be closed and RFQ can be closed. RFQ and Quotations have the status 'Transaction completed'. Now after RFQ and Quotes are closed, I am using FM BBP_PDIGP_DB_DIRECT_UPDATE.
CALL FUNCTION 'BBP_PDIGP_DB_DIRECT_UPDATE'
EXPORTING
iv_source_rel_ind = 'Y'
TABLES
it_item_guid_sourcing = lt_item_sourcing.
lt_item_sourcing has all the item GUIDs of the SC.
When the FM is executed and commit work is applied, still the source_rel_ind is set to 'X'.
When I reject the items from SoCo manually by pressing button 'Reject items', the system asks for a reason for rejecting the items.By this way the source_rel_ind is set to 'Y'. But I do not know where the reason is stored or how to add the reason programatically. I have not found any FM to add that.
Can anyone suggest how do i do it?
Regards,
Yayati