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

AddReplyParam Method

Adds a parameter to the ReplyParams collection.

Syntax

procedure AddReplyParam(Name: String; Value: String; ParamType: Integer);

Remarks

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

  SapServer1.AddReplyParam("GREETING", "Hello world", ptCharacters);
Using the AddReplyParam method as shown above is equivalent to the following:
  SapServer1.SetReplyParamCount(SapServer1.GetReplyParamCount() + 1);
  SapServer1.SetReplyParamName (SapServer1.GetReplyParamCount() - 1, "GREETING");
  SapServer1.SetReplyParamValue(SapServer1.GetReplyParamCount() - 1, "Hello world");
  SapServer1.SetReplyParamType (SapServer1.GetReplyParamCount() - 1, PT_CHARACTERS);

The ParamType parameter is used to indicate how the ReplyParamValue is to be interpreted. All of the possible ParamTypes are listed below. (Note that these correspond to the same values in the ReplyParamType 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