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