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

ALV grid

Hi,

can any one tell me how to do the following scenario in alv

when i give range in the date then according to that the data should display in the alv grid .

Plzz suggest me easy methos for it.

points will be awarded .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 08:14 AM

    Hi,

    try this code

    MODULE status_0100 OUTPUT.

    SET PF-STATUS c_alv_scr.

    PERFORM set_titlebar USING w_display.

    • If program executed in foreground.

    IF sy-batch IS INITIAL.

    • If g_grid is empty.

    IF g_grid IS INITIAL.

    • To create object for instance grid

    CREATE OBJECT g_grid

    EXPORTING

    container_name = g_container.

    • To create object for object grid

    CREATE OBJECT g_alv

    EXPORTING

    i_parent = g_grid.

    ELSE.

    CALL METHOD g_alv->refresh_table_display.

    ENDIF. " IF G_GRID IS INITIAL

    ENDIF. " IF SY-BATCH IS INITIAL

    REFRESH t_fcat.

    • If w_display eq 'X' .

    IF w_display EQ c_boolean_yes.

    • To display all records except saved data

    PERFORM display_allrecords.

    ENDIF. " IF W_FLAG EQ C_BOOLEAN_YES

    IF w_submit EQ c_boolean_yes.

    • To display submitted records

    PERFORM submitted_records.

    ENDIF. " IF W_SUBMIT EQ C_BOOLEAN_YES

    ENDMODULE. " STATUS_0100 OUTPUT

    PLzz reward points if it helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 09:26 AM

    Hi manjari,

    Thank u very much it solved my problem.

    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.