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

problem in query

laxman_sankhla3
Participant
0 Likes
462

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

hi,

In where condition specify as

<b>EKPOMATNR in S_MATNR</b> AND EKPOWERKS in S_WERKS.

thanks,

Navneeth.K

3 REPLIES 3
Read only

Former Member
0 Likes
443

hi,

In where condition specify as

<b>EKPOMATNR in S_MATNR</b> AND EKPOWERKS in S_WERKS.

thanks,

Navneeth.K

Read only

0 Likes
442

THANKS MAN

Read only

Former Member
0 Likes
442

<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