Transaction: VL02N

Press enter to lock the delivery and enter in edit mode of the document.
You can create or change/display the output for this document by choosing from Menu: Extras -> Delivery Output -> Header

Sample delivery note output program RLE_DELNOTE. You can see how to define the ENTRY form routine which is called by the SAP output framework.
FORM ENTRY USING RETURN_CODE US_SCREEN.
DATA: LF_RETCODE TYPE SY-SUBRC.
XSCREEN = US_SCREEN.
PERFORM PROCESSING USING US_SCREEN
CHANGING LF_RETCODE.
IF LF_RETCODE NE 0.
RETURN_CODE = 1.
ELSE.
RETURN_CODE = 0.
ENDIF.
ENDFORM.
You will need some GLOBAL definitions and it is best to include the following:
Continue reading Output types, output determination SAP SD (ABAP) – setup, debugging, print programs