‎2007 Apr 10 7:27 AM
hi
in below query when ever i m not taking maretial No in where condition
all material no data is coming
but when i m giving in where condition matnr No from selection screen
no data is coming is ther any wrong in loop condition
or any thing else.
SELECT * FROM EKPO
INTO CORRESPONDING FIELDS OF TABLE
INT_EKPO
WHERE
<b>* EKPOMATNR = S_MATNR AND</b> EKPOWERKS in S_WERKS.
sort int_ekpo by werks.
delete adjacent duplicates from INT_EKPO .
SELECT MATNR MAKTX FROM MAKT
INTO CORRESPONDING FIELDS OF TABLE
INT_MAKT
FOR ALL ENTRIES IN INT_EKPO
WHERE MAKT~MATNR = INT_EKPO-MATNR.
loop at int_ekpo.
int_OUT-MATNR = INT_EKPO-MATNR.
MODIFY INT_EKPO.
ENDLOOP.
thanks in adavanced.
‎2007 Apr 10 7:29 AM
hi,
In where condition specify as
<b>EKPOMATNR in S_MATNR</b> AND EKPOWERKS in S_WERKS.
thanks,
Navneeth.K
‎2007 Apr 10 7:29 AM
hi,
In where condition specify as
<b>EKPOMATNR in S_MATNR</b> AND EKPOWERKS in S_WERKS.
thanks,
Navneeth.K
‎2007 Apr 10 7:33 AM
‎2007 Apr 10 7:32 AM
<b>if s_matnr[] is not initial.
SELECT * FROM EKPO
INTO CORRESPONDING FIELDS OF TABLE
INT_EKPO
WHERE
EKPO~MATNR <b>IN</b> S_MATNR
AND EKPO~WERKS in S_WERKS.
endif.</b>
Regards
Prabhu