My requirement is to send adobeform pdf as attachment using workflow.
I have created the adobeform and using function module converted the pdf (xstring) to binary format. Please find the below code written:
IT_SOLIX_TAB TYPE solix-LINE OCCURS 0,
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
BUFFER = FP_FORMOUTPUT-PDF
OUTPUT_LENGTH = ZVAR1
BINARY_TAB = IT_SOLIX_TAB.
Now created the container and passing the table it_solix_tab.
SWC_SET_TABLE LT_CONT 'IT_SOLIX_TAB' IT_SOLIX_TAB.
LV_INITIATOR = SY-UNAME.
CALL FUNCTION 'SWW_WI_START_SIMPLE'
CREATOR = LV_INITIATOR
TASK = 'WS95000064'
CALLED_IN_BACKGROUND = 'X'
AGENTS = IT_AGENTS
WI_CONTAINER = LT_CONT.
Now i am getting error in the function module sww_wi_start_simple.
error is: UC_OBJECTS_NOT_CONVERTIBLE
I have done the investigation and found that the content which got converted from pdf(xstring) to binary dosent support the conversion src to dst. I am attaching the error image also.
I have to send pdf data only in binary format inorder to pull the data at workflow side because container is only supporting binary format.
Please suggest to proceed further.
Thanks in advance.