Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change Documents for a Billing Document

Former Member
0 Likes
3,305

Hello All,

I need to write a report that captures all changes to a billing document regarding the pricing conditions. All billing document changes regarding pricing will appear under the OBJECTCLAS FAKTBELEG and TABNAME KONVC. If the FNAME is KEY, the CDPOS table will recognize that a change occured, however it does not capture what the change actually was. Is there a way to determine what this change is or am I misunderstanding what this entry is actually used for? Thanks for your help.

John

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,859

Hi John,

If the Fname is given as Key, it means the key field of the table has been created => It is not a change. it is the first time creation of that record.

PS: Reward points for useful answers.

Regards,

Prabhu.

5 REPLIES 5
Read only

Former Member
0 Likes
1,859

Hi John,

I don't remember correcttly but it is stored VALUE_OLD and VALUE_NEW but in binary format. It will not show if you use SE16 to view table content. Try moving these fields into a type P field, you should be able to see the values (I Think !)

Cheers,

Sanjeev

Read only

Former Member
0 Likes
1,859

Use function module CHANGEDOCUMENT_READ. It will return you an internal table with all the changes based on your criteria. In that internal table you will have F_OLD and F_NEW fields, which will have the old and new values of the change.

Read only

Former Member
0 Likes
1,859

Hi John;

The standard report RV16ACHD gives a good display of all the changes to the conditions...

Cheers,

John

Read only

Former Member
0 Likes
1,860

Hi John,

If the Fname is given as Key, it means the key field of the table has been created => It is not a change. it is the first time creation of that record.

PS: Reward points for useful answers.

Regards,

Prabhu.

Read only

Former Member
0 Likes
1,859

Hi John,

In the Standard Report using SD_CONDITION_CHANGE_DOCS_LOAD function module for change logs,

If any addition/ deletion in the condition CDPOS value_old and value_new will be initial, in this case you need to retrive the values from KONV table with corresponding condition type.

Function module CHANGEDOCUMENT_READ used to capture all the changes, you need to pass Object class and objectid (document number ) and you get all the changes in the editpos internal table.

Cheers,

Sasi