2007 Oct 12 11:30 AM
Hi Experts,
I am studying the logic of an ABAP in which data has been fetched by a select statement like this
SELECT * FROM *BSEG
When i double clicked on *BSEG, system says *BSEG does not exist. Also, there is no table as *BSEG in ABAP dictionary.
Please let me know what does *BSEG signifies and what it is ?
Thanks in advance,
Akash Sawant
Hi Experts,
I am studying the logic of an ABAP in which data has been fetched by a select statement like this
SELECT * FROM *BSEG
When i double clicked on *BSEG, system says *BSEG does not exist. Also, there is no table as *BSEG in ABAP dictionary.
Please let me know what does *BSEG signifies and what it is ?
Thanks in advance,
Akash Sawant
2007 Oct 12 11:33 AM
Hi,
*Bseg will be used by SAP standard program. it denoted the old value of BSEG table.
in our coding we cant use *BSEG. use BSEG
Regards,
Niyaz
2007 Oct 12 11:41 AM
Hi Niyaz,
Thanks for quick reply. Can you please ellaborate what does this *BSEG means and when it should be used as i am not aware with it.
I saw it used in the custom ABAP.
Thanks,
Akash
2007 Oct 12 11:48 AM
Hi Akash,
If you declare *BSEG means its acts as a structure for the corresponding DB table.
Check this sample code,
tables : mara, *mara.
DATA : ITAB LIKE TABLE OF *MARA WITH HEADER LINE.
SELECT * FROM *MARA INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : ITAB-MATNR.
ENDLOOP.Thanks,
reward If Helpful.
2007 Oct 12 11:58 AM
<b>The real reason of * infront of the table is to open up a new workarea and during R/2 hard time, we use it to let us allow reading the same table</b>
<b>select * from bseg.
...
select * from *bseg
where ...
...
endselect.
...
endselect</b>
2007 Oct 12 12:19 PM
Hi Viji,
Sorry, i didn't get you. If *mara is acting as a structure for table mara then how could we use select statement over it for data fetch. Please explain.
And, what's the need of declaring *mara ?
Thanks,
Akash
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |