2023 Nov 22 2:22 AM
I had to write a program to automatically PGI deliveries. For shipments, automatic PGI is working correctly but I noticed that the "actual goods movement date" field VBKOK-WADAT_IST updates for the first delivery with the date of PGI. It does not do it for the rest of the deliveries. Any ideas why?
Basic logic is doing a loop for each delivery, setting the automatic PGI field (VBKOK-WABUC = 'X') and then calling the function module 'WS_DELIVERY_UPDATE'.
PGI is working perfectly but its the actual goods movement date field that is not updating for every delivery. Only the first one.