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

Dynamic selection screen based on radio button action

Former Member
0 Likes
5,705

My Dynamic Radio Button is working..

Now My requirement is when select A Radio Bitton( Ex :MSEG )

it must Display Primary key Fields (ex : mandt,mblnr,gjahr,zeile) of that Table(ex : mseg)

in the selection screen as a Select options : & like wise.

My Dynamic Radio Button is working..

Now My requirement is when select A Radio Bitton( Ex :MSEG )

it must Display Primary key Fields (ex : mandt,mblnr,gjahr,zeile) of that Table(ex : mseg)

in the selection screen as a Select options : & like wise.

15 REPLIES 15
Read only

laurent_fournier2
Contributor
0 Likes
3,647

Hi,

With FM "DD_NAMETAB_GET" you could read the table fields and then dynamically create select options for the key fields.

Read only

0 Likes
3,647

hi....

  Re: Dynamic selection screen based on radio button action

   Laurent Fournier  Active Contributor Bronze

 

fm : DD_NAMETAB_GET is not there in abap...can u check once again...

Read only

0 Likes
3,647

Correct. Sorry for the wrong information.

Use DDIF_NAMETAB_GET or NAMETAB_GET.

NAMETAB_GET has the key information.

Read only

Kartik2
Contributor
0 Likes
3,647

Hi,

Very basic doubt,

Create select options for the primary keys of all the tables.

Group the primary keys of same table with modif IDs.

Now in the event AT-SELECTION-SCREEN OUTPUT you can write the code (LOOP AT SCREEN ... END LOOP) to check which radio button is selected and based on that you can set screen-active = 1 for the corresponding fields.

Hope it helps you. Thank you.

Regards,

kartik

Read only

Former Member
0 Likes
3,647

Hi karthik.....

can u tell me how to create select options for the primary keys of all the tables.

Read only

Former Member
0 Likes
3,647

Hi,

The easier way to go is by using the FM FREE_SELECTIONS_DIALOG where you only need to populate the input table fields_tab with the required fields...

Kr,

Manu.

Read only

Former Member
0 Likes
3,647

http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP+Program+to+generate+select-options+dynamically

i got this website...i am getting o/p but hw can modify according to my requirement is i am not getting so..can any one tell me process..

Read only

Former Member
0 Likes
3,646

HI gUYS/.... mY ISSUE IS SOLVED...

I am Getting Dynamuc select-options...

Now when i enter a value in select options...the related data must come in output list./ ALV O/P LIST.. AS BELOW..

CAN Any one help me to solve this ..

Read only

0 Likes
3,646

Hi,

I didn't get what you need..

please explain with an example.

Read only

0 Likes
3,646

Hi Sharath....

tnx for ur respons....

can u check the folowing url....i have explained  clearly ...

Dynamic o/p list Based on input given in Dynamic select-options  in ABAP Development


Read only

0 Likes
3,646

did u get any idea

Read only

0 Likes
3,646

did u get any idea

Read only

0 Likes
3,646

hi,

Refer:-

REPORT demo_select_dynamic_columns

REPORT demo_select_dynamic_database .

REPORT demo_select_dynamic_conditions .

search for dynamic SELECT statements in google/ SDN.

& then you can use field-symbols, dynamic work areas & internal tables to hold that data

& similarly pass that to ALV class.

Read only

Former Member
0 Likes
3,646

Hi friends...

I am Unable to add a button (execute button  ) in the selection screen where i displayed Dynamic select-options.

In process of doing I found that when i use FMs : free Selection INIT, FREE SELECTION DIALOG.... IT WILL AUTOMATICALLY Provides a standard gui status...(i.e)

User Interface   RSSYSTDB

in this i am unable to add a button which i need for My requirement...

I created one Zgui status...&  attached to My Program (where i have written the code to generate Dynamic select-options) But it is not showing the button on my screen

can any one tell me how to solve this problem...

Read only

0 Likes
3,646

program is : RSSYSTDB,

gui status : %_FSDOC_

i want to enhance this gui status ...