WS_DELIVERY_UPDATE Function Module is not updating the Handling unit

Advertisement
Hi Experts,
I am using the Function Module WS_DELIVERY_UPDATE  for PGI and packing outbond delivery . I am getting the PGI date , Route.
but i am not getting the time in delivery field-WAUHR and i am getting the message 'Reqiured HU could not be found'.
Please find the attach code below:
FORM update_packing  USING wa_index.
  wa_index = wa_index + 1.
  w_track = int_delivery_data-zn12+0(20).
  itaverko-exidv       =  w_track.
  ltahus-exidv         =  w_track.
  itaverko-vhilm       =  p_shpmtl.  " from screen select parm
  ltahus-vhilm         =  p_shpmtl.
  w_brgew = int_delivery_data-brgew.
  SHIFT w_brgew LEFT DELETING LEADING ' '.
  itaverko-brgew                 =  w_brgew.
  ltahus-brgew                   =  w_brgew.
  SHIFT int_delivery_data-inhalt LEFT DELETING LEADING ' '.
  w_fcosts = int_delivery_data-inhalt.
  SHIFT w_fcosts LEFT DELETING LEADING ' '.
  itaverko-inhalt                 =  w_fcosts.
  ltahus-inhalt                   =  w_fcosts.
  itaverko-gewfx                  =  int_delivery_data-gewfx.
  ltahus-gewfx                    =  int_delivery_data-gewfx.
  INSERT itaverko INDEX wa_index.
  INSERT ltahus INDEX  wa_index.
ENDFORM.                    " UPDATE_PACKING
FORM update_delivery .
  CLEAR :   i_vbkok,ita_prot.
  REFRESH : i_vbpok,ita_prot.
  CLEAR: d_return.
  CLEAR:  ef_error_in_item_deletion_0 ,
          ef_error_in_pod_update_0 ,
          ef_error_in_interface_0 ,
          ef_error_in_goods_issue_0 ,
          ef_error_in_final_check_0 .
  READ TABLE int_delivery_data INDEX wa_index.
  IF sy-subrc = 0.
carry out goods issue
    i_vbkok-vbeln_vl = int_delivery_data-vbeln.  " Delivery nbr
    i_vbkok-vbeln    = int_delivery_data-vbeln.  " Pick Order
    i_vbkok-vbtyp_vl =  int_delivery_data-vbtyp.
    i_vbkok-wabuc = 'X'.       " post goods movement automatically
    L_VBKOK-KOMUE = 'X'.    " overwrite delvry qty with picking qty
   CONCATENATE 'US' INT_DELIVERY_DATA-ZN13 INTO W_ROUTE.
    i_vbkok-route = int_delivery_data-route.
    i_vbkok-kzroute = 'X'.
    i_vbkok-spe_kzgeoroute = 'X'.
    i_vbkok-packing_final  =  'X'.
   i_vbkok-wabuc  =  'X'.
    w_in_date = int_delivery_data-dattm+0(8).
    i_vbkok-wadat      =  w_in_date.
   L_VBKOK-WADAT_IST  =  W_in_DATE.
   w_gi_time       =  int_delivery_data-dattm+8(6).
    i_vbkok-wauhr          =  w_gi_time.
   w_track = int_delivery_data-zn12+0(20).
   t_sernr = w_track.
SET UPDATE TASK LOCAL and Perform PGI.
    CALL FUNCTION 'WS_DELIVERY_UPDATE'
      EXPORTING
          vbkok_wa           = i_vbkok
          synchron           = 'X'
          no_messages_update = ' '
         update_picking     = 'X'
         commit             = 'X'
          delivery           = int_delivery_data-vbeln
          nicht_sperren      = 'X'
          if_error_messages_send_0 = space
       IT_SERNR_UPDATE    = T_SERNR
      IMPORTING
          ef_error_any_0              = ef_error_any_0
          ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
          ef_error_in_pod_update_0    = ef_error_in_pod_update_0
          ef_error_in_interface_0     = ef_error_in_interface_0
          ef_error_in_goods_issue_0   = ef_error_in_goods_issue_0
          ef_error_in_final_check_0   = ef_error_in_final_check_0
          ef_error_sernr_update       = ef_error_sernr_update
      TABLES
*"      VBPOK_TAB STRUCTURE  VBPOK OPTIONAL
         prot                         = ita_prot
          verko_tab                   = itaverko        "  STRUCT VERKO
*"      VERPO_TAB STRUCTURE  VERPO OPTIONAL
*"      VBSUPCON_TAB STRUCTURE  VBSUPCON OPTIONAL
      IT_VERPO_SERNR               = T_VERPO_SERNR
*"      IT_PACKING STRUCTURE  REPACK_HU_WM OPTIONAL
*"      IT_PACKING_SERNR STRUCTURE  HUM_REP_SERNR OPTIONAL
*"      IT_REPACK STRUCTURE  HUM_REPACK OPTIONAL
*"      IT_HANDLING_UNITS STRUCTURE  HUM_REHANG_HU OPTIONAL
*"      IT_OBJECTS STRUCTURE  PGR_OBJECTS OPTIONAL
        et_created_hus               = ltahus  "STRUCTURE  VEKPVB
      EXCEPTIONS
          error_message = 1
          OTHERS        = 2.
    IF sy-subrc <> 0.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
  ENDIF.
ENDFORM.                    " UPDATE_DELIVERY
Could please help on this.
Thanks,
Rohit
Edited by: Rohit Sharma on Jul 24, 2009 3:25 PM
Edited by: Rohit Sharma on Jul 24, 2009 3:29 PM
Advertisement

Replay

Hi Joao,
I have the same problem. I tried to find the FM SD_OUTB_DELIVERY_CHANGE  but couldn't find it. Have you by any change specified the incorrect FM name here? If yes, can you please communicate the correct FM name?
Regards,
Divyaman

