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: 

USER EXIT WHEN PO SAVED

Former Member
0 Kudos

I need to update ztable with PO Quanity for respective vendor material when purchase order is saved. Kindly let me know the user exit to be used.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use enhancement MM06E005

FM EXIT_SAPMM06E_013 -> this FM will trigger when you click on save button at Purchase order transaction.

Thanks

Seshu

10 REPLIES 10

Former Member
0 Kudos

You can use enhancement MM06E005

FM EXIT_SAPMM06E_013 -> this FM will trigger when you click on save button at Purchase order transaction.

Thanks

Seshu

0 Kudos

Seshu

When i double click on the include INCLUDE ZXM06U44 in the FM EXIT_SAPMM06E_013 to write my code i am getting the followin error. Where should i incorporate my logic in this FM ?

Program names ZX... are reserved for includes of exit function groups

You attempted to create a program name beginning with ZX but this name

range is reserved only for includes of exit function groups (function

groups containing only function exits).

Thanks

0 Kudos

That is warning message and just hit enter ,now you will able to write the code

Thanks

Seshu

0 Kudos

Thanks Seshu. Got it...

0 Kudos

Shesu.

Could you help me to find where can i get the vendor, material and quantity in this user exit to update my ztable with corresponding values.

Thanks

0 Kudos

Just look at table parameters :

XEKPO - You get material and quantity

I_EKKO ( Import ) -> here you get vendor number

Thanks

Seshu

0 Kudos

Thanks Seshu

0 Kudos

Seshu

I am not getting any value in

XEKPO-MATNR and XEKPO-MENGE in the User Exit FM EXIT_SAPMM06E_013

when i save ME21N Transaction. But I have entered Material and Qty.

Kindly Help me.

Thanks

0 Kudos

I have tested using ME21N(Creation mode) and ME22N ( Change Mode)

When you test the data using ME21N Transaction ->

You get values to XEKPO and not in YEKPO

When you test the data using ME22N Transaction ->

You get values both XEKPO and YEKPO

Looks like you are doing some mistake in user exit..,Check in debugging.

Thanks

Seshu

0 Kudos

Seshu

I have set break point in FM EXIT_SAPMM06E_013 and checked

XEKPO-matnr is empty

YEKPO-matnr is empty

XEKPO-menge is 0.00

YEKPO-menge is 0.00

but i am getting my Values in FM EXIT_SAPMM06E_017

I_EKPO-matnr

I_EKPO-menge

I think i can use this.

Thanks