Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

hi - alv-- update prb with input enable field

Former Member
0 Kudos

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

2 REPLIES 2

former_member386202
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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>