on 09-20-2010 2:19 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.