SAP Reports / Programs | Logistics Execution | Shipping | Basic Functions(LE-SHP-GF) SAP LE

SDADDN02 SAP ABAP Report - Data Selection Program for the Delivery Note Form







SDADDN02 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 SDADDN02 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 SDADDN02. "Basic submit
SUBMIT SDADDN02 AND RETURN. "Return to original report after report execution complete
SUBMIT SDADDN02 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Data Selection Program for the Delivery Note Form
Text Symbol: 001 = Not packed


INCLUDES used within this REPORT SDADDN02

INCLUDE RVADTABL.
INCLUDE SDVELTYP.
INCLUDE RVADOPFO.
INCLUDE RVADOPFO_PDF.


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:

VIEW_VBADR CALL FUNCTION 'VIEW_VBADR' EXPORTING INPUT = VBPA NRART = 'XX' IMPORTING ADRESSE = VBADR.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'REPEAT' WINDOW = 'REPEAT' EXCEPTIONS ELEMENT = 1 WINDOW = 2.

CLOSE_FORM CALL FUNCTION 'CLOSE_FORM' "...Ende Formulardruck

CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING COMMAND = 'PROTECT'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'ITEM_LINE'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'ITEM_WITHOUT_PACKING'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'ITEM_PACKING'.

WRITE_FORM CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'EMPTY_LINE'.

CONTROL_FORM CALL FUNCTION 'CONTROL_FORM' EXPORTING COMMAND = 'ENDPROTECT'.

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.

RV_DELIVERY_PRINT_VIEW CALL FUNCTION 'RV_DELIVERY_PRINT_VIEW' EXPORTING COMWA = VBCO3 IMPORTING KOPF = VBDKL TABLES POS = TVBDPL.

SD_PACKING_PRINT_VIEW CALL FUNCTION 'SD_PACKING_PRINT_VIEW' EXPORTING COMWA = VBCO3 IMPORTING VBPLA_WA = VBPLA TABLES VBPLK_TAB = LVBPLK VBPLP_TAB = LVBPLP VBPLS_TAB = LVBPLS EXCEPTIONS OBJECT_NOT_FOUND = 01 OTHERS = 99.

FP_FUNCTION_MODULE_NAME CALL FUNCTION 'FP_FUNCTION_MODULE_NAME' EXPORTING I_NAME = GV_PDF_FORM IMPORTING E_FUNCNAME = GV_FUNCNAME.

ARCHIV_GET_PRINTFORMAT CALL FUNCTION 'ARCHIV_GET_PRINTFORMAT' EXPORTING application = 'PDF' IMPORTING printformat = lv_archiveformat.

ARCHIV_CREATE_OUTGOINGDOCUMENT CALL FUNCTION 'ARCHIV_CREATE_OUTGOINGDOCUMENT' EXPORTING arc_p = arc_params arc_i = toa_dara pdflen = lv_pdf_size documentclass = lv_documentclass "Since the output is in PDF document class is also PDF document = ls_pdf_file-pdf EXCEPTIONS error_archiv = 1 error_communicationtable = 2 error_connectiontable = 3 error_kernel = 4 error_parameter = 5 OTHERS = 6.

FP_JOB_CLOSE CALL FUNCTION 'FP_JOB_CLOSE' EXCEPTIONS USAGE_ERROR = 1 SYSTEM_ERROR = 2 INTERNAL_ERROR = 3 OTHERS = 4.

VIEW_VBADR CALL FUNCTION 'VIEW_VBADR' EXPORTING INPUT = VBPA NRART = 'XX' IMPORTING ADRESSE = VBADR.

SD_PACKING_PRINT_VIEW CALL FUNCTION 'SD_PACKING_PRINT_VIEW' EXPORTING COMWA = VBCO3 IMPORTING VBPLA_WA = VBPLA TABLES VBPLK_TAB = LVBPLK VBPLP_TAB = LVBPLP VBPLS_TAB = LVBPLS EXCEPTIONS OBJECT_NOT_FOUND = 01 OTHERS = 99.



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 SDADDN02 or its description.