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

com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.FixedAssetFiAaRussiaTimeDependentPropertyTax 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 javax.annotation.Nullable;

import com.sap.cloud.sdk.result.ElementName;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.FixedAssetIsNotLiableForTaxation;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.SpecialPropertyTaxCategory;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.TerritorialCode;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.TerritorialCode3;

import lombok.Builder;
import lombok.Data;

/**
 * FI-AA: Russia - Time-Dependent Property Tax (BAPI)
 * 
 *  Structure: BAPI1022_GLO_RUS_PTXTD
 * 
* */ @Builder @Data public class FixedAssetFiAaRussiaTimeDependentPropertyTax { /** * Field name: PRT_AMRED_CODE *
     *  Type element: J_3RFAMOUNTRED
     *  Domain name: CHAR04
     *  Internal type: CHAR
     *  Description: Property Tax Amount Reduction Code
     *  Max length: 4
     * 
* */ @ElementName("PRT_AMRED_CODE") @Nullable private String prtAmredCode; /** * Field name: PRT_EX_CODE *
     *  Type element: J_3RFEXEMPTION
     *  Domain name: CHAR04
     *  Internal type: CHAR
     *  Description: Property Tax Exemption Code
     *  Max length: 4
     * 
* */ @ElementName("PRT_EX_CODE") @Nullable private String prtExCode; /** * Field name: PRT_EX_REASON *
     *  Type element: J_3RF_EXEMPTION_REASON
     *  Domain name: J_3RF_EXEMPTION_REASON
     *  Internal type: CHAR
     *  Description: Fixed Asset is not Liable for Taxation
     *  Max length: 1
     * 
* */ @ElementName("PRT_EX_REASON") @Nullable private FixedAssetIsNotLiableForTaxation prtExReason; /** * Field name: PRT_PROP_TYPEN *
     *  Type element: J_3RFPROPTYPEN
     *  Domain name: CHAR2
     *  Internal type: CHAR
     *  Description: Property Type
     *  Max length: 2
     * 
* */ @ElementName("PRT_PROP_TYPEN") @Nullable private String prtPropTypen; /** * Field name: PRT_RED_CODE *
     *  Type element: J_3RFPRIVILEGE
     *  Domain name: CHAR04
     *  Internal type: CHAR
     *  Description: Property Tax Reduction
     *  Max length: 4
     * 
* */ @ElementName("PRT_RED_CODE") @Nullable private String prtRedCode; /** * Field name: PRT_SPEC_CAT *
     *  Type element: J_3RF_PRTX_SPEC_CAT
     *  Domain name: J_3RF_PRTX_SPEC_CAT
     *  Internal type: CHAR
     *  Description: Special Property Tax Category
     *  Max length: 2
     * 
* */ @ElementName("PRT_SPEC_CAT") @Nullable private SpecialPropertyTaxCategory prtSpecCat; /** * Field name: PRT_TERR_CODE1 *
     *  Type element: J_3R_PRT_TERR_CODE1
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: Territorial Code (Part 1)
     *  Max length: 2
     * 
* */ @ElementName("PRT_TERR_CODE1") @Nullable private TerritorialCode prtTerrCode1; /** * Field name: PRT_TERR_CODE2 *
     *  Type element: J_3R_PRT_TERR_CODE2
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: Territorial Code (Part 2)
     *  Max length: 3
     * 
* */ @ElementName("PRT_TERR_CODE2") @Nullable private TerritorialCode3 prtTerrCode2; /** * Field name: PRT_TERR_CODE3 *
     *  Type element: J_3R_PRT_TERR_CODE3
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: Territorial Code (Part 3)
     *  Max length: 3
     * 
* */ @ElementName("PRT_TERR_CODE3") @Nullable private TerritorialCode3 prtTerrCode3; /** * Field name: PRT_TERR_CODE4 *
     *  Type element: J_3R_PRT_TERR_CODE4
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: Territorial Code (Part 4)
     *  Max length: 3
     * 
* */ @ElementName("PRT_TERR_CODE4") @Nullable private TerritorialCode3 prtTerrCode4; public void validate() throws IllegalArgumentException { if ((prtAmredCode!= null)&&(prtAmredCode.length()> 4)) { throw new IllegalArgumentException("Bapi method parameter \"prtAmredCode\" contains an invalid structure. Structure attribute \"PRT_AMRED_CODE\" / Function parameter \"prtAmredCode\" must have at most 4 characters. The given value is too long."); } if ((prtExCode!= null)&&(prtExCode.length()> 4)) { throw new IllegalArgumentException("Bapi method parameter \"prtExCode\" contains an invalid structure. Structure attribute \"PRT_EX_CODE\" / Function parameter \"prtExCode\" must have at most 4 characters. The given value is too long."); } if ((prtPropTypen!= null)&&(prtPropTypen.length()> 2)) { throw new IllegalArgumentException("Bapi method parameter \"prtPropTypen\" contains an invalid structure. Structure attribute \"PRT_PROP_TYPEN\" / Function parameter \"prtPropTypen\" must have at most 2 characters. The given value is too long."); } if ((prtRedCode!= null)&&(prtRedCode.length()> 4)) { throw new IllegalArgumentException("Bapi method parameter \"prtRedCode\" contains an invalid structure. Structure attribute \"PRT_RED_CODE\" / Function parameter \"prtRedCode\" must have at most 4 characters. The given value is too long."); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy