Change Delivery Quantity in BADI
Hi Friends,
I am working on a BADI and there is some requirement for which I need to change
the Delivery Quantity.
Can you please tell me which structure finally updates the TABLE LIPS so that I can change the
delivery Quantity.
Regards,
Arpit
HI Arpit,
Please go through the post given below which can resolve your question on updating LIPS table using BADI.
Re: user exit for LIPS table update
Best Regards,
Krishna
Similar Messages
-
Delivery quantity control Badi CL_IM_LE_SHP_DELIVERY_PRO
Hi ;
I want to check delivery quantity not to be greater than Po quantity , so on exit MV50AFZ1 save_document_prepare and badi CL_IM_LE_SHP_DELIVERY_PRO, save_document_prepare method . Both of them I can change lips-lfimg field and also another method of delivery read_delivery is passing on VL02N I see the change but it doesnt written at the screen which is displayed on delivery ,
Message was edited by:
yanutThis issue is solved my self .
form userexit_move_field_to_lips.
types: begin of ty_kna1,
kunnr type kunnr,
regio type regio,
end of ty_kna1.
data : it_kna1 type ty_kna1.
types: begin of ty_ekpo,
ebeln type ebeln,
ebelp type ebelp,
retpo type retpo,
werks type werks,
end of ty_ekpo.
data : it_ekpo type ty_ekpo.
types: begin of ty_zsloc,
lgort type zlgort,
end of ty_zsloc.
data : it_zsloc type ty_zsloc.
data: wa_zsloc type ty_zsloc.
select single kunnr regio from kna1 into it_kna1 where kunnr = likp-kunnr.
shift likp-kunnr left deleting leading '0'.
select single ebeln ebelp retpo werks from ekpo into it_ekpo where ebeln = lips-vgbel
and ebelp = lips-vgpos.
select single kunnr regio from kna1 into it_kna1 where werks = it_ekpo-werks.
select single lgort from zsloc into it_zsloc where werks = likp-kunnr
and region = it_kna1-regio
and ind = it_ekpo-retpo.
wa_zsloc = it_zsloc.
if sy-subrc eq 0.
lips-lgort = it_zsloc.
modify lips.
endif. -
Change delivery quantity from VL10B
Hi.
We are trying to change the Delivery quantity while creating outbound
delivery from purchase orders using VL10B. I see that the program hits
the exits of MV50AFZ1 and we have tried overwriting the fields LFIMG
and LGMNG of LIPs in the exits. However, the values are not getting
changed.
Can you please let us know whether changing the delivery quantity in
the Overview screen is at all do-able?
Thanks.
Anuradha SenGupta.Hi Monica.
No this field is not getting up, However if I change fields like LFIMG and LGMNG then these fields get changed in the Picking screen in the item level. This screen shows up when I double click on the Quantity in the Overview screen and it takes me inyo the details for the item concerned. So I dont think this is an issue with COMMIT WORK as the information in the PIcking screen does get updated. I however want this to be reflected in the Overview screen - is that possible?
Thanks.
Anuradha. -
How to Change Delivery quantity after creating Transfer order
Hi
I created a transfer order for my delivery with LT03. There is already non-ordered quantity in my delivery.
delivery quantity is 5 but transfer order's quantity is 4.
i want to change my delivery quantity without confirming the transfer order.
Is it possible
is there any customization or function for that work ?
in se37, i tried BAPI_OUTB_DELIVERY_CHANGE. it returned the error "there is an unconfirmed transfer order"
Moved to SD froum from LE forum at the request of OP
Edited by: Csaba Szommer on Apr 18, 2011 1:21 PMIf you set "Copy WM quantity as delivery quantity into delivery" for your WH/wm-mvt combination in WM/Shipping interface, the delivery quantity will be always adjusted to the picking quantity ("1" in field V_T3333-WMMUE).
The same can be achieved manually as it was told you by Andrzej.
There's no separate function modul to do this.
When system is processing FCODE "KOMU_T" (manual process) the delivery quantity will be changed in include MV50AF0F_FCODE_KOMU in internal structure "lips":
IF xlips-pikmg > xlips-lfimg OR likpd-kzebu IS INITIAL.
PERFORM check_and_set_pikmg_lfimg CHANGING lf_subrc.
CHECK lf_subrc = 0.
ENDIF.
But this is one thing, there's some preparation before this step and and the change in "lips" will cause the change of "xlips" later on, etc.
So, it is related to several programs (includes) and forms.
Please contact your ABAPer if you are not familiar with technical things.
Edited by: Csaba Szommer on Apr 18, 2011 10:55 PM -
Need a FM for change delivery quantity
Hello,
I need a FM to update delivery quantity, I have look for the BAPI BAPI_OUTB_DELIVERY_CONFIRM_DEC but I didn't find how it works.
Any help are welcome
FrédéricHi,
I need a SAP FM to update the delivery quantity and the pick quantity, if pick quantity is different than the delivery quantity. I tried SD_DELIVERY_UPDATE_PICKING and WS_DELIVERY_UPDATE_2. Both FMs update pick quantity (even it is different from delivery quantity - strange - online doesn't allow that), but not delivery quantity. Eventhough I pass delivery quantity in LFIMG field of vbpok structure.
I need it quite urgently, anyhelp? Thanks,
Regards,
Sundar. -
System doesnt let me change the delivery quantity greater than sales order
Hi,
In delivery document , when I change delivery quantity greater than related sales order quantity , system just show the Message no. VL363 but let me change the quantity.
Is it any way that system do not let me to change delivery quantity greater than its related sales order?
thanks.
Lida.Is it any way that system do not let me to change delivery
quantity greater than its related sales order?
Go to zeroVLP, select the item category and maintain "B" for the field Check overdelivery -
Sales BOM - Delivery Quantity check during post goods issue
I am working on a problem in my company. We are running ECC6.0 ehp 4. We are using standard ERLA functionality with sales bom (5) for product kits. Delivery manager has requested that we investigate a system check during delivery post goods issue. THe problem is that when shipper processes delivery, if they have to backorder they update pick and delivery quanity on the TAE item. They should also update TAQ delivery quantity, so that backorder amount is correct. If they make data entry error, backorder quantity is incorrect. The delivery manager has tried a number of attempts to re-train and correct mistakes. He is now asking that SAP issue a hard error if TAQ and TAE delivery item quantities are not the same.
I have searched on SAP Notes, Forms, and Google and do not see solution. I know that at delviery item category there is a minimum qty check for the item category. I've not found a user exit or configuration point that checks quanities. Does anyone know of out of the box solution? Or where would I put in custom user exit?
Test Case
Create Standard Order
Enter Material with Sales BOM
ITEM A Qty 10
BOM explodes with Item categories
ITEM A TAQ parent
ITEM B TAE child
Create Delivery
Delivery has item categories TAQ and TAE
TAE is pickable, TAQ no pick
Process TAE
Pick quantity of 5 items
Change delivery quantity to 5 items
Forget to change TAQ delivery quantity
Pack 5 items
Post Goods Issue the delivery.
Is there are requirement/routine than can be run at time of PGI that checks TAQ delivery quantity is the same as TAE delivery quantity. If quanities are not the same, show hard error and message do not allow PGI to complete.
Thank you
Tony RomainI tried setting that field in the sale order this morning. By defaulting it to "C"; I was able to get warning message for TAE line. I was able to post goods with TAE and TAQ, being different quantities. I need the check to determine if TAE and TAQ delivery quantity are different. Using this fields seems to be line specific. Thanks for the suggestion. I now know what that field does to the delivery.
I rewarded points.
Thanks,
Tony -
Enhancement to change the quantity while creating outbound delivery
Dear All,
Is there any enhancement to change the Actual Quantity while creating the Outbound delivery.
I have tried using the BAdI LE_SHP_DELIVERY_PROC in the method CHANGE_DELIVERY_ITEM. But i am not able to change the quantity. In the runtime it allows me to change the quantity. After saving the document the quantity is not changed.
I do not know what all are the parameters and fields to be passed to change the quantity. If anyone knows please help me.
Anyone guide me to do this requireemnt.
Thanks & Regards,
M.Ashok kumar.Hi Ashok,
I have a similar issue, i have done the same as you did by changing the fields LFIMG_FLO and LGMNG_FLO.
But though Delivery qty is getting update but picking qty is remaining the same.
Suppose when user give Delivery qty as 8 and Pick qty as 8, i am able to change the delivery qty to 5 but not Pick qty to 5.
can you please let me know how to acheive it.
Regards,
Kartheek. -
How to block change of delivery quantity in VLO1N
The system should not allow the change of delivery quantity in VLO1N, say if in sales order the quantity is 10 & they change in VLO1n as 12
Hello Prem,
What I understand from your post is that you want that a delivery document created for a Sales order should not allow the quantity to go beyond the Sales Order Quantity.
You can do this by going to the following customizing entry.
First determine the item category relevant to you here:
LE -> Shipping -> Deliveries -> Define Item Category determination in Deliveries
Then go to "Define Item Categories for Deliveries". Open the relevant item category. In the field "check overdelivery" Provide value "B" and save.
Hope this helps. -
How to change actual quantity in Outbound delivery User exit
hi all ,
My requirement is to change the quantity of outboud delivery according to some logic .but my issue is after writing the code MV50AFZ1 , system is not considering the quantity changed by me , it is taking the quanity directly from sales order confirmed quantity .
please anybody help on this issue .Hi,
Under which user exit have your written your code:
USEREXIT_MOVE_FIELD_TO_LIKP or
USEREXIT_MOVE_FIELD_TO_LIPS or
USEREXIT_SAVE_DOCUMENT or
USEREXIT_SAVE_DOCUMENT_PREPARE
I think if you write your code within the USEREXIT_SAVE_DOCUMENT, it should work.
Regards,
Subramanian -
How to Change Schedule line Quantity in BADI 'ORDER_SAVE'
Hi,
I need to change the Schedule line quantity While Order saving. I am writing the code in ORDER_SAVE BADI. Using the Header guid i am reading the details and changing the quantity in Schedule line structure. How can i pass those values in to Memory so that order quantity will change. I try to Use CRM_ORDER_MAINTAIN but not able to change the quantity. Can anHi,
You need the One Order Function Module - CRM_ORDER_MAINTAIN to update the Schedule line value. So, you need to have a look at all the fields that are necessary to fill using the Tables and Structures. If you have the header guid, then you can probably pass the guid to CRM_ORDER_READ to read the values and then fill in the entries necessary to make the changes.
You can also debug the order code to get a feel of the necessary changes.
Hope this helps.
Thanks,
Samantak. -
Change in delivery quantity for batch managed items.
30.09.2010
Hi friends,
We have activated batch management. During delivery after the batch is determined and if i want to change the delivery quantity say for example from 50 to 30 then first i have to go and adjust the quantity in the batches to toal 30 and then come back and change the delivery quantity from 50 to 30.
After searching the forum i have found user exits, but other than the user exits is there a standard configuration wheren if i change the delivery quantity the quantity is adjusted in the batches. Please advise.
Regards,
Udaynath.Udaynath
Did you try working with the batch strategy config?
Try working with fields a) Over Del allowed, and b) Qty proposal.
Path: SPRO/IMG/Logistics - General/Batch Management/Batch Determination and Batch Check/Strategy Types/Define Sales and Distribution Strategy Types
Hope this helps. Let me know. -
Change (convert) delivery quantity
Dear all,
Does anyone know how I can change the delivery quantity ?
What we ant to achieve is the following:
- an order has been created with a quantity in sales units for example 10 BAG
- at creation of delivery, we would like to convert the sales order quantity to the unit of issue (MARC-AUSME) if this one is different from the sales order sales unit (for example PAL iso BAG) ...
I tried a few things yet to change the quantity (and unit) to the converted one, but it all didn't work ...
Any idea how this can be done ?
Thanks in advance !
Greetz,
Kurt.select single kwmeng vrkme into (lv_kwmeng,lv_vrkme)
from vbap
where vbeln = lips-vgbel
and posnr = lips-vgpos.
select single ausme into lv_ausme from marc
where matnr = lips-matnr
and werks = lips-werks.
if sy-subrc eq 0 and lv_ausme is not initial.
call function 'ZCF_UT_UNIT_CONVERSION'
exporting
matnr_imp = lips-matnr
unit_new_imp = lv_ausme
unit_old_imp = lv_vrkme
value_old_imp = lv_kwmeng
importing
value_new_exp = lv_lfimg
exceptions
invalid_input = 1
invalid_output = 2
overflow = 3
others = 4.
if sy-subrc <> 0.
* message id sy-msgid type sy-msgty number sy-msgno
* with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
lips-lfimg = lv_lfimg.
lips-vrkme = lv_ausme.
endif. -
Delivery quantity changed while delivery was being picked .
Hi Friends .
I have a big problem, because the delivery quantity changes while the delivery was being picked.
This is the positively the 3rd time that we have seen this, possibly the 4th, recently.
Delivery was created this morning for 800pc. Batch determination was telling the picker to pick from perticular storage location SLOC 112. (all 800pc) (25pc =1 pallet)
The picker knew that he was picking 32 pallets from that row.
After he picked 32 pallets, the system was telling him that he needed to pick 2 more pallets.
At that point, I saw delivery .The quantity in the delivery had, at this point, increased to 850.
Delivery shows that 32 pallets that had been picked up to this point.
again it is calling to pick 2 more pallets.
at this point of time delivery is for 850 (not the original 800)
I have not changed the quantity in delivery or in order . how come delivery quantity has changed while materials are being picked .
Kindly I request your speedy reply as it's priority ticket .
Thanks in advance .
Jayapala S.hHi jayapala
The delivery qty can change while you pick the quantity if the stock is less than the stock that is to be actually you are going to deliver. As the stock is changing , check the stock in MMBE for that material.
Example :
Say you have created a sales order for 100pcs but when you are doing delivery material is taking only 75pcs because there are only 75pcs of stock in the storage location
Regards
Srinath -
VL02N-Delivery Quantity can be changed in standered by the user
Hi Gurus
In STO Scenario After Making The Delivery VL10B Replenishment Delivery in Background
In Change mode Delivery VL02N Delivery Quantity can be changed in std by the user how can i stop the changing the delivery quantity what should i do
please its my client requirement
Thanks in advanceDear Balarengan
I have searched in MM forum and found this thread which is relevant to your requirement
Forum post in ERP - Logistics Materials Management (MM): STO - How to control Over delivery ?
STO - How to control Over delivery ?
hope this helps you
SAP has a logic for not controlling the over delivery in STO in standard (unlike sales order to delivery we have the controls in Zero VLP or 0VLP for this) because STO happens between plants of a same company code or different company codes .The movement of stocks are between plants But in a normal sales the delivery happens to a customer who is actually a third person and hence a user can misuse the delivery quantity
A plant and an external customer cannot be treated as same
Hence in SAP standards over delivery is not controlled in standard settings like item category etc
Regards
Raja
Maybe you are looking for
-
I got an iMac first, let me call that iMac "A", and I used to sync my iPhone to A. Then I got a macbook, let me call that macbook "B". When I use B for the first time, I used Migration Assistant to transport all the files and settings from A. After t
-
I want to crop and/or zoom into a corner of a clip in my project, and then slowly zoom back out to show the entire clip. But I can't figure out how to accomplish this. When I use the crop or clip effect, it remains for the length of the clip. To give
-
BPC 10 MS Transformation format error using *MVAL with no Rejected items
I'm a bit perplexed, but maybe I'm being too ambitious. I am trying to combine a year field from a column in my data file with 12 data columns for each month of that year using *MVAL to pick up those columns. Basically I want to pull from the file
-
HT4970 How can I share a Task list in Reminders?
How can I share a Task list in Reminders?
-
Formatting an internationlised message - help please!
We are developing a multi-lingual application and all our text for field prompts and messages is held in the database in various ways. I'm developing a Reservation dialogue at the end of which I want to display a number of lines of text to the user s