Picking quantity using FM 'ws_delivery_update_2' in vl02n
Hi,
I can upload the picking quantity using this FM 'WS_DELIVERY_UPDATE_2' in vl02n.But after updating i cant delete the delivery no and screen becomes grey.It throws the error as
'A goods issue or goods delivery was already posted in the decentralized warehouse management system for the delivery. Therefore you cannot make any changes to the delivery that affect the stock update'
Pls help to rectify this.
Thanks
Bala
This Might help you
Re: Delete handling unit
Similar Messages
-
Update Picking Quantity using 'WS_DELIVERY_UPDATE_2' - URGENT
Hi Experts,
I am struck with an error in updating the delivery. I am using an rfc WS_DELIVERY_UPDATE_2 which is updating the picking quantity one for the first time in a delivery with two delivery quantity in a batch but when iam using it for the other one it is not updating the quantity. I think the parameters which iam passing to RFC might be wrong. I am using the rfc as follows:
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
VBKOK_WA = WA_VBKOK
SYNCHRON = 'X'
DELIVERY = DEL_NBR
UPDATE_PICKING = 'X'
COMMIT = 'X'
IF_DATABASE_UPDATE_1 = '1'
TABLES
VBPOK_TAB = TAB_VBPOK
PROT = I_PROTT.
Please correct me if anything is wrong in the interface.
Any quick response will be appreciated & rewarded.
ThanksHi seshu,
It is triggering an error tht interface is not complete.
so i changed the code:
tables: vbfa.
DATA : WA_VBKOK LIKE VBKOK.
DATA : I_VBPOK LIKE VBPOK OCCURS 0 WITH HEADER LINE.
DATA : I_PROT LIKE PROTT OCCURS 0 WITH HEADER LINE.
clear vbfa.
START-OF-SELECTION.
WA_VBKOK-VBELN_VL = '0080882358'.
SELECT SINGLE * FROM VBFA WHERE VBELN = WA_VBKOK-VBELN_VL.
IF SY-SUBRC = 0.
WA_VBKOK-VBELN = VBFA-VBELV. " Sales and distribution document
ENDIF.
Fill the item level
I_VBPOK-VBELN_VL = '0080882358'.
I_VBPOK-POSNR_VL = '900001'.
SELECT SINGLE * FROM VBFA WHERE VBELN = I_VBPOK-VBELN_VL AND
POSNN = I_VBPOK-POSNR_VL.
IF SY-SUBRC = 0.
I_VBPOK-VBELN = VBFA-VBELV. " Sales and distribution document
I_VBPOK-POSNN = VBFA-POSNV. " Item of an SD document
I_VBPOK-VBTYP_N = VBFA-VBTYP_N. " Document category
ENDIF.
I_VBPOK-MATNR = '9692A\260'.
I_VBPOK-CHARG = '0000010669'.
I_VBPOK-PIKMG = '1.0'.
APPEND I_VBPOK.
CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
EXPORTING
VBKOK_WA = WA_VBKOK
SYNCHRON = 'X'
NO_MESSAGES_UPDATE = SPACE
NICHT_SPERREN = ' '
AUFRUFER_T = ' '
IF_ERROR_MESSAGES_SEND = 'X'
TABLES
VBPOK_TAB = I_VBPOK
PROT = I_PROT
if sy-subrc = 0.
COMMIT WORK.
WRITE:/ 'success'.
else.
write:/ 'not success'.
endif.
It is working fine in updating a delivery with 10 qty for only 8 picking but later when i am using it for the rest i.e., 2 picking qty, it is not working.
Could please hepl me with this.
Thanks -
Picked Quantity not updated while using FM in background
Hi All,
We have a requirement to update the picking quantity in a delivery order (VL02N) through a custom screen.
Inorder to do the above operation we are using the Function Module SD_DELIVERY_UPDATE_PICKING_1. We find a strange behaviour while using this FM.
The FM updates the picking quantity when executed online, but when called in the program (By passing exactly the same parameters) it does not update the picking quantity even after using a COMMIT WORK command after the function module. While debugging it was found that the XLIPS intl. table and LIPS structure was not being populated when the FM was executed through a function call in program.
We tried using the WS_DELIVERY_UPDATE, but even this FM behaves in the
same way.
Please let us know as to how to over come this issue.
regards,
SandeepHi Babul,
Thanks for your reply. I actually tried using even the above mentioned FM. But I am faced with the same error. The problem is that in one of the includes LV50LF01 (Subroutine READ_DELIVERY) of the FM, the internal table XLIPS gets refreshed. This happens only when the FM is called in our program.
regards,
Sandeep -
BAPI's for Batch Split and Update Picking Quantity
HI All,
I have the delivery details(along with batch number, MATNR etc), now i need to split the batch for picking.
and then i need to sum the batch quantity and update this total quantity to the picking quantity and then update the delivery.
I tried to use this BAPI function module BAPI_INB_DELIVERY_CHANGE.
But i am unable to find the picking quantity field in this BAPI.
Any idea about how to split the batches using BAPI's??
and how to update the picking quantity using BAPI's?
Thanks in advance.
VijayHi,
Can you share the solution for the above issue/
Regards -
Picked Quantity to be made equal to Delivery Quantity in VL02n
Hello Experts,
Have a requirement, where upon when entering in VL02n with a delivery no, the Picked Quantity field (LIPSD-PIKMG) should be equal to Delivery Quantity (LIPS-LFIMG).
Only the exit USER_EXIT_READ_DOCUMENT of include MV50AFZ1 is being called when entering VL02n and in that i tried changing the value of LIPSD structure and even tried changing XVBFA-RFMNG field value, but it is not working.
I understand that LIPSD is structure and noticed that picked quantity is getting stored in VBFA-RFMNG field...
Please let me know if any one have come across the same requirement and resolved it technically, rather than functional approach of EK00 condition type or making the item category as non relevant for picking, we tried these options and it is not working for the business. I got to see many previous threads on this topic, but there was no conclusion or technical solution provided.
So looking for TECHNICAL solution based on your experience and whether it is resolved. Its kind of urgent and would appreciate the help of experts who have resolved it earlier. thanksOK got it resolved.
We have to use BADI LE_SHP_DELIVERY_PROC, methods CHANGE_FIELD_ATTRIBUTES and CHANGE_DELIVERY_ITEM. And it works.
thanks -
Update Picking quantity in VL02N?
Hi All,
In my application i am Using WS_DELIVERY_UPDATE_2 we can update picking quantity, it is working fine when we pick full quantity.
Suppose if i pick partial quantity, for example for one item total qty is 2, i am picking 1 first time and save, next time if i pick 1 second time it is not updating? how can we acieve this??
Thanks,
Venkat.Use below FM :
Clear : i_prot.
refresh : i_prot.
Delivery Update
CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
EXPORTING
do_commit = 'X'
TABLES
t_delivery_items = i_lips
prot = i_prot
EXCEPTIONS
conversion_overflow = 1
essential_data_missing = 2
error = 3
nothing_to_update = 4
lock_after_update_failed = 5
error_in_delivery_update = 6
OTHERS = 7.
COMMIT WORK.
Pass lips-lgort..
<REMOVED BY MODERATOR>
Thanks
Seshu
Edited by: Alvaro Tejada Galindo on Aug 8, 2008 4:51 PM -
Problem in using SD_DELIVERY_UPDATE_PICKING_1 - Picked Quantity
Dear All,
I am are facing a strange issue while using the FM SD_DELIVERY_UPDATE_PICKING_1. We have developed a custom program which calls the above FM to update the picked quantity ( PIKMG ) field in an Inbound Delivery order.
The FM is working fine for most cases, but for some articles in a Delivery order ( VL02N) , when the same delivery order is updated twice or more with this FM , the picked qty gets added up with the old qty.
Eg. Previous picked Qty is 6 CAR , I call the FM and populate the picked Qty field = 8 CAR. Now instead of the delivery order being updated with picked qty 8 CAR it shows up as 14 CAR.
This happens only in the case of few articles, for the rest of the articles the picked field is updated with the new value. I have checked the conversion factor for the problematic articles in material Master and they seem to be fine. Any suggestion on why this could happen ? Any help will be highly appreciated.
Regards,
SandeepHello Sandeep,
I am facing the same problem, do you have a solution for this behaviour?
Regards
Henryk -
In Delivery (VL02N), the pick quantity to be defaulted to 1
Hi,
I would like to make the PICK QUANTITY = 1 by default in the delivery document (VL02N transaction).
I have tried with MV50AFZ1 makings LIPSD-PIKMG and *LIPSD-PIKMG = 1. The value '1', is not reflecting to the pick quantity of delivery. Can you please suggest me which user exit to be used for this requirement.
Regards
BadariHi,
The Badi on SAVE button
Badi: LE_SHP_DELIVERY_PROC
Method : SAVE_AND_PUBLISH_DOCUMENT
Please close the tread if solved
Regards,
Aditya -
How to change the pick quantity in outbound delivery using bapi
Hi,
I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
plas advice any BAPI to change pick quantity
Regards,
KrishnaKrishna....have a look in the below threads where there was a similar requirement..
error while using BAPI_OUTB_DELIVERY_CHANGE
change outbound delivery -
WS_DELIVERY_UPDATE_2 - picked quantity with negative values
Hello All,
I have a problem when I call function WS_DELIVERY_UPDATE_2.
I have to update picked quantity from the delivery. If I have to update qty from 2 to 3, there is no problem. The corresponding parameter (pikmg) will contain '1' and the new values will be 3.
But the problem is when I want to have a smaller value. If I have to update qty from 3 to 2, the parameter will contain '-1' , but this parameter can only have positive values, so an error message is returned.
Does anyone know how to specify a smaller picked quantity or how to decrease this quantity?
Can anyone help me?
Many thanks in advance.
Best Regardscheck if you are passing the below parameters.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = ls_vbkok
no_messages_update_1 = 'X'
commit = 'X'
delivery = p_delivery
if_error_messages_send = ' '
IMPORTING
ef_error_any = lv_error_any
ef_error_in_item_deletion = lv_error_in_item_deletion
ef_error_in_pod_update = lv_error_in_pod_update
ef_error_in_interface = lv_error_in_interface
ef_error_in_goods_issue = lv_error_in_goods_issue
ef_error_in_final_check = lv_error_in_final_check
ef_error_partner_update = lv_error_partner_update
ef_error_sernr_update = lv_error_sernr_update
TABLES
vbpok_tab = p_vbpok
tvpod_tab = p_tvpod. -
Update picking quantity in delivery (Batch split items) using function modu
Hi All,
I need to update a picking quantity with zero value in delivery for batch split items (Item numbers start with 900001. etc).I'm trying to use WS_DELIVERY_UPDATE
and SD_DELIVERY_UPDATE_PICKING. I'm passing parameter VBKOK-KOMUE , and all other details, but it is not updating.
I'm able to update delivery quantity of same item with zero value but not picking quantity.
Could you please let me know how to achive this.
Regards
VikramI think the number 900001is mean batch split line item.
example:
In Deivery Note:
Item 10
Batch 900001
Batch 900002
Item 20
Batch 900003
Batch 900004
That right, -
SD - copy picked quantity as delivery quantity ( VL02N )
Hi everybody, I will be appreciate if sombody can helpme.
I need to copy the delivery quantity to the picking quantity, becouse this is the most common situation that happend in this company. But, when I tried it, nothing happend.
So, been in the VA02, I go -> Edit -> Copy Picked Quantity as Delivery Quantity, but nothing happend. Only sendme this warning message "Delivery quantity must be entered for the item".
It's seems as something left me.
Thanks,
JEOS.First check the Delivery Item category"OVLP", whether "Picking relevance" check box is marked or not.
If it is activated then you have to pick the material.
For that, you have to create a Transfer order for the Delivery (LT03). When you create a Transfer order, Enter your Warehouse no , Plant Delivery document number and proceed.
The Delivery quantity should be automatically copied as Picking quantity which you can check in the overview screen in Picking Tab.
It is mandatory that the Delivery quantity and the Picking quantity must be same to do PGI.
As Picking is relevant for the item, so you must ensure that Picking location determination assignment have been done.
Otherwise, you can remove the activation from the Picking relevance field from the Delivery item category and try once. -
LSMW Custom program for updating picked quantity in outbound delivery
I have been tasked with creating an LSMW that will update the picked quantity in an outbound delivery. I originally thought of using a recording on transaction vl02n, but I need the LSMW to work with variable amount of item lines.
Through some research I figured out that FM WS_DELIVERY_UPDATE_2 can update the picked quantity. I have successfully created a custom program that calls this FM.
I have created what I believe to be the correct entries in the SXDA0, SXDA1, SXDA2, and SXDA3 tables to make my custom program work with LSMW. I am able to find my program in the "Maintain Object Attributes." I am also able to "Maintain Structure Relations Step" (screen shot attached) I am currently using VBKOK and VBPOK for the header and line item structures respectively.
My difficulty is converting the data. I have tried everything from having no conversion rules to mapping many fields and I always receive the following error (screen shot also provided).
Error analysis
The statement
"Move src TO dst"
requires that the operands "dst" and "src" are convertible.
Since this statement is in a Unicode program, the special conversion
rules for Unicode programs apply.
In this case, these rules were violated.
Program /SAPDMC/SAP_LSMW_CONV_FORMS
Include /SAPDMC/SAP_LSMW_CONV_FORMS
Row 1,080
Module type (FORM)
Module Name TRANSFER_RECORD
Since I have run the conversion with no conversion rules I am very confused as to why I am still receiving this error. Any insight would be greatly appreciated.For anyone I have uncovered some interesting things about my issue. I started going through the conversion code piece by piece trying to figure out what data element the system was choking on.
After digging though the program and using the debugger I found out that the issue was in FORM transfer_record.
ASSIGN (g_record) TO <l_record>.
CASE g_objecttype.
WHEN '01' OR '02'.
gt_buffer-record = g_record.
gt_buffer-data = <l_record>.
APPEND gt_buffer.
If this LSMW was working
g_record = 'VBKOK'
<l_record> = 'VBKOK'
But what is actually happening
g_record = 'VBKOK'
<l_record> = "Structure of some sort
I do not know why this is happening since the field symbol is being assigned right before this piece of code. Any suggestions are greatly appreciated. -
Goods picking and Post goods issue in VL02N
Dear All,
Am hving problem in Picking goods and Post goods issue.
This is for the Stock Transport Order with Delivery via Shipping
Supplying plant is 1000(SAP std,sloc 0001) and Receiving plant 1100(sloc 0001).
Sales org:1000
Distrbn Chnnl:10
Division:00
1.maintained matrial for both the plants.
2.Creted STO by using DOC type as "UB" and item cat "U".
3.And getting the Shipping data for the material in the STO.as shipping point is 1000.
saved the Po.
4.After that i done the GR w/o PO for the material using Mvt type 501.
5.Then,VL10B creating Delivery doc.n this is also created.
6.but when i do the picking and PGI in VL02N there picking field is greyed out bt i have tried to mangae that when i give the picking Qty in the picking qty field system is throwing the following error.
<b>Item to be picked by WM (picking quantity cannot be entered)
Message no. VL118
Diagnosis
For this item, picking is carried out using warehouse management transfer orders since the material is stored in a warehouse with random storage.
System Response
The system does not allow you to enter a picking quantity manually. The picking quantity is copied automatically into the delivery during the creation of the corresponding transfer order.</b>
is any data missed by me while doing this process?
pls let me know n help me in this regrds
Thank you allHi Vijay
By changing storage location you could do b'coz the new storage location is not maintained with warehouse, hence no need to perform warehouse transactions (TO creation and confirmation) before inventory mgmt transactions (PGI).
For trying pick up with WH, first u should have enough stocks in approppriate storage bins and u should perform pick up by creation of TO and confirmation.
warm regards
sairam akundi -
Pbm in updating delivery quantity and picked quantity in VL03N transaction
HI all,
I m using the BAPI 'WS_DELIVERY_UPDATE_2' for changing the picked quantity in VL03N transaction.
But this BAPI is not changing the picked quantity. Instead it add the old quantity with the new quantity what i mentioned in the ITEM_DATA (VBPOK_TAB table) of this BAPI..
For example, if the delivery quantity is 3 and picked quantity is 3 for a material item,
I want to change both the quantity as 2. Is is possible to change both the quantities through BAPI?
Im using BAPI_OUTB_DELIVERY_CHANGE to update the delivery quantity as loong as the picked quantity is 0.
If both picked and delivery are same (for example, both are 2), then i need to change both the quantities (say 1).
So how can i update both the quantities?
If so, pls share the BAPI details for achieving this..
Regards,
Shanthinot answered
Maybe you are looking for
-
I'm getting the above message when I start FF6. Didn't have it when I first downloaded. I was renewing my First Mailwasher subscription when I first encountered it. I deleted FF6 and reloaded but this did not correct the problem. FF6 works fine after
-
Why doesn't my library folder show up in my home folder?
I suddenly realized that my library folder does not show up in my home folder. I can find items in the folder if I search for them, and if I navigate upwards I can see the Library folder. But if I do anything else, the folder disappears from my home
-
I migrated InDesign CS4 V. 6.0.6 to a newly purchased MacBookPro with Mac OS X V. 10.7.2. On opening InDesign it crashes reliably. Found a discussion site that suggest that the SING folder in System Library is the problem. That is true! More specific
-
I've watched the tutorials, I've checked the "RGB+Alpha" box, I've made sure to click the "toggle transparent" button etc... followed the tutorials to the T. But when I go to import them into my final cut proX timeline, they have black backgrounds
-
Safari on iPad 2 is crashing intermittently. I then launch it again and it comes back with my tabs, but then i have to load each one again. It seems to happen when i have several tabs open. Any ideas? I haven't tried cleaning cache. My friend has