Class RevenueAccountingHeader
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: RevenueAccountingHeader_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of RevenueAccountingHeader instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<RevenueAccountingHeader,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.Boolean<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty<RevenueAccountingHeader>Selector for all available fields of RevenueAccountingHeader.static final SimpleProperty.DateTime<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.DateTime<RevenueAccountingHeader>static final SimpleProperty.Date<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.NumericInteger<RevenueAccountingHeader>static final SimpleProperty.NumericInteger<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.Date<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>static final SimpleProperty.String<RevenueAccountingHeader>Use with available request builders to apply the _PRAAcctgDocDetail navigation property to query operations.static final SimpleProperty.NumericDecimal<RevenueAccountingHeader>static final SimpleProperty.NumericDecimal<RevenueAccountingHeader>static final SimpleProperty.NumericDecimal<RevenueAccountingHeader>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionRevenueAccountingHeader(String companyCode, String pRAAccountingPeriod, String accountingDocument, String documentDescription, String pRAOrigin, String accountingDocumentType, String originReferenceDocument, String accountingDocumentStatus, Boolean accountingDocumentIsReversed, String accountingDocumentCrossCoRef, LocalDate postingDate, LocalDate documentDate, BigDecimal totalDebitAmount, BigDecimal totalCreditAmount, BigDecimal totalStatisticalAmount, String companyCodeCurrency, String createdByUser, OffsetDateTime creationDateTime, String lastChangedByUser, OffsetDateTime changedDateTime, Integer numberOfItems, Integer numberOfRejectedItems, Collection<SAP__Message> _Messages, List<RevenueAccountingItems> to_PRAAcctgDocDetail) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPRAAcctgDocDetail(RevenueAccountingItems... entity) Adds elements to the list of associated RevenueAccountingItems entities.builder()protected booleanbooleanprotected voidConstraints: Not nullable(Key Field) Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 20Constraints: Not nullableConstraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 2Constraints: Nullable(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 12Constraints: Nullableprotected StringConstraints: NullableConstraints: Not nullable, Maximum length: 60protected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 12Constraints: Not nullableConstraints: Not nullableConstraints: Not nullable, Maximum length: 20Constraints: Nullable(Key Field) Constraints: Not nullable, Maximum length: 6io.vavr.control.Option<List<RevenueAccountingItems>>Retrieval of associated RevenueAccountingItems entities (one to many).Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Precision: 13, Scale: 0Constraints: Not nullable, Precision: 13, Scale: 0Constraints: Not nullable, Precision: 13, Scale: 0getType()inthashCode()voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetAccountingDocument(String accountingDocument) (Key Field) Constraints: Not nullable, Maximum length: 10voidsetAccountingDocumentCrossCoRef(String accountingDocumentCrossCoRef) Constraints: Not nullable, Maximum length: 20voidsetAccountingDocumentIsReversed(Boolean accountingDocumentIsReversed) Constraints: Not nullablevoidsetAccountingDocumentStatus(String accountingDocumentStatus) Constraints: Not nullable, Maximum length: 2voidsetAccountingDocumentType(String accountingDocumentType) Constraints: Not nullable, Maximum length: 2voidsetChangedDateTime(OffsetDateTime changedDateTime) Constraints: NullablevoidsetCompanyCode(String companyCode) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetCompanyCodeCurrency(String companyCodeCurrency) Constraints: Not nullable, Maximum length: 3voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: NullablevoidsetDocumentDate(LocalDate documentDate) Constraints: NullablevoidsetDocumentDescription(String documentDescription) Constraints: Not nullable, Maximum length: 60voidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12voidsetNumberOfItems(Integer numberOfItems) Constraints: Not nullablevoidsetNumberOfRejectedItems(Integer numberOfRejectedItems) Constraints: Not nullablevoidsetOriginReferenceDocument(String originReferenceDocument) Constraints: Not nullable, Maximum length: 20voidsetPostingDate(LocalDate postingDate) Constraints: NullablevoidsetPRAAccountingPeriod(String pRAAccountingPeriod) (Key Field) Constraints: Not nullable, Maximum length: 6voidOverwrites the list of associated RevenueAccountingItems entities for the loaded navigation property _PRAAcctgDocDetail.voidsetPRAOrigin(String pRAOrigin) Constraints: Not nullable, Maximum length: 2voidsetTotalCreditAmount(BigDecimal totalCreditAmount) Constraints: Not nullable, Precision: 13, Scale: 0voidsetTotalDebitAmount(BigDecimal totalDebitAmount) Constraints: Not nullable, Precision: 13, Scale: 0voidsetTotalStatisticalAmount(BigDecimal totalStatisticalAmount) Constraints: Not nullable, Precision: 13, Scale: 0simulateDocument(String companyCode, String pRAAccountingPeriod, String accountingDocument, String documentDescription, String pRAOrigin, String accountingDocumentType, String originReferenceDocument, Collection<D_PRAAcctgDocDetailSmlteP> _PRAAcctgDocDetail) Action that can be applied to a collection of entities of this class.toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of RevenueAccountingHeader. -
COMPANY_CODE
-
PRA_ACCOUNTING_PERIOD
-
ACCOUNTING_DOCUMENT
-
DOCUMENT_DESCRIPTION
-
PRA_ORIGIN
-
ACCOUNTING_DOCUMENT_TYPE
-
ORIGIN_REFERENCE_DOCUMENT
-
ACCOUNTING_DOCUMENT_STATUS
-
ACCOUNTING_DOCUMENT_IS_REVERSED
-
ACCOUNTING_DOCUMENT_CROSS_CO_REF
-
POSTING_DATE
-
DOCUMENT_DATE
-
TOTAL_DEBIT_AMOUNT
-
TOTAL_CREDIT_AMOUNT
-
TOTAL_STATISTICAL_AMOUNT
-
COMPANY_CODE_CURRENCY
-
CREATED_BY_USER
-
CREATION_DATE_TIME
-
LAST_CHANGED_BY_USER
-
CHANGED_DATE_TIME
-
NUMBER_OF_ITEMS
-
NUMBER_OF_REJECTED_ITEMS
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__P_R_A_ACCTG_DOC_DETAIL
public static final NavigationProperty.Collection<RevenueAccountingHeader,RevenueAccountingItems> TO__P_R_A_ACCTG_DOC_DETAILUse with available request builders to apply the _PRAAcctgDocDetail navigation property to query operations.
-
-
Constructor Details
-
RevenueAccountingHeader
public RevenueAccountingHeader() -
RevenueAccountingHeader
public RevenueAccountingHeader(@Nullable String companyCode, @Nullable String pRAAccountingPeriod, @Nullable String accountingDocument, @Nullable String documentDescription, @Nullable String pRAOrigin, @Nullable String accountingDocumentType, @Nullable String originReferenceDocument, @Nullable String accountingDocumentStatus, @Nullable Boolean accountingDocumentIsReversed, @Nullable String accountingDocumentCrossCoRef, @Nullable LocalDate postingDate, @Nullable LocalDate documentDate, @Nullable BigDecimal totalDebitAmount, @Nullable BigDecimal totalCreditAmount, @Nullable BigDecimal totalStatisticalAmount, @Nullable String companyCodeCurrency, @Nullable String createdByUser, @Nullable OffsetDateTime creationDateTime, @Nullable String lastChangedByUser, @Nullable OffsetDateTime changedDateTime, @Nullable Integer numberOfItems, @Nullable Integer numberOfRejectedItems, @Nullable Collection<SAP__Message> _Messages, List<RevenueAccountingItems> to_PRAAcctgDocDetail)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<RevenueAccountingHeader>
-
setCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setPRAAccountingPeriod
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: PRAAccountingPeriod
- Parameters:
pRAAccountingPeriod- PRA Accounting Period
-
setAccountingDocument
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AccountingDocument
- Parameters:
accountingDocument- Revenue Accounting Document Number
-
setDocumentDescription
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: DocumentDescription
- Parameters:
documentDescription- Document Description
-
setPRAOrigin
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: PRAOrigin
- Parameters:
pRAOrigin- Application
-
setAccountingDocumentType
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AccountingDocumentType
- Parameters:
accountingDocumentType- Document Type
-
setOriginReferenceDocument
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: OriginReferenceDocument
- Parameters:
originReferenceDocument- Source Reference Document (VL,CI,SS,FT)
-
setAccountingDocumentStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AccountingDocumentStatus
- Parameters:
accountingDocumentStatus- Accounting Document Status
-
setAccountingDocumentIsReversed
Constraints: Not nullableOriginal property name from the Odata EDM: AccountingDocumentIsReversed
- Parameters:
accountingDocumentIsReversed- Accounting Reverse Flag
-
setAccountingDocumentCrossCoRef
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: AccountingDocumentCrossCoRef
- Parameters:
accountingDocumentCrossCoRef- Cross Company key for Accounting Document Header
-
setPostingDate
Constraints: NullableOriginal property name from the Odata EDM: PostingDate
- Parameters:
postingDate- Accounting Document Posting Date
-
setDocumentDate
Constraints: NullableOriginal property name from the Odata EDM: DocumentDate
- Parameters:
documentDate- Document Date
-
setTotalDebitAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalDebitAmount
- Parameters:
totalDebitAmount- Debit Amount
-
setTotalCreditAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalCreditAmount
- Parameters:
totalCreditAmount- Credit Amount
-
setTotalStatisticalAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalStatisticalAmount
- Parameters:
totalStatisticalAmount- Statitical Amount
-
setCompanyCodeCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CompanyCodeCurrency
- Parameters:
companyCodeCurrency- Currency Key
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Created By
-
setCreationDateTime
Constraints: NullableOriginal property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Created On Timestamp
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Changed By
-
setChangedDateTime
Constraints: NullableOriginal property name from the Odata EDM: ChangedDateTime
- Parameters:
changedDateTime- Changed On Timestamp
-
setNumberOfItems
Constraints: Not nullableOriginal property name from the Odata EDM: NumberOfItems
- Parameters:
numberOfItems- Number of Items
-
setNumberOfRejectedItems
Constraints: Not nullableOriginal property name from the Odata EDM: NumberOfRejectedItems
- Parameters:
numberOfRejectedItems- Number of Rejected Items
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<RevenueAccountingHeader>
-
getKey
- Overrides:
getKeyin classVdmObject<RevenueAccountingHeader>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<RevenueAccountingHeader>
-
fromMap
- Overrides:
fromMapin classVdmObject<RevenueAccountingHeader>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<RevenueAccountingHeader>
-
getPRAAcctgDocDetailIfPresent
@Nonnull public io.vavr.control.Option<List<RevenueAccountingItems>> getPRAAcctgDocDetailIfPresent()Retrieval of associated RevenueAccountingItems entities (one to many). This corresponds to the OData navigation property _PRAAcctgDocDetail.If the navigation property for an entity RevenueAccountingHeader has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _PRAAcctgDocDetail is already loaded, the result will
contain the RevenueAccountingItems entities. If not, an
Optionwith result stateemptyis returned.
-
setPRAAcctgDocDetail
Overwrites the list of associated RevenueAccountingItems entities for the loaded navigation property _PRAAcctgDocDetail.If the navigation property _PRAAcctgDocDetail of a queried RevenueAccountingHeader is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Parameters:
value- List of RevenueAccountingItems entities.
-
addPRAAcctgDocDetail
Adds elements to the list of associated RevenueAccountingItems entities. This corresponds to the OData navigation property _PRAAcctgDocDetail.If the navigation property _PRAAcctgDocDetail of a queried RevenueAccountingHeader is operated lazily, an ODataException can be thrown in case of an OData query error.
Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.
- Parameters:
entity- Array of RevenueAccountingItems entities.
-
simulateDocument
@Nonnull public static BoundAction.CollectionToCollection<RevenueAccountingHeader,SimulateWithPRAKeysResult_Type> simulateDocument(@Nonnull String companyCode, @Nonnull String pRAAccountingPeriod, @Nonnull String accountingDocument, @Nonnull String documentDescription, @Nonnull String pRAOrigin, @Nonnull String accountingDocumentType, @Nonnull String originReferenceDocument, @Nonnull Collection<D_PRAAcctgDocDetailSmlteP> _PRAAcctgDocDetail) Action that can be applied to a collection of entities of this class.- Parameters:
companyCode- Constraints: Not nullable, Maximum length: 4Original parameter name from the Odata EDM: CompanyCode
accountingDocumentType- Constraints: Not nullable, Maximum length: 2Original parameter name from the Odata EDM: AccountingDocumentType
documentDescription- Constraints: Not nullable, Maximum length: 60Original parameter name from the Odata EDM: DocumentDescription
accountingDocument- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: AccountingDocument
pRAOrigin- Constraints: Not nullable, Maximum length: 2Original parameter name from the Odata EDM: PRAOrigin
pRAAccountingPeriod- Constraints: Not nullable, Maximum length: 6Original parameter name from the Odata EDM: PRAAccountingPeriod
originReferenceDocument- Constraints: Not nullable, Maximum length: 20Original parameter name from the Odata EDM: OriginReferenceDocument
_PRAAcctgDocDetail- Constraints: Not nullableOriginal parameter name from the Odata EDM: _PRAAcctgDocDetail
- Returns:
- Action object prepared with the given parameters to be applied to a collection of entities of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getCompanyCode
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getPRAAccountingPeriod
(Key Field) Constraints: Not nullable, Maximum length: 6Original property name from the Odata EDM: PRAAccountingPeriod
- Returns:
- PRA Accounting Period
-
getAccountingDocument
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: AccountingDocument
- Returns:
- Revenue Accounting Document Number
-
getDocumentDescription
Constraints: Not nullable, Maximum length: 60Original property name from the Odata EDM: DocumentDescription
- Returns:
- Document Description
-
getPRAOrigin
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: PRAOrigin
- Returns:
- Application
-
getAccountingDocumentType
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AccountingDocumentType
- Returns:
- Document Type
-
getOriginReferenceDocument
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: OriginReferenceDocument
- Returns:
- Source Reference Document (VL,CI,SS,FT)
-
getAccountingDocumentStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: AccountingDocumentStatus
- Returns:
- Accounting Document Status
-
getAccountingDocumentIsReversed
Constraints: Not nullableOriginal property name from the Odata EDM: AccountingDocumentIsReversed
- Returns:
- Accounting Reverse Flag
-
getAccountingDocumentCrossCoRef
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: AccountingDocumentCrossCoRef
- Returns:
- Cross Company key for Accounting Document Header
-
getPostingDate
Constraints: NullableOriginal property name from the Odata EDM: PostingDate
- Returns:
- Accounting Document Posting Date
-
getDocumentDate
Constraints: NullableOriginal property name from the Odata EDM: DocumentDate
- Returns:
- Document Date
-
getTotalDebitAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalDebitAmount
- Returns:
- Debit Amount
-
getTotalCreditAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalCreditAmount
- Returns:
- Credit Amount
-
getTotalStatisticalAmount
Constraints: Not nullable, Precision: 13, Scale: 0Original property name from the Odata EDM: TotalStatisticalAmount
- Returns:
- Statitical Amount
-
getCompanyCodeCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: CompanyCodeCurrency
- Returns:
- Currency Key
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Created By
-
getCreationDateTime
Constraints: NullableOriginal property name from the Odata EDM: CreationDateTime
- Returns:
- Created On Timestamp
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Changed By
-
getChangedDateTime
Constraints: NullableOriginal property name from the Odata EDM: ChangedDateTime
- Returns:
- Changed On Timestamp
-
getNumberOfItems
Constraints: Not nullableOriginal property name from the Odata EDM: NumberOfItems
- Returns:
- Number of Items
-
getNumberOfRejectedItems
Constraints: Not nullableOriginal property name from the Odata EDM: NumberOfRejectedItems
- Returns:
- Number of Rejected Items
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<RevenueAccountingHeader>
-
equals
- Overrides:
equalsin classVdmEntity<RevenueAccountingHeader>
-
canEqual
- Overrides:
canEqualin classVdmEntity<RevenueAccountingHeader>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<RevenueAccountingHeader>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<RevenueAccountingHeader>
-