Quantcast
Channel: SCN : Popular Discussions - SAP Gateway
Viewing all 1195 articles
Browse latest View live

Create operation through SEGW

$
0
0

Hi Experts,

 

Is it mandatory to implement Read operation(GET_ENTITY),when we are creating creation(CREATE_ENTITY) ..WHY?

 

test2.JPG

 

Thanks,

Syam


CSRF token validation failed

$
0
0

Hello,

 

I have ~CHECK_CSRF_TOKEN Parameter is set to 0 in GUI Configuration

but I still get this exception.

 

Can you please help me?

 

Regards

Vladislav

SAP Netweaver Gateway Licensing

$
0
0

Hi Colleagues

 

We are trying to position SAP Fiori at a customer who is already licensed for  SAP Business Suite. We were informed that SAP Netweaver Gateway is free for licensed SAP Business Suite customers? Is this correct? If yes, do these customers just go and download the software from the SAP Service Market Place with their S User or do they need to follow a specific process?

 

Any information or guidance will be appreciated.

 

Regards

Nishan Naicker

Gateway and GenIL

Success/Error/Info Message in return of Odata Service response from ECC

$
0
0

Hi All,

 

I am working on Odata services and want to return messages to front end application which is designed in HTML5, which provide status of update/delete or create operation. I want to return error type and description to front end.

 

I am using  class - /iwbep/if_message_container to return message and tried with following methods:

 

      lo_message_container = mo_context->get_message_container( ).

       ls_return-type = 'S'.

       ls_return-id   = 'ZTEST'.

       ls_return-number = '000'.

*      ls_return-log_no = '111'.

       ls_return-message = 'Data Available in Update Method'.

       APPEND ls_return TO lt_return.

