Application Development and Automation 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: 
Read only

Print program

Former Member
0 Likes
685

I have sap script print program and Sript(bill of lading). For same(bill of lading0 script I want to develop a new smart form. Can I use the print program of script for smartform and add the smart form function module. My main interest is to capture data selection from old print program. How can i leverage the data selection from old program?

Thanks,

AP

1 ACCEPTED SOLUTION
Read only

former_member125661
Contributor
0 Likes
659

SAP provides a conversion for SAPscript into SMARTforms.

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.

Steps :

(1) Understand logic of sapscript program.

(2) Understand SAP script windows data.

Now make your technical Design Accordingly,and now do code accordingly for your smartforms.

Please award points of the answer is useful.

You can modify the print program for the sap script . But you need to make more changes than the one you mentioned below.

5 REPLIES 5
Read only

Former Member
0 Likes
659

You can do it, but you may have to copy the print program and call the Smart form function module from the print program.

Before calling, collect all the data that need to be printed either as internal table or structure and pass it to the smartform function module.

Read only

former_member125661
Contributor
0 Likes
660

SAP provides a conversion for SAPscript into SMARTforms.

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.

Steps :

(1) Understand logic of sapscript program.

(2) Understand SAP script windows data.

Now make your technical Design Accordingly,and now do code accordingly for your smartforms.

Please award points of the answer is useful.

You can modify the print program for the sap script . But you need to make more changes than the one you mentioned below.

Read only

0 Likes
659

I am planning to create my own smartform but for wanted to leverage the script print program. Specially the data selection part. Which is bit complex. Can I just just call the function modules for smart form at the end of script print program.

Thanks,

AP

Read only

0 Likes
659

Ofcourse you can do that.

Let your selection logic be same in your current print program you must be having a final internal table ie the table used for the display.

Just comment your program from the Open_form

Now create a smartform using smartform builder and activate it, it will generate a FM

Call that FM in your program and simply pass the internal table to the FM.

Moreover while upgrading from script to Smartform there is no question of changing selection logic untill it is needed.

Reward points if helpful.

Regards

Bikas

Read only

Former Member
0 Likes
659

copy bill of lading to bill of lading0 and do the necessary changes to bill of lading0 it will be the gud.