‎2011 Dec 29 5:01 PM
Hello experts,
I am trying to create and position in a row a variable number of buttons inside a loop.
However when i try to dynamically set the button's offset i get the following error message:
"Offset specification "" not numeric."
Here is the code:
SELECTION-SCREEN: BEGIN OF LINE.
DO n TIMES.
data: fco TYPE string.
data: pos TYPE i.
pos = J * 4.
CONCATENATE 'BTN_' i '_' j into fco.
SELECTION-SCREEN PUSHBUTTON pos(3) btn user-command fco.
add 1 to j.
ENDDO.
SELECTION-SCREEN: END OF LINE.
thank you in advance.
‎2011 Dec 29 5:46 PM
Hi,
You can't do it in such way - it is not possible to define sel screen elements in the loop.
I suggest You create i.e. 20 pushbuttons and hide these, You do not need in AT SELECTION-SCREEN OUTPUT.
Regards,
--
Przemysław