2006 Nov 07 6:00 AM
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
2006 Nov 07 6:01 AM
in the field catalog before filling the data to field catalog just check
if radio buttons desired = 'X'.
append field catalog
endif.
Regards
- Gopi
2006 Nov 07 6:02 AM
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....
2006 Nov 07 6:02 AM
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
2006 Nov 07 6:32 AM
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.
2006 Nov 07 6:37 AM
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
2006 Nov 07 6:38 AM
Hi,
you can set the field catalog no-display option to 'X' and space according to the requirement.
2006 Nov 07 6:40 AM
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
2006 Nov 07 6:10 AM