on 2011 Feb 17 7:40 AM
Is there any way to get the current approver and corresponding item guid determined by the system in doc check badi?
Request clarification before answering.
There is one std method /sapsrm/cl_wf_apv_facade=>get_current_process_state which returns item guid and approver name but it doesnt work in doc check badi as the SC is not yet created.
any other pointers? Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saravanan,
I am getting the approvers in the method GET_APPROVERS_BY_AREA_GUID via Z class which is a copy of /SAPSRM/CL_IM_WF_RR_CCTR_SC
Now in this method I am getting the approver details from ECC, if no approver details is found I want to throw a error in the SC saying no approvers found. Since I could not pass any error message via that method I wanted to implement a check in doc_check badi if there is an approver against a line item, if not then it will show error to the user. Instead of calling and using the entire logic again in doc_check badi I wanted to check if any method can be used to retrieve the approver for the item during runtime.
Hi,
You don't need to write whole WF logic in check BADI to confirm if CC approver maintain in ECC or not.. you can get the SC account detaills in check badi.. just loop through it , if you are maintaining the cost center owner is in ECC t.code KS01, then call the standard ECC BAPI FM 'BAPI_COSTCENTER_GETDETAIL' to get the PERSON_IN_CHARGE value.. if this is null then raise a error message..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.