
com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.FixedAssetFiAaRussiaTimeIndependentGeneralData 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.DepreciationGroup;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.Matnr;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.WeightsListOfPreciousMaterials;
import lombok.Builder;
import lombok.Data;
/**
* FI-AA: Russia - Time-Independent General Data (BAPI-struct)
*
* Structure: BAPI1022_GLO_RUS_GEN
*
*
*/
@Builder
@Data
public class FixedAssetFiAaRussiaTimeIndependentGeneralData {
/**
* Field name: DEPR_GROUP
*
* Type element: J_3RFAMORTGR
* Domain name: ORD4X
* Internal type: CHAR
* Description: Depreciation Group
* Max length: 4
*
*
*/
@ElementName("DEPR_GROUP")
@Nullable
private DepreciationGroup deprGroup;
/**
* Field name: MATERIAL
*
* Type element: MATNR
* Domain name: MATNR
* Internal type: CHAR
* Description: Material Number
* Max length: 40
*
*
*/
@ElementName("MATERIAL")
@Nullable
private Matnr material;
/**
* Field name: OKOF_CODE
*
* Type element: J_3RFOKOF
* Domain name: CHAR009
* Internal type: CHAR
* Description: OKOF Code
* Max length: 9
*
*
*/
@ElementName("OKOF_CODE")
@Nullable
private String okofCode;
/**
* Field name: PREC_MAT_CODES
*
* Type element: J_3RPRECC
* Domain name: CHAR30
* Internal type: CHAR
* Description: Precious materials codes
* Max length: 30
*
*
*/
@ElementName("PREC_MAT_CODES")
@Nullable
private String precMatCodes;
/**
* Field name: PREC_MAT_QUANTS
*
* Type element: J_3RPRECQ
* Domain name: CHAR40
* Internal type: CHAR
* Description: Quantities list of countable precious materials
* Max length: 40
*
*
*/
@ElementName("PREC_MAT_QUANTS")
@Nullable
private String precMatQuants;
/**
* Field name: PREC_MAT_WEIGHTS
*
* Type element: J_3RPRECW
* Domain name:
* Internal type: CHAR
* Description: Weights list of precious materials
* Max length: 50
*
*
*/
@ElementName("PREC_MAT_WEIGHTS")
@Nullable
private WeightsListOfPreciousMaterials precMatWeights;
/**
* Field name: SERIAL_NUM_LONG
*
* Type element: J_3RFSERNR
* Domain name: CHAR32
* Internal type: CHAR
* Description: Serial Number
* Max length: 32
*
*
*/
@ElementName("SERIAL_NUM_LONG")
@Nullable
private String serialNumLong;
public void validate()
throws IllegalArgumentException
{
if ((okofCode!= null)&&(okofCode.length()> 9)) {
throw new IllegalArgumentException("Bapi method parameter \"okofCode\" contains an invalid structure. Structure attribute \"OKOF_CODE\" / Function parameter \"okofCode\" must have at most 9 characters. The given value is too long.");
}
if ((precMatCodes!= null)&&(precMatCodes.length()> 30)) {
throw new IllegalArgumentException("Bapi method parameter \"precMatCodes\" contains an invalid structure. Structure attribute \"PREC_MAT_CODES\" / Function parameter \"precMatCodes\" must have at most 30 characters. The given value is too long.");
}
if ((precMatQuants!= null)&&(precMatQuants.length()> 40)) {
throw new IllegalArgumentException("Bapi method parameter \"precMatQuants\" contains an invalid structure. Structure attribute \"PREC_MAT_QUANTS\" / Function parameter \"precMatQuants\" must have at most 40 characters. The given value is too long.");
}
if ((serialNumLong!= null)&&(serialNumLong.length()> 32)) {
throw new IllegalArgumentException("Bapi method parameter \"serialNumLong\" contains an invalid structure. Structure attribute \"SERIAL_NUM_LONG\" / Function parameter \"serialNumLong\" must have at most 32 characters. The given value is too long.");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy