cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass intenal table which is created in program lines of smartform

Former Member
0 Kudos

Hi all,

I have to print the contents of an internal table which is created in program lines of smartforms into one text element.

No variable or table can be passed from report in this case. All the coding is in smartform.

If I use the Loop to write the table, the internal tables must be declared in Tables of Form interface. But if we declare it, it will ask the table as required parameters.

Whether I am making any mistake?

Please guide me. Points will be rewarded for any type of clue.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

create type in gloabl definition

then decalre an interanl table with that

then define one work area for that

Former Member
0 Kudos

Hi,

I guess your error is here;

If I use the Loop to write the table, the internal tables must be declared in Tables of Form interface

What you need to do is define your table in the Global Definitions part of the smartform as;

YOUR_TAB TYPE TABLE OF STRUCTURE

Then you can use this in a loop.

Regards,

Nick

former_member184657
Active Contributor
0 Kudos

if i understood ur problem well, then this mite help...

first create a loop node and then give the name of ur iternal table and work area there.

and where u have created ur Programs lines.. there u need to call ur internal table in the input parameters..

well.. im not sure if that is wht u want. but give it a try

pk