‎2006 Mar 24 12:02 PM
Hi Folks,
I am new to smartforms, just i am learning.
I had an issue , if anybody provides me guide lines i would b gr8ful.
I started by converting a script to smart form to know the flow of Sform.
i had used in one of the window a global variablewhich was available in corresponding driver program.
& itab-v1&.
But i am getting error when i want to activate the newly created ( which is migrated from script) like
FIELD &itab-v1& is unknown..
How to rectify the error..even i created an output type for this sform.
please advise.
Thanks
Raja.
‎2006 Mar 24 12:14 PM
Hi raja,
Any variable declared in the smart from appears when pressing ctrlshiftF4..
just see if its there..
if yes just drag and drop it..
regards
satesh
‎2006 Mar 24 12:05 PM
Hi,
u have to metion the itab in global variables in samrt forms.so assign itab in global variables then u will not get error.
Cheers,
Sunil.
‎2006 Mar 24 12:09 PM
Sunil,
every variable and itabs which we used in Driver program has to be declared again in SMARTFORMS->GLOBAL DEF??
where to declare itabs n variables specifically?
thanks
Raja.
‎2006 Mar 24 12:09 PM
Raja,
The variabale giving the error should be declared either in inout parameters or global variables
Regards,
Ravi
‎2006 Mar 24 12:10 PM
Raja
is the type of field is of type "quantity" or "currency"?
if so define that field in the global definition section, in the tab currency/quantity. fields. if that is not the case, just give some more description about ur objective and error type
note: if itz useful award points
‎2006 Mar 24 12:11 PM
Hi,
U should define the itab in global variables and to use it in the text editor.
Click on the Field list on/off button next to form painter.u will get a box where u click on global variables there u will find your internal table click on that and u will get the fields in the table just select the required field (ex:itab-v1) and drag it into the text editor.
hope this helps,
priya.
‎2006 Mar 24 12:12 PM
Hi,
If you want to use the v1 from itab in smartforms from the driver program,just pass the table parameter = itab while calling the smartforms.
For migrating from script to smartform,check this link.
http://www.sap-img.com/smartforms/smart-005.htm
For information on smartform sample program,check this.
http://www.sap-img.com/smartforms/sap-smart-forms.htm
Kindly reward points if it helps.
‎2006 Mar 24 12:14 PM
Hi raja,
Any variable declared in the smart from appears when pressing ctrlshiftF4..
just see if its there..
if yes just drag and drop it..
regards
satesh
‎2006 Mar 24 12:22 PM
Priya,
i cud not see glovariables on field list.i got only
IMPORT INTERFACE
EXPORT INTERFACE
SYSTEM FIELDS..
how to forward??
‎2006 Mar 24 12:27 PM
HI Raja,
check for the consistency of the field defined in the global data itself....
regards
satesh
‎2006 Mar 24 12:25 PM
Hi Raja,
I suppose your requirement goes like this.
Your are selecting the values from Z-table into an int.table itab and using a structure to display the values in smartforms.
In that case, this is how you have to proceed.
In the tables tab of Form Interface ,
define
ITAB TYPE Z-table.
In the Global data tab of Global definitions,
define
GTAB type z-table .
Now a work area is created.
Now you can create a loop from ITAB to GTAB.
Now you can make the text elements as GTAB-value.
Hope your query is solved.
Regards,
Sylendra.
‎2006 Mar 24 12:34 PM
‎2006 Mar 24 12:42 PM
Prasad,
Thanks i got ur point.
i wud b more detail abt my concern.
i am calculating some functionality and appending those values to itab in driver.
in script, in one window , directly i used the variable
&itab-v1&.
it's giving error if i convert that to SFORM.
ITAB Is a not a ZTABLE.
ok thanks for kind replies.
let me learn the things and will ask u.