Deactivating Parameters
The previous sections have described the principles for working with parameters. You know how to access a structure, a table, and scalar parameters, and you are familiar with the class JCO.Field. This section contains further advice for optimizing performance:
Many
BAPIs have a large number of parameters, not all of which are used in an
application. There is no way to prevent the SAP system from returning a
parameter, but you can prevent the SAP JCo forwarding a parameter to the Java
layer. To do this, you simply need to declare the parameter as
inactive, as displayed in the diagram below. This is particularly
effective for larger tables that are returned by the SAP system.

function.getExportParameterList().
setActive(false, "COMPANYCODE_ADDRESS"); |