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

Smart Forms Basics

Former Member
0 Likes
1,206

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,181

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,181

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.

Read only

Former Member
0 Likes
1,181

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.

Read only

Former Member
0 Likes
1,181

Raja,

The variabale giving the error should be declared either in inout parameters or global variables

Regards,

Ravi

Read only

Former Member
0 Likes
1,181

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

Read only

Former Member
0 Likes
1,181

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.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,181

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.

Read only

Former Member
0 Likes
1,182

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

Read only

Former Member
0 Likes
1,181

Priya,

i cud not see glovariables on field list.i got only

IMPORT INTERFACE

EXPORT INTERFACE

SYSTEM FIELDS..

how to forward??

Read only

0 Likes
1,181

HI Raja,

check for the consistency of the field defined in the global data itself....

regards

satesh

Read only

Former Member
0 Likes
1,181

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.

Read only

Former Member
0 Likes
1,181
Read only

Former Member
0 Likes
1,181

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.