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

calling internal table in smartform

Former Member
0 Likes
630

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 .....

1 ACCEPTED SOLUTION
Read only

former_member217544
Active Contributor
0 Likes
589

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

4 REPLIES 4
Read only

Former Member
0 Likes
589

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...

Read only

Former Member
0 Likes
589

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

Read only

Former Member
0 Likes
589

hi

In Form interface>Tables>Try to give tble type of EKPO (EKPO_TTY)

Thanks

Dharma

Read only

former_member217544
Active Contributor
0 Likes
590

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