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

Select count in SAP Query

Former Member
0 Likes
572

Hi all,

i make a SAP Query that extract some data about PO.

Now I need to know the number of document per document type.

In other words, i need a query like

select count xxx

group by zzzz.

Any suggestion? is it possible do it with sap query?

thanks

enzo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
439

Hi

SAP query has got some limitations in that aspect.

You can't get the results like that

if you write a single select query to EKKO table with EBELN and BSART fields you will get the output

or goto SE16

enter table EKKO

enter the one BSART DOcumnet type

execute

you will get the number of PO documents

it will be displayed as table entries

You can enter another doc type like that and see

or if you are a developer you can write a single select query to EKKO it will serve the purpose

Regards

Anji

Hi all,

i make a SAP Query that extract some data about PO.

Now I need to know the number of document per document type.

In other words, i need a query like

select count xxx

group by zzzz.

Any suggestion? is it possible do it with sap query?

thanks

enzo

1 REPLY 1
Read only

Former Member
0 Likes
440

Hi

SAP query has got some limitations in that aspect.

You can't get the results like that

if you write a single select query to EKKO table with EBELN and BSART fields you will get the output

or goto SE16

enter table EKKO

enter the one BSART DOcumnet type

execute

you will get the number of PO documents

it will be displayed as table entries

You can enter another doc type like that and see

or if you are a developer you can write a single select query to EKKO it will serve the purpose

Regards

Anji