Quantcast
Channel: SCN : Unanswered Discussions - SAP Gateway
Viewing all 1745 articles
Browse latest View live

The URL filter parameter of OData gets automatically truncated to 4 chars

$
0
0

hi,

I've observed this strange behavior in our system before as well. but then it got resolved automatically.

But now it is back.


Let me explain the problem:

I invoke the OData get service in a browser and pass a filter parameter. But when this call reaches my Data Provider Class, the URL filter parameter that I'd specified in the URL gets truncated to 4 characters.

 

Eg: I invoke URL https://<server>/sap/opu/odata/UI2/PAGE_BUILDER_CONF/Catalogs?$filter=type%20eq%20%27CATALOG_PAGE%27

But when this call reaches my DPC, the IT_FILTER_SELECT_OPTIONS has this filter, but the value is truncated to 4 chars. So it has I EQ CATA instead of I EQ CATALOG_PAGE.

 

ODataConcatenation.jpg

 

I've tried clearing all the model cache and data cache.

This service here is part of standard Fiori Launchpad service. But I've seen this issue in my own custom service too.

I've cleared all the Fiori Launchpad services cache too.

 

Any quidance will be really helpful.

 

thanks,

Madan


Not Able To Upload PDF To DMS Using ODATA And SAPUI5

$
0
0

Hi Experts,

 

I have to upload pdf to DMS using Odata and SAPUI5,I googled and following these links.

 

1). http://scn.sap.com/community/gateway/blog/2013/08/14/how-to-upload-and-download-files-using-sap-nw-gateway

 

2). http://scn.sap.com/community/developer-center/front-end/blog/2014/07/28/upload-image-to-sap-gateway-and-display-image-in-ui5--using-new-fileuploader-with-sap-gateway

 

 

===========================================================================================================

 

Now i am explaining my procedure.

 

1). I have a FM which uploads the contents to DMS.

Import.PNG

2). In OData creation, Importing RFC and Defining mapping.

 

3). Defining MPC_EXT->Define method.

4).Defining  /IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM class .

 

4). When i registering the in /iwfnd/maint_service getting error

define.PNG

 

I googled this error but can not find anything .

 

Thanks in advance.

 

 

$filter values are truncated when mapped to FILTER_SELECT_OPTIONS

$
0
0

Hello gurus!

 

I have the following issue on our development system.

 

We have a GW service that implements an EntitySet. The URL contains a $filter instruction that once SAP catches it, it looks like this:

 

/sap/opu/odata/sap/TEST_SERVICES_SRV/TrimSet?$filter=ChannelId eq '20' and TrimCatId eq 'BASE' and CombinedId eq 'DR3^DTXL2211111111' and GaugeId eq '24' and (ColorId eq 'WWTC' or ColorId eq 'BARE')

 

 

Also very important: both the ABAP data elements and the Entity Properties field lengths matches.

 

ChannelId (max. length = 2)           ==> CHANNEL_ID CHAR 2

CombinedId (max. length = 20)      ==> PROFILE_PSYSTEM CHAR 20

ColorId (max. length = 5)                ==> COLOR_CODE CHAR 5

 

 

Once we jump into the debugger, the IO_TECH_REQUEST_CONTEXT input parameter for TRIMSET_GET_ENTITYSET method has an attribute MR_REQUEST (deep structure) which contains TECHNICAL_REQUEST-FILTER_STRING which value matches the $filter expression in the URL

 

( ( ( ( ( ChannelId eq '20' ) and ( TrimCatId eq 'BASE' ) ) and ( CombinedId eq 'DR3^DTXL2211111111' ) ) and ( GaugeId eq '24' ) ) and ( ( ColorId eq 'WWTC' ) or ( ColorId eq 'BARE' ) ) )

 

 

But the issue is that, if we want to get the $filter values as SELECT-OPTION, the internal table FILTER_SELECT_OPTIONS in the MR_REQUEST deep structure already has the values but truncated:

 

ChannelIdStandard Table[1x4(20)]
TrimCatIdStandard Table[1x4(20)]
CombinedIdStandard Table[1x4(20)]
GaugeIdStandard Table[1x4(20)]
ColorIdStandard Table[2x4(20)]

 

ChannelId gets truncated from '20' to '2'

 

SIGNOPTIONLOW
IEQ2

 

CombinedId gets truncated from 'DR3^DTXL2211111111' to 'DR3^DTXL22'

 

SIGNOPTIONLOW
IEQDR3^DTXL22

 

