Skip to Content
0
Sep 05, 2012 at 09:15 AM

Error while sending adobeform pdf attachment using workflow

39 Views

Hi All,

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:

data :

IT_SOLIX_TAB TYPE solix-LINE OCCURS 0,

CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = FP_FORMOUTPUT-PDF
IMPORTING
OUTPUT_LENGTH = ZVAR1
TABLES
BINARY_TAB = IT_SOLIX_TAB.

Now created the container and passing the table it_solix_tab.

SWC_CONTAINER LT_CONT.

SWC_CLEAR_CONTAINER LT_CONT.

SWC_CREATE_CONTAINER LT_CONT.

SWC_SET_TABLE LT_CONT 'IT_SOLIX_TAB' IT_SOLIX_TAB.

LV_INITIATOR = SY-UNAME.

CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
CREATOR = LV_INITIATOR
TASK = 'WS95000064'
CALLED_IN_BACKGROUND = 'X'
TABLES
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.

Thanks,

Srinivas Amberkar

Attachments