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

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

There is a newer version: 2.28.0
Show newest version
/*
 * 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.DepreciationGroup;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.InventoryCardNumber;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.NewOkofCode;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.PledgeAmount;
import com.sap.cloud.sdk.s4hana.serialization.ErpBoolean;

import lombok.Builder;
import lombok.Data;

/**
 * FI-AA: Russia - Time-Dependent General Data (BAPI)
 * 
 *  Structure: BAPI1022_GLO_RUS_GENTD
 * 
* */ @Builder @Data public class FixedAssetFiAaRussiaTimeDependentGeneralData { /** * Field name: DEPR_GROUP_NEW *
     *  Type element: J_3RDEPRGRN
     *  Domain name: ORD4X
     *  Internal type: CHAR
     *  Description: Depreciation Group
     *  Max length: 4
     * 
* */ @ElementName("DEPR_GROUP_NEW") @Nullable private DepreciationGroup deprGroupNew; /** * Field name: INV_CARD_NUMBER *
     *  Type element: J_3RFICNMB
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: Inventory Card Number
     *  Max length: 25
     * 
* */ @ElementName("INV_CARD_NUMBER") @Nullable private InventoryCardNumber invCardNumber; /** * Field name: OKOF_CODE_NEW *
     *  Type element: J_3ROKOFN
     *  Domain name: 
     *  Internal type: CHAR
     *  Description: New OKOF Code
     *  Max length: 16
     * 
* */ @ElementName("OKOF_CODE_NEW") @Nullable private NewOkofCode okofCodeNew; /** * Field name: PLEDGED_ASSET *
     *  Type element: J_3RFPLDCHCK
     *  Domain name: XFELD
     *  Internal type: CHAR
     *  Description: Asset Pledged
     *  Max length: 1
     * 
* */ @ElementName("PLEDGED_ASSET") @Nullable private ErpBoolean pledgedAsset; /** * Field name: PLEDGEE *
     *  Type element: J_3RFPLDRCPN
     *  Domain name: CHAR10
     *  Internal type: CHAR
     *  Description: Pledgee
     *  Max length: 10
     * 
* */ @ElementName("PLEDGEE") @Nullable private String pledgee; /** * Field name: PLEDGE_AMOUNT *
     *  Type element: J_3RFPLDAMNT_13_2
     *  Domain name: CURRV13
     *  Internal type: CURR
     *  Description: Pledge Amount
     *  Max length: 7
     * 
* */ @ElementName("PLEDGE_AMOUNT") @Nullable private PledgeAmount pledgeAmount; /** * Field name: PLEDGE_DOC_NUM *
     *  Type element: J_3RFDOCNUM
     *  Domain name: CHAR32
     *  Internal type: CHAR
     *  Description: Document Number
     *  Max length: 32
     * 
* */ @ElementName("PLEDGE_DOC_NUM") @Nullable private String pledgeDocNum; /** * Field name: SHUTDOWN_DOCUM *
     *  Type element: J_3RFSHDDOCN
     *  Domain name: CHAR32
     *  Internal type: CHAR
     *  Description: Shutdown Document
     *  Max length: 32
     * 
* */ @ElementName("SHUTDOWN_DOCUM") @Nullable private String shutdownDocum; /** * Field name: SHUTDOWN_REASON *
     *  Type element: J_3RSTOPREASON
     *  Domain name: CHAR4
     *  Internal type: CHAR
     *  Description: Shutdown Reason
     *  Max length: 4
     * 
* */ @ElementName("SHUTDOWN_REASON") @Nullable private String shutdownReason; public void validate() throws IllegalArgumentException { if ((pledgee!= null)&&(pledgee.length()> 10)) { throw new IllegalArgumentException("Bapi method parameter \"pledgee\" contains an invalid structure. Structure attribute \"PLEDGEE\" / Function parameter \"pledgee\" must have at most 10 characters. The given value is too long."); } if ((pledgeDocNum!= null)&&(pledgeDocNum.length()> 32)) { throw new IllegalArgumentException("Bapi method parameter \"pledgeDocNum\" contains an invalid structure. Structure attribute \"PLEDGE_DOC_NUM\" / Function parameter \"pledgeDocNum\" must have at most 32 characters. The given value is too long."); } if ((shutdownDocum!= null)&&(shutdownDocum.length()> 32)) { throw new IllegalArgumentException("Bapi method parameter \"shutdownDocum\" contains an invalid structure. Structure attribute \"SHUTDOWN_DOCUM\" / Function parameter \"shutdownDocum\" must have at most 32 characters. The given value is too long."); } if ((shutdownReason!= null)&&(shutdownReason.length()> 4)) { throw new IllegalArgumentException("Bapi method parameter \"shutdownReason\" contains an invalid structure. Structure attribute \"SHUTDOWN_REASON\" / Function parameter \"shutdownReason\" must have at most 4 characters. The given value is too long."); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy