2009 Feb 04 3:57 PM
How can i use this function in order to retrive the date when the material code was changed in an sales order.
Thanks.
2009 Feb 04 4:11 PM
You need to get the Change Header first by using the FM CHANGEDOCUMENT_READ_HEADERS.
To use this FM you need to pass
OBJECTCLASS = VERKBELEG
OBJECTID = <sales order no>
Receive the I_CDHDR table from the above FM.
Now, Loop on the table I_CDHDR and call the FM CHANGEDOCUMENT_READ_POSITIONS by passing the
CHANGENUMBER = I_CDHDR-CHANGENR
TABLEKEY = I_CDHDR-TABKEY
TABLENAME = I_CDHDR-TABNAME
and Receive table ICDSHW.
Now, Loop on to the ICDSHW table where FNAME = 'MATNR' to get the material numbers.
You can also check the Sales Order Changes report RVSCD100.
Regards,
Naimesh Patel
2009 Feb 04 4:10 PM
You may need to look into the program RMMMCDOC.
I hope this will be give a info how to use this fm.
a®
2009 Feb 04 4:11 PM
You need to get the Change Header first by using the FM CHANGEDOCUMENT_READ_HEADERS.
To use this FM you need to pass
OBJECTCLASS = VERKBELEG
OBJECTID = <sales order no>
Receive the I_CDHDR table from the above FM.
Now, Loop on the table I_CDHDR and call the FM CHANGEDOCUMENT_READ_POSITIONS by passing the
CHANGENUMBER = I_CDHDR-CHANGENR
TABLEKEY = I_CDHDR-TABKEY
TABLENAME = I_CDHDR-TABNAME
and Receive table ICDSHW.
Now, Loop on to the ICDSHW table where FNAME = 'MATNR' to get the material numbers.
You can also check the Sales Order Changes report RVSCD100.
Regards,
Naimesh Patel