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: 

select data from many tables

former_member810309
Participant
500

Hi everyone 🙂

I have a selection screen :

TABLES: e070, e071, e07t, e070create, ctsproject, e070a.<br><br>SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.<br>  PARAMETERS: p_ot TYPE e070-trkorr,<br>              p_nni TYPE e070-as4user,<br>              p_idpro TYPE ctsproject-externalid.<br>SELECTION-SCREEN END OF BLOCK block1.<br>

plz how i can relate tables to get the right result from the selection-screen with Select .. from ... or instruction " INNER JOIN ".
thanks

1 ACCEPTED SOLUTION

Jeansy
Active Contributor
424

Hi,

you can use the following view that joins both related tables:

CTSPROJ_F4<br>

Kind regards
Jens

9 REPLIES 9

FredericGirod
Active Contributor
424

You will have to find the logical link between table e070 and ctsproject

if you failed to find it by your own, you could make a trace on SE01 or SE10 transaction

Jeansy
Active Contributor
425

Hi,

you can use the following view that joins both related tables:

CTSPROJ_F4<br>

Kind regards
Jens

424

jzaehringer you always have the perfect answer !

Jeansy
Active Contributor
0 Kudos
424

Thank you, frdric.girod 🙂

424

thank u for your answer, i have to use correctly SELECT ... FROM ...

i don't know if / how i can use INNER ^^

regards

424

You don't need inner join as Jens provide you a View.

Open the view using transaction SE11, and you will see the link between different tables

raymond_giuseppi
Active Contributor
424

Analyze those tables with SE11 or trace ST05 sql / SAT abap some standard transactions

For example look at E071.

  • Display the tab 'Input Help/Check' you should notice a foreign key check with table E070 on field TRKORR

Sandra_Rossi
Active Contributor
0 Kudos
424

For information, you don't need the statement TABLES (it's needed only for transporting implicitly DDIC-bound dynpro fields).

Sandra_Rossi
Active Contributor
424

See examples in ABAP documentation SELECT - join