SAP ABAP IMG Activity /SAPSLL/CUS_BAD_PRNF (BAdI: Printing of Documents)
Hierarchy
SLL-LEG (Software Component) SLL-LEG 901: Add-On Installation
   SLL-LEG (Application Component) Global Trade Services
     /SAPSLL/CORE_LEGAL (Package) Legal Services: Core Functions
IMG Activity
ID /SAPSLL/CUS_BAD_PRNF BAdI: Printing of Documents  
Transaction Code /SAPSLL/11000018   (empty) 
Created on 20031202    
Customizing Attributes /SAPSLL/CUS_BAD_PRNF   BAdI: Printing of Documents 
Customizing Activity /SAPSLL/CUS_BAD_PRNF   BAdI: Printing of Documents 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /SAPSLL/PRN_MSG    

Use

The Global Trade Services (GTS) system features Smart Form technology. Smart Forms let you to adjust and modify the way you print your forms. You can define the layout of your printed form and also the specific texts elements such as addresses, tables, graphics, and so on. You can also define the form logic used, for example, to read application data from internal tables.

This Business Add-In (BAdI) enables you to change information and the format in which this information is displayed. You can modify the information for printouts and documents for the following application areas and for supplementary customs declarations:

  • Presentation
  • Advance declaration
  • Customs shipment
  • Customs declaration
  • Administrative document

Requirements

Standard settings

Activities

This BAdI consists of three methods:

  • MESSAGE_LANGUAGE_MODIFY
    This method lets you replace the message language with other languages. The following parameters are available:
    Importing:
    IV_MESSAGE_TYPE - Message
    IS_CUSTOMS_DOCUMENT - Document structure
    Changing:
    CV_MESSAGE_LANGUAGE - Output language
  • PRINT_DATA_RETRIEVE_MODIFY
    This method lets you manipulate and add to the data for the form you want to print out. The following parameters are available:
    Importing:
    IV_MESSAGE_TYPE - Message
    IV_MESSAGE_LANGUAGE - Output language
    IS_PRINT_VIEW - Print data view
    Changing:
    CS_PRN_H - document: print data - header
    CS_PRN_I - document: print data - item

    Note: If you want to print the single administrative document for a customs export declaration including the form and special stamp of the customs authority, you must enter the value "X" for parameter cs_prn_h-h_gen-prnst of this method. If you set this field to "X", the system prints the stamp. If you leave the field blank, the system does not print the stamp.

  • FORM_DATA_IFACE_MODIFY
    This method lets you modify data before it is printed in forms. For example, if you want to add fields not contained in the standard system to the form, you can implement this method. The following parameters are available:
    Importing:
    IV_MESSAGE_TYPE - Message
    IV_ITEMS_AGGREGATED - Form data is aggregated/not aggregated
    Changing:
    CS_PRN_IF - Document printout: data interface for output

Example

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20120920 
SAP Release Created in 2.00