Issues when reading data from SAP into SQL using .NET Framework Data Provider for mySAP Business Suite

Mithal Chodankar 0 Reputation points
2024-01-03T06:49:48.2066667+00:00

When I try to Import data into SQL using SSIS package, the query used for SAP is

SELECT AFVC.MANDT, AFVC.AUFPL, AFVC.APLZL, AFVC.PROJN, AFVC.LOEKZ

FROM AFVU INNER JOIN AFVC on AFVU.AUFPL=AFVC.AUFPL and AFVU.APLZL = AFVC.APLZL

WHERE AFVC.LOEKZ != 'X' and AFVU.USR00 LIKE 'CritPath%'

OPTION 'DISABLEDATAVALIDATION, NO_CONVERSION'

This always returns a limited dataset for 10000 records. But If I add a BatchSize option for eg:

OPTION 'DISABLEDATAVALIDATION, BATCHSIZE=20000;NO_CONVERSION' It will return 20000 records.

I want to understand is this a limitation. If there us no joins in the query it will return the entire data from table AFVC

your help is appreciated.


Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
349 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,391 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 33,126 Reputation points
    2024-01-03T09:19:55.63+00:00

    Hi @Mithal Chodankar,

    As said in Syntax for a SELECT Statement in SAP.

    When set to batchsize <size>, the execution of the SELECT statement causes multiple calls to be made to the SAP system, and in each call, only <size> number of records are retrieved.

    For example, if you specify 'batchsize 100', the SELECT query retrieves 100 records only in each call to the SAP system.

    If batchsize <size> is not specified, the default value of 10,000 is assumed for the batch size. Note that you should specify an optimum value for the batch size based on the physical memory of the computer and the number of rows in the SAP system. Failure in specifying an optimum value for batch size may result in out of memory exceptions.

    You may have a double check.

    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.