And both ColorId get truncated as well:

 

SIGNOPTIONLOW
IEQWWT
IEQBAR

 

We have implemented the following note but the issue was not fixed:

 

2245413 - Truncated filter values

Symptom

     The filter value of a property type STRING or XSTRING might be truncated.

Reason and Prerequisites

     Program error in the metadata handling

Solution

     Apply this SAP note to your backend system.

   

     After having applied this SAP note, you have to cleanup the metadata cache on your gateway system via transaction /IWFND/CACHE_CLEANUP      and also your backend system via transaction /IWBEP/CACHE_CLEANUP.

 

https://websmp130.sap-ag.de/sap/support/notes/convert2pdf/0002245413?sap-language=EN

 

 

The curious thing is that if we set the max. length to 0 (zero) in the Entity definition, the values are not truncated anymore. Which it is the workaround i have to do while we get this fixed.

 

Has anyone else experienced this issue??

 

Thanks in advanced!!

Batch operations using oData v2 model

$
0
0

I want to implement batch operations using oData v2 model .I referred many links about batch operations in oData V2 model.I found a little documentation but not any example regarding it.can anyone help me out? Thanks in advance

Error while generating the Odata Service for External Odata Services

$
0
0

Hi ,

 

I am getting an Error while generating the Odata service for external odata service as "Error while fetching the source metadata".

 

HTTP Destination              - ODATA_ORG

Service Namespace           - V3/Northwind

Service Name                    - Northwind.svc

 

Model Provider Class         - ZCL_NORTHWIND_MPC

Data Provider Class          - ZCL_NORTHWIND_DPC

Model Name and Version   - ZNORTHWIND_MPC

Service Name and Version - ZNORTHWIND_SRV

 

While doing a connection test to the RFC destination it works fine.

 

Any prerequisites before generating the odata service in SAP gateway other than RFC Destination .

 

Regards,

Dwity Krushna

Missing /IWPGW/TASKPROCESSING

$
0
0

Hello,

 

I've installed a EHP8 for ERP with SAP Netweaver 7.5. After that i've installed Fiori ERP Applications X1 and X2 and Fiori Approve Requests. The poblem is that most of the applications require the service /IWPGW/TASKPROCESSING but it's not available, i can't see this service in t-code SICF and with that i cannot activate the service in /IWFND/MAINT_SERVICE.

 

My software components look like this:

 

