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

Alv Grid display

Former Member
0 Likes
1,002

Dear Experts,

I need to sole the following task,

In the selection screen I have 2 radio buttons, one is for ASSEMBLY and other is for PRODUCTION. When selecting either of the button the ALV grid displays 20 fields.

My requirement is when I select the ASSEMBLY radio button only 15 fields should display. I am using same layout for both. So is there any option to display only 15 fields without doing it in manually.

Thanks in advance,

karthikeyan

Dear Experts,

I need to sole the following task,

In the selection screen I have 2 radio buttons, one is for ASSEMBLY and other is for PRODUCTION. When selecting either of the button the ALV grid displays 20 fields.

My requirement is when I select the ASSEMBLY radio button only 15 fields should display. I am using same layout for both. So is there any option to display only 15 fields without doing it in manually.

Thanks in advance,

karthikeyan

8 REPLIES 8
Read only

gopi_narendra
Active Contributor
0 Likes
981

in the field catalog before filling the data to field catalog just check

if radio buttons desired = 'X'.

append field catalog

endif.

Regards

- Gopi

Read only

Former Member
0 Likes
981

i think u have to make 2 field catlogue for that.

one have 15 field and another one have 20.

now u can write logic based on radiobutton to display selected one....

Read only

anversha_s
Active Contributor
0 Likes
981

Hi man,

create field catlog with all the 20 field fields.

but...put the if condition before that 5 fields.

if PRODUCTION = 'X'.

that remaining 5 catlog fields.

endif.

Regards

Anver

if hlepd pls mark points

Read only

0 Likes
981

Hi Anver,

thanks for the reply.

If i use the condition you specified, The user cannot display manually all the 5 fields again. I want these fields back when user needs to display.

Read only

0 Likes
981

Hi,

then catch that user condition also.

create field catlog with all the 20 field fields.

if <b>(</b> PRODUCTION = 'X' <b>OR user_condition.</b> <b>)</b>

that remaining 5 catlog fields.

endif.

rgds

Anver

if hlped pls mark points

Read only

0 Likes
981

Hi,

you can set the field catalog no-display option to 'X' and space according to the requirement.

Read only

0 Likes
981

if u wnt the 5 fields at the output itself then u need to maintain the layout

if that is not the case while appending the fields to the field catalog only before filling the field to teh catalog, just chekc the condition across with the selection screen radio button

this should be criteria for the fields which u want at output.

if R1 = 'X'.

...

...

append field catalog.

endif.

Regards

- Gopi

Read only

Former Member
0 Likes
981

Why don't u create a dynamic field catalog ?