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

join condition on 2 table using inner join

Former Member
0 Likes
953

Hi friends plz go through my requirment an provide me a solution.

select A~CARRNAME

B~CARRID

B~CONNID

B~CITYFROM

B~CITYTO

B~DISTANCE

into table IT_flight

from SCARR as A INNERJOIN SPLFI AS B

on ACARRIED = BCARRIED

where A~CARRIED in S_CARRIED.

when giving value in s_carrid (select option ) iam getting the values for that particular carrid.

when i execute without givving any value in S_CARRID iam geting all the values based on the condtion. ie: all the carrids.

but my requiremnt is i want only some 4 particular carrid from those all the carrid which satisfy the condtion.

how can i do that.

how can use where condition.

can any one tell me.

Regards,

priyanka

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
907

Hi,

On your selection-screen.... select option you have icon to the right most corner... extension..

click on that and in single values... mention the required four carrid's

You need not change your select query

regards

padma

6 REPLIES 6
Read only

Former Member
0 Likes
907

Hi Priyanka,

Could you be more clear with your question.

Regards,

Chandra Sekhar

Read only

younes_bouaouad
Explorer
0 Likes
907

Hi,

All you have to do is to put your 4 particular CARRID in the select-option! You've got nothing to change about your query. For that use the arrow at the right of your select-option, you'll get a dialog box where you can specifiy single value, intervals and so on as criteria for your select-option.

Read only

0 Likes
907

Try option "UP TO 4 ROWS" if you only want the first records.

Be carefull you must use SELECT ... ENDSELECT to use the option UP TO 4 ROWS

SELECT * FROM table

INTO CORRESPONDING FIELDS OF g_it_table

UP TO 4 ROWS

APPEND g_it_table.

ENDSELECT.

Read only

Former Member
0 Likes
907

Priyanka,

There is nothing wrong with the query. It should work. Probably check the option you are provinding on selection screen.

Thanks,

Kartavya

Read only

Former Member
0 Likes
907

Hi,

There is no problem with your select query. If you dont want all the carrid, then use a dropdown box with only the required values. So, if u dont give any values it shd select only those 4 carrid values.

Sharin.

Read only

Former Member
0 Likes
908

Hi,

On your selection-screen.... select option you have icon to the right most corner... extension..

click on that and in single values... mention the required four carrid's

You need not change your select query

regards

padma