08-22-2007 1:55 PM
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.
Thanks
08-22-2007 4:00 PM
08-22-2007 4:00 PM
08-22-2007 4:10 PM
Hi,
Thanks for the reply.
The thread was about handling units, but i want to update delivery for picking.
Please help with the issue.
thanks
08-22-2007 4:32 PM
You can use FM SD_DELIVERY_UPDATE_PICKING ,this is also RFC ..
field name VBPOK (VBPOKKOMMI-PIKMG)
This FM updates picking qty perfectly..
Thanks
Seshu
08-23-2007 1:39 PM
hi Seshu,
Could you please pass me the parameters for this rfc.
call function SD_DELIVERY_UPDATE_PICKING
IMPORTING
VBKOK_WA = VBKOK
NICHT_SPERREN = 'X'
AUFRUFER_T = 'X'
IF_ERROR_MESSAGES_SEND = 'X'
TABLES
VBPOK_TAB = t_VBPOK
PROT = t_PROTT .
COMMIT WORK AND WAIT.
Please correct me if it is wrong.
Waiting for reply.
Thanks in advance.
08-23-2007 2:47 PM
See the sample one :
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.
start-of-selection.
wa_vbkok-VBELN_VL = '0080009869'.
Fill the item level
i_vbpok-VBELN_VL = '0080009869'.
i_vbpok-posnr_vl = '000001'.
i_vbpok-matnr = '000000000300300610'.
i_vbpok-PIKMG = '9.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
.
commit work.
Looks like you passed all parameter properly.
Testing purpose ,take proper data and test it using one dummy program.
Thanks
Seshu
08-23-2007 3:46 PM
Hi 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
08-23-2007 4:20 PM
Hello Sirisha,
It could be data issue,When i see the program,it should work.
Check with functional guy..
Thanks
Seshu
08-23-2007 4:44 PM
Hi seshu,
I am trying to update the picking qty for 2 in a delivery note with 4 del qty in a single batch.It is working fine but when i am doing the same for rest of 2 it is not updating. When i asked func guy to check he said that nothing is wrong in the data. I think there might be any wrong in the code.
Please correct me.
Thanks
08-23-2007 8:28 PM
I am not able to figured it out since i did not have proper data at my system.
Please check in Debugging ,keep the break point at FM Level and see the results.
Pass the data properly ,first try to do manually and work on debugging later.
Thanks
Seshu
08-24-2007 2:32 PM
Hi experts,
This was the same problem with the other FM 'WS_DELIVERY_UPDATE_2' . I want to know tht the parameters which iam passing are right or wrong?
Please any one can say me where iam doing wrong.
Waiting for replies.
Thanks
08-27-2007 8:06 PM
Hi experts,
I am still waiting for replies.
Please help me with my issue.
thanks
02-06-2016 3:55 AM