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

AddReceiveParam Method

Adds a parameter to the ReceiveParams collection.

Syntax

procedure AddReceiveParam(Name: String; ParamType: Integer);

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.SetReceiveParamCount(SapServer1.GetReplyParamCount() + 1);
  SapServer1.SetReceiveParamName (SapServer1.GetReplyParamCount() - 1, "FIRSTNAME");
  SapServer1.SetReceiveParamType (SapServer1.GetReplyParamCount() - 1, PT_CHARACTERS);
Note that the ReceiveParamValue is not set by this method, because the UpdateReceiveParams method will fill them.

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

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