Skip to Content

Hiding a field in ALV

Hi Friends,

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

its urgent.

~S

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 11:08 AM

    check the condition

    and modify the field catalogue

    no_out = 'X'.

    Regards,

    siva

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2007 at 11:08 AM

    Hi,

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

    Regards,

    Prahsant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:15 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:23 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 05:49 AM

    Hi

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

    for the concerned field .

    Hope it Helps .

    Praveen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.