Skip to Content
avatar image
Former Member

Fixed predefined plant determination

Hi experts,

I need some help for a certain issue.

I know how plant determination works with default value, according to customer master inforecord, customer master, material master.

We have the following set-up, i.e.

Customer Master = Delivering Plant 0584

Material Master = Delivery Plant 0302

Now, if the material master for plant 0584 is not maintained the sales order will automatically pick 0302 as default which is wrong. If material is available the sales order will be delivered with a wrong plant.

Is there any way to define, that if 0584 material master is not maintained the sales order cannot be created?

Many thanks for your help.

Best regards,

Corinne

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 20, 2008 at 03:10 PM

    Hi,

    In this case, it's better to define delivery plant with your own logical.

    Then, use user exit : MV45AFZB

    --> FORM USEREXIT_SOURCE_DETERMINATION.

    This exit is callinf before plant determination standard.

    You can use master material data with MAAPV

    You can use customer data with KUAGV (sold to party), KUWEV (ship to), KURGV (payer).

    You can test here if material master exists in plant (check MARC).

    Regards,

    Lionel

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 20, 2008 at 05:27 PM

    Hi

    Please note that if Material is not maintained for plant 0584 & 0302 in material master , the sales order will never be created.

    A material has to be maintained for all the plants in material master irrespective of it being maintained at customer / CMIR .

    For Plant determination to work , material plant has to be maintained in material master

    Thank you

    Nikhil

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 21, 2008 at 06:12 AM

    Hi,

    Only if you have created your materials in both plants, then only the system will allow you to create a sales order.....

    If you have maintained a different plant as a delivering plant in material master for which this material is not created with the plant you are maintaining as a delivering plant... System will not allow you to create a sales order with ref to the delivering plant maintained in the material master....

    You will have an issue only if the material is maintained in both the plants... It is suggested not to maintain the delivering plant in the material master if the material is extended to multiple plants....

    Note: Though system finds different delivering plant in the material master and customer master, then the system will automatically pick the delivering plant the customer master...

    If still you need to do some thing then check the function module "SD_DOCUMENT_ACCOUNT_ASSIGNMENT"

    The message class is either 107 or 127 in the application area V1, line 236 of the functional module... Ask your technical consultant to look at the possibility....

    Regards

    Bageerath

    Edited by: Bageerath Cheryala on May 21, 2008 8:25 AM

    Add comment
    10|10000 characters needed characters exceeded