Skip to Content
author's profile photo Former Member
Former Member

alv list

i have an internal table with only one field of type char.

when i display it in alv list...i am not getting any output...only a blank screen.

however my itab when looped and written normally gives the output..

pls advise me on this matter..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2013 at 03:47 PM

    Hi,

    Without the code, its tough to comment !!

    Still, you may check the field catalog and call to alb list ,etc on first hand ..

    Thanks,

    Sam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 20, 2013 at 06:19 PM

    Post your code to be able to help you.

    Thanks,

    Pedro Silva.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2013 at 03:18 AM

    Hello Shruti.

    Check this sample code for your reference and analyse.

    DATA: begin of itab OCCURS 0,

    field(1),

    end of itab.

    DATA: fcat type slis_t_fieldcat_alv WITH HEADER LINE,

    layout type slis_layout_alv.

    itab-field = 'A'.

    append itab.

    CLEAR : fcat[].

    CLEAR:fcat.

    fcat-fieldname = 'FIELD'.

    fcat-seltext_m = 'SAMPLE'.

    append fcat.

    layout-colwidth_optimize = 'X'.

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    IS_LAYOUT = layout

    IT_FIELDCAT = fcat[]

    TABLES

    T_OUTTAB = itab

    EXCEPTIONS

    PROGRAM_ERROR = 1

    OTHERS = 2.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2013 at 03:25 AM

    thanks all..its done..i had to just create a field catalogue as i was using a structure and hence had to specify the field..:)

    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.