on 01-17-2011 10:35 AM
Hi
Following is the code . i called the ADOBE form in my Z program . and then call the FM to convert it to binary. now i wanted to pass that binary file to FM
Call Function SO_NEW_DOCUMENT_ATT_SEND_API1
kindly tell me that to which parameter of above FM i pass this binary file
Code is as below
i_fpname = 'ZHR_AF_TRV_REQUEST_FORM'.
i_plan-REINR = 139.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = i_fpname
IMPORTING
e_funcname = fm_name
.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = fp_outputparams
EXCEPTIONS
CANCEL = 1
USAGE_ERROR = 2
SYSTEM_ERROR = 3
INTERNAL_ERROR = 4
OTHERS = 5
.
CALL FUNCTION fm_name
EXPORTING
/1BCDWB/DOCPARAMS = fp_docparams
plan = i_plan
IMPORTING
/1BCDWB/FORMOUTPUT = fp_formoutput
.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
USAGE_ERROR = 1
SYSTEM_ERROR = 2
INTERNAL_ERROR = 3
OTHERS = 4
.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-pdf
* APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH = ZVAR1
tables
binary_tab = IT_SOLIX_TAB
.
Call Function SO_NEW_DOCUMENT_ATT_SEND_API1
Edited by: Mike Pokraka on Jan 17, 2011 10:40 AM - fixed code formatting
Format and pass it to CONTENTS_BIN.
DATA: wa_solix_tab TYPE LINE OF it_solix_tab,
it_contents_bin TYPE TABLE OF solisti1,
wa_contents_bin TYPE solisti1.
LOOP AT it_solix_tab INTO wa_solix_tab.
MOVE wa_solix_tab TO wa_contents_bin-line.
APPEND wa_contents_bin TO it_contents_bin.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.