‎2009 Nov 08 7:04 PM
Hye,
using structure l_xekpo.
-
In global definition intilalization code:
DATA : GT_XEKPO LIKE L_XEKPO OCCURS 0 WITH HEADER LINE.
DATA ekpo_wa LIKE L_XEKPO.
loop at L_XEKPO into ekpo_wa.
move ekpo_wa to gt_xekpo.
append gt_xekpo.
endloop.
now in output parameters need to give gt_xekpo???
but facing problem with definition in global area??
I provided
In form Interface tables have defined:
l_xekpo like ekpo.
In global definition types defined.
TYPES : TY_XEKPO TYPE TABLE OF L_XEKPO.
Its showing error : Type l_xekpo is unkown.
Can anyone provide solution how to go for this and get gt_ekpo defined to be used in ouput parameters .....
‎2009 Nov 09 5:45 AM
Hi Manisha,
Try this way:
1. Please ignore my previous suggestion.
You need to define GT_XEKPO & ekpo_wa as of type EKPO.
Now you can use these variables directly in the Initialization tab of Global definitions for writing your logic.
Pass this variable thorugh input/outpur parameters of initialization tab if required
2. To make use of the variable gt_xekpo thorugh out the smartform, you need to pass this through output parametes of initialization tab.
Hope this will helps you.
Regards,
Swarna Munukoti.
Edited by: Swarna Munukoti on Nov 9, 2009 6:58 AM
‎2009 Nov 09 2:09 AM
Hi,
Have u created the L_XEKPO or it is already there in SAP standard. IF it is declared in the program ,Create L_XEKPO structure in SE11 that means globally.
Please revert if it not working...
Regards,
Srinivas...
‎2009 Nov 09 5:02 AM
not working, structure l_xekpo is already defined in program, and i am using it in smartform
by defining in tables sections as L_XEKPO LIKE EKPO.
Let me know how to define l_exkpo as it is a structure.
Regrds,
Manisha
‎2009 Nov 09 5:21 AM
hi
In Form interface>Tables>Try to give tble type of EKPO (EKPO_TTY)
Thanks
Dharma
‎2009 Nov 09 5:45 AM
Hi Manisha,
Try this way:
1. Please ignore my previous suggestion.
You need to define GT_XEKPO & ekpo_wa as of type EKPO.
Now you can use these variables directly in the Initialization tab of Global definitions for writing your logic.
Pass this variable thorugh input/outpur parameters of initialization tab if required
2. To make use of the variable gt_xekpo thorugh out the smartform, you need to pass this through output parametes of initialization tab.
Hope this will helps you.
Regards,
Swarna Munukoti.
Edited by: Swarna Munukoti on Nov 9, 2009 6:58 AM