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

Return Table in POST Function

$
0
0

Hi Gurus,

 

I'm very new to GW services and Service which I'm currently working on is to Create Invoice. I took the RFC/BOR Route and RFC FM got 2 parameters:

 

1. Input Table - Accepts both Header and Item information

2. Output Table - Returns error or success message (Got 2 columns: Message Type and Message)

 

This means 2 entity sets in GW service: one for Input and another for Output Table.

 

Through "Map to Data Source" option, mapped the Input table to RFC Parameters and generated code looks good where the input parameters are aligned with RFC FM parameters.

 

Issue is how should I get the response back from the FM as the return table is another entity set. Can you please suggest.

 

Thanks,

Karthik


Image upload from postman rest client using SAP Gateway

$
0
0

Hi,

 

I am trying to upload an image from Postman REST client, I have set the following header in the request

 

Content-type      - Image/Jpeg

xcsrf-token        - XXXXXXXXXXXX==  ( Using my get service)

File uploaded  using form in postman

 

When I try to post the request the value in   is_media_resource-value   I am getting binary stream along with all the headers

 

Some what like  " Webkit .......==== Content-type "  followed by the image byte stream

 

But I would just require only the binary stream of the Image uploaded

Can you please help to resolve the issue

 

 

Thanks

Deric

SDFC Gateway Connectivity over ODATA 2.0

$
0
0

Hi All - I am trying to integrate ECC and SDFC (SalesForce) through NW Gateway. Facing issues while connecting SDFC and Gateway. SDFC invokes url to establish connection which is getting denied. The user/password used in SDFC is verified. In the error log of NW Gateway i can find the below error :

 

 

Untitled.jpg

Can someone suggest what need to be done.

Regards,

Sanjib

Same RFC Destination for Dev and Quality?

$
0
0

Hi Experts,

 

When we move the Gateway TRs from Quality to Dev Environment the RFC destination is carrying along with the TR.

Now the problem comes while loading the mapping in Quality. To avoid this again we have to create another RFC Destination with same name which was created in DEV. Its violating the Naming Standards.

 

For Example

 

Dev_ABCCLNT500 (Dev Environment )  -----> Dev_ABCCLNT500(Quality Environment)

 

Could you please revert me if there any options to avoid this.

 

Regards,

Kiran Adhikarla

SAP Netweaver Gateway as a part of SAP ERP 6.0 EHP7

$
0
0

Dear Expert,

 

I am planning to install SAP Netweaver Gateway, some one told me that, SAP Netweaver Gateway is automatically installed when installing SAP ERP 6.0 EHP7 , is this right? if yes, then please help me how to activate the services of SAP Gateway.

 

Any Steps or document will highly appreciated,

 

Please its urgent.

 

 

Regards,


Faheem.

Error 400 in gateway client

$
0
0

Hi,

 

I am working with deep entity insert, problem i'm facing is if try to post data with the payload .

If i post data from the payload i am getting this error,

 

"Error while parsing an XML stream: '<EOF> reached'"

 

URI i'm using is ----------_insert_srv/DetailSet

 

and i have checked the POST radio button.

 

My XML payload is:

 

<?xml version="1.0" encoding="UTF-8"?>

<atom:entry

xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"

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

<atom:content type="application/xml">

<m:properties>

<d:Id>0001</d:Id>

<d:Name>Test</d:Name>

<d:Age>25</d:Age>

</m:properties>

</atom:content>

<atom:link

rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/detail_item_nav"

type="application/atom+xml;type=feed"

title="ZDEMO_DEEP_INSERT_SRV.detail_item">

<m:inline>

<atom:feed>

<atom:entry>

<atom:content type="application/xml">

<m:properties>

<d:Id>0001</d:Id>

<d:Rec>10</d:Rec>

<d:Address>10jsfdjsdfjsdgdsgj</d:Address>

<d:Attendance>10</d:Attendance>

<d:Results>10</d:Results>

</m:properties>

</atom:content>

</atom:entry>

<atom:entry>

<atom:content type="application/xml">

<m:properties>

<d:Id>0002</d:Id>

<d:Rec>101</d:Rec>

<d:Address>10jsfdjsdfjsdgdsgj</d:Address>

<d:Attendance>10</d:Attendance>

