Migrating SAPscript Forms

Use

SAP delivers Smart Forms for important business processes. If for your needs no such standard forms exist or if you have your own SAPscript forms, you can use two tools to migrate them.

Individual Migration

You can migrate a SAPscript form into a Smart Form and convert a SAPscript style into a Smart Style.

When converting a SAPscript style into a Smart Style, the system converts all paragraph and character formats with all their properties and attributes without any changes. Thus you can use the converted Smart Style without making any adaptations.

When migrating a SAPscript form into a Smart Form, the system executes the following steps:

  • It copies the language attributes and the output options.

  • It migrates the layout information including pages, windows, and their attributes and positions on the page.

  • It copies the texts in the form.

  • It displays the fields (SAPscript notation: program symbols) in the texts.

  • It converts the SAPscript commands (such as NEW-PAGE or IF…ENDIF) to comment lines and displays them in the texts.

After the migration, you have a template that you can enhance and modify according to your needs. Adapt the form logic by specifying the commands which the system converted to comment lines.

Mass Migration

You can migrate any number of SAPscript forms in one go.

Procedure

Migrating a SAPscript form

  1. Go to the SAP Smart Forms initial screen (transaction SMARTFORMS).

  2. In the Form field enter the name of the Smart Form you want to create.

  3. Choose Start of the navigation pathUtilities Next navigation step Migrate SAPscript FormEnd of the navigation path. The dialog window Migrate SAPscript Form appears.

  4. Enter the name and the language of the source form (SAPscript).

  5. Choose Enter. This takes you to the change mode of the SAP Form Builder.

  6. Now change the design of the form and of the form logic. To activate the Smart Form choose Activate.

Converting a SAPscript style

  1. Go to the Smart Styles inital screen (transaction SMARTSTYLES).

  2. In the Style name field enter the name of the Smart Style you want to create.

  3. Choose Start of the navigation pathSmart Next navigation step Styles Next navigation step Convert SAPscript StyleEnd of the navigation path.

  4. Enter the name of the SAPscript style you want to convert.

  5. Choose Enter. A list of the converted styles appears.

  6. Choose Back. You can now change the Smart Style ( Change). To activate the Smart Style choose Activate.

Mass Migration of SAPscript Forms

  1. In Reporting select the program SF_MIGRATE and execute it.

  2. Select the names and the language of the SAPscript forms and choose Execute. The system creates the Smart Forms under the names of the SAPscript forms plus the extension _SF. It displays a list of the migrated forms.

  3. To change and adapt a form, go to transaction SMARTFORMS. Then activate the changed Smart Form.

Result

You created one or more Smart Forms based on the respective SAPscript form(s) and a Smart Style based on the respective SAPscript style.