***

       lo_message_container->add_messages_from_bapi(

         it_bapi_messages         = lt_return

         iv_determine_leading_msg = /iwbep/if_message_container=>gcs_leading_msg_search_option-first


Its not showing up in response of request to front end and response body is empty . if i raise exceptions /IWBEP/CX_MGW_BUSI_EXCEPTION or /IWBEP/CX_MGW_TECH_EXCEPTION response will come with error code - 404.


Please suggest any better way to send response to front end.


Regards,

Rajesh

Assign SAP System Aliases to OData Service

$
0
0

Hi all,

 

I am working with Odata model, i have some doubt in assignment of system aliases to Odata service,

If we assign multiple Aliases and we didnt check the Default System option, which system it will consider,

If it consider all systems can we have any other way to assign specifi system aliases only...

Please give me some explanation on this........

Resource not found for segment

$
0
0

Hi,

 

I succesfully created a service  but when I try out the get_entity method it would prompt out "Resource not found for segment".

The get_entityset is working fine but not the get entity method. I also manage to get the metadata for the entities.

How can I debug for this problem ? I tried to put a external break point in my getentity code but it doesn't have any response.

I  tried to delete the redefintion of get_entity method and redefine it again then leave it blank, I got the same error message(Resource not found for segment 'week').

I am out of idea why I would get this exception, can anyone please give me an idea on possibility of this error message and how can I debug on the code ?

 

URL to get_entityset (working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks

 

 

URL to get_entity (not working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks('2012-04-23')

 

 

 

This is my get_entity for runtime data

1.gif

 

This is the code for the specific entity get_entity code. Please click on the picture to see the code clearer.

specific entities.gif

MBO vs oData

$
0
0

Hello Experts,

 

What is advantage of oData over MBO.

Why future SMP is all oData not MBO.

How oData works offline?

Can oData work without gateway?

 

Please suggest

 

Regards

Manish


Create operation through SEGW

$
0
0

Hi Experts,

 

Is it mandatory to implement Read operation(GET_ENTITY),when we are creating creation(CREATE_ENTITY) ..WHY?

 

test2.JPG

 

Thanks,

Syam

Input Parameters for Odata Service

$
0
0

Hello Experts ,

 

    I would like to generate an Odata Service based on Remote Enabled Function Module . But the Issue here is where we need to Provide/Mark the fields as Input and Output Parameters . And Do we have to write Anycode in the Get_entity_set method .Even I tried with the Mapping to Data source for the fields as Input and Output Parameters.But coming to service , I'm not able to get the output.

 

Can Anyone help me in getting this solved .Also please share any documents related to Odata .

 

 

 

Appreciate your help.

 

 

 

 

 

 

 

Thanks,

Uday.

Error while executing a gateway ODATA serivce for push notifications.

$
0
0

Hi,

 

i get following error in the browser:

<error><code>CX_XSLT_RUNTIME_ERROR/EE1D984A671BED4AAD4D1BD10D509C75</code><message xml:lang="en">No valid source context supplied</message><innererror><transactionid>784C3DE2C55EF1E585DC001F29E5DD9A</transactionid><errordetails/></innererror></error>.

Please help. what could be the reason for this error?

 

To create this service, i followed the steps mentioned in the blog: http://scn.sap.com/community/netweaver-gateway/blog/2012/12/03/gateway-pushing-notifications-made-easy . The only difference i made was, instead of doing it on same server, i used two servers for which system alias was passed to the consumption service .

Assign SAP System Aliases to OData Service

$
0
0

Hi all,

 

I am working with Odata model, i have some doubt in assignment of system aliases to Odata service,

If we assign multiple Aliases and we didnt check the Default System option, which system it will consider,

If it consider all systems can we have any other way to assign specifi system aliases only...

Please give me some explanation on this........

Custom Method in Odata _DPC_EXT Class

$
0
0

Hi All,

 

I am trying to add custom method in *DPC_EXT class while activating they are in RED.. I want to define methods in Class which I am planning to use in standard methods of the class.. Can I define custom methods in *DPC_EXT class and it good approach..

 

Thanks

Rajesh

Resource not found for segment

$
0
0

Hi,

 

I succesfully created a service  but when I try out the get_entity method it would prompt out "Resource not found for segment".

The get_entityset is working fine but not the get entity method. I also manage to get the metadata for the entities.

How can I debug for this problem ? I tried to put a external break point in my getentity code but it doesn't have any response.

I  tried to delete the redefintion of get_entity method and redefine it again then leave it blank, I got the same error message(Resource not found for segment 'week').

I am out of idea why I would get this exception, can anyone please give me an idea on possibility of this error message and how can I debug on the code ?

 

URL to get_entityset (working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks

 

 

URL to get_entity (not working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks('2012-04-23')

 

 

 

This is my get_entity for runtime data

1.gif

 

This is the code for the specific entity get_entity code. Please click on the picture to see the code clearer.

specific entities.gif

NUMC and Edm.intXX

$
0
0

Hi all,

 

according to... http://help.sap.com/saphelp_gateway20sp06/helpdata/en/28/e3bfeeb1884032bfc48f19a53eaa0c/content.htm

 

...I want to use type Edm.int32 for a field that has ABAP type NUMC 12.

I left Precision and Scale as 0. When I check the Consistency however I get an error:

 

Conversion error possible; ABAP to EDM and EDM to ABAP

Message no. /IWBEP/SBOD202

The ABAP type NUMC can not handle negative signs

Message no. /IWBEP/SBOD257

 

Can anyone tell me what I'm doing wrong or how I can use Edm.intXX for my NUMC field as proposed by SAP Help?

 

The field is a key field btw (the only field).

 

Thanks!

 

Best regards,

Melanie


Deploying of FIORI and ODATA integration components on GW HUB and ECC server respectively

$
0
0

Hi Experts,

 

In my landscape like below

 

SAP ECC --> SAP NW GW 7.41 ABAP stack

 

ECC - SAP_APPL version 606 SP4 and SAP_BASIS version 731 SP4.

 

NW GW - SAP_GWFND 740 SP5.

 

According to SAP Note : 1917162

 

Below of the table SAP FIORI SPS 3 apps

 

Components Table

Product Version

App Name

SAP Fiori 1.0 Support Package Stack 03

UI Component (SP)

OData Component (SP)

  1. FIORI LEAVEREQCRE 1.0

My Leave Requests

UIHCM002 100 (SP 03)

GBHCM002 600 (SP 10)

  1. FIORI LEAVEREQAPPR 1.0

Approve Leave Requests

UIHCM003 100 (SP 03)

GBHCM003 600 (SP 08)

  1. FIORI TIMERECORDING 1.0

My Timesheet

UISRA002 100 (SP 02)

SRA002 600 (SP 02)

  1. FIORI TIMESHTAPPR 1.0

Approve Timesheets

UISRA010 100 (SP 02)

SRA010 600 (SP 02)

  1. FIORI PURCHASEORDAPPR 1.0

Approve Purchase Orders

UIAPP002 100 (SP 03)

GBAPP002 600 (SP 03)

  1. FIORI GENERICINBX 1.0

Approve Requests

UIGIB001 100 (SP 03)

Not part of this SPS
Included in IW_PGW 100

  1. FIORI PURCHASEREQAPPR 1.0

Approve Requisitions

UIAPP001 100 (SP 03)

GBAPP002 600 (SP 03)

  1. FIORI PURCHASECONTAPPR 1.0

Approve Purchase Contracts

UISRA001 100 (SP 02)

SRA001 600 (SP 02)

  1. FIORI MYDEPTSPEND 1.0

My Spend

UISRA012 100 (SP 02)

SRA012 600 (SP 02)

  1. FIORI TRACKPO 1.0

Track Purchase Order

UISRA020 100 (SP 03)

SRA020 600 (SP 03)

  1. FIORI ORDERPOREQ 1.0

 

Order from Requisitions

 

UISRA013 100 (SP 03)


SRA013 600 (SP 03)

 

Now here my question is whether UI and ODATA component's SP level in the above table are applicable to my above landscape or i need to upgrade any SP level in my landscape.

 

Can you help me on the above question.

 

Thanks,

Syam

Edm.DateTime format and conversion error.

$
0
0

Hi,

 

What is the correct way to define Date fieldsin Gateway services? I defined a field as Edm.DateTime in SEGW made it nullable but am getting runtime exception.

I tried defining a precision but then the runtime artifact generation fails saying Gateway field and RFC (DATS) field mapped to it are incompatible. Without precision the runtime artifacts are generated but failing at runtime with XML Serialization error.

 

Please let me know if we have to do anything special to map/define Date /DateTime fields of Gateway service.

 

Thanks,

Avishek.

 

P.S. We are on SP6 so hoping the earlier issues of SEGW mapping validation for DateTime fields is taken care of (Note: 1763390).

MBO vs oData

$
0
0

Hello Experts,

 

What is advantage of oData over MBO.

Why future SMP is all oData not MBO.

How oData works offline?

Can oData work without gateway?

 

Please suggest

 

Regards

Manish

Resource not found for segment

$
0
0

Hi,

 

I succesfully created a service  but when I try out the get_entity method it would prompt out "Resource not found for segment".

The get_entityset is working fine but not the get entity method. I also manage to get the metadata for the entities.

How can I debug for this problem ? I tried to put a external break point in my getentity code but it doesn't have any response.

I  tried to delete the redefintion of get_entity method and redefine it again then leave it blank, I got the same error message(Resource not found for segment 'week').

I am out of idea why I would get this exception, can anyone please give me an idea on possibility of this error message and how can I debug on the code ?

 

URL to get_entityset (working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks

 

 

URL to get_entity (not working)

httyp://abc.abc.com/sap/opu/odata/sap/timesheetserv/weeks('2012-04-23')

 

 

 

This is my get_entity for runtime data

1.gif

 

This is the code for the specific entity get_entity code. Please click on the picture to see the code clearer.

specific entities.gif

Unable to install Gateway Eclipse plugin

$
0
0

Hello All,

I need to install the gateway plugin for eclipse. I have downloaded the zip file from the SDN.

The steps provided in the plugin document were followed. But, I receive the error. Kindly assist in the regard.

gateway plugin error.png

Cannot complete the install because one or more required items could not be found.

  Software being installed: SAP NetWeaver Gateway – Framework (Required) 2.4.101.201202091725 (com.sap.iw.gw.oc.eclipse.feature.feature.group 2.4.101.201202091725)

  Missing requirement: SAP NetWeaver Gateway – Common 2.4.101.201202091725 (com.sap.iw.gw.oc.eclipse.common 2.4.101.201202091725) requires 'bundle org.eclipse.ui 3.6.0' but it could not be found

  Cannot satisfy dependency:

    From: SAP NetWeaver Gateway – Framework (Required) 2.4.101.201202091725 (com.sap.iw.gw.oc.eclipse.feature.feature.group 2.4.101.201202091725)

    To: com.sap.iw.gw.oc.eclipse.template.list [2.4.101.201202091725]

  Cannot satisfy dependency:

    From: SAP NetWeaver Gateway – List Template 2.4.101.201202091725 (com.sap.iw.gw.oc.eclipse.template.list 2.4.101.201202091725)

    To: bundle com.sap.iw.gw.oc.eclipse.common 2.4.101

Viewing all 1195 articles
Browse latest View live


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