i want to trigger the workflow from adobe form for that i have written this code
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = LV_XSTRING
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH = LV_LENGTH
TABLES
BINARY_TAB = LT_BINARY_TAB.
SWC_SET_TABLE LT_CONTAINER 'IT_SOLIX_TAB' LT_BINARY_TAB.
SWC_SET_ELEMENT LT_CONTAINER 'LENGTH' LV_LENGTH.
CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
CREATOR = LV_CREATOR
PRIORITY = SWFCO_NO_PRIO
TASK = 'WS90000301'
CALLED_IN_BACKGROUND = ' '
DEADLINE_DATA = ' '
NO_DEADLINE_PARAMETERS = ' '
IMPORTING
WI_ID =
WI_HEADER =
RETURN =
WI_RESULT =
SWF_RETURN =
TABLES
AGENTS = LTAGENTS
DEADLINE_AGENTS =
DESIRED_END_AGENTS =
LATEST_START_AGENTS =
EXCLUDED_AGENTS =
NOTIFICATION_AGENTS =
SECONDARY_METHODS =
WI_CONTAINER = LT_CONTAINER
CHANGING
WI_CONTAINER_HANDLE =
EXCEPTIONS
ID_NOT_CREATED = 1
READ_FAILED = 2
IMMEDIATE_START_NOT_POSSIBLE = 3
EXECUTION_FAILED = 4
INVALID_STATUS = 5
OTHERS = 6
.
the problem is i have created container elements of same structure in workflow . it is showing error sy-subrc=1, if i dont create any container elements (error free) in workflow log it is showing container elements with values.. i want to bind these container elements to task to method to get the attachment
please any one suggest me wt could be the problem