ERP Integrator V2 - Online Help
ERP Integrator V2
Questions / Feedback?

AddReceiveParam Method

Adds a parameter to the ReceiveParams collection.

Syntax

[VB.NET]
Public Sub AddReceiveParam(ByVal Name As String, ByVal ParamType As Integer)
[C#]
public void AddReceiveParam(string name, int paramType);

Remarks

This is useful for quickly adding a new parameter to the ReceiveParams collection. For example:

  SapServer1.AddReceiveParam("FIRSTNAME", ptCharacters);
Using the AddReceiveParam method as shown above is equivalent to the following:
  SapServer1.ReceiveParams.Add(new nsoftware.InERP.SapParam("FIRSTNAME", "". ptCharacters));
Note that the Value is not set by this method, because the UpdateReceiveParams method will fill them.

The ParamType parameter is used to indicate how the Value is to be interpreted. All of the possible ParamTypes are listed below. (Note that these correspond to the same values in the ParamType field.

ptCharacters (0) Character data.
ptDate (1) A date in the format YYYYMMDD.
ptPackedDecimal (2)Packed decimals are unique to the SAP system, and are treated as binary data by the component.
ptTime (3) A time in the format HHMMSS.
ptBinary (4) Raw binary data.
ptTable (5) Handle to a table in memory. Note that this functionality is not currently supported.
ptNumber (6) Numeric data formatted as a String.
ptFloat (7) An 8-byte floating-point number (double).
ptInteger (8) A 4-byte integer (int).
ptShort (9) A 2-byte integer (short).
ptByte (10) A 1-byte integer (byte).

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0