on 09-18-2014 4:22 PM
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
Hi Yayati,
please call...
CALL FUNCTION 'BBP_PDH_DB_DIRECT_UPDATE'
EXPORTING
iv_item_guid_sourcing = iv_item_guid
iv_source_rel_ind = /sapsrm/if_pdo_ao_soco~gc_sourcing_completed.
SAP makes the same in the method /SAPSRM/CL_PDO_AO_SOCO->/SAPSRM/IF_PDO_AO_SOCO~COMPLETE_ITEM
Regards
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Konstantin,
We are using SRM 7 EHP1 and we have to add rejection reason while rejecting SC in SOCO.
From EHP2 that feature is inbuilt but how can we add the option to provide reason while rejecting SC in EHP 1
I was thinking to use SOCO_COMPLETE event but, if I am not wrong that will be called only after the step when user confirms the deletion and SC is updated and saved.
Please help me on same
Regards
Manish Agrawal
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.