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

what does CHANGEDOCUMENT_READ_POSITIONS do?

Former Member
0 Likes
1,494

hi,

i have a FM CHANGEDOCUMENT_READ_POSITIONS

i have filled i_cdhdr from the database table CDHDR.

and then i provide all the change numbers present in i_cdhdr to the function module CHANGEDOCUMENT_READ_POSITIONS and receive i_cdshw..

but since i can only provide one change number at a time i have to call this function in a loop on internal table i_cdhdr.

is there any other function module which can give me all the entries in i_cdshw when i provide a single table i_cdhdr?

or can i implement the above logic with a select query on CDPOS? if yes, how?

thanks for the help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
835

hi

u can i implement the above logic with a select query on CDPOS

check this

if not i_cdhdr[] is initial.

select * from cdpos

into table i_cdpos

for all entries in i_cdhdr

where cdpos-OBJECTCLAS = i_cdhdr-OBJECTCLAS

and cdpos-OBJECTID = i_cdhdr-OBJECTID

and cdpos-CHANGENR = i_cdhdr-CHANGENR.

endif.

Cheers,

Snehi.

3 REPLIES 3
Read only

Former Member
0 Likes
836

hi

u can i implement the above logic with a select query on CDPOS

check this

if not i_cdhdr[] is initial.

select * from cdpos

into table i_cdpos

for all entries in i_cdhdr

where cdpos-OBJECTCLAS = i_cdhdr-OBJECTCLAS

and cdpos-OBJECTID = i_cdhdr-OBJECTID

and cdpos-CHANGENR = i_cdhdr-CHANGENR.

endif.

Cheers,

Snehi.

Read only

0 Likes
835

hi snehi,

but we are not using i_cdhdr but rather i_cdshw which is included in tables section..

so, we are more interested in getting i_cdshw which has completely different structure than cdhdr and cdpos!

Read only

Former Member
0 Likes
835

I_CDSHW provides the old value and new value with addition of units, i got the same values by firing a select query on CDPOS but without units.

so, i had to pick up the part of code which was attaching unit in the value and include that in my code.

thanks a lot for help.