Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 23, 2004 at 12:37 PM

    What version ?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded