cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice: Abbreviation of derived names not possible

0 Kudos

Dear all,

I have been developing a solution template in SAP Cloud Applications Studio. I created a webservice for a SAP Business Object (GoodsAndActivityConfirmation).

When I first tried to activate the webservice, I received some errors as some names exceeded 120 characters in several operations. The changes/abbreviations were no Problem.
After I then tried to activate the webservice, I received another two errors; two Message Names exceeded 120 characters again. The problem is that these Message Names do not have a Message Type (Request/Response) so that I cannot access them through the display tree (see attached). Due to that, an abbreviation of the name is not possible.

How is it possible to access these Message Names in order to abbreviate them?

webservice-messagedatatypes.png

Best regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hopefully someone from SAP can chime in with a better answer, but one way i found is to alter the actual ".webservice" file itself.

Go into the CopernicusIsolatedShell directory, find the Tenant and Project you've created the .webservice file in. Open that in a text editor (make sure you don't have it open in the Cloud Application Studio)

Find the line that it tells you that you need to abbreviated. It will look something like this:

<Abbreviations>

<DerivedName>GoodsAndActivityConfirmationGAC_WSCreateRequestInventoryChangeItemInventoryItemChangeIdentifiedStockInventorySeparatingValuesIdentifiedStockKey</DerivedName>

<AbbreviatedName/>

<OperationName>Create</OperationName> <OriginalDerivedName>GoodsAndActivityConfirmationGAC_WSCreateRequestInventoryChangeItemInventoryItemChangeIdentifiedStockInventorySeparatingValuesIdentifiedStockKey</OriginalDerivedName>

</Abbreviations>

Adjust it to look like this:

<Abbreviations>

<DerivedName>GoodsAndActivityConfirmationGAC_WSCreateRequestInventoryChangeItemInventoryItemChangeIdentifiedStockInventorySeparatingValuesIdentifiedStockKey</DerivedName>

<AbbreviatedName>YOUR_ABBREVIATED_NAME_HERE</AbbreviatedName>

<OperationName>Create</OperationName> <OriginalDerivedName>GoodsAndActivityConfirmationGAC_WSCreateRequestInventoryChangeItemInventoryItemChangeIdentifiedStockInventorySeparatingValuesIdentifiedStockKey</OriginalDerivedName> <HasUserSpecified>X</HasUserSpecified>

<AbbrFor>Request</AbbrFor>

</Abbreviations>

Save the file, then go back to the Cloud Application Studio. Open the .webservice file in the cloud application studio and you should see your changes now appear. Save and Activate it.

Answers (0)