cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute Odata Service with SolMan Mobile Application

Former Member
0 Kudos

Hello Experts ,

Greetings for the day!!

I have a  problem in order to use/consume  OData service "http://xyz:00000/sap/opu/odata/AIGW/SERVICE_GDAPI/"


When We execute the SAP Provided Standard Odata service "sap/opu/odata/AIGW/SERVICE_GDAPI/" we are able to get  below output:



<app:service xmlns:app="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns:sap="http://www.sap.com/Protocols/SAPData" xml:lang="en" xml:base="http://sthsmqm8dv.kaust.edu.sa:8005/sap/opu/odata/AIGW/SERVICE_GDAPI/">

<app:workspace>

<atom:title type="text">Data</atom:title>

<app:collection sap:content-version="1" href="ACTIONSCollection">

<atom:title type="text">ACTIONSCollection</atom:title>

<sap:member-title>ACTIONS</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="PARTNER_FUNCTIONSCollection">

<atom:title type="text">PARTNER_FUNCTIONSCollection</atom:title>

<sap:member-title>PARTNER_FUNCTIONS</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="TEXT_IDSCollection">

<atom:title type="text">TEXT_IDSCollection</atom:title>

<sap:member-title>TEXT_IDS</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="STATUS_TYPESCollection">

<atom:title type="text">STATUS_TYPESCollection</atom:title>

<sap:member-title>STATUS_TYPES</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="PRIORITYCollection">

<atom:title type="text">PRIORITYCollection</atom:title>

<sap:member-title>PRIORITY</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="IBASE_COMPONENTSCollection">

<atom:title type="text">IBASE_COMPONENTSCollection</atom:title>

<sap:member-title>IBASE_COMPONENTS</sap:member-title>

</app:collection>

<app:collection sap:content-version="1" href="APPOINTMENT_TYPECollection">

<atom:title type="text">APPOINTMENT_TYPECollection</atom:title>

<sap:member-title>APPOINTMENT_TYPE</sap:member-title>

</app:collection>

<app:collection sap:deletable="false" sap:content-version="1" href="PARTNERCollection">

<atom:title type="text">PARTNERCollection</atom:title>

<sap:member-title>PARTNER</sap:member-title>

<atom:link href="SubscriptionCollection" rel="http://www.sap.com/Protocols/SAPData/rel#subscribe"/>

</app:collection>

<app:collection sap:content-version="1" href="STATUSCollection">

<atom:title type="text">STATUSCollection</atom:title>

<sap:member-title>STATUS</sap:member-title>

</app:collection>

<app:collection sap:deletable="false" sap:content-version="1" href="TEXTCollection">

<atom:title type="text">TEXTCollection</atom:title>

<sap:member-title>TEXT</sap:member-title>

<atom:link href="SubscriptionCollection" rel="http://www.sap.com/Protocols/SAPData/rel#subscribe"/>

---------------------------------------------------



So Successfully All Collections are coming  and metadata too.

In order  to get the data from using the collections Like : ListCSCollection.

We have debugged and got some  information that we needs to pass parameters then will have data from Odata service URL :


http://xxxxxx:0000/sap/opu/odata/AIGW/SERVICE_GDAPI/ListCSCollection(LANGUAGE='',CHARM='X',PROCESS_T...'')

But getting below error output after running the above OdataService URL :

<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code>SY/530</code>

<message xml:lang="en">Resource not found for segment 'LIST_CS'.</message>

<innererror>

<transactionid>571526FBA2BD14C0E10080000AFE603E</transactionid>

<timestamp/>

<Error_Resolution>

<SAP_Transaction/>

<SAP_Note/>

</Error_Resolution>

<errordetails>

<errordetail>

<code>/IWBEP/CX_MGW_BUSI_EXCEPTION</code>

<message>Resource not found for segment 'LIST_CS'.</message>

<propertyref/>

<severity>error</severity>

</errordetail>

</errordetails>

</innererror>

</error>


Could any expert can suggest us the right way of using standard Odata service.

We need to build custom SAP UI5 application with help of this Standard Odata service consumption.


What could be the correct parameters to execute the Odata service "http://xyz:00000/sap/opu/odata/AIGW/SERVICE_GDAPI/


It will be great help for your feedbackas earliest.


Regards,

Samudra



Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Samudra,

First try /IWFND/CACHE_CLEANUP and if this did not resolve.


Paste the log from /IWFND/ERROR_LOG or screenshot... i am assuming you have applied all pre-requisite notes.


Regards

Anand

Former Member
0 Kudos

Hello Anand,

Thanks for your reply!!

We are able to get data with one of the collection : LISTCollection, Not for all collections.

http://xxxxxxxxx:00000/sap/opu/odata/AIGW/SERVICE_GDAPI/LISTCollection

That is going to be useful in order to get list of CRs created in CHARM system for logged in user.

Suppose we need to get list of Projects from CHARM(SolMan) system then what could be url for Odata Service that we can get All Projects List . Is Standard Odata is available for the same?

Could you please help me.

Regards,

Samudra

Former Member
0 Kudos

Samudra,

AS per the standard sap help link,

My Incidents - SAP Solution Manager Fiori Apps - SAP Library

Only Four major apps are available and non of it covers projects in them.hence finding Odata service for project might be tough.

Please check

Regards

Anand

Former Member
0 Kudos

Hello Anand,

Greetings for the Day!!

Thanks for your reply.

As I have mentioned earlier that using this  Odata Service URL : http://xxxxxxxxx:00000/sap/opu/odata/AIGW/SERVICE_GDAPI/LISTCollection

All Created CRs from CHARM are being fetched but I want that whichever user logged their CRs needs to be fetched , It means user specific.But it is giving all created CRs List.

Q1. Could you help me that what URL I should pass with parameters that I could get user specific CRs.

Q2. As you suggested that there is no standard odata available for getting existing projects list from CHARM System right?

Q3.Any Standard Odata is available for Creating Requests for Change ? or any Odata service Apart from this "http://xxxxxxxxx:00000/sap/opu/odata/AIGW/SERVICE_GDAPI/"...

If you have any idea about more Standard Odata Service for any operations For CHARM system - SolMan Kindly let me know otherwise I have to create custom OdataServices for the same.

Waiting for your reply.

Regards,

Samudra

Former Member
0 Kudos

helo Samudra,

It looks like System alias issue.

Can you please paste the screen shots  of the error

Regards

Anand