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

Regarding Select data from *BSEG

Former Member
0 Likes
821

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

5 REPLIES 5
Read only

Former Member
0 Likes
795

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

Read only

0 Likes
795

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

Read only

0 Likes
795

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.

Read only

0 Likes
795

<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>

Read only

0 Likes
795

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