Migration of SAP Script To Smartform
Migration of SAP Script To Smartform
Step 1:
Go to transaction SMARTFORMS.
In the Form field enter the name of the Smartform ZDEMO_SCRIPT_TO_SMART_FORM you want to
create.
Step 2:
In Menu bar Choose Utilities -> Migration -> Import SAP Script Form
Step 3:
Then the popup will come as shown below. Here enter the name of the Script ZSCRIPT which you want
to migrate it to smart form and the language.
Step 4:
Choose Enter, and then this takes you to the change mode of Smartform.
Step 5:
If the selected SAP Script does not exist in the selected language then a popup window appears with all
the languages that are available on the form. On which you can select one of the existing languages.
Here I selected DE (German) language and choose continue button.
Then a pop up will appear as shown below that the script ZSCRIPT is available only in EN (English)
language.
Step 6:
In SAP Script ZSCRIPT, one page is created with name FIRST and two windows are created with
names as MAIN and HEADER.
These two windows are placed in page FIRST.
After migration,
The layout information including pages, windows and their attributes and position on page are copied with
the same properties.
Step 7:
In HEADER Window of a Script, Page, Date, Time and Course Details will be present and character
format <BU> is used.
Step 9:
In MAIN window of a script, two elements HEADER and BODY are defined.
While
migrating from Script to Smartform, it creates separate text element for each element defined in Script.
Step 10:
Caution: Once SAP Script is migrated into Smartform, you should clean up the errors in terms of
declaration of attributes, windows alignment. Because SAP Script uses program to write logic.
Ex: Error may occur while activation saying that Field or Internal table is unknown as below.
Step 11:
Add the form logic and change the design as per requirement and active the Smartform.
Now execute the Smart form. The output would be as shown below:
Step 12:
Mass Migration of SAP Script forms to Smartform:
Go to transaction SE38 enter program Name as SF_MIGRATE and press Execute (F8) button.
Then the Smartform will be created with name as Script form name_SF (ZSCRIPT_SF) as below