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

com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.FixedAssetRealEstateAndSimilarRights Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
 */

package com.sap.cloud.sdk.s4hana.datamodel.bapi.structures;

import java.time.LocalDate;

import javax.annotation.Nullable;

import com.sap.cloud.sdk.result.ElementName;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.AreaUnit;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.BaseUnitOfMeasureInIsoCode;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.LandRegisterEntrySequenceNumber;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.LandRegisterPage;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.LandRegisterVolume;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.SurfaceArea;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.TaxNumberOfTheNoticeOfAssessment;

import lombok.Builder;
import lombok.Data;

/**
 * Logical field group 007 - Real estate and similar rights
 * 
 *  Structure: BAPI1022_FEGLG007
 * 
* */ @Builder @Data public class FixedAssetRealEstateAndSimilarRights { /** * Field name: AREA *
     *  Type element: BF_GRUFL
     *  Domain name: MENG13
     *  Internal type: QUAN
     *  Description: Surface area
     *  Max length: 7
     * 
* */ @ElementName("AREA") @Nullable private SurfaceArea area; /** * Field name: AREA_UOM *
     *  Type element: BF_FEINS
     *  Domain name: MEINS
     *  Internal type: UNIT
     *  Description: Area unit
     *  Max length: 3
     * 
* */ @ElementName("AREA_UOM") @Nullable private AreaUnit areaUom; /** * Field name: AREA_UOM_ISO *
     *  Type element: MEINS_ISO
     *  Domain name: ISOCD_UNIT
     *  Internal type: CHAR
     *  Description: Base unit of measure in ISO code
     *  Max length: 3
     * 
* */ @ElementName("AREA_UOM_ISO") @Nullable private BaseUnitOfMeasureInIsoCode areaUomIso; /** * Field name: ASSESSMENT_NOTICE_DATE *
     *  Type element: BF_EHWZU_ANLA
     *  Domain name: DATUM
     *  Internal type: DATS
     *  Description: Date of last notice of assessment
     *  Max length: 8
     * 
* */ @ElementName("ASSESSMENT_NOTICE_DATE") @Nullable private LocalDate assessmentNoticeDate; /** * Field name: CONVEYANCE_DATE *
     *  Type element: BF_AUFLA_ANLA
     *  Domain name: DATUM
     *  Internal type: DATS
     *  Description: Date of conveyance
     *  Max length: 8
     * 
* */ @ElementName("CONVEYANCE_DATE") @Nullable private LocalDate conveyanceDate; /** * Field name: LNDREG_DATE *
     *  Type element: BF_GRUVO_ANLA
     *  Domain name: DATUM
     *  Internal type: DATS
     *  Description: Land Register of
     *  Max length: 8
     * 
* */ @ElementName("LNDREG_DATE") @Nullable private LocalDate lndregDate; /** * Field name: LNDREG_ENTRY_DATE *
     *  Type element: BF_GREIN_ANLA
     *  Domain name: DATUM
     *  Internal type: DATS
     *  Description: Land register entry on
     *  Max length: 8
     * 
* */ @ElementName("LNDREG_ENTRY_DATE") @Nullable private LocalDate lndregEntryDate; /** * Field name: LNDREG_MAP_NO *
     *  Type element: BF_FLURK_ANLA
     *  Domain name: CHAR4
     *  Internal type: CHAR
     *  Description: Land register map number
     *  Max length: 4
     * 
* */ @ElementName("LNDREG_MAP_NO") @Nullable private String lndregMapNo; /** * Field name: LNDREG_NO *
     *  Type element: BF_GRLFD_ANLA
     *  Domain name: BF_GRLFD_ANLA
     *  Internal type: CHAR
     *  Description: Land register entry: Sequence number
     *  Max length: 4
     * 
* */ @ElementName("LNDREG_NO") @Nullable private LandRegisterEntrySequenceNumber lndregNo; /** * Field name: LNDREG_PG *
     *  Type element: BF_GRBLT_ANLA
     *  Domain name: BF_GRBLT_ANLA
     *  Internal type: CHAR
     *  Description: Land register page
     *  Max length: 5
     * 
* */ @ElementName("LNDREG_PG") @Nullable private LandRegisterPage lndregPg; /** * Field name: LNDREG_PLOT_NO *
     *  Type element: BF_FLURN_ANLA
     *  Domain name: CHAR10
     *  Internal type: CHAR
     *  Description: Plot number
     *  Max length: 10
     * 
* */ @ElementName("LNDREG_PLOT_NO") @Nullable private String lndregPlotNo; /** * Field name: LNDREG_VOL *
     *  Type element: BF_GRBND_ANLA
     *  Domain name: BF_GRBND_ANLA
     *  Internal type: CHAR
     *  Description: Land register volume
     *  Max length: 5
     * 
* */ @ElementName("LNDREG_VOL") @Nullable private LandRegisterVolume lndregVol; /** * Field name: MUNICIPALITY *
     *  Type element: BF_ORT01_ANLA
     *  Domain name: TEXT25
     *  Internal type: CHAR
     *  Description: Municipality
     *  Max length: 25
     * 
* */ @ElementName("MUNICIPALITY") @Nullable private String municipality; /** * Field name: TAX_NO *
     *  Type element: BF_EHWNR_ANLA
     *  Domain name: BF_EHWNR_ANLA
     *  Internal type: CHAR
     *  Description: Tax number of the notice of assessment
     *  Max length: 16
     * 
* */ @ElementName("TAX_NO") @Nullable private TaxNumberOfTheNoticeOfAssessment taxNo; /** * Field name: TAX_OFFICE *
     *  Type element: BF_FIAMT
     *  Domain name: TEXT25
     *  Internal type: CHAR
     *  Description: Local tax office
     *  Max length: 25
     * 
* */ @ElementName("TAX_OFFICE") @Nullable private String taxOffice; public void validate() throws IllegalArgumentException { if ((lndregMapNo!= null)&&(lndregMapNo.length()> 4)) { throw new IllegalArgumentException("Bapi method parameter \"lndregMapNo\" contains an invalid structure. Structure attribute \"LNDREG_MAP_NO\" / Function parameter \"lndregMapNo\" must have at most 4 characters. The given value is too long."); } if ((lndregPlotNo!= null)&&(lndregPlotNo.length()> 10)) { throw new IllegalArgumentException("Bapi method parameter \"lndregPlotNo\" contains an invalid structure. Structure attribute \"LNDREG_PLOT_NO\" / Function parameter \"lndregPlotNo\" must have at most 10 characters. The given value is too long."); } if ((municipality!= null)&&(municipality.length()> 25)) { throw new IllegalArgumentException("Bapi method parameter \"municipality\" contains an invalid structure. Structure attribute \"MUNICIPALITY\" / Function parameter \"municipality\" must have at most 25 characters. The given value is too long."); } if ((taxOffice!= null)&&(taxOffice.length()> 25)) { throw new IllegalArgumentException("Bapi method parameter \"taxOffice\" contains an invalid structure. Structure attribute \"TAX_OFFICE\" / Function parameter \"taxOffice\" must have at most 25 characters. The given value is too long."); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy