‎2007 Mar 15 7:00 AM
hi all,
i want to do normal PGI for a DO. in which internal tables shall i pass the storage location info, pls advise
‎2007 Mar 15 7:09 AM
Hi,
You can pass the St.Location (LGORT) field value in the internal table
VBPOK_TAB.
regards,
Anji
‎2007 Mar 15 7:30 AM
hi Anji,
which field shall i use, lgort does not exist in VBPOK_TAB
‎2007 Mar 16 2:20 AM
‎2014 Jul 31 7:20 PM
Hi! Did you tried set VBPOK_TAB-KZLGO = 'X'? This works for me!
‎2014 Jul 31 7:28 PM
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.
‎2014 Aug 01 6:42 AM
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.