Skip to content

ERPConnect.AbapPostingPeriod

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

Represents an SAP posting period (DDIC type ACCP).

public readonly struct AbapPostingPeriod

Inherited Members

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

Constructors

AbapPostingPeriod(in ushort, in byte)

public AbapPostingPeriod(in ushort year, in byte month)

Parameters

year ushort

month byte

Properties

InitialValue

Gets a constant value representing the initial value (ABAP string 000000).

public static AbapPostingPeriod InitialValue { get; }

Property Value

AbapPostingPeriod

MaxValue

Gets the maximum representable posting period (9999-12).

public static AbapPostingPeriod MaxValue { get; }

Property Value

AbapPostingPeriod

MinValue

Gets the minimum representable posting period (0001-01).

public static AbapPostingPeriod MinValue { get; }

Property Value

AbapPostingPeriod

Month

public byte Month { get; }

Property Value

byte

Year

public ushort Year { get; }

Property Value

ushort

Methods

Parse(in string)

public static AbapPostingPeriod Parse(in string abapString)

Parameters

abapString string

Returns

AbapPostingPeriod

ToDateTime()

public DateTime? ToDateTime()

Returns

DateTime?

ToString()

public override string ToString()

Returns

string

UtcToday()

Gets an ERPConnect.AbapPostingPeriod representing the current date (UTC).

public static AbapPostingPeriod UtcToday()

Returns

AbapPostingPeriod