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

hi - alv-- update prb with input enable field

hi all

i have developed alv without oops concept.

in list it is working well.

but in grid i.e. when i use reuse-alv-grid-display FM, the input field does not get

updated in internal table, but when i use list_dispaly FM, it gets updated in

internal table.

what could be the problem? what parameter should i pass in

reuse-alv-grid-display FM to internal table updated.

thanx

rocky

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 04, 2007 at 08:36 AM

    Hi,

    No need to pass extra parameters to grid FM, it should work

    try like this.

    *--Call the function module to display the ALV report

    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

    i_callback_program = v_repid

    is_layout = wa_layout

    it_fieldcat = i_fieldcat

    i_default = c_chk

    i_save = c_save

    is_variant = wa_variant

    it_events = i_events

    is_print = wa_print

    it_sort = li_sort

    TABLES

    t_outtab = i_final

    EXCEPTIONS

    program_error = 1

    OTHERS = 2.

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    ELSE.

    *--No data found for the given selection criteria.

    MESSAGE i001.

    LEAVE LIST-PROCESSING.

    ENDIF.

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:44 AM

    Hi,

    Use the below method this will update the internal table in back ground with your new value entered in alv grid

    call method ref1->check_changed_data

    this will update your internal table with new fields on alv grid

    Regards,

    siva chalasani

    <b>

    Reward points if found usefull</b>

    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.