Quantcast
Channel: SCN : All Content - SAP NetWeaver Gateway Developer Center
Viewing all 750 articles
Browse latest View live

Error while Generating Runtime objects

$
0
0

Hi Experts,

 

I have created a project in SEGW transaction which consists of a Entity Type and Its corresponding EntitySet. The Entity Type consists of various fields of type string, datetime, decimal, time. But at the time of generating runtime objects it gives an error Syntax in Public Section. And then in the messages it says Internal error occurred MPC "Class Name" generated with syntax errors.

 

Then going through the class in se24 checking the code of Types Section in the class it shows an error The statement 'TYPES' must be followed by other additions. 

 

As in the public section the code of TYPES is as follow:

 

types:   .

types:

tt_text type standard table of ts_text.

 

No fields of the entity type is being getting generated in the type section thats the issue that ts_text does'nt exists.

 

Please suggest some solution.

 

Regards,

 

Rachna


Not Found The item does not exist. It may have been deleted.

$
0
0

At URL: SAP NetWeaver Gateway Developer Center

 

Getting Started with SAP Gateway.jpg

For topic

  • Expose your Remote......
  • Remote Funktion Module.....
  • Create your own service ......

 

I only get the error message: "Not Found  The item does not exist. It may have been deleted. "

 

Please advise.

Can we get multiple data for update in SAP ODATA

$
0
0

          Hi SAP Gurus,

I want to update multiple records in the back end table  from SAP Odata , but I am not getting the solution as I am only getting single record from IO_DATA_PROVIDER--> Read_entry_data.

Problem with Unit Of Measure field in OData Service

$
0
0


Hi,

 

I am working with material creation application in SAPUI5. In that i am facing following problem,

 

i have a field that "Base Unit of measure" in general material information. i have declare this field with SAP data type "MEINS" in OData service project in SEGW as below,


img1.jpg


when i pass UOM value as "PAL" (Pallet) from UI5 application as below with odata request,

img2.jpg



and deep create method will receive as "PA" in Odata service after executing the below line , (i am using deep create method for my requirement)


io_data_provider->read_entry_data( IMPORTING es_data = ls_sales_deep ).


img3.jpg


even the conversion for PAL unit is same as PAL. this issue occurs only with Pallet unit PAL.And its working fine with other UOM values.

can any one please help me to find out the problem?


Thanks,

Ranjani Sekar.


Problems with log in thw SAP Gateway WebGUI

$
0
0

Hello everybody,

 

Friday I was attending the Week 4, Unit 3 of the Build Your Own SAP Fiori App in the Cloud – 2016 Edition on openSAP, following the video I was trying to create a project in the webIDE, during the set up stage it was required to link the Data Connection, so I registered myself to the SAP Gateway - Demo, instead of few minutes the email with the temporary password took several hours to arrive, meanwhile I resetted it few time, I know, my fault.

The problem began when the first mail showed up as I tried to log in with those password, always failing, now the weekend as passed so I think the last mail I received is the right one, but now I can't login as the system tells me:"too many failed login".


Is there any way to resolve the problem?

Use of navigation property for update operation

$
0
0

Hello,

 

As we know that we don't have deep_entity method for PUT operation as such we have create_deep_entity method for POST operation. Is it possible to use navigation property in case of PUT operation, so that we can navigate from parent to child and update the entity sets.

 

Thanks in advance.

 

Regards,

Gowrinath.

Cannot call RFC pattern from DPC_EXT class in Gateway ABAP workbench

$
0
0

Hello Experts,

 

  I'm trying to implement CRUD methods for a gateway service.  I am familiar with mapping the data model to back end BAPIs/RFCs using the mapping tool.  I can map to a RFC on the back end no problem to create my data model and use the mapping tool.  However, when I attempt to 'Go to ABAP Workbench' in a DPC_EXT class for a CRUD method such as 'CREATE', I cannot use the 'Pattern' button in the Gateway ABAP workbench to call the back end RFC.  Am I missing some configuration?  Our Gateway is setup as a HUB using a trusted RFC to reach the back end ECC system, and the back end ECC system Alias is created in the Gateway.  

 

I get this error message:  "Function not Found" when I click 'Pattern' to Insert a "Call Function".  My suspicion is that the ABAP workbench in our Gateway can only call BAPIs/RFCs that exist on the Gateway itself and not the back end ECC system, even though I can map to the RFC.  Why am I able to reach the backend RFC via mapping in the data model and the mapping tool, but not in the ABAP workbench to build my own CRUD methods? 

 

Please advise.  Thank you.

Sign up and get started with the SAP Gateway - Demo Consumption System

$
0
0

The SAP Gateway server has been upgraded to ES4.

 

In order to use the new ES4 system, you will need to register again. 

Use the links below to sign up for a new ES4 account.

 

 

