Application Development and Automation 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: 
Read only

function WS_DELIVERY_UPDATE, normal PGI

Former Member
0 Likes
1,502

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
Read only

Former Member
0 Likes
960

Hi,

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

VBPOK_TAB.

regards,

Anji

Read only

0 Likes
960

hi Anji,

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

Read only

0 Likes
960

can anybody advise

Read only

Former Member
0 Likes
960

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

Read only

Former Member
0 Likes
960

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.

Read only

Former Member
0 Likes
960

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.