![]() Here is the output of the simple ABAP report which displays specific element values from a SAP Workflow task container. WRITE: 'Decision', lr_simple_container->value. READ TABLE gt_simple_container REFERENCE INTO lr_simple_container WITH KEY element = 'E_DECISION'. ![]() WRITE: 'Sales Office', lr_simple_container->value. READ TABLE gt_simple_container REFERENCE INTO lr_simple_container WITH KEY element = 'VKBUR'. WRITE: 'Campaign ID', lr_simple_container->value. READ TABLE gt_simple_container REFERENCE INTO DATA(lr_simple_container) WITH KEY element = 'CAMPAIGN_ID'. If the ABAP programmer is dealing with specific container data of a SAP workflow task, you can directly READ related element from the Simple_Container table parameter. If you work on a specific workflow task, it is possible that you already know the element names of the ABAP workflow container data. WRITE:/ gs_simple_container-element(25) UNDER h1,Ībove ABAP program will list all element-value pairs stored in the workflow container content.ĪBAP codes to list Workflow container data as key-value pairs LOOP AT gt_simple_container INTO DATA(gs_simple_container). How to call workflow from abap program sap code#If you want to develop an ABAP program which reads workflow container data using SAP_WAPI_READ_CONTAINER function module, you can use following ABAP code sample as a starting point for your report.ĭATA gt_simple_container TYPE TABLE OF swr_cont. When ABAP programmer clicks on Simple_Container table parameter, as seen in below image the workflow container data is listed as element value pairs. Run ABAP function module SAP_WAPI_READ_CONTAINER to read container dataĪfter you execute the SAP_WAPI_READ_CONTAINER function module, as seen in below screenshot SIMPLE_CONTAINER Table parameter can be used to display the contents of the workitem container data.Įxecution results of ABAP function module and Simple_Container with Workflow Item container data ![]() Then provide the work item id as the marked WORKITEM_ID import parameter value. Now we are ready to execute SE37 tcode and paste the function module "SAP_WAPI_READ_CONTAINER" in the FM name input text. Perhaps before you call SE37 tcode, first call SWIA transaction code (Process Work Item as Administrator) and execute the report and select a sample Work Item ID from the list. To see how SAP_WAPI_READ_CONTAINER ABAP function module works, let's use a sample work item id. ABAP programmers can use standart ABAP function module SAP_WAPI_READ_CONTAINER to read the contents of a SAP workflow task container data. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |