on 09-04-2012 11:55 AM
Hi experts,
I want to show a report based on shopping item status with respect to workflow approvers. I mean, output should contain shopping cart #, SC item #, creator of SC, approver name, when approver received and processed the item and what approver did on the item(approve/reject/partial approved/send back to requestor and so on...). I can read the workitem and show the status, but it will contain the status of the workitem. So I cant read the woritem status since workitem status is overall status(overall item's status) of the approver action on the workitem, not the exact status of SC item.
please help me on this to read the exact action taken by the approver on the SC item(lineitem), not workitem.
Regards
Raaam's...
HI Raaam
This is the exact one you should use to determine the item status
/sapsrm/cl_wf_process_manager=>get_item_status(
EXPORTING
iv_document_guid = iv_doc_guid
it_item_guids = lt_item_guid
IMPORTING
et_item_status = lt_item_status
).
Take the GUID from order_adm or some other table and put in a report and you shall be good to go !
Do paste your reply if it resolved .
Kindly mark my answer as helpful / useful if helped you in anyway . Thanks
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All
Even I am trying to understand this method and when I double click on the some parameters based on which decision is taken It doesn't ope up anything /SAPSRM/IF_WF_PROCESS_C
For example I'm trying to understand when is the status "Inquired " and when it will be "Accepted "
Business reason : I want to put a condition on the doc when it is partially rejected , But in the code when doc is partially rejected or when the approver recalls the doc in both the cases the status is "INQUIRED " May I request some one to please assist asap on this to differentiate based on what condition when the doc is partially rejected /recalled . have posted in another relevant threads as well but no luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check with the class... /SAPSRM/CL_WF_PROCESS_MANAGER...
if that is incorrect.. check with search string with the above class.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raaam,
Please check the following methods:
GET_DECISION - Returns the currently stored decision for this decision set
GET_DECISIONSET - Retrieves the decisionset related to the given workitem.
GET_LEVEL_DECISION_STATUS - Returns the approval decision for the current process level
GET_LEVEL_DEC_STATUS - get decision status for a certain level
Best Regards,
Gergely
Hi Gergely,
Thanks for your response!
I couldn't execute any method in the class /SAPSRM/CL_WF_PROCESS_MANAGER as it throws exception "/SAPSRM/CX_WF_NOT_FOUND" always when I execute any method and couldn't find the reason.
How to resolve it??? It's related to any config or code issue in the system??? Please clarify.
Regards
Raaam's...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.