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

Update CDHDR on changes using FB02

Former Member
0 Likes
1,431

Hi All,

I'm making certain changes using transaction FB02 which is logged in CDHDR/CDPOS table.

Please let me know how does the updation of these tables take place.

Any pointers to FM/ program that makes the update to these tables will be highly useful.

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
1,137

Use Fm CHANGEDOCUMENT_READ.

Read only

brad_bohn
Active Contributor
0 Likes
1,137

There's an abundance of information on this topic if you search for it. Also, have you traced the transaction with Runtime Analysis? You'll see the calls in there that record the changes...

Read only

Former Member
0 Likes
1,137

Hi,

try to look into these tables via se16/se16n and you can see what be happend.

You can also us FM: CHANGEDOCUMENT_READ.

Regards, Dieter

Read only

Former Member
0 Likes
1,137

Hi,

Thanks for the info but i see this FM is not called in the transaction FB02 to update CDHDR. Any clue ?

As soon as i make a change to ZTERM in this transaction and save it, this is reflected in CDHDR/CDPOS. Please help me to find which FM does the update since these are standard tables.

Thanks.

Read only

0 Likes
1,137

Hi

U need to check which object of change document is assign to account document (it should be BELEG, u can see it in report MF01ABLN).

Now by trx SCDO u can find out which Abap object was generated for your change document object.

For BELEG u can see the fm BELEG_WRITE_DOCUMENT: this fm is called to update the table CDHDR and CDPOS

u can also find out the program FF05LCDC where the fm is called: here it's defined the form CD_CALL_BELEG, u can use to call the fm

Max

Read only

0 Likes
1,137

Any clue ?

As soon as i make a change to ZTERM in this transaction and save it, this is reflected in CDHDR/CDPOS. Please help me to find which FM does the update since these are standard tables.

If you would just use the development tools SAP has made available to you and which I have already suggested, then you would find your answer. A little reading in the help files on how change document objects work wouldn't hurt either.

Read only

Former Member
0 Likes
1,137

no comments