Quantcast
Channel: SCN: Message List - SAP Gateway
Viewing all 6105 articles
Browse latest View live

Re: Catch a POST Payload.

$
0
0

If there is any kind of fault during the OData service call that can be  captures anyway using the technique I have explained.

 

However I am not aware of any explicit way to capture the request as it. The service developers are only exposed to the DPC/MPC classes where the request is already parsed. So here in these places you do not have access  to the  pure xml /json request.

 

However also storing/logging every simple request may slow down your application.

 

But if such functionality is absolutely essential in your case, I would suggest you to store the parsed payload received in the DPC methods to some custom table by some custom code. This is not different from the original XML/JSON that comes with the OData request call. Ultimately what matters to you is only the content not the format.


/sap/opu service missing in SICF

$
0
0

I could not find the Odata related services in sicf. What might be the issue

 

gw.JPG

sicf.JPG

No Valid Source Context Supplied

$
0
0

Hi Experts,

 

While executing the Gateway service facing the  error."No Valid Context Supplied" what is the root cause of this error. find the screen snap for your reference.

 

Erro1.PNG

 

Error_Gateway.PNG

@Thanks in advance.

 

Regards,

Sai

Re: How to Transport Odata Service from DEV to QA

$
0
0

Thanks for more details. In that case no need of transport.Those steps can be done in corresponding target system manually.

 

Moving the transport from GW Dev would carry the GW Dev System Alias all the way till GW Production and will be a redundant entry in SPRO and would be of no use as we will anyways be creating new Alias with appropriate naming convention pointing to the appropriate target ECC system.

 

If you do not want to do these manual steps, One thing i can suggest is using a fixed System Alias & RFC destination names in GW Dev and transport to GW Quality and GW Production systems.

 

I mean to say, Create System Alias name saying ' GW_ECC ' , RFC Destination name ' ECC ' in GW Dev and assign this to all the GW services and lock in transport. Now move this to GW Quality and GW Production. Once moved, create only the RFC destination with name ' ECC ' in GW Quality & GW production which points to ECC Quality & ECC Production respectively. This way there will be no need of doing all those above mentioned 5 steps in the target GW systems.

Re: No Valid Source Context Supplied

$
0
0

Hello Sai,

 

What operation is being done here? Can you please share the details ?

 

Regards,

Ashwin

How to create OData services manually?

$
0
0

I would like to learn on how to create OData services manually. There are plenty of articles on how to use SEGW TCode for OData service creation, However i think that way the developer looses lot of control.

 

Is there any article/tutorial on manual creation of OData services creation.

 

Thank you.

Re: How to create OData services manually?

D64: connection to partner ' ' broken - HELP

$
0
0

whenever i log on to SAP GUI using saplogon I get this message or the screen keeps on loading, Even at times it gets logged in I get the same error again. I don't know what to do. Help Please....??

 

Untitled1.png


Re: How to create OData services manually?

$
0
0

Thanks Ashwin. This is exactly what i was looking for.

Re: How to Transport Odata Service from DEV to QA

$
0
0

Thank you Ashwin. for your time and responses. Appreciate all your help on this.

 

Rohit

