cancel
Showing results for 
Search instead for 
Did you mean: 

sale line provided by 2 storage locations

nati_k
Explorer
0 Kudos

Hi Gurus, I need your help on the following point:

I have 2 storage locations, each one with a different shipping point. The same material can be storaged on both st locations at the same time (partial quantity in each st).

Then, when I make a sale, SAP has to take the desicion and take stock from the st location that has the material. If it is partial quantity, then I need that sap creats automatically 2 outbound delliveris, one of each st location.

But, according with I saw .. SAP needs to determine this on the sales order .. I need to enter the shipping point on sales order, and make the dellivery from this shipping point only (wich is, one storage location).

As the shipping point is at dellivery item, I can´t make more than 1 schedulle lines with different storages eigther ....

I tried making a Z program on the copy control rutine but I found that I can´t see the available stock in each storage location, so, can´t determine where is my stock .. I have MRP at plant level...

Can you help me on this? thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nati

As per standard SAP, storage location is not determined automatically in sales order. Hence the sales order cannot "see" how much stock is present in which storage location. If Availability check ATP for sales order is also at Plant level, it will confirm the full quantity and set the shipping point taken from default shipping point customization.

In your system, does the storage location appear automatically?

If no, you can modify sales user exit through ABAP and make storage location appear in sales order.

During order entry, if partial qty is available in default storage location, there will be 2 confirmed schedule lines, 1. as per available stock and 2. as per planned delivery time. This will be a signal for order entry person so he can add a new line with remaining qty and change the shipping point. This will also auto populate the other storage location which has remaining stock.

In the end, there will be 2 lines with different shipping points and storage locations. During VL10, it will automatically create 2 outbound deliveries as per std SAP.

Hope this helps.

/Dinesh

former_member184065
Active Contributor
0 Kudos

Dear,

We can get storage location  automatically in VA01 by OVL3 settings   .

Thanks,

Naren

Former Member
0 Kudos

Naren,

Please refer below thread where it is mentioned storage location cannot be determined automatically in sales order.

http://scn.sap.com/thread/881784

Also see SAP note 387482 & SAP article 1649672.

/Dinesh

former_member184065
Active Contributor
0 Kudos

Dear,

Tell me one thing,Have you tested after maintaining OVL3 settings ? ( I am getting storage location in VA01 but not in VL01N level ) .

Thanks,

Naren

sri_ram18
Participant
0 Kudos

Narendra,

Check the setting at Delivery document Level (T-code OVLK).

Storage location determination in Sales order is only possible via a user exit. You cannot configure storage location into sales order: you need to use user
exit MV45AFZB USEREXIT_SOURCE_DETERMIN

or

You can use userexit_save_document

Userexit_save_document_prepare

or

The relevant forms to be used are:

USEREXIT_MOVE_FIELD_TO_VBAK -- to default in Header.

USEREXIT_MOVE_FIELD_TO_VBAP -- to default in item.

User exit: MV45AFZZ

Sriram.

Answers (1)

Answers (1)

former_member205178
Contributor
0 Kudos

Hi,

Can you articulate your requirements with more clarity ?

Why is this requirement in such a way ? How does it matter which Storage Location the Material is coming from as long as it is the same material ?

Coming to standard SAP, Shipping Point is determined from a combination of :

->  Plant +

->  Shipping Condition [ default from Customer Master / can be changed in Sales Order ] +

->  Loading Group [ default from Material Master ]

There is no direct need to input Storage Location in the Sales Order.

Thanks.