简体   繁体   English

如何限制通过使用JCO3的BAPI调用返回的记录数

[英]How to limit the number of records returned by BAPI call using JCO3

When retrieving information from SAP system, in certain cases, we get results in hundreds or thousands. 从SAP系统中检索信息时,在某些情况下,我们获得成百上千的结果。 In such cases, if we want to implement a kind of pagination mechanism, what are the options available in JCO3. 在这种情况下,如果我们想实现一种分页机制,那么JCO3中有哪些可用选项。

First of all, how to restrict the records to a desired number (100 or 1000, etc)? 首先,如何将记录限制为所需的数量(100或1000,等等)? Where should we define this? 我们应该在哪里定义呢? How to continue to the next iteration of results with a limited records in each iteration/page? 如何在每次迭代/页面中记录有限的情况下继续到结果的下一个迭代?

That depends on the BAPI / function module you're using. 这取决于您使用的BAPI /功能模块。 If the BAPI supports pagination, fine - if it doesn't, the JCo won't be able to help you out. 如果BAPI支持分页,那么很好-如果不支持,JCo将无法为您提供帮助。 You'll have to retrieve all records and do the pagination in your application. 您将必须检索所有记录并在应用程序中进行分页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM