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

Doubt in Smart Form.

Former Member
0 Likes
566

Hi Experts,

How to declare multiple tables in smart forms,

In Global Settings->Form interface-> tables.

I want to declare this below tables at Form interface.

Example:-

Itab type ekko,

jtab type ekpo,

i want to combine these two tables into final table how

can i assign this final table. with what reference i can assign.

IS there Any difference in declaring internal tables in form interface and in program. With out declaring tables in Form interface can i directly declare at program level.

Thanks.

Ravi.

Message was edited by:

Ravi reddy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
543

Hi Ravi,

What will the fields of your final table. If it is differnet from ekko Then you have to create a type in global defination first. then declare a intenal table from that type.

then you can manipulate it in your own way.

or you can o onething. you can create a structure in DDIC similar to you final table. then use it.

Hope it will help you.

Reward if helpful

Thanks,

Azad.

Hi Experts,

How to declare multiple tables in smart forms,

In Global Settings->Form interface-> tables.

I want to declare this below tables at Form interface.

Example:-

Itab type ekko,

jtab type ekpo,

i want to combine these two tables into final table how

can i assign this final table. with what reference i can assign.

IS there Any difference in declaring internal tables in form interface and in program. With out declaring tables in Form interface can i directly declare at program level.

Thanks.

Ravi.

Message was edited by:

Ravi reddy

3 REPLIES 3
Read only

Former Member
0 Likes
543

Hi,

u can declare both in Global settings and can d othe combine tables in Program logic node where u can write ABAP commands in smartfornms.

else

u can use the two itabs like itab1 and itab2 in the oprogram and u can do the combination process whatever u want in the program and can build the final internal table which is t_final.Create a structure in SE11 for this final internal table structure.

Pass this t_final to the smartforms through function module.

get this tablke in the smartforms from Form interface and display the data.

Itab1 : Name, empno, Deptno

Itab2 : Deptno, Dept name.

T_final : create a structure for Deptno, Empno, Name, Dept name.

Build this t_final internal table in program.

Reward if usefull.

Read only

Former Member
0 Likes
544

Hi Ravi,

What will the fields of your final table. If it is differnet from ekko Then you have to create a type in global defination first. then declare a intenal table from that type.

then you can manipulate it in your own way.

or you can o onething. you can create a structure in DDIC similar to you final table. then use it.

Hope it will help you.

Reward if helpful

Thanks,

Azad.

Read only

Former Member
0 Likes
543

Hi,

Define table in smartforms

Global settings :

Form interface

Variable name Type assignment Reference type

ITAB1 TYPE Table Structure

Global definitions

Variable name Type assignment Reference type

ITAB2 TYPE Table Structure

Pls reward points if useful.

Regards,

Ameet