Application Development 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: 

Get value for "No. of dataset to be read"

Former Member
0 Kudos

When executing a selection criteria screen without any input value into the parameters, the SAP system will prompt a dialog screen "Restriction of Database Accesses" stating the No. of dataset to be read value with the Maximum value of 100. Before listing the records in the ALV.

How to get the value 100 using ABAP code? Is there any system variable to get it?

2 REPLIES 2

Former Member
0 Kudos

The program is an SAP Query extended program. In normal Query report, there is a variable %dbacc that contain the value.

How do i get the value into the extended program ?

Former Member
0 Kudos

The only work around I have found is to specify a standard variant in SQ01 that has a default value of '*' in a field that will bring back all the records. 

For example, in a query with an infoset using table TGSBT, even thought the table only has 228 values, the box asking for number of datasets to be read with a default maximum of 100 appears.

When '*' is used in the selection field using TGSBT-GSBER, the box doesn't appear.