Do you Know ?

ABAP Code Generator Tool. ( Part 6 ) ( Final )

Trigger Mail: This option will generate the code which can be used for sending mail. For Input details kindly refer the section ‘Sample Run’.

Download file to Local machine: This option will generate the code which can be used for downloading file into presentation server.


List box ‘File type’: Based on the file type selected the output code will be generated.


Checkbox ‘Display Column heading in file’: When this checkbox is selected the user has to click on the icon  and populate the column headings that must appear as first row in the attachment.

Download file to Application server: This option will generate the code which can be used for downloading file into application server.




List box ‘Delimiter’: Based on the Delimiter selected, output code will be generated. If the value ‘Other’ is selected then the user will have to declare ‘C_DELIMITER’ constant with appropriate separator. When Delimiter is not populated then ‘TAB’ will be chosen as default delimiter, if the
checkbox ‘Fixed Length’ is not selected.




When ‘Fixed Length’ checkbox is selected, the user has to click on the icon  and enter the Field name in the order as needed in the output file and enter its corresponding length. The user can view the column positions by clicking on the push button ‘Position’. When the push button is clicked the column ‘Position’ will get populated with the position details. Delimiter will be taken into consideration while calculating the position, if ‘Delimiter’ field contains value.

When the ‘Delimiter’ field is blank:




When the ‘Delimiter’ contains value:

Click the push button ‘Position’:



Create Outbound IDoc: This option will generate the code which can be used for creating Outbound IDoc. The User has to enter the IDoc type and its corresponding message type. The Output Code will contain subroutines- one for each of the segments under the IDoc type entered.  The code will also contain the logic to populate the control information and to create the outbound IDoc using the standard function module ‘MASTER_IDOC_DISTRIBUTE’.



Future scope of Enhancement:

The tool can be enhanced to include other options such as:
Generation of selection screen and validation of selection screen fields
Generation of BDC program based on SHDB recording
Upload file data to DB table