Skip to content

ERPConnect.AbapString

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

Contains methods for parsing string representations of ABAP values

public static class AbapString

Inheritance

objectAbapString

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

Parse(string, AbapType)

Parses an ABAP string representation

public static object Parse(string value, AbapType abapType)

Parameters

value string

The string representation

abapType AbapType

The ABAP type of the representation

Returns

object

The typed value of the string representation

ParseBoolean(string)

Parses a string representation of an ABAP boolean

public static bool ParseBoolean(string value)

Parameters

value string

The string representation of the ABAP boolean

Returns

bool

The typed value of the string representation

ParseByteSequence(string)

Parses a string representation of an ABAP byte sequence

public static byte[] ParseByteSequence(string value)

Parameters

value string

The string representation of the ABAP byte sequence

Returns

byte[]

The typed value of the string representation

ParseFloatingPoint(string)

Parses a string representation of an ABAP floating point value

public static double ParseFloatingPoint(string value)

Parameters

value string

The string representation of the ABAP floating point value

Returns

double

The typed value of the string representation

ParsePackedNumber(string)

Parses a string representation of an ABAP packed number

public static decimal ParsePackedNumber(string value)

Parameters

value string

The string representation of the ABAP packed number

Returns

decimal

The typed value of the string representation

ParseSignedInteger(string)

Parses a string representation of an ABAP signed integer

public static long ParseSignedInteger(string value)

Parameters

value string

The string representation of the ABAP signed integer

Returns

long

The typed value of the string representation

ParseSignedNumericCharacter(in string)

Parses the SNUMC conversion exit.

public static decimal ParseSignedNumericCharacter(in string value)

Parameters

value string

The string representation of the SNUMC conversion exit

Returns

decimal

The signed integer corresponding to the string representation

ParseUnsignedInteger(string)

Parses a string representation of an ABAP unsigned integer

public static int ParseUnsignedInteger(string value)

Parameters

value string

The string representation of the ABAP unsigned integer

Returns

int

The typed value of the string representation

ReplaceStar(string, string)

Replaces the star in string representation of SAP table values which are too big for RFC_READ_TABLE

public static string ReplaceStar(string value, string starReplacement)

Parameters

value string

The string representation of the SAP table value

starReplacement string

The replacement for the star

Returns

string

The string representation where the star has been replaced

TryParseTime(string, out TimeSpan)

Try to parse a string representation of an ABAP TIMS (time)

public static bool TryParseTime(string value, out TimeSpan timeSpanVal)

Parameters

value string

The string representation of the ABAP Time (TIMS)

timeSpanVal TimeSpan

If the parser succeeds, this variable shall contain a TimeSpan between 00:00:00 and 23:59:59, otherwise TimeSpan.Zero

Returns

bool

True if the parser succeeds, false otherwise