Skip to Content
author's profile photo Former Member
Former Member

Default Value for Order Type based on Company Code in ME21N

Hi,

Using ME21N, I want to make the PO type defaulted to a certain company code, say for instance Company code XYZ should have a PO type XYZ Purchase Order, ..company ABC should have a PO type ABC Purchase Order, and so on...I'm just puzzled how to implement it. I know that we can set a Default value for PO Headers in Personal Settings but its doesnt give the result I want coz it will only have one Default Value. What I wanted is when a certain company code is chosen, automatically, the corresponding PO type for that Company code will be displayed in the Order Type drop-down menu (so there's no need to choose on the drop down list what Order type) Is this possible in ABAP? Hope i made myself clear.

Thanks in Advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2004 at 12:37 PM

    What version ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2004 at 12:43 PM

    Use BADI IF IF_EX_ME_PROCESS_PO_CUST - method OPEN

    View the interface documentation in transaction SE19 and you will see the method OPEN can be used :

    2. Opening of a purchase order (OPEN method)

    The system opens a new document to create, change or display a purchase order. With the OPEN method,

    <b>you can import your own data and prepare it for further processing.</b>

    This is available in 4.7 Enterprise but not sure how far back.....

    hope this helps

    Colin.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.