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

Query problem

Former Member
0 Likes
834

this is the main query

clear : itab[], tmpitab[].

*------------Get Open Items-----

select

bukrs

lifnr

*LGORT

*LGOBE

*DB

*CR

zuonr

shkzg

wrbtr

blart

into corresponding fields of table

tmpitab  from bsik where

bukrs eq p_bukrs and lifnr eq p_lifnr

and budat  in s_budat

and zuonr ne '' .

it is fetching from Assignment (4500000417, CHQ# 34343456).

i only want to fetch only PO NO ( 4500000417)

i am using  Assignment (zuonr) and PO no(ebeln) for that.

when i used zuonr eq itab-ebeln. it not giving the right result.

can any one help.

khurram nagi

3 REPLIES 3
Read only

Former Member
0 Likes
787

try adding blart eq 'OC' in where clause

Read only

0 Likes
787

PO number only

Read only

0 Likes
787

belnr is your document number