‎2013 Jun 06 10:37 AM
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......
‎2013 Jun 06 11:28 AM
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.
‎2013 Jun 06 11:46 AM
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.
| ITEM | Field "WA_LIPS-VGBEL" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| TOTAL_UE | Field "W_SUM_UE" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| TOTAL_NEU | Field "W_SUM" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| GRANDTOT_UE | Field "W_SUM_T" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| ADRESS | Field "TBL_SELECT_FINAL1-NAME1" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| CLIENT | Field "VAR_FLDVAL" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| DATE | Unknown format <B> (change style name SYSTEM in the Output options) |
| HEADER1 | Unknown format <B> (change style name SYSTEM in the Output options) |
| HEADER3 | Field "VEKP-EXIDV" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. |
| ITEM | Field wa_LIPS-VGBEL has no defined value |
| TOTAL_UE | Field W_SUM_UE has no defined value |
| TOTAL_NEU | Field w_sum has no defined value |
| GRANDTOT_UE | Field W_SUM_T has no defined value |
| ADRESS | Field tbl_select_final1-name1 has no defined value |
| CLIENT | Field var_fldval has no defined value |
| DATE | Field my_datum has no defined value |
| HEADER1 | Field str_t001w-NAME1 has no defined value |
| HEADER3 | Field VEKP-EXIDV has no defined value |
‎2013 Jun 06 12:05 PM
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.
‎2013 Jun 06 12:02 PM
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