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

BAPI_MATERIAL_SAVEDATA Issue

ramoruamodisha
Explorer
0 Likes
707

Hi All

I have used BAPI BAPI_MATERIAL_SAVEDATA to make changes to Material Master and I have the below issue:

When I make changes to a Material, SAP saves the changes Transaction in table CDHDR as 'MM01(BAPI)' or 'MM02(BAPI)'.

Can someone please share with me why is SAP saving as 'MM01(BAPI)' as MM01 is for creating a Material?

I have tried to debug but no luck.

Thanks in advance

Ramo

1 REPLY 1
Read only

Former Member
0 Likes
538

Hi Ramo,

You need to use function modules in order to retrieve the data and CHANGEDOCUMENT_READ_HEADERS should get the data that you need.

(Other useful function modules include:

CHANGEDOCUMENT_DISPLAY

CHANGEDOCUMENT_READ

CHANGEDOCUMENT_READ_HEADERS)

The (BAPI) addition is made to show that a user didn't make the change - it makes it easier to find out who/what is changing things.

I hope that helps.