2007 Oct 11 12:24 PM
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
2007 Oct 11 12:30 PM
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.
2007 Oct 11 12:27 PM
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
2007 Oct 11 12:30 PM
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.
2007 Oct 11 12:31 PM
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