Skip to Content

The changes are not reflected in sm30 via tbl maintenance dialog screen -01

Hi

Let said user A tick on the checkbox column of table X in sm30 and click save.

And then, go back and go to sm30. But, the checkbox column of table X still remain uncheck.

Smtg went wrong but i have no idea about this. I am using table maintenance dialog event - 01.

The codes are :

FIELD-SYMBOLS : <lf1> TYPE any,

<fs_total> TYPE any.

LOOP AT total[] ASSIGNING <fs_total>.

CASE <action>.

WHEN c_newentry.

ASSIGN COMPONENT c_changedon OF STRUCTURE <vim_total_struc> TO <lf1>.

IF sy-subrc EQ 0.

<lf1> = sy-datum.

ENDIF.

ASSIGN COMPONENT c_changedby OF STRUCTURE <vim_total_struc> TO <lf1>.

IF sy-subrc EQ 0.

<lf1> = sy-uname.

ENDIF.

WHEN c_updaterecords.

ASSIGN COMPONENT c_changedon OF STRUCTURE <vim_total_struc> TO <lf1>.

IF sy-subrc EQ 0.

<lf1> = sy-datum.

ENDIF.

ASSIGN COMPONENT c_changedby OF STRUCTURE <vim_total_struc> TO <lf1>.

IF sy-subrc EQ 0.

<lf1> = sy-uname.

ENDIF.

ENDCASE.

MOVE <vim_total_struc> TO <fs_total>.

READ TABLE extract WITH KEY <vim_xtotal_key>.

IF sy-subrc = 0.

extract = <fs_total>.

MODIFY extract INDEX sy-tabix.

ENDIF.

ENDLOOP.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Nov 29, 2013 at 11:04 AM

    Hi Infoset,

    Check weather Table maintenance generator is generated for that table.

    Regards,

    Hiriyappa

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 29, 2013 at 12:14 PM

    Hi,

    is your form executed after you SAVE changes in SM30? Is it only SM30 problem or also data in table are not updated? Have you tried debugging?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2013 at 03:30 PM

    You're certainly losing the updation code in the TOTAL line.

    If you check the line, at the end, you should get U (for change), N for creation and so on.

    As a result, when saving, system considers that no lines have been changed and state that data are already saved.

    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.