SAP_BASIS7500001
SAP_ABA7500001
SAP_GWFND7500001
SAP_UI7500002
ST-PI7400003
SAP_BW7500001
UIBAS0011000001
IW_PGW1000008
MDG_FND7490002
SAP_AP7500000
SAP_BS_FND7480001
WEBCUIF7480001
EA-IPPE6180000
MDG_APPL6190002
MDG_MDC1000002
MDG_UX6190002
SAP_APPL6180001
SAP_FIN6180001
SAP_HR6080021
SAP_HRCAE6080021
SAP_HRCAR6080021
SAP_HRCAT6080021
SAP_HRCAU6080021
SAP_HRCBE6080021
SAP_HRCBG6080021
SAP_HRCBR6080021
SAP_HRCCA6080021
SAP_HRCCH6080021
SAP_HRCCL6080021
SAP_HRCCN6080021
SAP_HRCCO6080021
SAP_HRCCZ6080021
SAP_HRCDE6080021
SAP_HRCDK6080021
SAP_HRCEG6080021
SAP_HRCES6080021
SAP_HRCFI6080021
SAP_HRCFR6080021
SAP_HRCGB6080021
SAP_HRCGR6080021
SAP_HRCHK6080021
SAP_HRCHR6080021
SAP_HRCHU6080021
SAP_HRCID6080021
SAP_HRCIE6080021
SAP_HRCIN6080021
SAP_HRCIT6080021
SAP_HRCJP6080021
SAP_HRCKR6080021
SAP_HRCKW6080021
SAP_HRCKZ6080021
SAP_HRCMX6080021
SAP_HRCMY6080021
SAP_HRCNL6080021
SAP_HRCNO6080021
SAP_HRCNZ6080021
SAP_HRCOM6080021
SAP_HRCPH6080021
SAP_HRCPL6080021
SAP_HRCPT6080021
SAP_HRCQA6080021
SAP_HRCRO6080021
SAP_HRCRU6080021
SAP_HRCSA6080021
SAP_HRCSE6080021
SAP_HRCSG6080021
SAP_HRCSI6080021
SAP_HRCSK6080021
SAP_HRCTH6080021
SAP_HRCTR6080021
SAP_HRCTW6080021
SAP_HRCUA6080021
SAP_HRCUN6080021
SAP_HRCUS6080021
SAP_HRCVE6080021
SAP_HRCZA6080021
SAP_HRGXX6080021
SAP_HRRXX6080021
EA-DFPS6180001
EA-FINSERV6180001
EA-GLTRADE6180001
EA-HR6080021
EA-HRCAE6080021
EA-HRCAR6080021
EA-HRCAT6080021
EA-HRCAU6080021
EA-HRCBE6080021
EA-HRCBG6080021
EA-HRCBR6080021
EA-HRCCA6080021
EA-HRCCH6080021
EA-HRCCL6080021
EA-HRCCN6080021
EA-HRCCO6080021
EA-HRCCZ6080021
EA-HRCDE6080021
EA-HRCDK6080021
EA-HRCEG6080021
EA-HRCES6080021
EA-HRCFI6080021
EA-HRCFR6080021
EA-HRCGB6080021
EA-HRCGR6080021
EA-HRCHK6080021
EA-HRCHR6080021
EA-HRCHU6080021
EA-HRCID6080021
EA-HRCIE6080021
EA-HRCIN6080021
EA-HRCIT6080021
EA-HRCJP6080021
EA-HRCKR6080021
EA-HRCKW6080021
EA-HRCKZ6080021
EA-HRCMX6080021
EA-HRCMY6080021
EA-HRCNL6080021
EA-HRCNO6080021
EA-HRCNZ6080021
EA-HRCOM6080021
EA-HRCPH6080021
EA-HRCPL6080021
EA-HRCPT6080021
EA-HRCQA6080021
EA-HRCRO6080021
EA-HRCRU6080021
EA-HRCSA6080021
EA-HRCSE6080021
EA-HRCSG6080021
EA-HRCSI6080021
EA-HRCSK6080021
EA-HRCTH6080021
EA-HRCTR6080021
EA-HRCTW6080021
EA-HRCUA6080021
EA-HRCUN6080021
EA-HRCUS6080021
EA-HRCVE6080021
EA-HRCZA6080021
EA-HRGXX6080021
EA-HRRXX6080021
EA-PS6180001
EA-RETAIL6180001
FINBASIS7480001
FSCM_CCD6180001
ECC-DIMP6180001
ECC-SE6050014
ERECRUIT6170009
FI-CA6180001
FI-CAX6180001
INSURANCE6180001
IS-CWM6180001
IS-H6180001
IS-M6180001
IS-OIL6180001
IS-PRA6180001
IS-PS-CA6180001
IS-UT6180001
LSOFE6170008
PLMWUI7480001
SEM-BW7480001
GBHCM0026000015
GBHCM0036000012
SAPUIFT1000001
SRA0026000009
SRA0046000008
SRA0066000008
SRA0076000006
SRA0086000010
SRA0096000008
SRA0106000008
UIISPSCA1000006
UIX01CA12000001
UIX01EAP1000009
UIX01HCM1000007
UIX01TRV1000007
UIX02EA41000003
UIX02EAP1000006
UIX02RT41000002

 

 

Am i missing something?

 

Best regards,

Use RFC FMs or direct coding for creating Odata services

$
0
0

Hi,

 

I am a newbie in Odata. I see that there are 2 ways of creating the odata service. either we can do it using RFC FMs using data mapping ( that exist in ECC) or we can do it using direct coding in Odata itself.

 

Is there any best practice. I read that direct coding is better but then our Gateway and ECC are separate servers so we cannot go directly to any tables and no BAPIs or data elements exist in gateway. Everything is in ECC.

 

 

How should i code?

 

Thanks

Amina

How can I create ping notification scenario to multiple domain portals

$
0
0

Hi All,

 

I am trying to create a service for subscription and notification scenario. I followed some of the blogs but my scenario is slightly different from the steps described in these blogs.

 

Pushing Notifications Made Easy!!! : How to Subscribe?

 

Pushing Notifications Made Easy!!! : Push a Notification

 

 

#9 How To... Implement End-to-End Push Notifications with HCPms and SAP Gateway

 

 

I got an understanding from above blogs that its useful more for push scenario where each time a new record is created triggers an event and sends a push notification with newly created record details. But, in my scenario, I have to first ping the client saying that I have a range of records created and provide URI to them to use it to pull from my system. Similarly, I have to notify multiple client systems while maintaining all the newly created items in Queues.

 

