08-30-2006 7:16 AM
Hi,
I am working in smartforms- mm , I need to define stuctures for the standard table like adrp,adr2,adr3.and i want to populate the data into that stuctues.Can any one help me how to define stuctures in SMARTFORMS.
Thanks in advance
Regards
Uday
08-30-2006 7:22 AM
hi ,
U need to type declartion in the Global setting->global definition->types
and then define variable name with this type assignment.
08-30-2006 7:27 AM
Hi
Try This
a) go to Global Definitions: types and trite this code
types: begin of type_adrp.
include structure adrp.
types: end of type_ADRP,
type_tab_adrp type table of type_adrp
.
In the data portion define
T_ADRP TYPE TYPE_TAB_ADRP
.
This way you get a table of ADRP in the SF. Now use the select logic on this table inside your program line.
Hope This Helps
Anirban
08-30-2006 7:27 AM
Hi Uday,
Please create your structures in the globlal data of the smartforms. If you want to pass the data to the structures from the driver program, then you must define them in the Form Interface.
You can pass the data to the structures in the data tab of the node 'Table' if you have an internal table of that type. Or else you can use the node 'Program Lines' to populate data in the structures. If you want to fetch data from the tables, then also you can use the node 'Program Lines'.
Ask if more clarifications are required.
Please assign points if helpful.
Regards,
Prabhas.