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: 

Help needed in smart forms structures

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

hi ,

U need to type declartion in the Global setting->global definition->types

and then define variable name with this type assignment.

former_member480923
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.