My questions are,

 

1. How do we just initiate a ping instead of actual push notification ?

2. How can we maintain queues for multiple clients to read same data one after the other and also ensure that data is not removed from the queue for a specific period of time (may be for 7days)

 

 

Please provide any hints on how to meet this requirement. Any help would be much appreciated.

 

Thank you,

Uday


ET_EXPANDED_TECH_CLAUSES Parameter in GET_EXPANDED_ENTITY

$
0
0

Hi Abapers,

 

    In get_expand_entity we have a export parameter ET_EXPANDED_TECH_CLAUSES we have to populate this table with Navigation Property if we didn't populate this table what will happen?, i debugged the code i didn't get any idea and red more theories, anyone please explain me Technically what is the use of this table if i didn't fill what issue may come.

 

Regards,

Lokesh Srinivasan.

Exception condition "NO_DDIC_TYPE" raised

$
0
0

Hi ,

 

I am facing below error in NWGW when i am trying to generate run time artifacts for existing services after adding one property in entity type,

Could you please provide me some inputs on the same,

 

  Exception condition "NO_DDIC_TYPE" raised.

 

Cheers,

Giri

OData entity association from CDS view : CX_SADL_CONTRACT_VIOLATION

$
0
0

Hello,

 

I created an OData service using SEGW and CDS view thanks to this excellent blog :

Creating Odata services out of CDS views

 

Everything works fine and I really apreciate building OData service with all the sorting and filtering options automatically generated.

 

Although I face a problem when I am using CDS and associations. It doesn't work and I get this error :

 

CX_SADL_CONTRACT_VIOLATION

Entity ' BSA_CARACTERISTICSSET_MATERIALSSet ' was not found

 

I created a MATERIALS entity, with entityset MATERIALSSet and mapped to a CDS view ZV_MATERIALS_ASSO which have an association to CDS view ZV_MAT_CARAC.

I created a CARACTERISTICS entity, with entityset CARACTERISTICSSet and mapped to CDS view ZV_MAT_CARAC.

I created an association in segw from materials to caracteristics.

 

Everything works fine until I mapped the segw association to CDS association like explain in this thread How to build OData Navigation from CDS Associations ?. Then I get this error CX_SADL_CONTRACT_VIOLATION when I request MATERIALSet or CARACTERISTICSSet.

 

I have the feeling that it is a bug from standard SAP, but maybe there is a special way to build these associations using SEGW and CDS ? Why is it looking for BSA_CARACTERISTICSSet_MATERIALSSet ? What is this entityset ?

 

If there is no solution, I am open for another way to build oData service easily because coding all filters and sorting properties are very time consuming...

 

Thank you

User management in Gateway synch'd with user management in ECC

$
0
0

Hello to everyone,

 

we have just started a project that involved the installation of a Gateway (in its own hub). My client has a quite complex landscape that involves ECC, BW, SCM, PI and now the newcomer Gateway. We have understood that the users must have the same name in Gateway as in the ECC (a trusted RFC taking care of the 'mapping'), but we have the problem that the users that enter via Gateway may have to enter directly into ECC, the issue being that our ECC forces a password change every n-days. In that scenario the user (I mean the person) will eventually have to remember one password for ECC and a different password for Gateway. What we would like to achieve is to have the Gateway user password updated in the moment when its homonym ECC user is changed.

 

We've found solutions like Central User Administration but we wanted to know if there is some kind of 'out-of-the-box configuration magic' that accomplishes this directly. If that's a 'no': do you know if Central User Administration is suitable to manage the Gateway users from, say, ECC?

 

Thanks in advance,

Álvaro.

How do I disable CSRF token for my service ?

$
0
0

Hi Gurus,

 

I wanted to disable CSRF token for my service ...

 

I have gone through the forum and noted that disable CSRF token at ICF by putting the CSRF parameter as 0.

 

I did the same , but when I test at REST Client during GET ...its NOT responding with CSRF token ... but when I do POST it says that CSRF token inavlid..

 

Looks like disbaling CSRF token works at GET but not at POST I guess..

 

How do I disble CSRF token for my entire service ...?? this service is being called from our web ...

 

Appreciate your help and advise..

 

Kind Regards

Shiv

Demo Consumption System - how to update data

$
0
0

Hi all,

 

