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

CHANGEDOCUMENT_READ_POSITIONS

was_wasssu
Participant
0 Likes
915

How can i use this function in order to retrive the date when the material code was changed in an sales order.

Thanks.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
739

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

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
739

You may need to look into the program RMMMCDOC.

I hope this will be give a info how to use this fm.

Read only

naimesh_patel
Active Contributor
740

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