Start of Content Area

Procedure documentation Deactivating Parameters  Locate the document in its SAP Library structure

Use

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:

 

 

NoteMany 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.

Syntax documentation

Deactivating Parameters

function.getExportParameterList().

  

    setActive(false, "COMPANYCODE_ADDRESS");

 

 

 

End of Content Area