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

The values of ALV are not kept

Dear friends,

I developed an ALV, and the quantity colum can be editable, but when I change the quantity without clicking "Check" or "Refresh" button and directly click "Save" button, the old values are displayed again - not what I have input (the new value) just at that time. Does anybody have some solution to save the new value just by clicking the "Save" button only?

Thanks a lot!!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:18 AM

    Hi,

    Your internal table itself is not having the updated data.

    In PAI (User command), call the method CHECK_CHANGED_DATA. This method will refresh your internal table with the value available in ALV. Again use REFRESH_TABLE_DISPLAY to display the values in your internal table to the ALV on screen. This method can be called after saving the values.

    Thanks,

    Lakshmi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:12 AM

    Hi

    Call method REFRESH_TABLE_DISPLAY before saving .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:24 AM

    Modify your internal table in the event-> AT USER-COMMAND.

    case sy-ucomm.

    when 'SAVE'.

    MODIFY internal table.

    perform Display.

    Form Display. -> COntains Funtion Module or Method that Displays the ALV

    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.