
com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.AccountingDocumentCheckPostingInAccountingCoPaAcctAssignmentCharacteristic Maven / Gradle / Ivy
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.s4hana.datamodel.bapi.structures;
import javax.annotation.Nullable;
import com.sap.cloud.sdk.result.ElementName;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.AccountingDocumentLineItemNumber;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.FieldName;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.ProductNumber;
import lombok.Builder;
import lombok.Data;
/**
* Posting in accounting: CO-PA acct assignment characteristics
*
* Structure: BAPIACKEC9
*
*
*/
@Builder
@Data
public class AccountingDocumentCheckPostingInAccountingCoPaAcctAssignmentCharacteristic {
/**
* Field name: CHARACTER
*
* Type element: ACPI_RKE_CRIGEN
* Domain name: CHAR18
* Internal type: CHAR
* Description: Characteristic (concrete use ==> EDIMAP)
* Max length: 18
*
*
*/
@ElementName("CHARACTER")
@Nullable
private String character;
/**
* Field name: FIELDNAME
*
* Type element: FIELDNAME
* Domain name: FDNAME
* Internal type: CHAR
* Description: Field Name
* Max length: 30
*
*
*/
@ElementName("FIELDNAME")
@Nullable
private FieldName fieldname;
/**
* Field name: ITEMNO_ACC
*
* Type element: POSNR_ACC
* Domain name: POSNR_ACC
* Internal type: NUMC
* Description: Accounting Document Line Item Number
* Max length: 10
*
*
*/
@ElementName("ITEMNO_ACC")
@Nullable
private AccountingDocumentLineItemNumber itemnoAcc;
/**
* Field name: PROD_NO_LONG
*
* Type element: BAPI_PROD_NO
* Domain name:
* Internal type: CHAR
* Description: Product Number
* Max length: 40
*
*
*/
@ElementName("PROD_NO_LONG")
@Nullable
private ProductNumber prodNoLong;
public void validate()
throws IllegalArgumentException
{
if ((character!= null)&&(character.length()> 18)) {
throw new IllegalArgumentException("Bapi method parameter \"character\" contains an invalid structure. Structure attribute \"CHARACTER\" / Function parameter \"character\" must have at most 18 characters. The given value is too long.");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy