Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert script to smartform?

Former Member
0 Kudos

How do I convert my SAP Script into Smartform.What are the steps for it ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

There are two way through which you can convert sapscript into smartforms.

1.This is basically a function module, called FB_MIGRATE_FORM.

You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.

2.You can also do this one-by-one in transaction SMARTFORMS, under

Utilities -> Migrate SAPscript form.

You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.

Note :

While Converting sapscript into smartforms,only layout has passed.But you have do all logic coding in your smartforms.

see this link :

http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf

5 REPLIES 5

Former Member
0 Kudos

Hi,

Go to tcode->smartforms,Utilities->Migrate Script form.

Reward.

Former Member
0 Kudos

Hi

tcode SMARTFORMS, give a new form name then goto Utilities you have an option.. Migration then select that you find import sap Script form then select it you get one popup there you give the form name which one you want to change into smartforms.then press enter.

Former Member
0 Kudos

Hi

goto SMARTFORMS transaction-->in menu bar->UTILITIES-->MIGRATE->FROM SAPSCRIPT---->u can give the script name and the sapscript is converted to smartform.

Former Member
0 Kudos

Hi ,

There are two way through which you can convert sapscript into smartforms.

1.This is basically a function module, called FB_MIGRATE_FORM.

You can start this function module by hand (via SE37), or create a small ABAP which migrates all SAPscript forms automatically.

2.You can also do this one-by-one in transaction SMARTFORMS, under

Utilities -> Migrate SAPscript form.

You could also write a small batch program calling transaction SMARTFORMS and running the migration tool.

Note :

While Converting sapscript into smartforms,only layout has passed.But you have do all logic coding in your smartforms.

see this link :

http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf

Former Member
0 Kudos

Migrating SAPscript Forms into smartforms:

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.

The system does not migrate the print program (data retrieval) or the form logic contained in the print program. You must make the required changes to the respective print program yourself.

Mass Migration

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

Procedure

*Migrating a SAPscript form

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

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

- Choose Utilities -> Migrate SAPscript form.

- The dialog window Migrate SAPscript Form appears.

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

- Choose Enter.

- This takes you to the change mode of the SAP Form Builder.

- If the selected SAPscript form does not exist in the selected language, a dialog window appears on which you can select one of the existing languages.

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

*Converting a SAPscript style

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

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

- Choose Smart Styles -> Convert SAPscript style (created in transaction SE72).

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

- Choose Enter.

- A list of the converted styles appears.

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

*Mass Migration of SAPscript Forms

- In Reporting select the program SF_MIGRATE and execute it.

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.

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

Regards

Pallavi