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

create querry from Structure

Tolulope_O
Participant
0 Likes
2,421

Hello gurus,

Is it possible to create a query from SAP structures using TX:sqvi?

if it is possible, pls help out

Regards,

Tolulope

8 REPLIES 8
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,243

Hello Tolulope,

Data can be extracted from DDIC tables(transperant, pooled & cluster types) & Database views only.

DDIC structure themselves donot contain any data & hence data cannot be extracted.

BR,

Suhas

Read only

Former Member
0 Likes
1,243

Hi Tolulope OKUSAGA,

NO, You can not use Sturctures for creating query using SQVI T-Code.

You can use Transparent Tables like MARA , VBAK, VBAP, VBRP, VBRK etc

The reason is Structure does't hold data so writing Query on Structure is meaningless as well.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

Former Member
0 Likes
1,243

Hi Tolulope OKUSAGA,

NO, You can not use Sturctures for creating query using SQVI T-Code.

You can use Transparent Tables like MARA , VBAK, VBAP, VBRP, VBRK etc

The reason is Structure does't hold data so writing Query on Structure is meaningless as well.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

0 Likes
1,243

Thanx for the response!

I am trying to create a query and the all the relevant fields are in a structure (BSEG_ALV).

I have list the objects of the structure and i can find the related database tables.

If a create a query using al these tables would I be able to generate my report?

Regards,

Tolulope

Read only

0 Likes
1,243

I THINK YOU want only fileds which are used in structure for your report

create one work area of structure type

types : begin of w_test.

include structure BSEG_ALV.

types : end of w_test .

data : it_test type standard table of w_test with header line .

now your internal table of type structure is ready

select data according to your specification

step by step

and push data into internal table .

this will help you .

If purpose is different please explain .

Regards

Deepak .

Read only

0 Likes
1,243

Hi Tolulope OKUSAGA,

Sure..

If you try to access the data from the tables you can create the query and then create the report for it..

Note: You can not use Cluster Tables in SQVI Queries... and BSEG is cluster table...

So If you are looking for the data from BSEG then I would suggest you to use other tables like

BSAK

BSIK

BSAD

BSID and

other BS* Tables

I would like to suggest you to search on SCN for it... There are plenty of threads and you can get the information from it.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

ilesh Nandaniya

Read only

0 Likes
1,243

Hi there!

I found a way to get the tables require to create my report; they include VBRK, BSIS, VBRP & MAKT.

I have tried creating a report from these tables and I don't get any data when I run the query.

I joined VBRK, BSIS and i did not get any data. i checked the individual tables using TX: se16 and I can find data.

I use al the tables together in one query and I also don't get data.

what could be wrong.

regards,

Tolulope

Read only

Tolulope_O
Participant
0 Likes
1,243

Got in an ABAPer to create the report.