Skip to Content
0
. -
Jul 22, 2011 at 04:22 AM

How to retrieve the vendor number during creation of Purchase Order?

21 Views

Dear SAP experts,

For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-

1) default the delivery address to our plant A address if the vendor is local and

2) default the delivery address to our plant B address if the vendor is foreign.

At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.

The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.

Thank you in advance.

Regards,

Alex