‎2008 Mar 05 8:41 PM
I created a zbusiness object (ZPRODH)with
one key field product hierarchy,
one attribute level number and
one method display.
I tested that zobject and it is displaying it. now I created a workflow to display this and have to call it from one abap program.
In the abap program I am calling the funcion module, I need to pass the product hierarcy ( how can I pass it)
data: p_workitem LIKE SWR_STRUCT-WORKITEMID,
p_subrc like sy-subrc.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
TASK = 'WS99900007'
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE = p_subrc
WORKITEM_ID = p_workitem
but it is not working, can anybody tell me what is the issue. this is my first workflow. so I am not sure I am missing anything for not. Please help me
Thanks in advance
‎2008 Mar 19 6:39 PM
I created a zbusiness object (ZPRODH)with
one key field product hierarchy,
one attribute level number and
one method display.
I tested that zobject and using this object created workflow to display product hierarchy ,it is displaying it. now I have to call it from one abap program.
In the abap program I am calling the funcion module, I
CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
TASK = TASK
IMPORTING
WI_ID = WI_ID
TABLES
AGENTS = AGENTS
WI_CONTAINER = WI_CONTAINER.
It is calling the workflow and subrc is 0, but not passing the value to the workflow. Because of that the method is not working,
Thanks in advance
‎2008 Mar 19 7:01 PM
‎2008 Apr 03 8:05 PM