I was able to connect to the former SAP NetWeaver demo system (https://sapes1.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/) and read/write data from/to TravelAgencies via OData. I included the csrf token as required and everything worked fine.

 

Now I'm trying to do exactly the same with the new demo system (https://sapes4.sapdevcenter.com/sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/). Reading works fine, but when trying to update a record, I receive an error:  "CSRF token validation failed".

I checked my requests in Fiddler and I'm definitely sending the CSRF token, I received in response to my CSRF-fetch request, with every modifying request.

 

So nothing changed in my OData test environment, but with the new environment I receive an error on modifying requests.

 

I also tried to write to the ProductSet of https://sapes4.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC, but received the same error.

 

Any ideas what I have to change to successfully do update-tests against the new demo system?

 

Thanks and kind regards

Michaela

 

P.S.: The documentation is somehow irritating as it states at the top "The Demo Consumption System is a read-only system.", but for the "GWSAMPLE_BASIC" service it mentions support for "CRUDQ operations for the entity types BusinessPartner, Contact, Product, SalesOrder, SalesOrderLineItem".

So maybe updates are not supported at all in the new demo Environment?

oData Service Entity Set Filtering

$
0
0

Hello,

 

I built an oData service in our backend development system, and I implemented the GET_ENTITYSET method, which just selects the whole table.  I am calling the service through a separate SAP Gateway Server.  I would like to be able to filter this data in the URL call.  When I call the service in the browser, I get the entire table of results, which is to be expected.  When I add the filter parameter, I am still getting all of the results, it isn't applying the filter.  Any ideas as to why this is?  More details below:

 

Entity Set "DriversSet":

EntitySets.PNG

 

Entity Type "Drivers":

EntityType.PNG

 

GET_ENTITYSET Method:

Method.PNG

 

Request from Gateway Server (no filter, executes successfully, returns as expected):

GetRequest.PNG

 

Request from Gateway Server (added filter, executes successfully, but does not actually filter any data, returns full results again):

getRequestFilter.PNG

 

 

Thanks for your help,

Owen


Key property does not have an output mapping in query operation

$
0
0

Hi Experts,

 

We are trying to create an Odata service for retrieving the PO list through RFC BAPI_PO_GET_LIST.But when implementing the GetEntitySet(Query) encountering an issue "Key Property does not have an output parameter in query operation" when we try to create "Propose Mapping".

 

Kindly suggest.Thanks in advance.

 

Thanks & Regards,

Sravanthi.

Error message while creating Odata services

$
0
0

Hi All,

 

I have created a project in SEGW and while testing the services, I am getting the below message.

 

Netweaver.PNG

Compared with another system where the service works, while clicking on Register button, under ICF node, 'standard node' option has to come by default but in my case, only 'node' radio button is coming(Here done some settings because of which the text is not getting displayed).

 

Capture.PNG

Please help in this regard

How to fetch image from DMS in ODATA

$
0
0

Hi All,

 

I am able to fetch an image from Mime Repository and send it as XML output in an odata service (using  cl_mime_repository_api=>get_api( )->get )

 

Now my requirement is I need to fetch the image from DMS instead of MIME repository. The image of DMS will be basically linked to Article Master Table. I am not able to find the methods/approach to fetch an image from DMS. Kindly suggest if someone has any idea on this

 

Thanks & Regards

Amber

403 Forbidden : CSRF token validation failed

$
0
0

Hi,

 

I have created the Fiori app(version 1.28) in web ide and imported into eclipse.

In component.js config, I have mentioned the complete odata service URL without proxy and opening the application in chrome with argument --disable web security.

 

I Just did some Odata model binding to items aggregation of table in my xml view.


And yes, I am using OData V2 model(auto generated code in models.js), handling of csrf token is by default true.

 

I can see the calls are fired one to fetch the CSRF token and the other to GET the data in a batch.

But still, I am facing issue that 403 Forbidden. Not able to understand why this is happening. Please find the attached.

 

CSRF Token Fetch.jpgCSRF Token Failed.jpg

 

Kindly suggest If I have to do any changes either in my UI5 code, OData Service implementation or Gateway configurations.

 

Thanks in Advance..!!

 

With Best Regards,

Phaneendra

SAP Gateway ODATA is not accepting Specical characters % #

$
0
0

Hi ,

 

I have material and Material description , when I am doing change operation for Material descriptions while passing special characters like % # in the material description, getting XML parsing error.

 

without XML Payload also tried passing directly via parameters throwing an error.

 

Please let me know how to handle the special characters in ODATA SAP.

 

Best Regards

Shaik

Viewing all 1745 articles
Browse latest View live


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