Welcome to the sign up for the SAP Gateway - Demo Consumption System.

 

The Demo Consumption System is a read-only system.  It provides data for demos, tutorials, and any other software that you are using/building which needs a Gateway server to provide sample data.  The system does not allow new projects or new data to be created.

 

If you feel comfortable with handling an SAP ERP System feel free to jump immediately to the sign up below. We do however suggest that before doing so you take the time to read this document as it will not only give you the information on how to connect but also other valuable information you might need when using the system.

 

Where do I sign up?

Sign up here! 

 

The sign up uses your SAP Cloud Identity to verify you.  (So, if you don't have an SAP website account, create one first!) The Gateway server uses your UserID (found here) as your account name.  You provide your name, and email address.  Once you have accepted the terms and conditions, the server will create an account, and then email you the temporary password.

 

What happens next?

Connect to the SAP Gateway WebGUI  (https://sapes4.sapdevcenter.com/).

 

When you receive the email, open up a web browser and point it to the WebGUI.  The server will ask you to change your temporary password.  Once you have done that, you can access the Gateway Service.

 

If I forgot/lost my username or password?

Go back to the sign-up form. The form will find you in the system, display your username, and allow you to reset your password. Once your password is reset you will get an email confirming that the password has been reset.

 

How do I connect to the system?

The WebGui is the main way to connect to the system.

 

Screen Shot 2015-12-09 at 10.53.59 AM.png

 

Unfortunately, for security reasons we have disabled connections from the Windows or Java GUI client.  Please use the WebGUI instead.

 

What can I do with the System?

The main purpose of the system is to learn about consuming SAP Netweaver Gateway Services. All URL's to Gateway for this system start with

 

https://sapes4.sapdevcenter.com/sap/opu..

 

Please have a look at the Sample Services and how to use them. The system is only for consumption of OData Services not for building new ones. If you are interested in building new services you have the option of choosing one of the other systems on the previous entry page. We will not hand out authorizations for developing any ABAP on this system.

 

What is on the System?

The System is an SAP ECC (Enterprise Core Components) filled with some Demo Data. You do have read and write authorizations to all modules but are restricted form accessing administrative functionality. Furthermore the system allows you to access the development tools but does not allow development itself. Debugging with viewing permissions is however possible.

 

If I need help

If you have a question about Gateway feel free to post a message in the forum

 

For problem with registration or system availability only, please email the system support team at rac-support@sap.com.

 


No System Alias Assignment and GSDO Group Maintained(when moved Dev to Test system)

$
0
0

Hi Experts,

 

I have developed a custom gateway project and service registration, maintenance done and it is working properly in Dev system, Now the TRs containing the objects have been moved to QA system which has same clients.

 

Gateway System details: SAP Gateway 7.40 and SP11.

 

Problem: When I access t-code /IWFND/MAINT_SERVICE in QA and selected my service, I am getting below information and there are no entries in table /IWFND/C_MGDEAM.

 

Log:No System Alias found for Service 'XXXXXXXX' and user 'XXXXXX'

Screenshot.jpg

So what went wrong I am not sure, please help me what to do in this case.

I am thinking this is because of some Authorization while moving from one system to another system(same landscape). Could this be the reason?

 

 

Thanks and Regards

Narayan

Web IDE - deploy new application in a package different than $tmp

$
0
0

Hello,

 

we are trying to deploy a new application to (on premise)  SAPUI5 ABAP repository, but we can only assign the application to  $tmp package.

The destination on the HANA Cloud Cockpit  has been defined with the value dev_abap for the property WebIDEUsage  and the service /sap/bc/adt activated on Gateway backend system.

 

Kindly help

 

Regards,

Raffaele

User Self Service

$
0
0

Hi Experts,

 

Did anyone implemented the User Self Service in Netweaver Gateway? We did not get a complete document on this. We have completed the basis configuration in ECC and Gateway and activated the Gateway services of both USERMANAGEMENT and USERREQUESTMANAGEMENT in Gateway System. Unfortunately the user from ECC is not replicating in the Gateway system. From the documents it is said that it is mandatory to have number range for the user. But why user name as number range and is  that internally using the Alias name instead of actual name in Gateway system? The other query is we have configured the event but need to know how the event is getting triggered in the ECC system when the user is created/changed.

 

Thanks,

Nanda

Peer not authenticated

$
0
0

Dears,

 

I was received the following error screen while i'm trying to complete the example in Week 4 Unit 3 course 'Build Your Own SAP Fiori App in the Cloud – 2016 EditionBob' please can you have a solution for this error

3-28-2016 1-01-28 AM.png

Destinations in SAP WEBIDE from HANA Cloud Trial Account

$
0
0

I created HANA Cloud Trial Account and created destinations.  System says connection is good.  Then in SAP WEBIDE I do not see destinations.

Any idea?

$batch returns 202

$
0
0

Can someone tell me how to override the standard $batch functionality so I can return the error code of what fails rather than the usual 202, as the client of the $batch service expects errors to be reported as 4xx/5xx and cannot inspect the body to get at the failure

 

Thanks

Luke

How to pass URL parameters to NW Gateway Class/Method?

$
0
0

Hi,

This is the pattern of the URL that I would like to use for my getEntitySet:

 

http://...<Project_SRV.>/TradingContractSet?WERKS=1126

 

My hope is to constrain the list of trading contract HEADERS to those that have ITEMS from plant 1126.

 

My stumbling block is how to get a handle to the value of the "WERKS" parameter in the URL.  In the sample URL above, my application code needs to get the value "1126".

 

I have tried running cl_wd_runtime_services=>get_url_parameters, but this WebDynpro class does not seem to work from within an Gateway ABAP class.

 

I am able to import FILTER type URL parameters, but that is an overly complex solution.  Additionally, my HEADER entityType does not include WERKS (because WERKS exists at the items level), and I don't want to add the WERKS attribute to the HEADER just for the sake of importing a variable.

 

I do not see a coding solution for how to do a simple read of a URI parameter from with a NetWeaver Gateway ABAP Class Method.

 

Any help would be very appreciated!

 

Regards,

Kevin


How to filter on attribute in child entityType, but return rows of parent entityType?

$
0
0

Hi,

I'm having an issue with a filter.

 

I have 2 entity types, 1 parent and 1 child.   My requirement is to enable a filter on an attribute at the child level, but return a list of parents.  The list will show parents that has a child(s) with the filter value.

 

When I attempt to use the filter, NetWeaver Gateway returns an error indicating that the attribute does not exist in the entityType (the parent).

 

How do I solve this requirement?

 

Thank you for any input!

 

Kevin

Role Templates missing for NW Gateway (NW 7.40)

$
0
0


Hello everybody,

 

I have sucessfully installed NW 7.40 but during configuration of the NW Gateway (SAP_GWFND) I miss some role templates.

 

e.g.: /IWFND/RT_BOR_DEV; /IWCNT/RT_USER_WF; /IWBEP/RT_MGW_DSP

 

Any ideas? Thanks for ur  help.

 

BR, René.

How to Read Table MT_CHILDREN[] in IO_EXPAND parameter of GET_EXPAND_ENTITY method?

$
0
0

Hi Experts,

 

 

I have redefined the GET_EXPAND_ENTITY method of DPC_EXT class where I want to handle the various $expand query possible for my OData service.

 

I have one scenario, in which I have associations of 1. PO Item Detail to PO Item History, 2. PO Item Detail to PO Item Schedules and 3. PO Item Detail to PO Item Text.

 

In the below query, I am trying to fetch the Item Details for PO Item No '00010', along with its Histories, Schedules and Texts.

 

....local:8001/sap/opu/odata/.../POItemDetails(PONumber='4500018976',POItemNumber='00010')?$expand=POItemSchedules%2CPOItemHistorySet%2CPOTexts

 

 

 

 

The method GET_EXPAND_ENTITY is having an importing parameter IV_ENTITY_SET_NAME which holds the source entity set name i.e. POItemDetails.

 

Similarly one more importing parameter IO_EXPAND  (Type Ref to /IWBEP/IF_MGW_ODATA_EXPAND)  holds one table MT_CHILDREN, whose NAV_PROP_NAME field holds the Navigation Property Names of the above mentioned Associations. i.e. (POItemHistorySet, POItemSchedules or POTexts respectively)


I need to read the values of this MT_CHILDREN[] table in order to get the navigation property names and to make RFC destination call for each one of them.



This MT_CHILDREN is an private attribute in /IWBEP/CL_MGW_EXPAND_NODE class.


Please help me out with reading either MT_CHILDREN[] table values(the syntax), or any other technique to get the expanded entity set names (i.e. POItemHistorySet, POItemSchedules or POTexts).




Screen shots have been attached for your reference.




 

 

Regards,

Priyanka P

Unable to add fiori tile to sapes4.sapdevcenter.com

$
0
0

Hello!

 

I was able to access fiori launchpad on sapes4.sapdevcenter.com

 

But I am not able to add any fiori tiles to my home group.

 

Does anybody able to add tiles?

 

Thank you

Virus \"Malformed container violation\" found in object \"/SIHTTP/HTTP_UPLOAD\"\r\n

$
0
0

Hello,

 

We have configured Bow-bridge Virus scanner adapter in SAP system. we are getting the error when we try to upload a file. Could you help me to reason for this error.

 

Error: Virus \"Malformed container violation\" found in object \"/SIHTTP/HTTP_UPLOAD\"\r\n

 

Regards,

Suresh

Viewing all 750 articles
Browse latest View live


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