Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

function WS_DELIVERY_UPDATE, normal PGI

Former Member
0 Kudos
653

hi all,

i want to do normal PGI for a DO. in which internal tables shall i pass the storage location info, pls advise

6 REPLIES 6

Former Member
0 Kudos
111

Hi,

You can pass the St.Location (LGORT) field value in the internal table

VBPOK_TAB.

regards,

Anji

0 Kudos
111

hi Anji,

which field shall i use, lgort does not exist in VBPOK_TAB

0 Kudos
111

can anybody advise

former_member186734
Active Participant
0 Kudos
111

Hi! Did you tried set VBPOK_TAB-KZLGO = 'X'? This works for me!

Former Member
0 Kudos
111

Hi Ester,

Try this code.

  DATA: VBKOK     LIKE VBKOK.

  DATA COMMIT TYPE  RVSEL-XFELD  VALUE 'X'.

  VBKOK-WABUC    = 'X'.

  VBKOK-VBELN_VL = LIKP-VBELN. "delivery number


CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
       EXPORTING
         VBKOK_WA          = VBKOK
         DELIVERY          = LIKP-VBELN   "delivery number
         COMMIT            = COMMIT
       IMPORTING
         EF_ERROR_ANY      = EF_ERROR_ANY
       TABLES
         PROT              = PROT
       EXCEPTIONS
         ERROR_MESSAGE     = 99.


Thanks,

Ashok.

Former Member
0 Kudos
111

you don't need to pass the storage location for this FM. you just pass the delivery NO. and the post date.  actully the storage location relate to the creation of delivery order.  so invoke this FM just for confirming a order and generate the material doc.  automaticlly.
hope my opinion is helpful.