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

Issues with WS_DELIVERY_UPDATE

$
0
0

Hi,

 

I'm using FM 'WS_DELIVERY_UPDATE' in my program to do PGI for a particular delivery. My requirement is

 

1. It should copy delivered qty. into picking qty. automatically.

2. It should lock the delivery, so that we can't enter in change mode on the delivery while this program dos PGI.

 

Problem i'm facing:

 

1. Since i'm not populating delivered qty. field in the FM, it updates '0' to both the fields (delivered and picking qty.).

 

2. Even if i have delivery in change mode, this FM successfully does PGI for that delivery.

 

My code goes like this:

 

    lwa_vbkok-vbeln_vl  = l_documentid.

    lwa_vbkok-wadat_ist = sy-datum.

    lwa_vbkok-wabuc     = c_x.

    lwa_vbkok-komue     = c_x.                  

 

    CALL FUNCTION 'WS_DELIVERY_UPDATE'

         EXPORTING

              vbkok_wa                   = lwa_vbkok

              synchron                    = c_x

              no_messages_update  = space

              update_picking            = c_x

              commit                       = c_x

              delivery                       = lwa_vbkok-vbeln_vl

              nicht_sperren              = c_x

              if_error_messages_send_0    = space

         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

         TABLES

              prot                        = li_prot

         EXCEPTIONS

              error_message               = 1

              OTHERS                      = 2.

 

And i explicitly do commit.

 

Help in this regard will be highly appreciated.

 

Thanks.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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