Application Development and Automation 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: 
Read only

alv report using oo

Former Member
0 Likes
646

Hi All,

I am using a alv grid report which is having 2 fields,one is editable and the other one is non-editable.

in the editable field 'm using standard f4 help for which 'm getting field value and its description..

on selecting a entry, the description also should be changed to the non-editable field.

3 REPLIES 3
Read only

naveen_inuganti2
Active Contributor
0 Likes
611

I believe you need to refresh/modify your internal table based on the new value. You should do it in PAI event of the screen. You can rely on "CHECK_CHANGED_DATA" and "REFRESH_TABLE_DISPLAY" methods of CL_GUI_ALV_GRID class.

Regards,

Naveen

Read only

0 Likes
611

Hello Arun,

You need to modify your final internal table(for noneditable field as well).

Once you modify the final table in PAI, just refresh your grid display.

The code would be some what like...

PAI...

MODIFY it_final FROM wa_final TRANSPORTING <editable> <noneditable>.

data o_grid  TYPE REF TO cl_gui_alv_grid.

   CALL METHOD o_grid->refresh_table_display

*    EXPORTING

*      is_stable      = i_stable.

*    I_SOFT_REFRESH =

*  EXCEPTIONS

*    FINISHED       = 1

*    others         = 2.

hope it works for you, if not let me know.

Cheers,

Aabid Khan

Read only

Former Member
0 Likes
611

Hi Arun,

For your scenario CHECK_CHANGED_DATA is mandatory to use. Else you need to always press refresh button after each data entry.

Thanks,

Prakash