Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Service Layer - which service to get proper tax for SalesOrder lines?

user4711
Explorer
0 Kudos
601
  • SAP Managed Tags:

Hello,

I am creating an application to create Sales Orders lines and need to assign the proper tax (code, value).

According to https://help.sap.com/docs/SAP_BUSINESS_ONE/68a2e87fb29941b5bf959a184d9c6727/b8a1e6427cfc44528e4c3577..., applying the proper tax is quite complex and hard to replicate:

Tax code to be applied to the item. The application proposes a default tax code depending on the following:

  • Tax code determination rules defined (if applicable)

  • Tax code defined in the business partner master data

  • Tax code defined in the item master data

  • Tax code defined in the freight setup

  • Tax code defined in the G/L account determination

I had the same issue with item prices and discounts, but there is the amazing service CompanyService_GetItemPrice, which solves the problem perfectly.

Is there a similar thing for taxes? I can't find it.


Best regards

Thomas

1 REPLY 1

MUCHIRAJUNIOR
Explorer
0 Kudos
397
  • SAP Managed Tags:

Using the VatGroups on service layer 


GET https://server:50000/b1s/v1/VatGroups