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

output is not coming

DATA: GRID1 TYPE REF TO CL_GUI_ALV_GRID,

CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.

*DATA GRISD.

DATA ITAB_SFLIGHT LIKE TABLE OF SFLIGHT.

SELECT * FROM SFLIGHT INTO TABLE ITAB_SFLIGHT.

IF SY-SUBRC EQ 0.

WRITE 'hi'.

ENDIF.

CALL SCREEN 100.

  • BCALV_GRID_DEMO_0100_CONT1

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

CREATE OBJECT CONTAINER1 EXPORTING CONTAINER_NAME = 'con'.

CREATE OBJECT GRID1 EXPORTING I_PARENT = CONTAINER1.

CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING I_STRUCTURE_NAME = 'sflight'

CHANGING

IT_OUTTAB = ITAB_SFLIGHT.

ENDMODULE. " STATUS_0100 OUTPUT

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 Jun 17, 2008 at 10:59 AM

    Hi,

    in CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY give structure name in uppercase.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 11:01 AM

    Hi,

    Dont use small letters which are defined with in the single quote, try to make those as capital letters.

    Rgds,

    Bujji

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 11:07 AM
    DATA: GRID1 TYPE REF TO CL_GUI_ALV_GRID,
    CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    *DATA GRISD.
    
    
    DATA ITAB_SFLIGHT LIKE TABLE OF SFLIGHT.
    SELECT * FROM SFLIGHT INTO TABLE ITAB_SFLIGHT.
    IF SY-SUBRC EQ 0.
    WRITE 'hi'.
    ENDIF.
    
    CALL SCREEN 100.
    
    
    
    
    
    BCALV_GRID_DEMO_0100_CONT1 
    &---------------------------------------------------------------------
    *& Module STATUS_0100 OUTPUT
    &---------------------------------------------------------------------
    
    text 
    ----------------------------------------------------------------------
    MODULE STATUS_0100 OUTPUT.
    
    SET PF-STATUS 'xxxxxxxx'. 
    SET TITLEBAR 'xxx'. 
    
    CREATE OBJECT CONTAINER1 EXPORTING CONTAINER_NAME = 'con'.
    CREATE OBJECT GRID1 EXPORTING I_PARENT = CONTAINER1.
    
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'
    CHANGING
    IT_OUTTAB = ITAB_SFLIGHT.
    
    
    ENDMODULE. " STATUS_0100 OUTPUT
    
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 10:32 AM

    Hi Ansuman Parhi,

    DATA: GRID1 TYPE REF TO CL_GUI_ALV_GRID,
    CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    *DATA GRISD.
    
    
    DATA ITAB_SFLIGHT LIKE TABLE OF SFLIGHT.
    SELECT * FROM SFLIGHT INTO TABLE ITAB_SFLIGHT.
    IF SY-SUBRC EQ 0.
    WRITE 'hi'.
    ENDIF.
    
    CALL SCREEN 100.
    
    BCALV_GRID_DEMO_0100_CONT1 
    &---------------------------------------------------------------------
    *& Module STATUS_0100 OUTPUT
    &---------------------------------------------------------------------
    
    text 
    ----------------------------------------------------------------------
    MODULE STATUS_0100 OUTPUT.
    
    SET PF-STATUS 'xxxxxxxx'. 
    SET TITLEBAR 'xxx'. 
    
    CREATE OBJECT CONTAINER1 EXPORTING CONTAINER_NAME = 'CON'. " Use caps only in single quotes because its case sensitive 
    CREATE OBJECT GRID1 EXPORTING I_PARENT = CONTAINER1.
    
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING I_STRUCTURE_NAME = 'SFLIGHT' " Use caps only in single quotes because its case sensitive 
    CHANGING
    IT_OUTTAB = ITAB_SFLIGHT.
    
    
    ENDMODULE. " STATUS_0100 OUTPUT

    Hope it will solve your problem..

    Reward points if useful..

    Thanks & Regards

    ilesh 24x7

    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.