on 11-16-2023 1:57 PM
Hi Experts,
Can anyone help me to print my adobe form using my printer, i tried to print my adobe form with my driver program and it doesnt work, please help me.
This is my code:
*for Print preview
IF cb_demo = 'X'.
ls_outputparams-noprint = 'X'.
ls_outputparams-preview = 'X'.
ls_outputparams-nopributt = 'X'.
ELSE.
ls_outputparams-nodialog = 'X'.
ls_outputparams-device = 'PRINTER'.
ls_outputparams-reqnew = 'X'. "NEW SPOOL REQUEST
ls_outputparams-reqimm = 'X'. "IMMEDIATE SPOOL PRINT
ls_outputparams-reqfinal = 'X'.
ls_outputparams-copies = '001'.
ls_outputparams-getpdf = 'X'.
ls_outputparams-assemble = 'X'.
ls_outputparams-dest = 'PDF1'. "'BIRCAS'/'LOCL'.
ls_outputparams-rqposname = 'EPSON LQ-310 ESC/P2'.
ENDIF.
fp_docparams-langu = 'E'.
fp_docparams-dynamic = 'X'.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
ENDIF.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'ZSD_INVOICE_BIR_PRINT_AF'
IMPORTING
e_funcname = lv_funcname
* E_INTERFACE_TYPE =
* EV_FUNCNAME_INBOUND =
.
CALL FUNCTION lv_funcname
EXPORTING
/1bcdwb/docparams = fp_docparams
i_doctype = gc_doctype
i_class = gc_class
i_nvat = gv_nvat
i_print_cnt = g_count
i_print_txt = g_text
i_cash = gv_cash
gv_var1 = gv_var1
gv_var2 = gv_var2
i_header = gt_header
i_detail = gt_detail
IMPORTING
/1BCDWB/FORMOUTPUT = l_formoutput
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'FP_JOB_CLOSE'
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
is your ADS support your intalled printer ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
8 | |
6 | |
6 | |
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.