Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Dynamic Selection Screen Parameter with field symbol

$
0
0

Its a table about system languages for translation (table lxe_t002). The field <ls_lxe>-language contains the language keys for translation, e.g. deDE, enUS, itIT, and so on....

 

For every language I want to create an own checkbox parameter with language key text..

 

p_01  -> deDE

p_02  -> enUS

p_03  -> itIT

....

 

With my coding above it works fine, the text is displayed correctly, but I just made an example with 12 checkboxes not considering the real number of rows (languages) in my internal table. I want to build exactly as much parameter as my internal table got rows. With sy-tabix I can find the number but I do not know how to make the parameters that dynamical that the number of row is just the sy-tabix value.

 

The easiest way would just be one parameter definition in the macro:

 

PARAMETER: p_&1 AS CHECKBOX.

 

with &1 as sy-tabix but this did not work, because when giving sy-tabix to the macro, it tries to create parameter named p_sy-tabix and not named p_1, p_2 and so on ;-)


Viewing all articles
Browse latest Browse all 8644

Trending Articles