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

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultGeneralLedgerAccountService Maven / Gradle / Ivy

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

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

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

import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.GLAccountInChartOfAccountsByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.GLAccountInChartOfAccountsFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.GLAccountTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.GLAccountTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.generalledgeraccount.batch.DefaultGeneralLedgerAccountServiceBatch;

/**
 * 

* This service enables you to read G/L account master data in an API call. It is based on the OData protocol, and can * be consumed in Fiori apps and on other user interfaces. *

*

* Business * Documentation *

*

* Reference: SAP * API Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * *
OData Service:API_GLACCOUNTINCHARTOFACCOUNTS_SRV
API Version:1
Communication Scenario:SAP Business Objects Cloud for Planning Integration (SAP_COM_0087)
Scope Items:oData Integration with SAP Business Objects Cloud for * Planning (1YB)
* */ @Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultGeneralLedgerAccountService" ) public class DefaultGeneralLedgerAccountService implements GeneralLedgerAccountService { @Nonnull private final String servicePath; /** * Creates a service using {@link GeneralLedgerAccountService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultGeneralLedgerAccountService() { servicePath = GeneralLedgerAccountService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultGeneralLedgerAccountService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultGeneralLedgerAccountService withServicePath( @Nonnull final String servicePath ) { return new DefaultGeneralLedgerAccountService(servicePath); } /** * {@inheritDoc} * */ @Override @Nonnull public DefaultGeneralLedgerAccountServiceBatch batch() { return new DefaultGeneralLedgerAccountServiceBatch(this); } @Override @Nonnull public GLAccountInChartOfAccountsFluentHelper getAllGLAccountInChartOfAccounts() { return new GLAccountInChartOfAccountsFluentHelper(servicePath); } @Override @Nonnull public GLAccountInChartOfAccountsByKeyFluentHelper getGLAccountInChartOfAccountsByKey( final String chartOfAccounts, final String gLAccount ) { return new GLAccountInChartOfAccountsByKeyFluentHelper(servicePath, chartOfAccounts, gLAccount); } @Override @Nonnull public GLAccountTextFluentHelper getAllGLAccountText() { return new GLAccountTextFluentHelper(servicePath); } @Override @Nonnull public GLAccountTextByKeyFluentHelper getGLAccountTextByKey( final String chartOfAccounts, final String gLAccount, final String language ) { return new GLAccountTextByKeyFluentHelper(servicePath, chartOfAccounts, gLAccount, language); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy