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

regarding the transfering the internal table to memory

hi,

this is my requirement

in the alv_grid_display_output,iam selecting the records by using the checkbox that is present for the each record.

after selecting the records,when i press 'update' button it has to call a module pool screen and what ever may be the selected records to be trasnfered to the screen.

please provide the code for this requirement.

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:01 AM

    HI,

    Please check the below code....

    Function module to display the ALV report

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    I_CALLBACK_PROGRAM = W_REPID

    I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'

    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

    P_SELFLD TYPE SLIS_SELFIELD.

    DATA : L_REP_MODE. "report mode

    CASE P_UCOMM.

    Data ref1 type ref to cl_gui_alv_grid.

    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

    IMPORTING

    E_GRID = ref1.

    call method ref1->check_changed_data

    WHEN 'SAVE'.

    loop at itab where check eq 'X'.

    Call Module pool....

    endloop.

    ENDCASE.

    Cheers,

    Bujji

    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.