cancel
Showing results for 
Search instead for 
Did you mean: 

How to Determine company to deliver goods by receiving PO centrally from Customer ?

Former Member
0 Kudos

Hi Everyone

Client got 3 manufacturing units at locations A B and C, which are also 3 different legal entities(company codes)).

They will receive PO from customer centrally and at this point they don't know which company will deliver the stock.

Depending on customer to whom delivery should be made the nearest company of (3) should be selected and then check for stock availability should be made and then delivery from that company code should be done.

if stock is not available then next nearest company should be determined to deliver goods.

So can anyone please tell if this is possible in the standard SAP solution or how can we map this req ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member182378
Active Contributor
0 Kudos

First and important question would be why are 3 company codes (BUKRS) created? If the same material can be supplied to the customer by all 3 Co codes and these BUKRS are situated near to each other, then - in my opinion - one company code would have been "better".

Second, after the user / business determine which sales organization (VKORG) is going to "handle" this order then the system can ascertain which delivering plant (and availability of stock).

Third, in standard configuration, if delivering plant is ascertained according to closest to a customer; then in CMR (XD01/2), Button Sales Area data, Tab Shipping, field delivering plant can be given.

Jobi,

Would you please explain how "the code" would ascertain the company code and the delivering plant "automatically"?

Thank you!

Former Member
0 Kudos

These 3 companies are 3 different legal entities, and they are located about more than 300 kms away from each other.

The present business we are following is we receive PO from customer at enterprise level, then we decide on nearest company(Manu factu unit) for the customer and deliver the goods. In case of no stock availability will check for next nearest company that can deliver.

former_member182378
Active Contributor
0 Kudos

Thanks for the reply.

How many delivering plant(s) do you have per BUKRS?

Former Member
0 Kudos

Only one plant per one company code

Former Member
0 Kudos

I would advise you to do in user exit MV45AFzz to give a pop up message on stock availability for all 3 vendor(plant). Hope that your ABAPer is strong, give the user 3 check box and auto change the shipping point and plant. You may have 1 storage location like xxxx for drop-shipment purpose. If you have PO from SO to be created automatically, you do your check in user exit MV45AFZB to determine from shipping point or plant, which vendor the PO should be by modifying EBAN.

Former Member
0 Kudos

You need to have 3 plants to check stock availability. How do you manage stock in 3 manufactuers? What you see in MMBE?

Former Member
0 Kudos

In MMBE we will see as stocks in 3 different companies.and these 3 companies having 1 plant each.

Former Member
0 Kudos

Try out the proposal I mentioned above.

Answers (2)

Answers (2)

former_member182378
Active Contributor
0 Kudos

The suggestion is based on the follow process steps -

PO > SO > Delivery > Billing document

The user creates a sales order. The system automatically determines the company code, plant, shipping point.

1. Create a user maintenance custom table (Z table) with fields: Ship To party, Company code, Plant, Shipping point

2. Write the code in program MV45AFZB, USEREXIT_CHECK_VBAK

For given KUNWE (sh) fetch Ztable-BUKRS, Ztable-WERKS, Ztable-VSTEL and populate in VBAK-BUKRS, VBAP-WERKS, VBAP-VSTEL

3. Thus by step 2 the above 3 fields are populated, depending upon the SH. Then the user enters the material, the system check for stock availability

4. If stock is available, save the sales order.

5. If stock is unavailable go to the Z table and take the next / following combination of company code, plant and shipping point. Perform step 3 (availability check)

The code in step 5 can be written in program MV45AFZB, USEREXIT_CHECK_VBAP

Note - while creating a sales order, do not give the sales organization (VKORG) in the initial selection screen in VA01.

jobi_t
Contributor
0 Kudos

if you are open to using ABAP, then you will need to find a userexit which is activated at the time of availability check and you can code in your program which plant the system should choose based on your preference.