Skip to Content
0
Former Member
Dec 29, 2005 at 03:09 PM

SELECTING EKPO, EKKO AND T160T-SELPA?

678 Views

Hi All,

I´m writing a report that show PO information. As a requirement they need to filter using the Selection parameters(T160T-SELPA) used in tcode ME2L, but I don´t know how to do it, I have read that that the values are in a pool table but I dont know what is the relation with table EKKO. Anybody knows?, how can I filter it?

The code:

SELECT BEBELN BMATNR BMENGE BNETWR

INTO CORRESPONDING FIELDS OF TABLE IMAT

FROM EKKO AS A INNER JOIN EKPO AS B

ON AEBELN = BEBELN

WHERE A~LIFNR EQ LIFNR.

(I would like to write also)

AND SELECTION_PARAMETER EQ ='XXXX0'

...

Any ideas?

Gabriel P.