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

To call sap script driver program to smartform.

Former Member
0 Likes
890

Hi frnds,

I migrated my script to smartform using utilities-migrate script .....i dono how to modify the driver program in the script to smart form......

4 REPLIES 4
Read only

Former Member
0 Likes
616

hi Meenakshi,

The way script and fmartforms driver program behave is quite different. You will have to restructure your program so that you have data in the format as expected by your smartform.

Please let me know if you need more details.

Regards,

DN.

Read only

0 Likes
616

Hi Deepak,

My req is already existing sap script need to be migrated to smartform. The driver program contents are copied to a new program.....this is it......i dono how to do....i migrated the sap script to smartform but wen i check in smf iam getting these errors.........bcs of this i could not bale to get the fm.

ITEMField "WA_LIPS-VGBEL" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
TOTAL_UEField "W_SUM_UE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
TOTAL_NEUField "W_SUM" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
GRANDTOT_UEField "W_SUM_T" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
ADRESSField "TBL_SELECT_FINAL1-NAME1" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
CLIENTField "VAR_FLDVAL" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
DATEUnknown format <B> (change style name SYSTEM in the Output options)
HEADER1Unknown format <B> (change style name SYSTEM in the Output options)
HEADER3Field "VEKP-EXIDV" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
ITEMField wa_LIPS-VGBEL has no defined value
TOTAL_UEField W_SUM_UE has no defined value
TOTAL_NEUField w_sum has no defined value
GRANDTOT_UEField W_SUM_T has no defined value
ADRESSField tbl_select_final1-name1 has no defined value
CLIENTField var_fldval has no defined value
DATEField my_datum has no defined value
HEADER1Field str_t001w-NAME1 has no defined value
HEADER3Field VEKP-EXIDV has no defined value
Read only

0 Likes
616

hi Meenakshi,

The errors that you are getting would be due to the objects used in script, you need to define these in the smartform to be able to use.

I have found this link where the steps are already mentioned that i was trying to explain,saved some time on that

http://scn.sap.com/message/1230917#1230917

Please go through the steps and revert with doubts

Regards,

DN.

Read only

arindam_m
Active Contributor
0 Likes
616

Hi,

Get started by Commenting the function modules with OPEN_FORM, CLOSE_FORM bla bla bla for a complete list check the link below.

http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8bb494511d182b70000e829fbfe/content.htm

It has the list of all FM's that can be used with SAPScript also before you remove check the data flow and the way it is processed you might have to overhaul the logic to pass your data into smartfroms via internal tables. Check the logic and see how you can place the data in the windows and pages of Smart from.

That should get you started rest is bit of understanding the logic with which the data is passed to Script and replicate the same in Smartforms.

I know many open questions will come up but work out the logic for basic data passed such as address, details of vendor, Lineitems header, footer, Logo to name some.

Cheers,

Arindam