2007 Jul 18 6:59 AM
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
2007 Jul 18 7:08 AM
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
2007 Jul 18 7:06 AM
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.
2007 Jul 18 7:08 AM
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.
2007 Jul 18 7:10 AM
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