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

Fieldcat-edit not saving the data into Internal Table

Former Member
0 Likes
2,677

Hello gurus,

I have a column in ALV display editable, by using fieldcat-edit = 'X'. But when i hit enter after entering values , the value is not storing in Internal Table, I need to do some calculations with that value and again display with the resulted one in another column with same this column. But the value entered is not stored in internal Table. Help me please.

11 REPLIES 11
Read only

Former Member
0 Likes
1,783

Hi..you could look at the demo programs:

BCALV_EDIT_02

BCALV_EDIT_03

Read only

0 Likes
1,783

Thanks for you time bro, but i need it for Reuse_ALV_Grid .

Read only

0 Likes
1,783
Read only

mayur_priyan
Active Participant
0 Likes
1,783

Hi,

Please refer to the following link.

Regards,

Mayur Priyan. S

Read only

sivaganesh_krishnan
Contributor
0 Likes
1,783
Read only

Former Member
0 Likes
1,783

Thanks to everyone , this is the code which i used.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'   "This FM will get the reference of the changed data in ref_grid

     IMPORTING

       e_grid = ref_grid.

*BREAK-POINT.

     CALL METHOD ref_grid->check_changed_data.


After this internal table is filling up.

Read only

0 Likes
1,783

Hi,

Store the old internal table entries into LT_DUMMY table before calling the above FM.

after calling the method grid->check_changed_data. it gives the changed values of the ALV grid.

now you have the before and after update of ALV grid entries and perform your required logic and update the ALV grid with new values.

Read only

adrian_mejido
Contributor
0 Likes
1,783

Hi friend,

If you want to get the changes of your ALV in your internal table, you should use this method:

CHECK_CHANGED_DATA

This method pass the changes in your ALV to your internal table(which is used by the ALV).

Best regards

Read only

Former Member
0 Likes
1,783

Hai,

for save.

*&---------------------------------------------------------------------*

*&      Form  user_command

*&---------------------------------------------------------------------*

*       text

*----------------------------------------------------------------------*

*      -->R_UCOMM      text

*      -->RS_SELFIELD  text

*----------------------------------------------------------------------*

FORM user_command USING r_ucomm LIKE sy-ucomm

                  rs_selfield TYPE slis_selfield.

CASE r_ucomm.

    WHEN '&DATA_SAVE'.

      REFRESH it_exti.

      CLEAR it_exti.

      LOOP AT it_ext.

        it_exti-mino = it_ext-mino .

        it_exti-matnr = it_ext-matnr .

        it_exti-ebelp = it_ext-ebelp .

        it_exti-werks = it_ext-werks .

  UPDATE zexti FROM it_exti.

        CLEAR: it_ext,it_exti.

      ENDLOOP.

    WHEN OTHERS.

  ENDCASE.

  MESSAGE 'Data Saved' TYPE 'S'.

it_ext is the alv display table.

Read only

0 Likes
1,783

Hi friend,

This code isn't right, because you aren't going to have the changes in your internal table. Furthermore, the requirement is to update the internal table not the database table.....

Read only

0 Likes
1,783

any solution for this ..pls help on this...im also facing the same issue . need to update the internal table after calculation not ztable...plz do needful