2008 Apr 13 2:14 PM
Hi,
How to fetch the po which has done outbound delivery but not GR. Currently the movement types 101,102,122 and 161 in PO history and does the extraction. If the PO has a Outbound delivery then it will not be included in the extract and once a Goods receipt happens for the Outbound delivery then it will be included in the extraction.
SELECT aebeln alifnr aloekz bebelp b~loekz
baedat bmatnr bwerks belikz c~budat
FROM ekko AS a JOIN ekpo AS b
ON aebeln = bebeln
JOIN ekbe AS c
ON ( bebeln = cebeln
AND bebelp = cebelp )
INTO TABLE t_prod
WHERE b~werks IN s_werks
AND c~vgabe = c_1
AND c~bwart IN r_bwart.
this is the current code for fetching PO. what change can i make to get po which has done outbound delivery but not GR.
Hi,
How to fetch the po which has done outbound delivery but not GR. Currently the movement types 101,102,122 and 161 in PO history and does the extraction. If the PO has a Outbound delivery then it will not be included in the extract and once a Goods receipt happens for the Outbound delivery then it will be included in the extraction.
SELECT aebeln alifnr aloekz bebelp b~loekz
baedat bmatnr bwerks belikz c~budat
FROM ekko AS a JOIN ekpo AS b
ON aebeln = bebeln
JOIN ekbe AS c
ON ( bebeln = cebeln
AND bebelp = cebelp )
INTO TABLE t_prod
WHERE b~werks IN s_werks
AND c~vgabe = c_1
AND c~bwart IN r_bwart.
this is the current code for fetching PO. what change can i make to get po which has done outbound delivery but not GR.
2008 Apr 14 3:48 AM