All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.PostingInAccountingCoPaAcctAssignmentCharacteristic 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 lombok.Builder;
import lombok.Data;

/**
 * Posting in Accounting: CO-PA Acct Assignment Characteristics
 * 
 *  Structure: BAPIACKECR
 * 
* */ @Builder @Data public class PostingInAccountingCoPaAcctAssignmentCharacteristic { /** * Field name: CHARACTER *
     *  Type element: 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; 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