Application Development 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: 

cdhdr and cdpos object id and object class issue

Former Member
0 Kudos
1,066

Earlier i was fetching the zterm like this.

if sy-subrc = 0.

select kunnr

vkorg

zterm

from knvv

into table it_knvv

for all entries in it_knb1

where kunnr = it_knb1-kunnr.

if sy-subrc = 0.

sort it_knvv by kunnr.

endif.

endif.

read table it_tvko into wa_tvko with key bukrs = wa_knb1-bukrs.

CLEAR wa_knvv.

READ TABLE it_knvv INTO wa_knvv WITH KEY kunnr = wa_final-kunnr

vkorg = wa_tvko-vkorg.

IF sy-subrc = 0.

wa_final-zterm = wa_knvv-zterm.

ENDIF.

Now i want to have the new and old values of zterm.So need to use the cdhdr and cdpos.

so what will be the object id and object clas for the cdhdr table and cdpos,

kindly suggst.how to fetch the data from these tables.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
123

Hello

OBJECTCLASS = 'DEBI'

OBJECTID = Customer number

3 REPLIES 3

rob_postema
Participant
0 Kudos
123

OBJECTCLASS = 'DEBI' I believe.

OBJECTID will be your KNVV-KUNNR.

Former Member
0 Kudos
124

Hello

OBJECTCLASS = 'DEBI'

OBJECTID = Customer number

0 Kudos
123

Use these FM's - CHANGEDOCUMENT_READ_HEADERS

and CHANGEDOCUMENT_READ_POSITIONS

to real old and new values with above Object class and Object ID

Regards,

CK