Application Development 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: 

Function module to get list from CDHDR for MATERIAL

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

SuhaSaha
Advisor
Advisor
0 Kudos

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

7 REPLIES 7

GauthamV
Active Contributor
0 Kudos

Try these FM.

CHANGEDOCUMENT_DISPLAY.

CHANGEDOCUMENT_READ.

CHANGEDOCUMENT_READ_HEADERS.

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

CHANGEDOCUMENT_READ will work

Former Member
0 Kudos

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

0 Kudos

Hello Dirk,

SAP uses CHANGEDOCUMENT_READ_HEADERS.

Please see my previous post for details.

BR,

Suhas

0 Kudos

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

0 Kudos

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,