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

i m not finding out the mistake in followin alv program just tell me

REPORT ZDEMO_ALV .

DATA: OK_CODE LIKE SY-UCOMM,

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.

*

*&----


*

*& Module STATUS_0100 OUTPUT

*&----


*

  • text

*----


*

MODULE STATUS_0100 OUTPUT.

SET PF-STATUS 'ST100'.

  • 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

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

OK_CODE = SY-UCOMM.

CASE OK_CODE.

WHEN 'EXIT'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 04:43 AM

    Try the Following change

    CREATE OBJECT CONTAINER1 EXPORTING CONTAINER_NAME = 'con'.

    To

    CREATE OBJECT CONTAINER1 EXPORTING CONTAINER_NAME = 'CON'.

    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.