Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Packing issue for multiple Deliveries

$
0
0

Hi ,

 

    I need to Pack multiple Deliveries at a time, each in different Handling units. I am using f.m. 'SD_DELIVERY_UPDATE_PACKING ' to Update HU's & then 'WS_DELIVERY_UPDATE' to complete the Packing. I am able to Pack a single Delivery at a time but cannot process with multiple Deliveries. Problem is the above Function module is returning different Error messages. for e.g. 'Delivery status only allows display mode ' . So i used 'HU_PACKING_REFRESH' to refresh the buffers but still can't solve the issue. Please give me your best views on this issue.

my code is as follows:

 

CALL FUNCTION 'HU_PACKING_REFRESH'.


* Update HU's

  CALL FUNCTION 'SD_DELIVERY_UPDATE_PACKING'

    EXPORTING

      DELIVERY            = P_VBELN

      COMMIT              = C_X

      SYNCHRON            = C_X

    TABLES

      VERKO_TAB           = LT_VERKO

      VERPO_TAB           = LT_VERPO

      PROT                = LT_PROT

    EXCEPTIONS

      UPDATE_NOT_POSSIBLE = 1

      ERROR_MESSAGE       = 2

      OTHERS              = 3.

 

* Update Packing details

CALL FUNCTION 'WS_DELIVERY_UPDATE'

     EXPORTING

       VBKOK_WA           = WA_VBKOK

       SYNCHRON           = C_X

*     NO_MESSAGES_UPDATE = ' '

       COMMIT             = C_X

       DELIVERY           = P_VBELN

     IMPORTING

       EF_ERROR_ANY_0     = L_ANY_ERROR

     TABLES

*     VBPOK_TAB          =

       PROT               = LT_PROT

       VERKO_TAB          = LT_VERKO

       VERPO_TAB          = LT_VERPO

 

       ET_CREATED_HUS     = LT_HUCR

     EXCEPTIONS

       ERROR_MESSAGE      = 1.


Thanks in advance...


Regards,

Raghu



Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>