DYNP_VALUES_UPDATE not Updating the Field on my Dynpro

Hi. I want to create a dynpro where two fields are. Field 1 allows the user to enter a customer number, field two shall come up with a number that is calculated somehow. The calculation can last up to 20 seconds, so I dont want to make the user waite

Function module PTRA_WEB_EXPENSE_REPORT_GET_2 not working when used in loop

Hi All, I have used a function module PTRA_WEB_EXPENSE_REPORT_GET_2  in a custom fumction module which i am developing fetch the travel expense data . The function module PTRA_WEB_EXPENSE_REPORT_GET_2  returns the travel expense data based on the emp

Function module "RSAOU_BWBC_GET" not fou nd. Message no. RSAR051

when I active a datasoure in BW systme the system tell me this "Function module "RSAOU_BWBC_GET" not fou nd Message no. RSAR051" . I have conecting to R3 system in Sm59 ,and I active datasoure in R3 system use rsa5 and use rsa6 transpo

User Exit for Variable which calls to a Function Module is NOT working ???

Hi all,     I have a created a variable 'ZNBUSDAY' with Processing Type 'Customer Exit' on 0SCL_DELDAT  (Date). The query is on 0PUR_C04 and passing 0SCL_DELDAT  to Function Module  Z_WORKDAY to get the Next Business Day by using the company Calendar

Function module "Z_XSI_ACTIVE" not found

Dear all, I m getting an error Runtime Errors CALL_FUNCTION_NOT_FOUND Except. CX_SY_DYN_CALL_ILLEGAL_FUNC Date and Time 18.07.2008 16:02:20 Short dump has not been completely stored (too big) Short text Function module "Z_XSI_ACTIVE" not found.

Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found.

Hi,Guy ,      When we use the spam ,the system raise an Abap dump ,the message is : Function module "OCS_ALV_UI_QTRACE_AVAILABILITY" not found. My System is ECC6.0 can anybody tell me how to solve it ?thanks in advance . Jialiang.QiuHi all, I've

Reg:Function module SAPWL_GET_SUMMARY_STATISTIC not working in CRM ABAP 6.0

Hi All,   When i execute the function module SAPWL_GET_SUMMARY_STATISTIC in CRM ABAP 6.0 passing the values below, PERIODTYPE                     HOSTID                          STARTDATE   it's not showing any values in the summary. it's showing the

Iweb would not update the title

My iweb would not update the title of one of my website pages. All other updates went through but this one. I even deleted the page and did it again and it refuses to appear right after published. It also shows an error 404 in the page when published

Why my ipad can not update the ios7.1.1

why my ipad can not update the ios 7.1.1Hello there, crivera350. The following Knowledge Base article offers up some great steps for if you are unable to update your iOS device: If you can't update or restore your iOS device http://support.apple.com/

New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.

New tabs are not updating the names of the sites they have loaded. When I open a new tab and load a site, the tab simply stays named "New Tab". When I open a link in a new window, it shows "Connecting..." even while its fully loaded.Th

My 160 classic wil not update the firmware 1.0.1  ?

hi al my 160 classic wil not update the firmware 1.0.1 what do do rong also after sync not al my covers ar on my ipodHi hrcpinfreak, What exactly happens when you try updating your iPod's firmware? If you're getting an error message while syncing you

Why I can not update the software of Iphone 6

I can not update the software of my IphoneHi alabdulla, If you are having an issue with updating iOS on your iPhone through iTunes, I would suggest that you troubleshoot using the steps in this article -  Resolve iOS update and restore errors in iTun

Windows could not update the computer's boot configuration. Installation cannot proceed.

HELP!!! Windows could not update the computer's boot configuration. Installation cannot proceed. The installation then it says "The installation was canceled" and "Any changes to your computer won't be saved. I have been trying to sort this

Not update the magician xperia tx on iMac OS 10.7.5

not update the magician xperia tx on iMac OS 10.7.5  help what to do? Thanks in advance and snastupaeschem new year! a prompt will update androyd 4.4 on sony xperia TX and will update it and when!Hi!  I'm not really sure what you mean. Could you plea

TS4431 Hi after trying to update my iPhone 5s while connected to iTunes on the Mac I got a notice saying it could not update the phone (error message: (-1)). Any idea what this error message means? Is it a space issue?

Hi after trying to update my iPhone 5s while connected to iTunes on the Mac I got a notice saying it could not update the phone (error message: (-1)). Any idea what this error message means? Is it a space issue?Resolve iOS update and restore errorsRe

Hi.  I iMac, Mac OS X 10.6.8  Lately it does not update the program.  Writes the following: "Unable to install the update iTunes. An unexpected error occurred." What you need to do that right, that programs can be updated again?

I iMac, Mac OS X 10.6.8  Lately it does not update the program.  Writes the following: "Unable to install the update iTunes. An unexpected error occurred." What you need to do that right, that programs can be updated again?you will have the most

Any function module to read all the values in Tcode-PPQD?

Hi all Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog). and any idea what tables are involved to get these values like parent and child relationship? Thanks in advance. Murali.Murali, you can use the

HT4484 i used to have an app store and lost it and i created a new one and i can not update the iphoto app because it was updated with the old account, is there a solution for this problem?

i used to have an app store and lost it and i created a new one and i can not update the iphoto app on my macbook pro because it was updated with the old account, is there a solution for this problem?Content and Apple IDs - Content is forever tied to

Windows could not update the computer's boot configuration Server 2012

I'm trying to install Windows Server 2012 on another partition (V:) that I create directly from Disk Management. After I create it, I do a simple format of the partition. Next, I try to Install Windows Server 2012, directly on the recent partition, a