cancel
Showing results for 
Search instead for 
Did you mean: 

simple string table as interface element in smartforms

Former Member
0 Kudos

Hi

I am developing a simple smartform called by a custom programs that takes as input a simple table (TYPE TABLE OF string), but I cannot get it works:

if I put the table as import parameter and the use TYPE table of, it compiles, but crash when smartforms is called telling that the parameters is not a table

if I put under TABLES tab in form interface, it tells me that needs a TABLE TYPE .. so I created a Z string table type, but then the working area I use to see content (TYPE STRING) is not compatible with table

What I have to do for passing a simple table of string to a smartform?

Regards

Gabriele

Accepted Solutions (0)

Answers (2)

Answers (2)

MarcinPciak
Active Contributor
0 Kudos

Hi,

Place your parameter under TABLES and type it TYPE STRING_TABLE . Later when you work with the table use


data wa_str type string.

loop at YOUR_TABLE into wa_str.
....
endloop.

Regards

Marcin

Former Member
0 Kudos

Hi,

The internal table declared under form interface-> tables needs to be of TYPE <table type>.

The work area needs to be declared under global definitions of TYPE <structure>. This structure is the one you would had used to create the <tabletype>.

Regards,

Karthik