Application Development 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: 

for all entries

Former Member
0 Kudos

is it possible to use like this.

data:itab....

select ..... from ... into itab for all entries in itab where....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ,

Not possible .

It would be endless loop .

6 REPLIES 6

Former Member
0 Kudos

Hi ,

Not possible .

It would be endless loop .

Former Member
0 Kudos

Hi kavitha,

i think its not possible.

it will give error.

use inner join instead

Regards,

Talwinder.

Former Member
0 Kudos

hi,

this is not possible but cud u plz write down ur requirement.

warm regards,

sumanjeet

Former Member
0 Kudos

hi,

u can do this

select ...from mara into table itab for all entries in table itab1 where .....

there u have missed into TABLE

arpit_shah
Contributor
0 Kudos

Hi ,

Not possible .

It would be endless loop .

mahaboob_pathan
Contributor
0 Kudos

Hi,

look at this once,

SELECT MARA~MATNR

MARA~ERSDA

MARC~WERKS

MARD~LGORT

INTO CORRESPONDING FIELDS OF TABLE IT_MAR

FROM ( ( MARA INNER JOIN MARC ON MARAMATNR = MARCMATNR )

INNER JOIN MARD ON MARAMATNR = MARDMATNR )

WHERE MARA~MATNR IN S_MATNR AND

MARA~ERSDA IN S_ERSDA AND

MARC~WERKS IN S_WERKS.

IF NOT IT_MAR[] IS INITIAL.

SORT IT_MAR.

SELECT MATNR

MAKTX

INTO CORRESPONDING FIELDS OF TABLE IT_MAK

FROM MAKT

FOR ALL ENTRIES IN IT_MAR

WHERE MATNR = IT_MAR-MATNR AND

SPRAS = SY-LANGU.

ENDIF.

DELETE ADJACENT DUPLICATES FROM IT_MAR.