Definition
An interface to manage account territory mapping
Business Context and Use
The web service interface Manage Sales Territory Account Mapping In enables you to connect external applications to your solution and to create and edit sales territory and account mapping in your system. The web service interface Manage Sales Territory Account Mapping In is relevant if your company wants to access and manage sales territory and account assoication data from external applications.
The web service interface Manage Sales Territory Account Mapping In offers the operations MaintainBundle and CheckMaintainBundle.
Here is an example of a simple web service request:
<glob:SalesTerritoryAccountMaintainRequestBundleMessage_Sync>
<BasicMessageHeader>
</BasicMessageHeader>
<SalesTerritoryAccount actionCode="04" AccountCompleteTransmissionIndicator="true">
<SalesTerritoryID>228</SalesTerritoryID>
<AccountRequestBundle actionCode="04">
<CustomerID>1002858</CustomerID>
</AccountRequestBundle>
</SalesTerritoryAccount>
</glob:SalesTerritoryAccountMaintainRequestBundleMessage_Sync>
The following example response returns the InternalID of the updated territory:
<n0:SalesTerritoryAccountMaintainConfirmationBundleMessage_Sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:AXP:/1SAI/TASB9B41E8D8A3F5280DCF9:804">
<SalesTerritoryAccount>
<ObjectNodeSenderTechnicalID></ObjectNodeSenderTechnicalID>
<ChangeStateID>20140924111322.2095820</ChangeStateID>
<SalesTerritoryID>228</SalesTerritoryID>
</SalesTerritoryAccount>
</n0:SalesTerritoryAccountMaintainConfirmationBundleMessage_Sync>
Prerequisites
Existance of sales territories and accounts
More Information
General Information
You can find general information about Web services, their structure and consumption in the Web Services documentation.
Scenarios
Possible scenarios include the following:
The MaintainBundle operation is used to create association between an account and territory.
The MaintainBundle operation is used to update an account's territory association
Update account territory mapping when Multi TM is scoped IN
For scenarios where Multi TM is scoped IN i.e. an account can be assigned to more than 1 territory, update of account's territory can have different context.
There is a field OperationScope inside request structure <AccountRequestBundle>, which allows user to define how the update should be considered. It can have these possible values:
"1" : No deletion of existing account territory association, only new mentioned account territory association in the payload is created.
"2" : You can use this value to delete an account territory association
Empty : All cuurent existing account territory associations will be removed and new associations as provided in the request payload will be put in effect.
Here is an example web service request:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
<soap:Header/>
<soap:Body>
<glob:SalesTerritoryAccountMaintainRequestBundleMessage_Sync>
<BasicMessageHeader>
</BasicMessageHeader>
<SalesTerritoryAccount actionCode="04" AccountCompleteTransmissionIndicator="true">
<SalesTerritoryID>228</SalesTerritoryID>
<AccountRequestBundle actionCode="04">
<CustomerID>1002858</CustomerID>
</AccountRequestBundle>
</SalesTerritoryAccount>
</glob:SalesTerritoryAccountMaintainRequestBundleMessage_Sync>
</soap:Body>
</soap:Envelope>
Definition
This operation in the Service Interface is used to check if the Territory Account Mapping can be updated without errors.
Business Context and Use
This operation in the Service Interface is used to check if the Territory Account Mapping can be updated without errors.
Prerequisites
This operation in the Service Interface is used to check if the Territory Account Mapping can be updated without errors.
Integration
This operation in the Service Interface is used to check if the Territory Account Mapping can be updated without errors.
Structure
This operation in the Service Interface is used to check if the Territory Account Mapping can be updated without errors.
Definition
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Business Context and Use
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Prerequisites
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Integration
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Structure
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Constraints and Integrity Conditions
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Additional Description
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Note
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Usage
This operation in the Service Interface is used to update or create the Territory Account Mapping.
Constraint
This operation in the Service Interface is used to update or create the Territory Account Mapping.