SAP Reports / Programs | Sales and Distribution | Basic Functions | Output Determination(SD-BF-OC) SAP SD

SD_SDOC_PRINT02 SAP ABAP Report - Sales: Smartform Print Program for PDF







SD_SDOC_PRINT02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SD_SDOC_PRINT02 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SD_SDOC_PRINT02. "Basic submit
SUBMIT SD_SDOC_PRINT02 AND RETURN. "Return to original report after report execution complete
SUBMIT SD_SDOC_PRINT02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Sales: Smartform Print Program for PDF


INCLUDES used within this REPORT SD_SDOC_PRINT02

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SSF_FUNCTION_MODULE_NAME call function 'SSF_FUNCTION_MODULE_NAME' exporting formname = lv_formname importing fm_name = lv_fm_name exceptions no_form = 1 no_function_module = 2 others = 3.

CONVERT_OTF call function 'CONVERT_OTF' exporting format = 'PDF' importing bin_filesize = lv_binfilesize bin_file = lv_bin_file tables otf = ls_output_info-otfdata lines = lt_lines exceptions err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 err_bad_otf = 4 others = 5.

RV_PRICE_PRINT_GET_MODE call function 'RV_PRICE_PRINT_GET_MODE' importing e_print_mode = lv_mode.

RV_PRICE_PRINT_REFRESH call function 'RV_PRICE_PRINT_REFRESH' tables tkomv = lt_komv.

RV_DOCUMENT_PRINT_VIEW call function 'RV_DOCUMENT_PRINT_VIEW' exporting comwa = ls_vbco3 importing kopf = cs_head tables pos = ct_item mess = lt_msg exceptions fehler_bei_datenbeschaffung = 1.

NAST_PROTOCOL_UPDATE call function 'NAST_PROTOCOL_UPDATE' exporting msg_arbgb = syst-msgid msg_nr = syst-msgno msg_ty = syst-msgty msg_v1 = syst-msgv1 msg_v2 = syst-msgv2 msg_v3 = syst-msgv3 msg_v4 = syst-msgv4 exceptions others = 1.

ADDR_GET call function 'ADDR_GET' exporting address_selection = ls_addr address_group = 'CA01' importing sadr = ls_sadr exceptions others = 01.

WFMC_PREPARE_SMART_FORM call function 'WFMC_PREPARE_SMART_FORM' exporting pi_nast = nast pi_addr_key = ls_addr pi_repid = sy-repid importing pe_returncode = cv_retcode pe_itcpo = ls_itcpo pe_device = lv_device pe_recipient = cs_recipient pe_sender = cs_sender.

SUSR_USER_DEFAULTS_GET call function 'SUSR_USER_DEFAULTS_GET' exporting user_name = sy-uname importing user_defaults = ls_usr01 exceptions others = 1.

SSF_READ_ERRORS call function 'SSF_READ_ERRORS' importing errortab = lt_error.

NAST_PROTOCOL_UPDATE call function 'NAST_PROTOCOL_UPDATE' exporting msg_arbgb = -msgid msg_nr = lv_msgno msg_ty = -msgty msg_v1 = -msgv1 msg_v2 = -msgv2 msg_v3 = -msgv3 msg_v4 = -msgv4 exceptions others = 0.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SD_SDOC_PRINT02 or its description.