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

display grid.

hey

i have alv grid displayed in screen 200.

In screen 100 i have 2buttons.

According to each button click, i need different display

in alvgrid. I wrote alv things inside PBO, at screen 200.

while calling from screen 100, i wrote select statement

in PAI 100screen.

but dynamically i cant access the query value in ALVGRID.

could you pls see this code.

MODULE MAINUSER_COMMAND_0100 INPUT.

SAVE_OK = OK_CODE.

CLEAR OK_CODE.

CASE SAVE_OK.

WHEN 'BACK'. "前画面

SET SCREEN 0.

WHEN 'CANCEL'. "中止

LEAVE PROGRAM.

WHEN 'EXIT'. "終了

LEAVE PROGRAM.

ENDCASE.

CASE SY-UCOMM.

WHEN 'FU01'.

SET PF-STATUS 'REPORT'.

SET TITLEBAR '200'.

  • PERFORM TP_GETDATE.

SELECT * FROM ZMW0001 INTO TABLE SDYN_ITAB.

CALL SCREEN '200'.

EXIT.

WHEN 'FU02'.

SET PF-STATUS 'REPORT'.

SET TITLEBAR '200'.

  • PERFORM TP_GETDATE.

SELECT * FROM ZMW0001

INTO TABLE SDYN_ITAB WHERE IMPORTDAY = IMPODAY

CALL SCREEN '200'.

WHEN OTHERS.

ENDCASE.

ENDMODULE.

MODULE REPORTSTATUS_PBO200 OUTPUT.

IF G_CUSTOM_CONTAINER IS INITIAL.

CREATE OBJECT G_CUSTOM_CONTAINER

EXPORTING CONTAINER_NAME = G_CONTAINER.

CREATE OBJECT GRID_REPORT

EXPORTING I_PARENT = G_CUSTOM_CONTAINER.

CALL METHOD GRID_REPORT->SET_TABLE_FOR_FIRST_DISPLAY

CHANGING IT_FIELDCATALOG = FIELDCATALOG

IT_OUTTAB = SDYN_ITAB.

ls_toolbar_excluding = CL_GUI_ALV_GRID=>MC_FC_INFO.append

ls_toolbar_excluding to lt_toolbar_excluding.

ENDMODULE.

chandra kumar.

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 Jan 17, 2005 at 08:34 AM

    a) Did you check in screen 200, what values are stored in SDYN_TAB before the method set_table_for_first_display is executed ?

    b) Is your fieldcatalog empty ?

    Regards,

    Subramanian V.

    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.