cancel
Showing results for 
Search instead for 
Did you mean: 

Calling External Service in Pricing

former_member343107
Participant
0 Kudos

Hi,

We currently have such a scenario: when a sales order is created, system should check the pricing reference material of the items. If its reference material is a specific material, then the system should call an external web service to retrieve the price of the item. How can I make such such a condition type so that it calls external services?

Thanks

Jerome

Accepted Solutions (1)

Accepted Solutions (1)

marcin_milczynski
Contributor
0 Kudos

Hi Jerome,

You can create new alternative price calculation formula in VOFM and assign it in pricing procedure (V/08) to the codnition you want to determine using web service. In the alternative price calculation formula you can call function modules respresenting (using) you web service. You can use header data available in structure KOMK and item data available in structure KOMP.

BR

Marcin

former_member343107
Participant
0 Kudos

Thanks a lot!

Jerome

Answers (2)

Answers (2)

former_member217082
Active Contributor
0 Kudos

Hi Jerome

First of all you need to assign a new sub-routine to the condition type assigned in your pricing procedure. In your sub-routine you need to give a logic to the technical consultant telling that system has to call the external web service to retrieve the price of the line item in the sales order .

Now you need to connect to the external services using RFC / BAPI

Regards

Srinath

Former Member
0 Kudos

Hi

You can call an external services but how you call it depends upon the the technology of the external service and your SAP version.. if you have net weaver capability you have user web services to do that.. But web services are tend to be slow. alternatively you can use SAP connectors via a proxy and call BAPI/RFC.

Regards