I created a BO with key as EBELN and created method GET_PO_DETAILS also created EVENT 'CREATE'.
I using FM SAP_WAPI_CREATE_EVENT, passing OBJECT_TYPE, OBJECT_KEY and INPUT_CONTAINER passing ELEMENT = EBELN, VALUE = XXXXXXX.
When ABAP program executed Workflow is triggering successfully and could see in Work Items in SWIA Tcode.
In SWWWIHEAD I could see details of the TASK, Work Item Text (PO # XXXXXXXXXX) details. But in SWW_CONTOB table don't have any entries related to same work item id present in table SWWWIHEAD.
I would like to look for SWW_CONTOB-OBJTYPE and SWW_CONTOB-OBJKEY first then basing on the WORK ITEM ID here would like to go to SWWWIHEAD. This is needed because I would like to check if PO is already sent for approval and any one tries to edit the same po then the document has to be locked restricting editing.
Please provide your inputs why SWW_CONTOB don't have entries.