cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hybris & Sabrix Integration

rakeshbabub
Explorer
0 Kudos

Hi Experts,
I am using Sabrix as the source for tax integration with Hybris. I am looking for a sample request with commodity code for a simple web service. Below is some of the information from the SABRIX document.

The commodity code can be maintained on the item master in the financial system. For the Enterprise Web Service, the commodity code value is passed in the <COMMODITY_CODE> element. The <COMMODITY_CODE> element is not available in the Simple Web Service. As a work-around, the value can be mapped and passed in a user attribute. A TransEditor is then created in Determination to use this user attribute as a commodity code. For more information on user attributes and TransEditors, see User Attribute Container or contact the implementation consultant. Alternatively, the Product Tax Code functionality can be used to determine item taxability.

The UserAttributeContainer is made up of two fields; Key and Value. There can be multiple instances of the UserAttributeContainer indicated by the collection UserAttributes. At this time, the SimpleTaxService limits the number of attributes to 5. The sample code below shows what a collection of two user attributes would look like:

<Attributes> <UserAttributeContainer> <UserAttributes> <Key>1</Key> <Value>One</Value> </UserAttributes> <UserAttributes> <Key>2</Key> <Value>Two</Value> </UserAttributes> </UserAttributeContainer> </Attributes>

Problem :
I am not sure how to use commodity code and pass it in the request for SABRIX. What are these key values and how will SABRIX identify the key is for commodity code? Or is there any other way to send commodity code?

Could you please help me on how to achieve this.

Thanks In Advance,
Rakesh Babu

Accepted Solutions (0)

Answers (3)

Answers (3)

engintr
Explorer
0 Kudos

Hi Rakesh,

It seems like you are calling the Simple Web Service which does not support commodity codes as stated in your documentation excerpt.

Try with the other service (TaxCalculationService).

Regards

Engin

rakeshbabub
Explorer

Thank you, Engin.
I spoke to the consultants and got the required information about the 2 services provided.
Simple Webservice and TaxCalculationService.
Looks like they have stopped supporting Simple WebService. We have to go with TaxCalculationService.

rakeshbabub
Explorer
0 Kudos

Hi Engin,
Thank you for the reply. Yes, I understand. This is the way it is being done in SAP.
We are now calling SABRIX from Hybris and the request is against the below xsd.

https://idtcloud.hostedtax.thomsonreuters.com/sabrix/services/taxservice/2009-12-20/taxservice?xsd=T...

The problem is I do not see or do not have information on how to map commodity code against this xsd.

Thanks & Regards,
Rakesh Babu

engintr
Explorer
0 Kudos

Hi Rakesh,

Commodity codes are international standards like Harmonized System or UNSPSC which are already maintained in ONESOURCE Determination (formerly Sabrix). I think what is important here is that how you are keeping it in your products in SAP Commerce. If you can determine the commodity code for a product, you can directly pass it to the service with the <COMMODITY_CODE> tag.

If you are using the SAP Commerce integration package by Thomson Reuters, the extension creates custom fields in the product and category models where you can keep either commodity codes or other custom tax grouping to be used in your tax calls.

Regards

Engin