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: 

ALE - MATMAS user exit

Former Member
0 Kudos
1,478

Hi all.

I send a material using bd10 (matmas). I need for example add or change some information in receivng system (master data).

I found the user exits

EXIT_SAPLMV01_002

EXIT_SAPLMV02_002

I set a break point but how to set up a debbuging mode.

I only see the receiving idoc in WE02.

Any help ?

Thanks

Bartosz

10 REPLIES 10

Former Member
0 Kudos
234

Hi Bartosz,

To be able to use debugging you first have to switch off the 'Immediate processing' in the partner profile for the Idoc in the receiving system (otherwise the Idoc will be processed immediately in the receiving system and you will not be able to debug).

Be sure to activate the exits by creating an enhancement project and then put a break-point in the exit. Finally send an Idoc to the receiving system and pick it up using transaction BD87. Now your processing will stop at the break-point.

Regards,

John.

0 Kudos
234

It you don't want (or can't) chane the partner profile, you can always use WE19 (the test tool). You can copy an existing IDoc, edit the data, and then submit it with immediate processing. You can even start debugging into the inbound function module directly from the test tool.

0 Kudos
234

Hi John

I change the profile (WE20) in receving system

for messages MATMAS - to trigger by background system.

Send a material from sending system.

The receiving idoc is in bd87 has status Idoc ready to be transfered - and then i press F8 procces.

( Break point is set up in include ZXMGVU04 )

and nothing the program don't stop

any suggestions ?

Regards

Bartosz

0 Kudos
234

Hi Bartosz,

Did you activate the user exit (transaction CMOD)?

Regards,

John.

0 Kudos
234

Yea the project is active.

0 Kudos
234

in bd87 is the trace Idocs button - what's that?

0 Kudos
234

Hi Bartosz,

The user exit is only passed in case customer segment are found in the Idoc (that is segment which do not start with 'E1').

Did you enhance the MATMAS with customer segments?

Regards,

John.

0 Kudos
234

Hi John

No i don't enhance the MATMAS with my segments.

By the way i don't know how to do that ?

I debug the Idoc_input_matmas and i saw some operator = 'E1'

before call-customer function.

Hmm i can't found any documentation about enhancement MATAMAS.

Regards

Bartosz

0 Kudos
234

If you are not having a custom segment but just want to manipulate the data at your receiving system, you might want to try using BADI BADI_MATMAS_ALE_CR. To activate it and put a breakpoint, do as follow:

1. Run txn SE19.

2. Create you own implementation

3. Enter definition BADI_MATMAS_ALE_CR

4. Doubleclick on method CHANGE_MATMAS

5. Put a break point there.

6. Try sending the idoc again. You will stop there.

Message was edited by: Nablan Umar

0 Kudos
234

Thanks Nablan Umar;