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

problem with a *

Former Member
0 Likes
818

Hallo,

does anbody know what following "*"-construct may mean?

SELECT * FROM tableA INTO itag

WHERE kokrs = *zckstsapmzb21-kokrs

AND lstar = *zckstsapmzb21-lstar...

Is the * an element of the operator?

Thx,

Marcel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
797
SELECT * FROM tableA INTO itag   ->  "  * points all fields in the table
WHERE kokrs = *zckstsapmzb21-kokrs   " but  here *  is  not valid operator
AND lstar = *zckstsapmzb21-lstar...

reward points if it is usefull

Girish

7 REPLIES 7
Read only

Former Member
0 Likes
797

Hi,

when u r specifying SELECT * FROM tableA , u r selecting all the fields from that particular table.

Read only

Former Member
0 Likes
797

Select *

implies, <b>select all the records from the database table.</b>

However we shouldn't have any '*' operator in the where condition.

Regards,

Pavan P.

Read only

Former Member
0 Likes
797
  • in front of table corresponds to work area, chk this code

REPORT ychatest.

TABLES : mara , <b>*mara.</b>

DATA : itab TYPE TABLE OF mara.

SELECT * FROM mara INTO TABLE itab

WHERE matnr = <b>*mara-matnr.</b>

Read only

Former Member
0 Likes
798
SELECT * FROM tableA INTO itag   ->  "  * points all fields in the table
WHERE kokrs = *zckstsapmzb21-kokrs   " but  here *  is  not valid operator
AND lstar = *zckstsapmzb21-lstar...

reward points if it is usefull

Girish

Read only

0 Likes
797

thx,

i mean the * at the front of a table/variable etc. Not the * in the selct clause.

we have some programs with such * and they are correct. syntax-check is okay.

anybody an idea?

Read only

0 Likes
797

<b>have you checked my solution,</b>

  • in front of a struture represents a structure(Work area) in old versions , it is obsolete now..

so they are checking the value from that work area..

Read only

0 Likes
797

thanks a lot