Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

button offset

Former Member
0 Likes
453

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.

1 REPLY 1
Read only

Former Member
0 Likes
387

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