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

Different data types

Former Member
0 Likes
611

Hi

I want retrive data 2 tables using forall entries. and tables are EQUI and AUSP.

EQUI table primary key is EQUNR

here EQUNR is equal to AUSP table OBJEK

My problem is here EQUNR and OBJEK have different data types.

Please tell me how to retrive data using for all entries.

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
578

The internal table for retrieving the data should be extended with an additional column. This column you have to define the same as EQUNR. Now move all entries from AUSP to this new column and use that as comparison in FOR ALL ENTRIES.

Read only

Former Member
0 Likes
578

Hi

Thanks for your answer.

I am not clear about this one. can you please give an example.

Read only

Former Member
0 Likes
578

hi,

do this way ... take a new field in internal table OBJEK_N of type OBJEK in the internal table holding EQUI table details ...


loop at it_equi.
  itab-objek_n = it_equi-equnr.
  modify it_equi index sy-tabix transporting objek_n.
endloop.
if not it_equi[] is initial.
   select * from ausp into it_ausp 
    for all entries in it_equi
    where objek = it_equi-objek_n and 
             <conditions>
 endif.           

Read only

0 Likes
578

Hi

Thanks for your reply

Please can explian clearly