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: 

How to use change document for AUSP table in MM02?

Former Member
0 Kudos
943

Hi All,

I am working with MM02. When I change the characteristic value in classification view, I want that change to be logged in CDHDR table.

I have created a change document object for AUSP table and generated update program for that. Now that program needs to be called in some <b>badi</b> or <b>exit</b> which can be called upon saving in MM02 after changing the values in classification view.

Can anybody give me some idea where can I call that program.

Any help wud be appreciated.

Regards,

Pragya

3 REPLIES 3

0 Kudos
345

Hi Pragya, did you get how to use change documents for AUSP table?

former_member191735
Active Contributor
0 Kudos
345

Try these BADI

CACL_VALUE_CHANGE

CACL_MAIN01

BADI_MATERIAL_CHECK - This one seems to be appropriate for your req

0 Kudos
345

Hi

You have 2 possible solutions to meet this requirement.

Option 1: Implement point # 3 of SAP OSS Note 943559

Option 2: This is a workaround solution to skip standard SAP check for activation of change documents of Classification system and allow entries to be written into CDHDR and CDPOS table through MM01 / MM02 / CL20N tcode

Solution: Implement an implicit enhancement inside include program 'LCLVFF10', at end of subroutine 'FILL_REDUN' i.e. line number '337'.

Here modify the entry of table 'REDUN' where OBTAB = 'MARA' and set the flag 'AEBLGZUORD' equal 'X'. This will activate the change document creation for Change Object 'CLASSIFY' in CDHDR and CDPOS tables.

Sample Code

LOOP AT redun WHERE obtab EQ 'MARA'.


       redun-aeblgzuord = 'X'.


ENDLOOP.