
com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.FixedAssetGeneralData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bapi-api Show documentation
Show all versions of bapi-api Show documentation
Generated classes of the SAP S/4HANA Virtual Data Model (VDM) for BAPIs.
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.AccountDetermination;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.AssetClass;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.BaseUnitOfMeasure;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.BaseUnitOfMeasureInIsoCode;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.InventoryNumber;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.Quantity;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.SerialNumber;
import com.sap.cloud.sdk.s4hana.serialization.ErpBoolean;
import lombok.Builder;
import lombok.Data;
/**
* Logical field group 001 - General data
*
* Structure: BAPI1022_FEGLG001
*
*
*/
@Builder
@Data
public class FixedAssetGeneralData {
/**
* Field name: ACCT_DETRM
*
* Type element: BF_KTOGR
* Domain name: KTOGR
* Internal type: CHAR
* Description: Account determination
* Max length: 8
*
*
*/
@ElementName("ACCT_DETRM")
@Nullable
private AccountDetermination acctDetrm;
/**
* Field name: ASSETCLASS
*
* Type element: BF_ANLKL
* Domain name: BF_ANLKL
* Internal type: CHAR
* Description: Asset class
* Max length: 8
*
*
*/
@ElementName("ASSETCLASS")
@Nullable
private AssetClass assetclass;
/**
* Field name: BASE_UOM
*
* Type element: MEINS
* Domain name: MEINS
* Internal type: UNIT
* Description: Base Unit of Measure
* Max length: 3
*
*
*/
@ElementName("BASE_UOM")
@Nullable
private BaseUnitOfMeasure baseUom;
/**
* Field name: BASE_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("BASE_UOM_ISO")
@Nullable
private BaseUnitOfMeasureInIsoCode baseUomIso;
/**
* Field name: DESCRIPT
*
* Type element: BF_TXA50
* Domain name: TEXT50
* Internal type: CHAR
* Description: Asset Description
* Max length: 50
*
*
*/
@ElementName("DESCRIPT")
@Nullable
private String descript;
/**
* Field name: DESCRIPT2
*
* Type element: BAPI1022_TXA50_MORE
* Domain name: TEXT50
* Internal type: CHAR
* Description: Additional asset description
* Max length: 50
*
*
*/
@ElementName("DESCRIPT2")
@Nullable
private String descript2;
/**
* Field name: HISTORY
*
* Type element: XHIST_AM
* Domain name: XFELD
* Internal type: CHAR
* Description: Asset is managed historically
* Max length: 1
*
*
*/
@ElementName("HISTORY")
@Nullable
private ErpBoolean history;
/**
* Field name: INVENT_NO
*
* Type element: BF_INVNR_ANLA
* Domain name: BF_INVNR_ANLA
* Internal type: CHAR
* Description: Inventory number
* Max length: 25
*
*
*/
@ElementName("INVENT_NO")
@Nullable
private InventoryNumber inventNo;
/**
* Field name: MAIN_DESCRIPT
*
* Type element: ANLHTXT
* Domain name: TEXT50
* Internal type: CHAR
* Description: Asset Main Number Text
* Max length: 50
*
*
*/
@ElementName("MAIN_DESCRIPT")
@Nullable
private String mainDescript;
/**
* Field name: QUANTITY
*
* Type element: MENGE_D
* Domain name: MENG13
* Internal type: QUAN
* Description: Quantity
* Max length: 7
*
*
*/
@ElementName("QUANTITY")
@Nullable
private Quantity quantity;
/**
* Field name: SERIAL_NO
*
* Type element: BF_AM_SERNR
* Domain name: BF_GERNR
* Internal type: CHAR
* Description: Serial number
* Max length: 18
*
*
*/
@ElementName("SERIAL_NO")
@Nullable
private SerialNumber serialNo;
public void validate()
throws IllegalArgumentException
{
if ((descript!= null)&&(descript.length()> 50)) {
throw new IllegalArgumentException("Bapi method parameter \"descript\" contains an invalid structure. Structure attribute \"DESCRIPT\" / Function parameter \"descript\" must have at most 50 characters. The given value is too long.");
}
if ((descript2 != null)&&(descript2 .length()> 50)) {
throw new IllegalArgumentException("Bapi method parameter \"descript2\" contains an invalid structure. Structure attribute \"DESCRIPT2\" / Function parameter \"descript2\" must have at most 50 characters. The given value is too long.");
}
if ((mainDescript!= null)&&(mainDescript.length()> 50)) {
throw new IllegalArgumentException("Bapi method parameter \"mainDescript\" contains an invalid structure. Structure attribute \"MAIN_DESCRIPT\" / Function parameter \"mainDescript\" must have at most 50 characters. The given value is too long.");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy