cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify Delivered Quantity field

Former Member
0 Kudos

Hi guru's.

Mi client has a bussines rule in which I should modify the delivery quantity (field LIPS-LFIMG) from an SD Order.

I am trying to do that through control copy, but I am not able to change this quantity because it always gets the SD order quantity.

Any clue about that?

Thanks so much.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi guys,

I finally solved working on Copy Control between Sales Order and Delivery document. It is possible to edit Delivery Qty., at least for me is working.

Anyway, thanks to everyone for your ideas.

Regards

Answers (9)

Answers (9)

rahul_vishwakarma2
Contributor
0 Kudos

Hi Friend,

  First of all please check in the customer master that the Partial Delivery is allowed or not.

 

After that you can check the routine in OVLK T-Code for the same.

Hope this will help you in some way.

Regards,

Kundan

Former Member
0 Kudos

Dear Alejandro Willers,

Your scenario as below

1) created sales order after that invoice w r t sales order

2) some times create credit memo w r to sales document.

3) finally create delivery document.

Could you please share for which reference document delivery document is created. with reference of sales order or not. please clarify.

Do not mind i am new in sap.

Regards,

Manoranjan.

shashi_thakur
Contributor
0 Kudos

Hi Alejandro,

What T W mentions is correct. You can make the code changes in the below BADI implementation.

Inside this BADI, you can use your custom logic and calculation to arrive at the delivery quantity. However, please note that you will have to change few other dependent fields also to avoid inconsistency. The fields are as below fror LIPS:

LFIMG, LGMNG, LFIMG_FLO, LGMNG_FLO, NTGEW and BRGEW, VOLUM.

You will also have to change the field LIPSD-OFMNG.

This should work as required in your scenario.

Regards,

Shashi

Message was edited by: Shashi Thakur

Former Member
0 Kudos

Thank you Shashi for your suggestion,

Could you give me the exactly name of the BADi, and some details about its implementation please?

Regards!

shashi_thakur
Contributor
0 Kudos

Hi Alejandro,

The BADI is LE_SHP_DELIVERY_PROC and the Method is 'CHANGE_DELIVERY_ITEM'

Your Development team will have to create a new implementation for this BADI in SE19 , say Z_SHP_DELIVERY_PROC and once that is done they can add the code in the Method CHANGE_DELIVERY_ITEM based on the concerned custom Logic. In the screen-shot provided earlier, the exporting parameters are the one's which have all the details and the changing parameters are the one's which can be modified inside the method. Your code will therefore have to modify the in the structure cs_lips and cs_lipsd.

Regards,

Shashi

Former Member
0 Kudos

Shashi,

Thanks for your information. Anyway, I'm still trying to do that at the creation moment of the Delivery document through Copy Control.

Thanks & Regards

Former Member
0 Kudos

Thanks to all for your answers.

If I can't change Delivery Qty at copy control, perhaps I will need to think in another solution.

Let me explain you my scenario. My customer has the following SD flow:

1) They create a Sales Order and then they create the Billing Document for the same items and quantities indicated on the Sales Order.

2) Before they deliver the Sales Order, some times exists some credit notes (partial or total) in reference to the SO document.

3) At the moment of Delivery document, users has to change manually the Delivery Quantity discounting the Credit Memo quantities.

At this point is where I'm working on it.

I think that should there be some solution. What do you suggest?

Thanks in advance.

Former Member
0 Kudos

Hi Alejandro,

I guess that if you need to change the delivery is because there's a change in materials & quantities your customer finally wants and you create credit notes to adjust final amount of money. I guess also that it takes sometime before delivering after the invoice, thus these changes required.

Would be acceptable that instead of creating the invoice your create a proforma invoice (type F5) for your customer? In doing so, you would have sales orders and deliveries open to changes and avoid credit memos. Only after delivery PGI you would send final invoice to customer.

Regards,

JM

former_member182378
Active Contributor
0 Kudos

Alejandro,

With the additional information (provided by you), still the requirement and the sceanrio is unclear!

1) They create a Sales Order and then they create the Billing Document for the same items and quantities indicated on the Sales Order.

2) Before they deliver the Sales Order, some times exists some credit notes (partial or total) in reference to the SO document.

3) At the moment of Delivery document, users has to change manually the Delivery Quantity discounting the Credit Memo quantities.

At this point is where I'm working on it.

As requested earlier, please give an example -

E.g. sales order created for 10EA

Delivery created (VL01N), for 10EA

Credit qty = 2EA

Thus the user has to change the qty in the delivery manually from 10EA to 12EA

Billing has to be done for 12EA (currently it is being done for 10EA)

Is your question -

1. In delivery, the user can not change the qty. How to change it?

2. In billing doc the sales order qty is populating. How to change it to delivery qty?

3. Please give more explanation about "Credit qty".

Former Member
0 Kudos

Dear T W,

The example could be:

1) Sales Order for 100 units of ítem A.

2) Billing document (invoice) for the same qty. (This step is in order to start the income payment process).

3) (later...) Credit Memo for 20 units of ítem A.

4) Finally, 80 units of ítem A should be delivered.

In this last point is where I'm trying to automatize quantities calculation. Now, user modifies manually this qty. because in VL01n Open Qty is always the same as is exposed on Sales Order.

Hope it helps to understanding.

Thanks & Regards

former_member182378
Active Contributor
0 Kudos

Alejandro,

Thank you for the example!

From my understanding, this requirement can be fulfilled by enhacement (coding).

In a userexit during the creation of delivery, some logic has to be incorporated which shall "calculate" the qty (normal sales order qty - credit memo request qty = delivery qty).

VBFA table can be used.

The normal sales order, which is the subsequent document and with what subsequent document category (VBTYP_N).

If VBTYP_N = K (credit memo request) then minus this quantity from the normal sales order.

Note: In standard credit memo process there is no movement of goods, hence no delivery. But probably your process is involving delivery too.

former_member184065
Active Contributor
0 Kudos

Dear,

1.VA01-100Qty

2.VF01 -100Qty

3.VL01N-80Qty ( you can reduce Qty here manually )

now create returns order for 20 Qty based on billing and crate returns order ,returns delivery and credit memo.

I have simulated his scenario.this is perfectly working.

Kindly ,let me know if yo want an further hep.

Thanks,

Naren

former_member182378
Active Contributor
0 Kudos

Narendra,

From an "SAP theoritical testing" perspective it might work!

But see it from a business perspective - The company has created a Return process with 20 qty as return delivery but actually this "20 qty" had never gone to the customer in the first place!

Also so much more work and transaction data you are suggesting to create!

This would cause more staff (more expense) and confusion (when many return documents are created.

Most important, if there are no goods which are returned, then why is the company paying money to the customer (credit)?

former_member184065
Active Contributor
0 Kudos

Dear,

The company has created a Return process with 20 qty as return delivery but actually this "20 qty" had never gone to the customer in the first place!

Right,I understood now.

VA01 -VF01 Proforma Invoice -VL01N ( based on sales order ) -VF01 ( F2 ).

May be, this will fit for this.

Thanks,

Naren

Former Member
0 Kudos

Hi Alejandro,

You can't change the LIPS-LFIMG from Sales order.

Are you talking about changing the order quantity in Schedule line tab? If so, it is possible to change the quantity, but line item quantity and total Schedule line quantity cannot be different.

If you are expecting to change the quantity in Outbound delivery; unless the Under/Over delivery tolerance check is activated in the Customer master or the Check Over delivery (UEBPR) is activated at the Delivery Item category level, you will be able to change the quantity in the Outbound delivery also.

Please post more information for better understanding.

Regards,

Raja Durai

padmaraju
Explorer
0 Kudos

Hi,

Delivery quantity will be proposed from a sales order item. You can change the quantity in the delivery, subject to any limitations that apply to over- and under deliveries. If the delivery does not refer to a sales order, you can enter a delivery quantity manually.

Regards,

Raju

Former Member
0 Kudos

check if the SO is marked as Fully delivery ,so that the quantity in Delivery can't be changed.

former_member184065
Active Contributor
0 Kudos

Dear,

Actually ,Order quantity always will copy into Delivery quantity.So if you change order quantity then delivery quantity will change.

With copying control ,it is no possible to modify delivery quantity.

Thanks,

Naren

former_member182378
Active Contributor
0 Kudos

Alejandro,

Could you please give an example?