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

Editing Comments

We have developed a custom logic to copy a set of data to another set of data. For example,

we have Project data which has Bus Unit, Project, Location, Line Item, etc...

we have an input form to bring this up and say users can move the data from source location to a new location.

we are utilizing Custom BADI to do this. This works perfect.

However, if there is a comments field and users edit the comments field, old comments are being saved rather than new edited comments.

I went thru SAP standard code for couple of days now. I found that, data part is being called first and saved to DB, then comments part is being called and saved to DB. But during the data part, my custom BADI is implemented. So there is no visibility to new comments there because they are not saved to DB yet.

Does anybody know how to read latest comments from the input form? or is there anyway to read the latest comments from my custom BADI?

Thanks in advance

Ravi

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 12, 2014 at 05:38 AM

    Hi,

    Can you Save data first (using macro)before every copy. So that you can read newly changed(saved) comments from comment table in custom BADI.

    Does it helps.. !

    Thanks,

    Raju

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2014 at 06:08 AM

    Hi Ravi,

    The business process is not clear for me

    "We have developed a custom logic to copy a set of data to another set of data. For example,

    we have Project data which has Bus Unit, Project, Location, Line Item, etc...

    we have an input form to bring this up and say users can move the data from source location to a new location."

    Can you explain more?

    Vadim

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 08:15 AM

    Hi Ravi,

    You can read the comments in your BADI.

    You need to look at the timestamp in the comment table.

    there are even functions where you can update the comment table in your BADI.

    Andy

    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.