09-23-2008 3:17 PM
Hi Gems,
I am seeing a program (4.6c) i see few declarations as below:
data :
zv_pa0900, " DB view on PA0900 for security
*zv_pa0900, -
> what is this?
....etc..
SELECT SINGLE pernr FROM vbpa..
where ...
IF sy-subrc = 0.
SELECT SINGLE * FROM *zv_pa0900 WHERE pernr = vbpa-pernr
AND endda = '99991231'.
ELSE.
CLEAR: *zv_pa0900.
ENDIF.
When i dblc clik on *zv_pa0900 it not taking me anywhere nor there is syntax error
my question is What is *zv_pa0900 in above places and how it works?
Please help.
Thanks
Dan
When i dblc clik on *zv_pa0900 it not taking me anywhere nor there is syntax error
09-23-2008 3:35 PM
If you check your program a little further, you might find that this SELECT is nested within a SELECT of the regular view zv_pa0900. It allows two cursors to be open for a table at one time.
It's obsolete and documented in obsolete TABLES statement (F1).
Rob
Edited by: Rob Burbank on Sep 23, 2008 10:43 AM
09-23-2008 3:21 PM
Hi,
Here *zv_pa0900 is working as a work area ie structure.
*table is the convension for declaring work area.
09-23-2008 3:37 PM
Hi Sujit,
Thanks
But what is that *zv_pa0900 in the select stmt.
SELECT SINGLE * FROM *zv_pa0900 WHERE pernr = vbpa-pernr
..etc
How is that working like a table? Thats shocking.:-)
thanks
09-23-2008 3:42 PM
09-23-2008 4:03 PM
Hi Dan,
Please check the documentation (Page 38) in this link you will get the details of usinf * in front of table.its Obsolete statement.
Hope it will help you.
09-23-2008 3:35 PM
If you check your program a little further, you might find that this SELECT is nested within a SELECT of the regular view zv_pa0900. It allows two cursors to be open for a table at one time.
It's obsolete and documented in obsolete TABLES statement (F1).
Rob
Edited by: Rob Burbank on Sep 23, 2008 10:43 AM