.NET(C#) to SAP Throw ODATA.

$
0
0

Hi Expert,

 

 

I want to transfer data from .NET(C#) to SAP throw odata. it's working fine for Chrome Advance rest client...

 

Below is Advance Rest Client Screen Shot.

Advance Rest Sucess.PNG

 

in Advance Rest Client App data inserted in user table. but when pushing data from .NET Application its not working

 

Below Screen Shot when pushing data from .NET.

 

Below Code for Getting header detail from SAP ( GET Method )

GET Error.PNG

 

Below Code when pushing data with following header detail from SAP ( POST Method )


POST Error.PNG

GET code working fine. fetching X-CSRF-Token successfully from SAP.

but in POST code returning error "CSRF token validation failed".

 

please help.

 

 

Thankx

Prakash


GW Function Import with table

$
0
0

Hi experts,

 

I know from early versions it was not possible that a function import returns an internal table as result.

 

is it now possible ? is there any work arround?

 

Thanks in advance,

 

Best Regards

Moo

Re: GW Function Import with table

$
0
0

Hello Moo,

 

For what operation you would like to send back table as part of Function Import response ?

 

However,

It is possible to send back table as part of Function Import response.

For this you will need to have an Entity defined on which Function Import can act upon.

 

For example, say based on some input parameters i would like to retrieve some details and send that back as response.

In that case,

Under Function Import you need to maintain the below details.

1. Return Type Kind : Entity Type

2. Return Type : <Your Entity Name>

3. Return Entity Set : <Your Entity Set Name>

4. HTTP : GET

5. Return Cardinality : 0 to N / 1 to N

 

Regards,

Ashwin

Re: Cannot access entity of an included service model

$
0
0

Well, McName is an attribute of the Entity BP.

 

The idea behind this service is reuse. The BP service is written once and can be included into several additional services. In this example CM.

 

To search for an specifiy entity of service CM, I have to reduce the result set by additional filtering on BP. Currently the navigation pattern routes from BPSet (included Service) to ProcurementSet (CM service). For  this I added an external navigation.

 

Do I have to switch the direction? ProcurementSet to BPSet?

Both services map it's data model directly to a CDS-View. So I do not need to re-define the service implementation. SADL generates the appropiate coding in the DPC classes.

 

May I open a OSS, right?

Re: Cannot access entity of an included service model


Re: OData service dumpts after upgradation of SAP_Gwfnd

Re: Error / Return Handling in Create Deep Entity Set

$
0
0

Hello Ashwin,

 

Thanks for the confirmation. I created another entity within my deep entity and passed it back from my BAPI Return.

 

Unfortunately, I can't see it my response. I also added the association in my payload as following...

 

<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/PMOrderCreateNumbersSet" type="application/atom+xml;type=feed" title="ZPMORDERS1_SRV.PMOrderCreateNumberAssociation">

 

 

<feed>

<entry>

<content type="application/xml">

<m:properties>

<d:aufnr></d:aufnr>

</m:properties>

</content>

</entry>

</feed>

 

 

</link>

</entry>

 

But unable to get the number back.

Please advise.

 

Regards,

Manu

Re: ProxyException and RestClientException when using SAP NW Gateway proxy for Java from Android application

$
0
0

Hi Boris,

 

    I am also trying to access ABAP oData from java and i have problem in authentication issue .Is there any basic code to connect .

Re: Cannot access entity of an included service model

$
0
0

Hi, I debugged the requests and I found an interesting detail:

 

1) Request - which works: /sap/opu/odata/sap/zcm_search_srv/BPSet('5001020669')

 

In method /IWCOR/IF_DS_PROCESSOR~PROCESS of class  /IWCOR/CL_DS_PROC_DISPATCHER

 

is an entity request determined. Due to this, the method /IWFND/IF_MGW_CORE_RUNTIME~INIT of class /IWFND/CL_MGW_PROV_DELEGATOR is called.

In this method I found the following coding:


* Dispatching - Check if the model belongs to an external service

      TRY.

          lo_service_group->get_service_for_model(

            EXPORTING

              iv_model_id       = mv_mdl_identifier

            IMPORTING

              ev_svc_name       = lv_new_service_name_3

              ev_svc_namespace  = lv_new_namespace

              ev_svc_version    = lv_new_version

              ev_svc_identifier = mv_service_id

          ).

          lv_new_service_name_2 = lv_new_service_name_3.

 

This code redirect the service call from zcm_search_srv to zbp_search_srv, where the entity can be resolved.

 

If I do a request like /sap/opu/odata/sap/zcm_search_srv/BPSet?$filter=McName eq 'Guru' it failes.

An entity set request is determined and another method is called. I do not find anything like an external service determination.

 

Looks like some coding is lost...

Read excel data from frontend using SAP ODATA into Ztable

$
0
0

Hello All,

 

I have a requirement in SAP Odata to read an excel file that will be uploaded in SAP UI5 application , read the contents of the file and upload the same in a ztable.

 

I am getting Xstring of the uploaded file as input to the CREATE_STREAM method. But i see that the Xstring of the file is different from that if upload from sap gui for the same file. Do anything needs to be done in front end to achieve the requirement .

 

My UI developer said that there is nothing extra that need to be done in for excel . If so can anyone explain how this can be handled from backend.

 

Regards

Ujwal

Viewing all 6105 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>