Show TOC

Procedure documentationDeactivating Parameters Locate this document in the navigation structure

 

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:

Note Note

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.

End of the note.

Deactivating Parameters

function.getExportParameterList().

setActive(false, "COMPANYCODE_ADDRESS");