Skip to Content
0
Apr 20, 2015 at 11:55 AM

FM: SAP_WAPI_WORKITEMS_TO_OBJECT to get WI ID for PO

846 Views

Hi Experts,

My requirement is to get the WI ID based on object, in my case PO in SRM. Depending on which I can apply my logic in code. I am using FM: SAP_WAPI_WORKITEMS_TO_OBJECT to get the WI ID.

I have tried to execute the FM with

OBJTYPE = 'BUS2201'

OBJKEY = GUID value of PO

OBJECT_POR = INSTID = ? TYPEID = ? ca= ?

When I checked the table SWW_WI2OBJ and we have required parameter to be passed. Even it works when I executed the table with some known WI and then executed the FM with table parameters. but how can I get the OBJECT_POR = INSTID = ? TYPEID = ? ca= ? from FM: BBP_PD_PO_GETDETAIL

I didn't find thses values under any return parameter. Just I am having doubt with input OBJECT_POR .

Thanks in advance

Chandan