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

filling select-option dynamically

Former Member
0 Likes
799

Hi,

I have two radio buttons.

I want to fill the select-options (account group ktokk) when i click a radio button.

I tried to fill them at INITIALIZATION event. But it is not working.

Is it possible to do so.

Please answer my question.

Thanks

Rekha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
629

hi

chk this code sample:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abapProgramtogenerateselect-options+dynamically&

**reward if helpful

regards,

madhu

5 REPLIES 5
Read only

Former Member
0 Likes
630

hi

chk this code sample:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abapProgramtogenerateselect-options+dynamically&

**reward if helpful

regards,

madhu

Read only

former_member491305
Active Contributor
0 Likes
629

Hi rekha,

try like this.

TABLES:vbak.

PARAMETERS:p_1 RADIOBUTTON GROUP g1 USER-COMMAND cmd1,

p_2 RADIOBUTTON GROUP g1.

SELECT-OPTIONS:s_vbeln for vbak-vbeln.

*SELECTION-SCREEN :PUSHBUTTON /2(10) but1 USER-COMMAND fcode .

*INITIALIZATION.

  • but1 = 'GET List'.

AT SELECTION-SCREEN.

IF p_1 = 'X'.

s_vbeln-low = '1000'.

s_vbeln-option = 'EQ'.

s_vbeln-sign = 'I'.

APPEND s_vbeln.

ELSE.

REFRESH s_vbeln.

ENDIF.

Read only

Former Member
0 Likes
629

INITIALISATION event is called once only at the start.

If you press particular radio button, you can that code

at user command. by giving FCODE for the selct option field & then check it at at user coomand & try to fill the select option

Sandeep

Reward if helpful

Read only

Former Member
0 Likes
629

Hi,

Try doing that in AT SELECTION-SCREEN event by giving Radio button a User command.

with regards,

Jay

Read only

Former Member
0 Likes
629

YOU HAVE TO CODE IN AT SELECTION-SCREEN OUTPUT...

PARAMETERS : R1 RADIOBUTTON GROUP RG1 USER-COMMAND PRES,

R2 RADIOBUTTON GROUP RG1 .

AT SELECTION-SCREEN OUTPUT.

IF R2 = 'X'.

SELECT <FIELD> FROM <DBTAB> INTO <PARAMETER NAME> WHERE....

ENDIF.

REGARDS

SHIBA DUTTA