Application Development 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: 

Table declaration in Smartform

former_member248300
Participant
0 Kudos

Hello Friends,

I am working on smartforms, I have to write some routines and for this I am using some tables which I want to declare as global, so that I can use the tables in my routine without decalring tables again. Please suggest me how to proceed with this.

Thanks,

Shreekant

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In global definitons option you can declare all your global data's.

If you want to write coding for a particular field means you can right click the field

---> create ---> Flow Logic ---> Program Lines.

Thanks.

3 REPLIES 3

Former Member
0 Kudos

In your smartform, section Global definitions, tab Global data.

In the column Variable name enter your table name

In column Type assignment enter TYPE TABLE OF

In column Associated type enter the structure your table is based on.

Regards,

Nick

Former Member
0 Kudos

Hi,

In global definitons option you can declare all your global data's.

If you want to write coding for a particular field means you can right click the field

---> create ---> Flow Logic ---> Program Lines.

Thanks.

Former Member
0 Kudos

in ur global data declare ur tables like

wa type wa

itab type itab

in ur types declare

TYPES: BEGIN OF wa,

mvgr4 TYPE mvke-mvgr4, " SIZE

matnr TYPE vepo-matnr, " MATERIAL CODE

end of wa.

types: itab type wa occurs 0.

and just pass ur table to the form routines