2004 Nov 18 1:08 PM
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
2004 Nov 18 1:17 PM
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.
2004 Nov 18 1:27 PM
2004 Nov 18 1:53 PM
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
2004 Nov 18 2:08 PM
Hi Bartosz,
Did you activate the user exit (transaction CMOD)?
Regards,
John.
2004 Nov 18 2:10 PM
2004 Nov 18 2:11 PM
2004 Nov 18 2:41 PM
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.
2004 Nov 18 3:09 PM
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
2004 Nov 18 4:41 PM
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
2004 Nov 18 4:55 PM