SapParam Type
Parameter used in remote function calls.
Remarks
This type contains a single parameter, which is to be sent to the R/3 system when executing a remote function. For a request parameter you may specify the Value or leave it blank. Response parameters should be sent with the Value empty, as the remote function will fill in the value.
Fields
Length Integer |
This contains the length of the current parameter. Typically this does not need to be set, however when using SapServer, and the ParamType is set to a something like ptNumber, the parameter's length needs to be set to a value other than the default value of 514, or it will cause an error. | ||||||||||||||||||||||||||||||||||||
Name String |
Name of the parameter. | ||||||||||||||||||||||||||||||||||||
ParamType ParamTypes |
The type of the parameter. A list of valid parameter types is shown below:
| ||||||||||||||||||||||||||||||||||||
TableIndex Integer |
This corresponds to the TableIndex of the table that is to be passed as a parameter or as a parameter from NetWeaver. This will be used if ParamType is set to ptTable. | ||||||||||||||||||||||||||||||||||||
TableType String |
If ParamType is set to ptTable, this field will correspond with the TableType that corresponds to TableIndex. | ||||||||||||||||||||||||||||||||||||
Value String |
Actual data sent to or received from remote function call. For request parameters, you should set this value before calling the remote function. For response properties, this field will contain the value returned by the remote function. Integer and floating-point should be specified as strings, the component will convert the string representation into the value the remote function expects. | ||||||||||||||||||||||||||||||||||||
ValueB Byte[] |
Actual data sent to or received from remote function call. For request parameters, you should set this value before calling the remote function. For response properties, this field will contain the value returned by the remote function. Integer and floating-point should be specified as strings, the component will convert the string representation into the value the remote function expects. |
Constructors
[VB.NET] Public SapParam() [C#] public SapParam();
[VB.NET] Public SapParam(ByVal Name As String, ByVal Value As String, ByVal Length As Integer, ByVal ParamType As ParamTypes) [C#] public SapParam(string name, byte[] value, int length, ParamTypes paramType);
[VB.NET] Public SapParam(ByVal Name As String, ByVal Value As String, ByVal ParamType As ParamTypes) [C#] public SapParam(string name, string value, ParamTypes paramType);