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

how to add 1 record when user edit a field in alv grid?

Hi all,

how to add 1 record when user edit a field in alv grid?

Say when user changed the quantity from 500kg to 200kg ,a new record should be appended with same record fields?

Plz suggest..

Thanks in advance...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2009 at 06:10 AM

    Hi....

    First use Following code to check data has been changed in ALV Grid or not in user command

    call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'

    IMPORTING

    e_grid = ref1.

    call method ref1->check_changed_data.

    so you will get updated data in internal table which is bind to your grid then write your code for append.

    if you want to check for perticular column changes then first assign internal table which is binded to grid to one more internal table before above function call.

    after this function call , internal table which assign to grid having latest data means updated data so with comparision of both internal table in loop for particular column, you can get difference and write code there which u want to run.

    Regards,

    Chintan.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      this is my record..

      pro_ord size qty date

      112 M 500 02.02.2009

      when i split qty into two values say 250 -250 ..the record like that..

      pro_ord size qty date

      112 M 250 02.02.2009

      112 M 250 08.02.2009

      I am not using OOPs ..

      Thanks and regards

      Steve

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 05:54 AM

    solved

    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.