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

com.sap.cloud.sdk.s4hana.datamodel.bapi.services.DefaultCostCenterService Maven / Gradle / Ivy

/*
 * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.
 */

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

import javax.annotation.Nonnull;
import javax.inject.Named;

import com.google.common.collect.Lists;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.functions.CostCenterCreateMultipleFunction;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.functions.DefaultCostCenterCreateMultipleFunction;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.structures.CostCenterCreateInput;
import com.sap.cloud.sdk.s4hana.datamodel.bapi.types.ControllingArea;

/**
 * Cost Center
 * 
 *  Business Object: BUS0012
 * 
* * @see CostCenterService * */ @Named public class DefaultCostCenterService implements CostCenterService { /** * {@inheritDoc} * */ @Override public CostCenterCreateMultipleFunction createMultiple( @Nonnull final ControllingArea controllingArea, @Nonnull final Iterable costCenterList) { return new DefaultCostCenterCreateMultipleFunction(controllingArea, costCenterList); } /** * {@inheritDoc} * */ @Override public CostCenterCreateMultipleFunction createMultiple( @Nonnull final ControllingArea controllingArea, CostCenterCreateInput... costCenterList) { if (costCenterList.length< 1) { throw new IllegalArgumentException("Parameter \"costCenterList\" needs to have at least one value."); } return new DefaultCostCenterCreateMultipleFunction(controllingArea, Lists.newArrayList(costCenterList)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy