Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 24, 2011 at 07:54 AM

    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 ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2015 at 02:35 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.