on 10-07-2011 3:40 AM
Hi,
We are using SRM 7 and using BRF for the workflow. During the workflow runtime it is important for us to get the PO detail such as whether the PO is created with reference to contract. This will determine whether the PO will go for approval or not (if PO have contract then the PO will be automatically approved).
I set 2 schema, where the schema for auto approved should be selected if contract is assigned, while schema for normal approval will be selected if NO contract is assigned. To get the PO detail we plan to use call class /sapsrm/if_wf_context_provider method get_document. I'm getting the GUID of the doc in here. However when I pass the GUID to FM BBP_PD_PO_GETDETAIL, the table data for this GUID is still empty. Apparently SRM has not gone to the point of making this data for GUID available at that time. I'm at loss rite now, as we dont know any other way to pick up the detail.
Can anyone share some thought on this?
Best regards,
John
Hello John,
Instead of using class interface /SAPSRM/CL_WF_CONTEXT_PROVIDER, use class interface /SAPSRM/CL_WF_RULE_CONTXT_PO with method GET_RELATED_DOCUMENTS with IV_DOC_GUID (PO guid) and IV_DOCUMENT_TYPE = BUS2201.
Regards.
Laurent.
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.