如何在SAP Cloud Application Studio里创建Web Service

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/i042416/article/details/84771639

I woud like to change this extension field in third party system outside C4C, using web service or OData service.

I have created a new action in BO CustomerQuote:

clipboard1

And implement this custom action, simply setting extension field to a constant value ( for example 4 represents “Production in process” ).

clipboard2

First I try to create a new Custom OData service, and would like to bind my custom action setProductionInProcess to a OData function import:

clipboard3

Soon I realized it’s not feasible since I found that only standard actions of BO Customer Quote are supported.

clipboard4

Then I try web service. Create a new Web service via wizard:
clipboard5

clipboard6

Choose my custom action setProductionInProcess from drop down list:

clipboard7

Create a new UI view for web service Authorization control. Only those user who are assigned with this view could have access to this web service.

clipboard8

clipboard9

Activate the web service and download the WSDL file for later usage.
clipboard10

Now create a new work center and put the web service just created to this work center.
clipboard11

clipboard12

Assign this new work center to the business user who will consume the web service.
clipboard13

As the last step, import the WSDL file in SoapUI application and fire the web service. In the screenshot below, my aim is to execute the custom action on Sales Order 9000000318 via web service execution.
clipboard14

The web service execution result shows message “Action YS5XJ942Y_S9B018D81BFD966DC executed executed”, indicating that the web service is executed sucessfully.
Now go back to Sales Order TI page, the extension field is set as 4 - Production in Process as expected.
clipboard15

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

猜你喜欢

转载自blog.csdn.net/i042416/article/details/84771639