Table where picking quantity is
Hi,
Im looking for the table where the picking quantity of a delivery is saved. I thought it was lips but its not.
Could you tell me, please?
Thank you,
Manel
Hi,
Yes you have to use..VBFA-RFMNG.
Ex..
DATA: V_RFMNG TYPE VBFA-RFMNG.
SELECT SUM(RFMNG) INTO V_RFMNG
FROM VBFA
WHERE VBELV = 'Delivery number'
AND POSNV = 'Delivery item number'
AND VBTYP_N = 'Q'. " This is required to get the correct picked quantity.
Thanks
Naren
Similar Messages
-
Exact field name and table name for Picking quantity
Hi All,
I need to know the field name for Picking quantity. If we go for VL02N transaction code and enter deliver number and go for picking tab, here in item details for picking quantity I need the exact field to catch it.
Thanks in advance.
Ramesh.Hi Ramesh,
You can find Picked quantity in below way.
table where picking quantity is
Regards,
Jai -
Table and table field for PICKING QUANTITY.
Hi friends,
I need to use PICKING QTY in script. but it is in structure LIPSD-PIKMG.
Please say Table and Field for Picking quantity.
I need a table and field.
THANKS in advance.
balaji.Hi Tarani, Rasmi,
Thank you for quick response.
LIPS-LFIMG is Delivery Qty . It is not Picking Qty.
please let me know for PICKING QTY to display in my Script.
Thank you. -
Table Name For 'Picked Quantity' Field in VL03 Transaction
Dear All,
I am not able to find out 'Picked Quantity' Field in VL03 Transaction.Can anybody provide me Table name and field name for the same.
Regards,
MayankHi Mayank / Masha.
Your requirement is to find out the picked quantity for the delivery document.
Please note that this value can never be found from any table & what you will find are only structures.
For this you need to use / run a function module to fetch the Picked Quantity
Functional Module: WB2_GET_PICK_QUANTITY
Goto Tcode SE37 & enter the function module.
Further enter the delivery details in the screen
I_VBELN - Delivery Number
I_POSNR - Item Number
And Execute.
E_PIKMG - the picked quantity.
If you require to find picked quantity for any report you can very well ask your ABAPer to include this function module in your program
Hope this solves your requirement
Regards,
Dhananjay -
Where to pass picking quantity value in BAPI_OUTB_DELIVERY_CREATENOREF
Hi All
this is usha
iam using BAPI for sales order creation and outbound delivery.
can any one suggest me where to passthe Picking quantity values in the BAPI_OUTB_DELIVERY_CREATENOREF and SD_SALESDOCUMENT_CREATE.
Thanks in advance.Hi
Check If this BAPI name is right?? :BAPI_OUTB_DELIVERY_CREATENOREF.
It says does not exist.
Regards,
Vishwa. -
Database Field for Picked Quantity in Delivery
Hi All,
We want to know the Database Field for Picked quantity in a delivery. We checked the help for the field and it points to the LIPSD structure and the field PIKMG. However I could not find it in LIPS table or any other table. Could somebody please help me locate this field in the database ?
Thanks,
AmitHi, This is late response i know, but maybe someone else is looking for same and needs code for same. Please keep in mind that you also need to check if users have done LT0G return from GI are back to picking bin. In this case you need minus the TO from total picking qty.
ABAP routine:
form LIPS_PICKED using LS_LIPS type LIPS.
data: LT_VBFA type table of VBFA,
LS_VBFA type VBFA,
LS_LTAP type LTAP.
select * from VBFA into table LT_VBFA "Fetch to data from doc flow and count picked
where VBELV = LS_LIPS-VBELN
and POSNV = LS_LIPS-POSNR
and VBTYP_N = 'Q'.
clear LS_LIPS-LFIMG.
loop at LT_VBFA into LS_VBFA.
select single * from LTAP into LS_LTAP
where LGNUM = GS_SCREEN_100-LGNUM
and TANUM = LS_VBFA-VBELN
and TAPOS = LS_VBFA-POSNN
and PQUIT = 'X'. "Picked!
if SY-SUBRC = 0.
if ls_ltap-vltyp = '916'. "Source is GI area => LT0g done, it is minus!
LS_LIPS-LFIMG = LS_LIPS-LFIMG - LS_LTAP-VISTA.
ELSE.
LS_LIPS-LFIMG = LS_LIPS-LFIMG + LS_LTAP-VISTA.
endif.
endif.
endloop.
endform. "lips_picked -
Delivery picking by inputting picked quantity on batch input subitem
Hi All,
For example: there is one item in a delivery document which is batch splitted into a subitem 900001. now i want to pick this delivery in my program.
in foregroud, i need to input 'picking quantity' on subitem level(900001) so that the status can be changed from A to C meaning picking finished.
I tried using FM LE_MOB_DELIVERY_UPDATE but there isn't field for 'picking quantity'. some one advised using SD_DELIVERY_UPDATE_PICKING, but seems it has the same problem.
Thanks advance for your help.
Legend.Resolved.
I am using function 'SD_DELIVERY_UPDATE_PICKING' for the picking:
Part 1. Populate VBKOK
REFRESH VBKOK.
Delivery# - DC2_VBELN
VBKOK-VBELN = DC2_VBELN.
VBKOK-VBELN_VL = DC2_VBELN.
APPEND VBKOK.
Part 2 Populate VBPOK
Delivery Items - ITAB_LIPS
REFRESH ITAB_LIPS.
SELECT * FROM LIPS
INTO TABLE ITAB_LIPS
WHERE VBELN = DC2_VBELN.
REFRESH VBPOK.
LOOP AT ITAB_LIPS.
CLEAR VBPOK.
VBPOK-VBELN_VL = ITAB_LIPS-VBELN."Delivery
VBPOK-POSNR_VL = ITAB_LIPS-POSNR."Delivery Item
VBPOK-POSNN = ITAB_LIPS-POSNR."Delivery Item
VBPOK-VBELN = ITAB_LIPS-VBELN."Pick Order
VBPOK-VBTYP_N = 'Q'.
Check UECHA to determine whether the item is splitted subitem,
because we only want pick the splitted subitem.
IF ITAB_LIPS-UECHA IS NOT INITIAL.
VBPOK-PIKMG = ITAB_LIPS-LFIMG."Picked Qty
VBPOK-MEINS = ITAB_LIPS-MEINS.
ENDIF.
VBPOK-NDIFM = 0.
VBPOK-TAQUI = ' '.
VBPOK-CHARG = ITAB_LIPS-CHARG.
VBPOK-MATNR = ITAB_LIPS-MATNR.
VBPOK-ORPOS = 0.
APPEND VBPOK.
ENDLOOP.
Picking
CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
EXPORTING
SYNCHRON = ''
NICHT_SPERREN = ''
VBKOK_WA = VBKOK
AUFRUFER_T = ''
TABLES
VBPOK_TAB = VBPOK
PROT = PROT.
COMMIT WORK.
Hope this help for those have the similar problem.
Thanks.
Legend. -
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 -
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 -
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 -
Picked quantity not getting updated in ERP outbound delivery
Hi All,
I have an outbound delivery which is replicated from ERP to EWM. I have confirmed the Warehouse task for picking & completed PGI in EWM system. The status update has taken place in ERP delivery (i.e ERP delivery status shows that goods movement is complete and the distribution status shows processing of the delivery in the decentralized system is complete). However the picked quantity (LIPS-PIKMG) is not getting updated in the ERP delivery. How do i make this happen?
Regards,
Smitha PaiHi Smitha
Picked Qty in ECC will never get updated when do the PGI in EWM. I think, this field is not designed when delivery is distributed as system assume picking will be done in other system in this case it is EWM.
But You can always refer VBFA (Document flow table) to identify the picked quantity if you are working z report or interface to send this information.
Thanks,
Jagdeep -
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. -
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
-
hi, can anybody tell me what is the field for open picking quantity and from which table i shld get it. actually am doing a print program for STO Delivery.
thnx in advance,
santosh.HI SESHU,
LFIMG is ACTUAL QUANTITY IN SALES UNITS. cani use this field for picking quantity. because it is total quantity delivered right. pls help me regarding this.
thnx in advance,
santosh. -
Database Table where MRP Run results are saved-Urgent
Hi Gurus
i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP Quantity for a given material in a particular plant
and ignore zero quantities in the receipts and issues field
i tried in <b>MDTB</b> table, MDTB-MNG01 Quantity received or quantity required but it has no entries maintained in it and so it cannot be used.
So can you please help me with the table where i can get this information asap
thank you very much for your time and solutionPlease use the code below which will help you in extracting data from MRP table.
You can enhance this program basing on your requirement.
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A sample program to extract data from the MRP table.
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REPORT ZMRPTABLE.
TABLES: MDKP, "Header Data for MRP Document
MDTB, "MRP table
MDTC, "Aggregated MRP table items
T457T. "Description of MRP elements
DATA: BEGIN OF MDTBX OCCURS 0.
INCLUDE STRUCTURE MDTB.
DATA: END OF MDTBX.
SELECT-OPTIONS: PLANT FOR MDKP-PLWRK OBLIGATORY,
MATNR FOR MDKP-MATNR OBLIGATORY.
CLEAR: MDKP, MDTB.
SELECT * FROM MDKP WHERE DTART EQ 'MD'
AND MATNR IN MATNR
AND PLWRK IN PLANT.
WRITE:/ MDKP-MATNR, MDKP-PLWRK.
IF MDKP-CFLAG EQ 'X'.
CLEAR MDTBX. REFRESH MDTBX.
IMPORT MDTBX FROM DATABASE MDTC(AR) ID MDKP-DTNUM.
LOOP AT MDTBX.
MOVE MDTBX TO MDTB.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDLOOP.
ELSE.
SELECT * FROM MDTB
WHERE DTNUM EQ MDKP-DTNUM
ORDER BY PRIMARY KEY.
SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
AND DELKZ = MDTB-DELKZ.
IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
MDTB-MNG01, MDTB-LGORT.
ENDSELECT.
ENDIF.
ENDSELECT.
This is taken from www.sap-img.com
Hope this helps you.
Maybe you are looking for
-
Depreciation for transfer asset
Hi Sap Guru, I use ABUMN to transfer asset A (100%) to asset B. And the APC value is 617.00 and accumulated depreciation is 37.02. I use " percentage from useful life (0011) ". but I find the system use APC amount to calculate the depreciation for
-
IMP-00017 / ORA-22851 - Please help me
Sir, Please help me to solve this import error. =================================== IMP-00017: following statement failed with ORACLE error 22851: "CREATE TABLE "LOAN" ("LOAN_ID" NUMBER(11, 0) NOT NULL ENABLE, "USERNAME" VA" "RCHAR2(12), "PRODUCT_ID"
-
When I try to log out or switch user I see only the console and can log in and out to both my users. Nothing crashes. This didn't help https://wiki.archlinux.org/index.php/GD - _on_logout What I did from the very beginning: 1. At Arch installation I'
-
Which framework? Struts/Faces/JATO?
Hi I've just started a new job and am refactoring and redesigning a JSP/servlet J2EE application which is running on Sun One AppServer 7. It is a real mess so far and I need to implement an application framework. This needs to: - rationalise the desi
-
Hi, I am trying to change the AMOUNT field in VK12 against a material. FM i am using is : RV_CONDITION_COPY I am passing the new value of amount to COPY_RECORDS-KBETR but after execution it is not reflecting in VK12/VK13. Can anyone tell me the corre