<d:Results>10</d:Results>

</m:properties>

</atom:content>

</atom:entry>

 

Please guide with the solution.

 

Thank You.

Problem with GW Runtime

$
0
0

Hello,

 

I want to implement a simple GW-Service (a list of flights).

I have imported a structure from DDIC and want to implement the corresponding method (get_entity_set). As long as I do not write something to the result-table (et_flights), everything is ok (the method is used, I tried this using exceptions). Whenever I insert a flight in the table, the runntime error UC_OBJECTS_NOT_CHAR (exit CONVERSION_EXIT_SDURA_OUTPUT) appears. Is this a problem of my implementation or of the configuration of the system (ERP, on NW 740  SR1, SP Stack 4).

 

With kind regards,

Thomas Bayer

Upgrade netweaver 7 to netweaver 7 EHP2

$
0
0

Dear Expert,

 

We are the stage to implement sap netweaver gateway to meet the requirement i need to upgrade the current system EHP4 SR1 netweaver version is 7

to netweaver 7 EHP2.

 

Need some help and guide how can i achieve the upgrade i have the DVD's got from SAP NW 7.0 EHP2 for windows.

 

Thanks in advance.

 

Chris


Issues creating Odata service on Solman 7.1

$
0
0

Hello Folks,

 

I have configured SAP NW gateway on Solution Manager 7.1 SP12. I have made a Z development in Solution manager which I need to convert into O data and consume it using UI5 application.

 

Being quite novice to the field, I have some doubts. I am following SAP standard "How to Develop a Gateway Service using Code based Implementation" guide. I am facing some issues at "Service Implementation for GET_ENTITYSET" step. According to the document, I need to add the below code to method get entity set.

 

********************************************************************************

 

CALL FUNCTION 'BAPI_EPM_PRODUCT_GET_LIST'

TABLES

HEADERDATA = et_entityset

.

endmethod.

 

********************************************************************************

 

However, after adding this code, I am getting the below error.

 

 

Error: Call of the function BAPI_EPM_PRODUCT_GET_LIST failed; a field should be assigned to the parameter HEADERDATA - the types match,

 

The detail screenshots have been attached with the message.

Can any one please let me know where am I going wrong?

 

Thanks and Regards,

Benjamin

Importing Model from file in SEGW

$
0
0

Hi All,

 

I am trying to copy one service to another following the instructions here: http://scn.sap.com/docs/DOC-63661?campaigncode=CRM-XM14-DCR-SOCFB_SCN

 

I have copied the metadata into an edmx file. However when I import the file into the data model, I am getting the following error: Invalid Model File.

I went to the message details to check the were used list to navigate to the code where it was called, but did not get any hits.

 

Has anyone encountered this issue before? Pls advise.

 

Thanks! MS

Gateway RC8 error

$
0
0

Hi,

 

I've received an error when I try to move my transport from the dev system to the qa system. In return I get a RC8 error that says, 'DPC cannot be replaced'.

 

Has anyone come across this error before?

 

Thanks.

Issue with Gateway Attachments

$
0
0

Dear GW Experts,

We are facing an issue with attachments in Gateway. We are using SAP DMS for our attachments. since gateway sends the attachment in Binary format and we are not able to find any BAPI/FM to create DMS attachments as none of them accepts binary format. We tried to use BAPI_DOCUMENT_CREATE2 but it needs the path as import parameter and but since the document get attached in background in the create stream method in the DPC class we cannot use a path in front end like (c:\temp\test.txt), so please advice how to achieve this.

)

 

Regards

IK

How the performance oData comparing RFC's

$
0
0

Hello Experts,

 

I am new to SAP Mobile technologies.

 

My client already using web based .net application and there are many RFC Function Modules already exist and the same RFC Function Module called from .net application.

 

Ex: To fetch open Sales order and changing the status from .net. Actually inside R/3 RFC Function Module called the standard BAPI and returning result to .net web application.

 

Note : Now our client is upgraded into ECC 6.0 from R/3 4.7.

 

I have come across from scn forum the oData can be used in any programming language(ASP/.Net/PHP/Phython/Java and etc.)

 

Can we migrate all RFC's to oData service using netweaver gateway programming. Below are my basic questions.

 

