‎2008 Jul 07 11:29 AM
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.
‎2008 Jul 07 11:54 AM
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.
‎2008 Jul 07 11:54 AM
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.
‎2008 Jul 07 3:39 PM
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!
‎2008 Jul 11 4:25 AM
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.