Problem in FM:WS_DELIVERY_UPDATE to change picked qty and delivery qty
Dear friends.
i am trying to chande picked and del qty's through above fm.
i am getting an error message like this:
(Required field in interface to delivery update missing 0080000155 000010
VBELN 000000 Message no. VL280 )
i am pasing all requires parameters.
please help me if any thing is missed..........
here i am giving my code:
DATA:i_vbeln TYPE vbeln,
i_posnr TYPE posnr,
i_new_delqty TYPE lips-lfimg,
wa_lips LIKE lips OCCURS 0 WITH HEADER LINE,
wa_likp TYPE likp.
i_vbeln = '0080000155'.
i_posnr = '000010'.
i_new_delqty = '30'.
SELECT SINGLE * INTO wa_likp
FROM likp
WHERE vbeln = i_vbeln.
SELECT SINGLE * INTO wa_lips
FROM lips
WHERE vbeln = i_vbeln
AND posnr = i_posnr.
DATA:gs_vbkok LIKE vbkok,
gt_vbpok LIKE vbpok OCCURS 0 WITH HEADER LINE,
gt_prott LIKE prott OCCURS 0 WITH HEADER LINE,
gs_prott LIKE prott.
DATA:xfeld1 TYPE xfeld,
xfeld2 TYPE xfeld,
xfeld3 TYPE xfeld,
xfeld4 TYPE xfeld,
xfeld5 TYPE xfeld,
xfeld6 TYPE xfeld,
xfeld7 TYPE xfeld,
xfeld8 TYPE xfeld.
gs_vbkok-vbeln_vl = i_vbeln.
gs_vbkok-vbeln = i_vbeln.
gs_vbkok-brgew = wa_lips-brgew.
gs_vbkok-kzbrg = 'X'.
gs_vbkok-kzntg = 'X'.
gs_vbkok-vbtyp_vl = wa_likp-vbtyp.
gs_vbkok-ntgew = wa_likp-ntgew.
gs_vbkok-gewei = wa_likp-gewei.
gs_vbkok-lgnum = wa_likp-lgnum.
gs_vbkok-kodat = wa_likp-kodat.
gs_vbkok-KOMUE = 'X'.
*gs_vbkok- = WA_LIKP-
*gs_vbkok- = WA_LIKP-
*gs_vbkok- = WA_LIKP-
gt_vbpok-vbeln_vl = i_vbeln.
gt_vbpok-posnr_vl = i_posnr.
gt_vbpok-matnr = wa_lips-matnr.
gt_vbpok-charg = wa_lips-charg.
gt_vbpok-lianp = 'X'.
gt_vbpok-kzntg = 'X'.
gt_vbpok-kzbrg = 'X'.
gt_vbpok-lfimg = i_new_delqty.
gt_vbpok-lgmng = i_new_delqty.
gt_vbpok-umvkz = wa_lips-umvkz.
gt_vbpok-umvkn = wa_lips-umvkn.
gt_vbpok-TAQUI = 'X'.
gt_vbpok-brgew = wa_lips-brgew.
gt_vbpok-ntgew = wa_lips-ntgew.
gt_vbpok-gewei = wa_lips-gewei.
gt_vbpok-vrkme = wa_lips-vrkme.
gt_vbpok-meins = wa_lips-meins.
gt_vbpok-VOLUM = wa_lips-VOLUM.
gt_vbpok-VOLEH = wa_lips-VOLEH.
gt_vbpok-vbeln = wa_lips-KDAUF.
gt_vbpok-posnn = wa_lips-KDPOS.
*gt_vbpok-vbeln = wa_lips-vbelv.
*gt_vbpok-posnn = wa_lips-posnv.
gt_vbpok-umrev = wa_lips-umrev.
gt_vbpok-vbtyp_n = wa_lips-vbtyv.
gt_vbpok-werks = wa_lips-werks.
gt_vbpok-pstyv = wa_lips-pstyv.
gt_vbpok-ormng = '15'.
gt_vbpok-ndifm = '15'.
gt_vbpok-orpos = i_posnr.
gt_vbpok-pikmg = '1'.
gt_vbpok-SPE_DLV_QTY_FROM = i_new_delqty.
APPEND gt_vbpok ."TO gt_vbkok.
gt_prott-vbeln = i_vbeln.
gt_prott-posnr = i_posnr.
gt_prott-matnr = wa_lips-matnr.
gt_prott-vrkme = wa_lips-vrkme.
gt_prott-lfimg = i_new_delqty.
gt_prott-vrkme = wa_lips-vrkme.
APPEND gt_prott." TO gt_prott.
BREAK-POINT.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = gs_vbkok
synchron = 'X'
no_messages_update = ' '
commit = 'X'
delivery = i_vbeln
update_picking = 'X'
nicht_sperren = ' '
if_confirm_central = 'X'
if_wmpp = 'X'
if_get_delivery_buffered = 'X'
if_no_generic_system_service = 'X'
if_database_update = '3'
if_no_init = ' '
if_no_read = ' '
if_error_messages_send_0 = 'X'
if_no_buffer_refresh = 'X'
it_partner_update = ' '
it_sernr_update = ' '
if_no_remote_chg = ' '
if_no_mes_upd_pack = ' '
if_late_delivery_upd = ' '
IMPORTING
ef_error_any_0 = xfeld1
ef_error_in_item_deletion_0 = xfeld2
ef_error_in_pod_update_0 = xfeld3
ef_error_in_interface_0 = xfeld4
ef_error_in_goods_issue_0 = xfeld5
ef_error_in_final_check_0 = xfeld6
ef_error_partner_update = xfeld7
ef_error_sernr_update = xfeld8
TABLES
vbpok_tab = gt_vbpok
prot = gt_prott
VERKO_TAB =
VERPO_TAB =
VBSUPCON_TAB =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS =
IT_OBJECTS =
ET_CREATED_HUS =
TVPOD_TAB =
IT_TMSTMP =
IT_BAPIADDR1 =
SERNR_TAB =
IT_HURES =
Hi,
Thanks for the repl
i also passed..
vbeln_vl,
posnr_vl,
vbeln,
posnn
Still not working...any other info to pass to FM
Regards,
Raj
Similar Messages
-
Difference between pick qty and delivery qty
Hi,
My delivery qty is 5 pcs. However while making transfer order from within delivery, the Transfer order is being made automatcially for 17 pcs and so the pick qty is 17 pcs. Due to the differenc ein delivery qty and pick qty, I cannot do PGI in the delivery.
When I use LT0G, and give the delivery and warehouse no and movement type 999, the system does not allow the transaction and gives a message that, function not yet supported for Handling units. But I do not have handling units in my delivery. Neither the system allows me to cnacel the Transfer order thru LT15.
How to correct the above situation so that the TO does not pick up the qty greater than the delivery qty or what other alternatives are there. Also how to ensure that TO is made of qty which is equal to delivery qty.
Iam not aware of WM module, so kindlyu tell in detial pls.
regards
sachinIn IMG>LE>WM>Master Data> Define storage type.
Check In stock removal control whether "Full stock removal reqmt act" is active.
If this is active it will try to pull the total quant irrespective of your requirement.
Reward if useful.
Regards
EDWIN. -
Order qty and confirmed qty mismatch
Dear friends,
My requirement is System should not allow to go further if the sale order qty and confirmed qty(after avaialbility check) mismatch is there.Pls suggest.
Now currently system will check the availability qty and will show the information of confirmed qty in the another screen.and if we say continue the process, we can go ahead and save the document.but the document will be in open state.
So pls suggest the way i can go ahead for this requirement.
Regards
Mahendar.hi,
If u want to allow user to create SO as much as available qty..? means system sud create SO for order qty is equal to availble qty ...? if yes
then go the availbality check and find out availability check and checking rule..
and again go to OVZ9 remove the check box check with out RLT from rep.lead time tab
Resul is: If u enter in SO a10 qty ,and if you have only 5 qty in hand or in plant ,then system after checking the items it will change the order qty in SO(i e 5) automatically,
Caprin -
I need to display a Report which contain -- del QTY and INV QTY in one
Hi ALL,
I need to display a Report which contain
<b>Customer , Material , Order No, Delivery No, Billing No , Order Qty , Dev Qty, Bill Qty , Invoiced Qty and There Values in One Line .</b>
How can I Display, When I am executing the report against the Delivery Number Bill Qty and Invoiced Qty is showing Hash ( # ).
Do I need to right any Routines for this, if I am correct, where I have to write that code and what is the code ,
What are the Consolidation routines ?????
I am working on BI 7.
Regards ,
Shaik
Message was edited by:
shaikFrst check in backend, which all cubes have got data for each of three..
Corresponding you can go ahead with Multi/Infoset..
Look for reference no in all three cubes and pick one order and track tht by reference no in all cubes,
Hope it helps..
Thanks for points assigned -
Update picked quantity and delivery quantity in picking.
hi,
i completed delivery with reference of sales order, and also complete pgi useing tc vl02n . i want any standard function module or BAPI for update the picked quantity and delivery quantity in picking.
thanks in advance.Hi Dhanush,
Refer to the function module WS_DELIVERY_UPDATE for pick, pack, update serial numbers & PGI functions of the delivery.
Hope it helps!
Thanks!
Preethi. -
Open Qty and Received Qty for Open Purchase Order.
How to Fetch the open qty and received Qty of every Open purchase orders in EKPO table where ELIKZ = SPACE OR LOEKZ = SPACE. What are the table and field used? Kindly help me.
Hello Senthilramkumar,
Use ME2L/ME2N/ME2M with selection parameter WE101.
Hope this will help. -
REPORT-Sales Order Qty minus Delivery Qty
How to find Sales Order Qty minus Delivery Qty in a STd report other than t.code v.02
THanks in advance
PaulDear Paul
The report which you are asking is a Pending Order Report.
You better go for a Zreport & call your required fields in the report.
The selection field will be plant
Eg: You can incorporate in the report Sales Doc, Order type, Doc date, SP, SH, Region, sales area, material code, material description, Order qty, Pend qty, Pending value, pant, PO ref no., date, Customer currency etc.
Once all items delivered the doc number wont be in the report.
Regards
Deepu Pillai -
Where to get Received/Required Qty and Available Qty of MD16
Hi Experts!
Need your help!
I need to know where or how to get the values at the Received/Required Qty and Available Qty column found at MD16 order report.
Thanks!hey use MD04 for this purpose enter material and plant
and press enter
and u will get all details
hope it will be useful
cheers
s.janagar -
How to update picked qty as delivery qty while creating outbound delivery
Hi,
I am using badi definition LE_SHP_DELIVERY_PROC to update delivery qty as picked qty at the time of creating delivery. By using method SAVE_DOCUMENT_PREPARE I am populating delivery qt(yCT_XLIPS- G_LFIMG) to picked qty(CT_XLIPS[1]-PIKMG). and i am also populating update flag as 'I'. after saving the delivery document i am not able to update picked qty which was populated in BADI. could you please suggest anything needs to care. thanks in advance.
Regards,
PeranandamHi,
I did a little test and, within the method CHANGE_DELIVERY_ITEM, itu2019s possible to fill the picking quantity (structure CS_LIPSD) but unfortunately during the save the added information is lost.
This is because the BAdI method is fired too soon and the routine PICKMENGE_BEARBEITEN (SAPFV50P) is not called at all.
The problem is quite complex; even after changing the picking quantities, the picking status still remains open!
The picked quantity is generally filled:
u2022 by printing the picking list
u2022 Warehouse Management by creating a transfer order
u2022 or by manual entry
Otherwise, it is assumed that picking has not yet been initiated and the result is that picked quantity is ignored.
In my opinion itu2019s very difficult to solve your problem using only the BAdI implementation.
I suggest you to propose an alternative solution such as the automatic processing of Picking Output EK00; easy to activate and absolutely standard!!!!!!
Regards,
Andrea -
Diffrence in incomming order qty and billing qty in cube 0sd_c03 & 0sd_c01
Dear All.
i have uploaded 2 cubes 0SD_C01 & 0SD_C01 from our R/3 data, SAP recommed for 0SD_C03 for sales analysis and their best practice is also based on 0SD_C03 but it is very strange the values of both the cubes are not the same when i run the report but the values of 0SD_C01 is 100% same as R/3 values i.e. mcsi reports show the same incomming and billing qty as i can see in report for 0SD_C01 but strang to see in 0SD_C03 there is diffrence in these values.
can any one explain why did this happen as SAP recommed to use lbwe data sources and their best practice also base on 0SD_C03 and the other one i.e. 0SD_C01 is based on old LIS structures.
during exploration i come to know that in some material orders incomming and billing quantaties are same but diffrence in most of them.
any help will be highly appreciated.
thanks & best regards,
ZeeshanHi,
There are somany Routines for Keyfigures in both Cubes, I hope you may using 0QUANT_B key figure for Qty, the reason is there may be some difernece in Routines in both cubes, so you need to check it tehn you check in teh reports, whether is there any restrictions, you need to iopen the each node and check i nthe both reports.
I also faced teh same problem with MCSI and BW reports, MCSI, we can customizi it an dut is just InfoStructure and having routines internally. So you need to take one material, plant and date where the diffrenece is coming then track it.
Check OSS NOTES:
Note 166996 - BW InfoCube 0SD_C03: incorrect incoming order qty
Note 1156259 - Update rules incorrect for InfoCube 0SD_C03
Thanks
Reddy
Edited by: Surendra Reddy on Aug 10, 2009 7:19 AM -
The sales oreder # has a material to deliver it's requirement is 8400 and the stock is good but q"ty of 340 EA has not been picked up ...
IN the Delivery the Qty picked uo is 8060 not 8400.
but the order status in now fully delivered
any body can answer what is exact issue there an dis there any setting have to be made as there is no partial delivery in order but delivery qty is less than order qty.
if want more info pl let me know..
Regards !
Vaibhavbut the order status in now fully delivered
Check for your item category in VOV7 for the field Completion Rule
thanks
G. Lakshmipathi -
Open Qty and Delivered Qty remains same even after Return
Hello
After making return, the open qty remains the same and its not reflecting the return qty.
for e.g.
I have made a Sale Order of 100 qty
I delivered 20
In sales order my Delivered Qty is 20 and Open qty is 80
Now I made a Return of above 20 Qty
But after that the Order is still showing Delivered 20 and Open Qty 80
The Open qty should be 0 at this stage.
Regards
IndrajitHi Indrajit ,
Your doubt is genuine .
The Open quantity of SALES ORDER , at item level (row) does not increase by returning the goods.
Once you have delivered the goods it will reduced from the Open quantity .
.You have to create a new Sales Order for further Open quantity
Thanks
Ashish -
hi Experts,
What is the field for Order Qty in VBAP and Deliver Qty in LIPS.
Thanks.Hi
Find the Field names.
Order Qty - VBAP-KWMENG
Deliver Qty- LIPS-LFIMG
But here you can link these Tables only thru VBFA table.
Regards,
Sreeram -
PO Qty and GR Qty is not coming for 2LIS_06_INV
Hi Expert,
I am trying to load data on 2lis_06_inv datasource but after filling the datasource, PO Qty(BSMNG) and GR Qty(WEMNG, BPWEM) fields does not contain any data but the invoice fields are contain data.
Thanks and Regards
Lalit KumarHi Expert,
I have already checked the data on R/3 side after filling the setup table and these fields are not
hidden that i've already checked but still those fields are not containing any data.
Thanks and Regards
Lalit Kumar -
Billing qty should be equal to or less than order and delivery qty
Hi Gurus ,
Can anyone tell me how to configure a sales document so that the order qty ,delivery qty does not exceed the billing qty.
Thanks N Regards,
SiddharthaHi,
Order qty will always be equal to Billing qty or more in case of partial delivery.
eg. Order qty 10 EA
Del.. Qty 10 EA or lesser (in case of partial delivery)
Billing Qty 10 EA or equal to Del. qty.
So, order qty will be equal to bill. qty or more
Can you please elaborate your requirement. It is not clear
Regards,
Sagar
Maybe you are looking for
-
Carrier Type In DMS for content server
Dear All, Can anyone help me in telling which carrier type i have to define in dc20 for Content server, if any required. i have configured content server in Oac0,oact, csadmin, but while saving file on server (check in) it is giving me this error Err
-
Help needed in executing SQL query...
Hi, I am very new to JDeveloper. Curently i am tryin to execute an SQL query from the BPEL process, the output of the query is to be mapped to a variable field from a target xsd file. the query is fairly simple, like SELECT emp FROM emp_table WHERE e
-
Why does my executable crash when I try to run it?
My vi runs fine in LabView 6i, but when I build an executable and try to run it, it crashes. The program window starts to open, and then the crash occurs. This happens every time. Following the crash, I get Microsoft opportunity to send the detail
-
Hi, There is an urgent requirement, i want to know about Run Operating System Commands in file adapter. What are all possible commands for windows operating system? and how it works? Kindly send me your suggestions and links at the earliest. Your hel
-
Losing Z10 Storage Capacity / Free Space not increasing after file deletion in BB Link?
If anyone has tried adding and removing items to the z10 via blackberry link and noticed that once items are deleted the space that should be freed up completely disappears from BB link.... don't panic. I checked on my phone and the storage space is