2008 Mar 19 5:56 AM
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
2008 Mar 19 6:25 AM
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,
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
2008 Mar 19 6:02 AM
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.
2008 Mar 19 6:03 AM
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.
2008 Mar 19 6:05 AM
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.
2008 Mar 19 6:06 AM
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
2008 Mar 19 6:08 AM
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.
2008 Mar 19 6:14 AM
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
2008 Mar 19 6:25 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |