Smartforms Vs SAPScript, the Battle Royale in SAP
Posted by Admin, under SAPScript, SmartformsSamrtforms and SAPScript both used for creating and maintaining forms for mass printing in SAP Systems. But where does the difference lies ?
ABAP Tutorials, Guides, Training, Manuals
Samrtforms and SAPScript both used for creating and maintaining forms for mass printing in SAP Systems. But where does the difference lies ?
At first sight, both the statements ( loop at itab where <key> = <val> ; loop at itab. if <key> = <val>. ) looks like performing the same task.
But when it comes to performance, both beats each other in there own domain.
This program takes an existing ABAP report, and does the following:
- Attempts to move comments to the end of the line. Added because pretty printer in 4.6 no longer does this
- Adds comments (table name) for the tables listed after a TABLES statement if the line has not been commented already.
- Adds comments (field name) for data elements, parameters, and select-options that are defined using the LIKE or FOR statement
- For ENDLOOP/ENDSELECT adds comment identify the LOOP/SELECT that is being closed
- For FORM/ENDFORM adds comment identify the FORM that is being closed
- Checks to ensure that the program being modified is either a Local Private Object, or on a transport that belongs to the person running this program. This is to help prevent screwups.
- Calls function PRETTY_PRINTER to do the SAP standard pretty print after the custom comments have been created.