Application Development 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: 

Hiding a field in ALV

suresh_s9
Participant
0 Kudos

Hi Friends,

i want to display the field if the data is present or else it should be hidden.

its urgent.

~S

5 REPLIES 5

Former Member
0 Kudos

check the condition

and modify the field catalogue

no_out = 'X'.

Regards,

siva

former_member386202
Active Contributor
0 Kudos

Hi,

Create 2 intenal tables and then check if field is exist then display first table otherwise display 2nd

Regards,

Prahsant

Former Member
0 Kudos

use

if condition.

read table itab_f index col_pos. "column position for the field u want to hide.

wa_f-no_out = 'X'.

modify itab_f from wa_f index itab_f-col_pos.

endif.

if wa_f is work area for field catalog.and itab_f is internal table for field catalog.

Former Member
0 Kudos

Hi,

You can completly disable the field in all the columns by passing the value X into the NO_OUT for the particular field in the field catalog. But it can't be possible to hidden the fields in some of the rows.

Cheers,

Bujji

Former Member
0 Kudos

Hi

Base on your field content change the Fieldcatalog by setting NO_OUT = X

for the concerned field .

Hope it Helps .

Praveen