‎2009 Sep 08 12:53 PM
Hello,
I am searching for the function to get a list of CDHDR-entries for a material in transaction MM03.
My debugging was not successful. So I hope someone here has the answer.
What is the name of the function that SAP uses in TA MM02/MM03 to get the list of CDHDR-entries for a material number and from where (include) is it called?
I found already the function to get the related CDPOS entries, starting from the list with CDHDR entries in the transaction.
This is CHANGEDOCUMENT_READ_POSITIONS.
But here I am definitely too late, because I am searching for the reasn why one of my changes entered in CDHDR is not selected!
Thank you in advance for the answer!
Best regards
Dirk
‎2009 Sep 08 12:57 PM
Hello,
I think you can debug MM04 & find out the relevant info.
Out of curiosity i debugged the same & found the piece in the program SAPMM03A (include MM03AI00) call of the FM: CHANGEDOCUMENT_READ_HEADERS.
Rest for you to explore !!!
BR,
Suhas
‎2009 Sep 08 12:57 PM
Try these FM.
CHANGEDOCUMENT_DISPLAY.
CHANGEDOCUMENT_READ.
CHANGEDOCUMENT_READ_HEADERS.
‎2009 Sep 08 12:57 PM
Hello,
I think you can debug MM04 & find out the relevant info.
Out of curiosity i debugged the same & found the piece in the program SAPMM03A (include MM03AI00) call of the FM: CHANGEDOCUMENT_READ_HEADERS.
Rest for you to explore !!!
BR,
Suhas
‎2009 Sep 08 12:59 PM
‎2009 Sep 08 1:03 PM
Hello guys,
thank you for your answers, but I know some FM that will give the change docs.
My problem is I need to know WHICH ONE IS USED BY SAP in MM0x to get the CDHDR-entries for the material.
And (this would be perfect) I need to know where it is called (in which e.g. include) because I have to find out why
it is not delivering the expected result after a migration of change docs!
Best regards
Dirk
‎2009 Sep 08 1:05 PM
Hello Dirk,
SAP uses CHANGEDOCUMENT_READ_HEADERS.
Please see my previous post for details.
BR,
Suhas
‎2009 Sep 08 1:12 PM
Hello Suhas,
yeah, I used MM04 from your answer and found the same!
Thank you! This will help me!
It is PERFORM relevanz_pruefen
called after the FM which kills some of my entries.
Now I can find a solution for my issue!
Best regards
Dirk
‎2009 Sep 08 1:16 PM
Hi,
Check function module MATERIAL_CD_NO_CHANGE_POINTERS or MAT_CD_NO_CHANGE_POINTERS_INT.
Put breakpoint in these two FM's and execute MM0X transaction for your materials.
KR Jaideep,