1. What is the advantage using oData comparing RFC's? is there any merits and demerits using the new oData technology? It is advise to use oData?

2. Will it support network load since many RFC's are returning around 50K records to .net.

3. My client planing to implement mobility and my basic question is what is the use of Syclo, Agentry and Fiori? is all the three can be used oData framework? My client proposed to use Syclo Agentry so the oData framework will it support? I heard the oData is the platform independent and can be connect any source.

 

Please advise me. I am waiting for your earliest response and best practice as well.

 

Regards,

A Vadamalai.

SEGW error : Generation of runtime objects for project failed

$
0
0

Capture.PNG

 

Hello I am receiving above error while i am trying to generate project for  gateway service.

 

I have checked in class data provider class.

 

I have corrected error. but still  it is giving me same error again and again. It seems like when i click generate object it is generating all classes again with same error.

Please tell me how to solve this error.

 

Thank you,

Gaurav Wani

Not able to delete entity using a navigation path

$
0
0

Hi,

 

When I try to delete an entity I get this error in chrome dev tools:

 

Request url:

https://webwsd.aps.kuleuven.be/sap/opu/odata/sap/ZC_CI_UPLOAD_SRV/thesises('1')/attachments('ZCATTACHLO7EAE1BA4330B1EE4BDFD5F751838DF86')



Response:

{"error":{"code":"005056A509B11EE1B9A8FBE8A101378B","message":{"lang":"nl","value":"ResourcePath with NavigationPath is not supported for this Request Type"},"innererror":{"transactionid":"55501BCC560A1100E1008000863A0E3A","timestamp":"20150511143834.9402400","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"}}}}

 

It seems like you cannot use a parent entity in your url for a delete operation. I don't get this because in the backend, the DELETE method has the import parameter IT_NAVIGATION_PATH...

 

I can fix this by using an extra id of the super entity in the sub entity, but I prefer a cleaner solution (navigation path).

 

Can someone explain me what I'm doing wrong, and how I should do it?

 

Thanks,

 

RW


Upcoming SAP CodeJam in Hannover about SAP Gateway and SAPUI5

Date Conversion in OData

$
0
0

trans.png

 

In the above example, AsnDate is with the for of DateTime ie.,(2013-12-04T00:00:00), i want to convert it to Date format ie.,(2013-12-04) in NetWeaver Gate way, I request to help me fixing this, Thank you all in advance.

Remove Service Builder Project

$
0
0

Hi guys,

 

I stumbled upon the following issue:

I created a new project in Service Builder and removed it later on, I also deleted service and model in transaction SPRO but I cannot remove the GW Service Builder Project in se80, in fact I can't do anything with it! My intention was to delete the folder containing the project but even reassigning another package is not possible.

 

Any ideas?

 

Regards,

Thomas

The navigation information 'ErrorCaseSet_ERRORDETAILSET' is not valid

$
0
0

Hello,

 

I created a project in SEGW and used for my header and detail structure for each a different ABAP CDS view. I built an association from the header to the detail which has a 1..1 relationship.

 

When I test this all works ok, e.g. I get data for my both entity sets but if I navigate to my detail it doesn't work:

 

/sap/opu/odata/SAP/Z_IDOC_TOOL_SRV_03/ErrorCaseSet('0000000000000001')/ErrorDetailSet

 

Get this exception:

 

CX_SADL_CONTRACT_VIOLATION


The navigation information 'ErrorCaseSet_ERRORDETAILSET' is not valid


So I'm on WAS 7.40 SP9 and the Gateway is patched to SP12. I tried to look in OSS for this error but found nothing. Is there a good way to troubleshoot this association stuff?.


Here my config:


And the error:

 

The application log etc. doesn't really say more. Somehow it doesn't like this ErrorCaseSet_ERRORDETAILSET. This comes from here:

 

Any idea anybody?

 

Thanks

Stefan

Are Netweaver Trials no longer hosted on Store.sap.com?

$
0
0

Hello,

 

Some of the links for the files that are on the main page for this group are going to store.sap.com links that don't have anything on them. Please update the links or let us know where to get the files.

 

This includes Netweaver Gateway and the Netweaver 7.02, 7.03 free downloads.

 

Where should people go for these trials now?

Viewing all 750 articles
Browse latest View live


Latest Images

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