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

Open PO

Former Member
0 Likes
326

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.

1 REPLY 1
Read only

former_member125661
Contributor
0 Likes
304

Checkout EKPO-WEPOS - Goods Receipt indicator