cancel
Showing results for 
Search instead for 
Did you mean: 

Editing Comments

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

former_member186338
Active Contributor
0 Kudos

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

former_member190501
Active Contributor
0 Kudos

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