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

Selection screen critia.

Former Member
0 Likes
949

Hi all,

select-options: s1 for zuser-userid.

parameters: s2 like zuser-team.

parameters: s3 like zuser-role.

select zuserusername zuserpassword zuseruserid enam zuserteam zuser~role report

into corresponding fields of table itab1 from zuser inner join zempmas on zuseruserid = zempmasemid

where zuseruserid in s1 or zuserteam = s2 or zuser~role = s3.

its not display the output..

please check it...

thx,

s.suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
921

Hi,

Change the format as below.


select-options: s1 for zuser-userid.
select-options: s2 for zuser-team no intervals no extension. "Change
select-options: s3 for zuser-role no intervals no extension. "change

select zuser~username zuser~password zuser~userid enam zuser~team zuser~role report
into corresponding fields of table itab1 from zuser inner join zempmas on zuser~userid = zempmas~emid
where zuser~userid in s1 
and zuser~team in s2  "change
and zuser~role in s3. "change 

Hi all,

select-options: s1 for zuser-userid.

parameters: s2 like zuser-team.

parameters: s3 like zuser-role.

select zuserusername zuserpassword zuseruserid enam zuserteam zuser~role report

into corresponding fields of table itab1 from zuser inner join zempmas on zuseruserid = zempmasemid

where zuseruserid in s1 or zuserteam = s2 or zuser~role = s3.

its not display the output..

please check it...

thx,

s.suresh

7 REPLIES 7
Read only

Former Member
0 Likes
921

Hi,

1.put the break point at selection statement and check whether

data is existed for particular conditions OR not.

2.select zuserusername zuserpassword zuseruserid enam zuserteam zuser~role report

into corresponding fields of table itab1 from zuser inner join zempmas on zuseruserid = zempmasemid

where zuser~userid in s1 or

zuser~team = s2 or

zuser~role = s2.

Is enam is from zuse? if yes write zuser~enam in select statement.

Read only

Former Member
0 Likes
921

Hi,

Try the Following query,

select zuser~username zuser~password zuser~userid enam zuser~team zuser~role report
into corresponding fields of table itab1 from zuser inner join zempmas on zuser~userid = zempmas~emid
where zuser~userid in s1 and
          ( zuser~team = s2 or zuser~role = s3 ).

Regards,

Balakumar.G.

Reward Points if helpful.

Read only

Former Member
0 Likes
921

hi,

try the following

select Z~username

Z~password

Z~userid

E~enam

Z~team

Z~role report

into corresponding fields of table itab1 from zuser as Z inner join zempmas as E on Zuserid = Eemid

where Zuserid in s1 or Zteam = s2 or Z~role = s3.

Read only

ak_upadhyay
Contributor
0 Likes
921

Hi,

Try This....

select zuser~username

zuser~password

zuser~userid

zuserenam zuserteam

zuserrole zusereport

into corresponding fields of table itab1 from zuser inner join zempmas on zuseruserid = zempmasemid

where zuser~userid in s1

or zuser~team = s2

or zuser~role = s3.

Reward points if helpful...

Regards

AK

Read only

vinod_vemuru2
Active Contributor
0 Likes
921

Hi Suresh,

First check the tables whether u have any data exist for ur selection criteria.

Few things u can change.

1. Avoid in to corrosponding fields.

2. JOINS are very slow. So go for for all entries.

Check below code.

SELECT all key fields and emid

INTO TABLE itab1

FROM zempmas

WHERE emid IN s1.

CHECK NOT itab1 IS INITIAL.

SORT itab1 BY emid.

select username password userid team role

into table itab2

from zuser

FOR ALL ENTRIES IN itab1

WHERE userid = itab1-emid

AND ( team = s2 or role = s3 ).

I dont understand the bold ones below in ur select.

select zuserusername zuserpassword zuser~userid

enam zuserteam zuserrole report

Thanks,

Vinod.

Read only

Former Member
0 Likes
921

Hi,

Since userid is primary key for ur table, i guess that should be mandatory in where condition.

So, use AND for that.

Reward if helpful.

Regards,

ramya

Read only

Former Member
0 Likes
922

Hi,

Change the format as below.


select-options: s1 for zuser-userid.
select-options: s2 for zuser-team no intervals no extension. "Change
select-options: s3 for zuser-role no intervals no extension. "change

select zuser~username zuser~password zuser~userid enam zuser~team zuser~role report
into corresponding fields of table itab1 from zuser inner join zempmas on zuser~userid = zempmas~emid
where zuser~userid in s1 
and zuser~team in s2  "change
and zuser~role in s3. "change