on 05-13-2014 9:29 AM
Hi ,
When we are trying to reject the shopping cart at the asset approval Level,
we experience an Error in the SAP Standard BBP_PD_SC_GETAIL FM.
Step1: first we have selected the Shopping cart from the Universal List for decision that is Approval/Reject ( User is Asset Approver).
Step2 : we pressed detail on the first line item.
Step3: we have unchecked Asset flag Custom Filed.
Step4 : Then we have selected Reject Button.
Step5 : we have pressed the Check Button, once pressed the Check Button
This standard BBP_PD_SC_GETAIL, could not able to return (DEDUCT_IND) value on the SAP Standard BBP_DOC_CHECK_BADI badi,
please suggest us like any other FM is there to get the Shopping Cart runtime value which helps us or any other solution on this issus.
Solution on this Issue is highly Appreciated.
Thanks & Regards
Prem
You created the thread in the SRM User Interface Add On category, however this seems not to relate to SSPUX? Have you just created this in the wrong space or is your query somehow related to SSPUX?
Regards,
Jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Abhishek
Same deceleration's are already exists, but still we could not able to get the DEDUCT_IND Value.
Thanks & Regards
Prem
Hi Prem
The indicator DEDUCT_IND is only set when the the creator of the SC accepts the rejection.
if want to check whether a SC has been rejected then the following code can be helpful.
CALL METHOD /SAPSRM/CL_WF_APV_FACADE=>GET_CURRENT_PROCESS_STATE
EXPORTING
IV_DOCUMENT_GUID = PV_GUID
IV_AGENT_ID = PV_CREATED_BY
IV_LANGUAGE = SY-LANGU
IMPORTING
ES_PROCESS = LV_PROCESS.
IF LV_PROCESS IS NOT INITIAL.
LT_PROCESS_LEVEL_A = LV_PROCESS-PROCESS_LEVEL_LIST.
READ TABLE LT_PROCESS_LEVEL_A INTO LS_PROCESS_LEVEL_A INDEX 1 .
LT_DECISIONSET_LIST_A = LS_PROCESS_LEVEL_A-DECISIONSET_LIST.
LOOP AT LT_DECISIONSET_LIST_A INTO LS_DECISIONSET_LIST_A .
LT_ITEM_STATUS_LIST_A = LS_DECISIONSET_LIST_A-ITEM_STATUS_LIST.
LOOP AT LT_ITEM_STATUS_LIST_A INTO LS_ITEM_STATUS_LIST_A.
LT_ITEM_STATUS_A = LS_ITEM_STATUS_LIST_A-ITEM_STATUS.
ENDLOOP.
Thanks
Abhishekh Narsingpuria
Message was edited by: Zoltan Keller Please do not ask for points
Hello Abhishekh,
Thanks for your reply, We tried by using CALL METHOD /SAPSRM/CL_WF_APV_FACADE, but still we could not able to get the DEDUCT_IND Value inside the BBP_DOC_CHECK_BADI BADI. Please explain me in details more on this CALL METHOD /SAPSRM/CL_WF_APV_FACADE.
Thanks & Regards
Prem
Hi Prem
If you want to check whether the SC has been rejected you can use the above mentioned code.
In the above code LT_ITEM_STATUS_A will give you the status.
In the check badi use the above code.
Provide the following values as input to the method
1. GUID
2. created by
3. language
and then LV_PROCESS will be filled and navigate to find the status.
No need to check the DEDUCT_IND value.
DEDUCT_IND is filled only when rejection is accepted by creator, but if you want to check before accepting of rejection then use the above code and find the status.
i think your requirement is to find whether a SC has been rejected.
Thanks
Abhishekh Narsingpuria
Hi Wendy,
FM BBP_PROCDOC_GETDETAIL we tired, but it could not able to get the DEDUCT_IND Value.
Thanks & Regards
Prem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prem,
Please try to use Function Module BBP_PROCDOC_GETDETAIL.
Regards,
Wendy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.