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

odata 500 error with segw

$
0
0

I followed this tutorial for a end to end scenario and in that you have to create a odata service with segw

 

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01089ed-dead-3110-f28e-caa12aeb5e27?QuickLink=index&overridelayout=true&59223304044850

 

I followed it exactly and this works:

 

CustomerClassifications('100000013')/

 

but when i try to do this:

 

CustomerClassifications('100000013')/ToInvoiceInfo/$count

 

i get the following error:

 

500  An exception was raised


<code>SY/530</code>
<message
xml:lang
="en">An exception was
raised.
</message>
-<innererror>
<transactionid>369824E502D4F14EBFD90050568F037D</transactionid>
<timestamp>20150707115211.7830000</timestamp>
-<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_Transaction>
<SAP_Note>See SAP Note 1797736 for error analysis
(https://service.sap.com/sap/support/notes/1797736)
</SAP_Note>
</Error_Resolution>
<errordetails/>
</innererror>
</error>

 

 

So i checked all the steps and it should be working but it doesnt...

 

another question: In some tutorials i see people create odata service as xsodata  and doing everything by typing it...

when do you use that ?


Filter Gateway workflow tasks in HR Renewal approval chip

$
0
0

Hi,

 

We have a setup consisting of a system with a local GW for running our HR Renewal setup on our ECC system.

I the IMG as seen in the step1 attachment below. we have updated this according to SAP specifications but with the filter active(Enable Task Filter in IMG) this should filter the WF list so only steps corresponding to the filter list is shown.

 

step1.png

 

This is not the case which I find confusing - If I read the doc for this IMG step then it clearly states that:

 

Maintain Task Names and Decision Options

Use

This activity allows you to maintain workflow tasks that need to be included in the task filter together with their names and decision keys.

These customizations are relevant when the filter is active. When the filter is  not active, all workflow items are read and all notifications are sent.

 

Activities

You can add workflow tasks and their corresponding IDs to the workflow task filter. If the filter is active,  only the workflow items maintained in this list are included in the query results. Notifications are sent to the SAP NetWeaver Gateway only for these items.

You can define a name to be displayed when reading a specific task. Names can be maintained in several languages. You can add names only in the language in which you logged on to the system. If a task is read in a specific language in which no name is maintained, the name will be read according to the system kernel language. If no name is maintained for the system kernel language, the name will consist of the workflow and step ID.

 

so with the filter active only WF with these steps as defined should appear in the users worklist - But due to Fiory I have inserted a decision step in a Fork setup with one of the existing activities and the decision step should be shown in our Fiori setup and the other should be shown in our HR Renewal approval setup.

 

In our Fiori Gateway(which is running on a separate system) we have defined Scenario ID as seen in picture step2 below. in the attached word doc and this works as the scenario ID can be passed to the fiori app and therefor is called during inbox retrival. so on Fiori only those two tasks that are defined are shown.

 

I guess setting up the Scenario ID on the ECC GW could be an option and then pass the the scenarioID from inside the BSP Approval javascript code, but that is just one idea.

 

I really dont understand why the IMG entry does not work as SAP's own doc states it should :-S

 

step2.png

Exposing utility FMs with complex interface in SAP Gateway

$
0
0

Hello everyone

 

This is about exposing utility functions which have somewhat complex interfaces in SAP Gateway.

 

Think of a utility ABAP function module e.g. for bill simulation. There are a number of importing parameters such as:

  • a structure data for a prospect (which we do not need to persist)
  • a table data for prospect's historical billing-relevant activities (again not to be persisted)
  • Other simple data parameters

 

Coming to how (or whether) this FM can be exposed directly in the OData layer, I am aware that there are quite a few discussions around this. Bear in mind that the main issue here is providing a complex input to a request; not about reading complex data. From what I have read, the following options have mainly been discussed:

 

1. I know many will raise an eyebrow to this option but it is possible to pass complex parameters by converting them into a string which can then be deciphered in the DPC before making the call to the FM. I can see how this approach does not comply with the OData principles. Yet, it is practically a working(!?) solution.

 

2. An OData compliant option is to model a series of interlinked entities for the complex data set that needs to be provided to the FM and use a batch operation like a deep insert (in our example there is nothing to be persisted in the DB though). As the import data for the FM does not correspond to business entities which we would normally like to persist, it just sounds a bit strange just because these would be like "virtual" entities as we do not need their persistence and the metadata here pertains only to the specific use of this FM.

 

I believe a similar restriction is valid for GenIL where the EXECUTE/EXECUTE2 methods only accept name-value pairs as parameters and passing a table parameter without a workaround is not possible. I believe the practicality level of the solution which is necessitated -although understandable- by the principles is an "unwanted" element on the trade-off seesaw.

 

All said, for the sake of robustness and compliance with the OData principles, the second option is much more favourableand should be used* although the first option is quite tempting and -in principle- should be avoided.

 

Finally, I would really like to see if anyone could share a practical example where Option 2 is utilised and let us know their experience on how it looks. Alternative solutions (in or out SAP Gateway [considering why we are leveraging SAP Gateway in the first place] are also welcome.

 

Kind Regards

 

*--Serdar

 

 

*Check outRon Sargeant 's blog Improved Inside-Out Modelling on how to "entityise", e.g. TripContext in his example.


Similar discussions:

GW Function Imports

Odata function import - input as complex type

odata function import - structure as import parameter

GW Function Import: pass parameter table (e.g. multiple parameters of same type)

Error while executing Gateway service

$
0
0

Hi,

When I am executing a gateway service in gateway client I am getting an information popup window saying HTTP Receive failed: NIECONN_REFUSED(-10). This error occurs in any HTTP Method GET/POST/PUT. I am not sure if this is related to some authorization issue .Can anyone help me with this.

 

Thanks

Shweta

NEED HELP FOR ETAG

$
0
0

Hi Experts ,

 

Currently the scenario is that we are using standard services for app implemantation and we are facing some error in a class /UI5/CL_UI5_APP_HTTP_HANDLER ----> Method CHECK_304_NOT_MODIFIED ------>

 

IF lv_old_etag IS INITIAL. RETURN. ENDIF.

   lv_string = iv_etag.

   lv_length_etag = STRLEN( iv_etag ).

   lv_old_etag = lv_old_etag+3(lv_length_etag).

 

So for resolving this error what shall we do ?

 

Thank you

GW with BW Easy Query redefinition problem

$
0
0

Hey guys,

 

I've surfed all the web in order to find a solution for this but without luck, maybe somebody can help me here.

 

Landscape consists in two systems:

  •      ERP  with GW
  •      BW


I want to make a redefinition of an EasyQuery done in BW and expose it using the GW.

After creating the RFC destination & system alias for BW I am able to add the generated service of Easy Query and it works just fine.

But in that way I can't have much control of the details. It is just exposing the attributes from the query into an oData, which is nice.

Anyway, I want to rename some of the fields and maybe implement my own logic in the service, but this is not possible with the generated service.


I was able to use SEGW -> redefine EasyQuery ... but when I reach the point to register the service it won't work.

I'm always getting the error message from below screen shot

09-07-2015 18-43-54.png

 

 

I believe it is because the service is done on the local gateway and the model of the query resides in the remote BW system, but I would expect that SEGW can handle this using the RFC connection I've given in the first steps..

09-07-2015 18-46-19.png

Am I doing something wrong here? I really appreciate your help, thanks in advance!

 

All the best,

Lucian

Error Could not create WB object form OM -> ODataService SE80

$
0
0

Hey guys,

 

I usually navigate from Transcation SEGW -> ServiceName -> Service Implementation -> ServiceSet -> GetEntity through right click and then "Go to ABAP Workbench" to my implementation of the OData Service. When I change the method then for example to SERVICE_UPDATE_ENTITY I get following error:

 

Unbenannt.PNG

 

Any idea?

 

Thanks + regards

Chris

How to get attached file from ODATA SERVICE URL into sap?

$
0
0

Hi experts...

 

I am very beginner to ODATA.

In our new development we are sending attached file from the local system into ODATA URL.

My question is How to get the attached file from the ODATA URL and send those attachments in mail.

Here I am not saving any attachments in sap.

Please give me some ideas.

 

 

Thanks in advance.


Does the Task Gateway service support subscriptions ? it's confusing to say the least

$
0
0

Try this :

 

(1) access the root service of an activated Task Gateway service on SAP NW Gateway (mine is SP09 and I am using version 2 of the Task Gateway service) - that should be a URL like : https://<myserver>.<mydomain>/sap/opu/odata/IWPGW/TASKPROCESSING;mo;v=2/


You will see a SubscriptionCollection and a NotificationCollection and the TaskCollection has an indicator saying it is subscribeable

 

(2) In SE24 locate the data provider class for the task gateway service (/IWPGW/CL_TGW_EDP_TASK_V2) and look at its inheritance tree

 

/IWPGW/CL_TGW_EDP_TASK_V2 inherits from /IWPGW/CL_TGW_EDP_TASK, which inherits from - surprise surprise - /IWBEP/CL_MGW_ABS_DATA

 

That's rather awkward cause - as the root service tells you the service supports subscriptions - one would normally expect to find an inheritance tree climbing up to the base class /IWBEP/CL_MGW_PUSH_ABS_DATA, as all other services do when they support subscriptions.

 

Not so with the Task Gateway service

 

(3) Use a REST client to try and create a subscription for the TaskCollection in the Task Gateway service

 

Result : KO, It doesn't work (at least not for my setup)

 

To summarize

=> OBSERVATIONS
(1) the root service tells you, you can subscribe to the TaskCollection in the Task Gateway service

(2) the provider class however doesn't appear to have the right inheritance to do so

(3) when trying to create a subscription, things blow up in your face (as you would expect considering (2), but not in an honest way cause (1) promises you, it can

 

=> QUESTIONS

(1) How to explain the availability of the SubscriptionCollection / NotificationCollection in the root service ?

(1) Are subscriptions supported or not - because of some technical limitation

(3) If one would like to subscribe to the TaskCollection in the Task Gateway, would it be possible to enable this by changing the inheritance tree ?

(2) If it can work, how does the subscription process work considering Task Gateway service is a moc (multiple origin composition) service - assuming that during the creation of a subscription, the gateway - according to SAP help - contacts the backend system to validate (authorize ?) the request.

Method "SET_SCHEMA_NAMESPACE" is unknown error after SP Upgrade

$
0
0

Hi,

 

Issue Details:

 

We were actually running our Development - SAP Netweaver Gateway System with SP07. Then We upgraded the system to SP10.

 

 

But the problem now is that whenever we transport a service from development landscape to quality, we are receiving the following error. Please note that our Quality landscape remains in SP07 for some reasons.

 

The error details are:

 

transp_error.jpg

 

And also i am getting syntax errors in MPC and DPC classes.

 

Error in MPC:

 

mpc_error.jpg

 

Error in DPC:

 

dpc_error.jpg

We suspect that this is happening due to the difference in the IW_BEP node.

 

 

/IWBEP/IF_MGW_CORE_TYPES – Development:

 

dev_iwbep.jpg

 

 

/IWBEP/IF_MGW_CORE_TYPES – Quality:

 

test_iwbep.jpg

 

 

My service execution gives the following exception in ST22:

 

/sap/opu/odata/sap/ZNW_UI5_TBC_TRC_Q00013_SRV/$metadata

 

st22error.jpg

 

Can you please advise how to solve this issue?

 

 

Best Regards,

 

SEYED ISMAIL

POSTing valid datetime value causes complicated error

$
0
0

Hi, I have a webservice where i have an entity with property like below:

property.PNG

the abap field data element is GBDAT of data type DATS.

 

When i send the date using the following function:

 

getODataDateFromDatePicker: function(datePickerInstance) {  var yyyymmdd = datePickerInstance.getProperty('yyyymmdd');  var splitDateArray = yyyymmdd.match(/(\d{4})(\d{2})(\d{2})/);  var yyyySlashMMSlashDD = splitDateArray[1] + '/' + splitDateArray[2] + '/' + splitDateArray[3];  var jsDateObject = new Date(yyyySlashMMSlashDD);  return jsDateObject;  },

OR

 

if i just send it like yyyy-mm-ddT00:00:00 for ex: Born: "1990-12-05T00:00:00" the result is the same error as shown bellow:

 

Call of the method CONV_DATE_EXT_TO_INT of the class CL_ABAP_DATFM failed; wrong type for parameter IM_DATEXT


I also tried sending null, but got the same error even thought i checked Nullable in gateway.

 

Plz help...been at this for 2 weeks straight now.

Liquidity Forecast (sFin) Odata Activation Error

$
0
0

Hi Team,

 

I am trying to activate one of the  Liquidity Forecast (sFin App ) and im getting an error when i try to register the Odata service PERP_FCLM_MP05_LQ_FORECAST .

We have SAP_UI 740 component installed in the front end system and SAP_FIN 720 component inatalled in the back end system.

The BW Query ERP_FCLM_MP05_Q0011 is also executing successfully in the back end BW system.

 

 

 

Plese help me out in resolving this issue.

 

Thanks In Advance..!!

How to get a attached file from the front end into SAP through ODATA service?

$
0
0

Hi everyone,

 

I have one requirement in my new development.

I am attaching files from the (front end) sapui5. I want to get the attachment in SAP.

I need to ctrate ODATA service to receive the attached file from the user end into SAP through ODATA.

How to do that?

 

Thanks in advance..

Cannot access transactions segw and /n/iwfnd/maint_service (does not exist)

$
0
0

Hello,
I am having trouble configuring the netweaver gateway 2.0 to get access to the transactions segw and /n/iwfnd/maint_service. It seems like I have the required components installed, but maybe the problem lies within the versions of the components..

 

The existing configuration is as follows :

 

SAP_BASIS -  Release 702 - Level 0011
GW_CORE - Release 200- Level 0000

IW_FND - Release 250 - Level 0000
IW_BEP - Release 200 - Level 0002

 


Are there any other components that I sould worry about? Somewhere it was said that maybe updating the component IW_BEP to 0006 may solve the problem. Can You confirm?

 

Also, i have the transaction segw (but still not /n/iwfnd/maint_service) working on another system with the following configuration (the difference seems to be the version of IW_BEP - this is the only component wich is of higher level)..

 

The sort-of working conf of another system :

 

SAP_BASIS -  Release 701 - Level 0012
GW_CORE - Release 190- Level 0005

IW_FND - Release 240 - Level 0005
IW_BEP - Release 200 - Level 0007

 

 

Could You please help me with this problem ?

 

Thanks,
Mario

Failed to send notification to consumers?

$
0
0

I need to get a push notification whenever an instance of custom workflow is created in SMP 3.

  I have exposed decision step of a custom workflow using NW gateway (created a custom gateway OData service from standard WFSERVICE)

  I tried pushing a notification through Rest Client and its working perfect, referring How To... Enable End-to-End Push Notifications ... | SCN.

I tried running programs "RSWNSEL" and "/IWWRK/R_WF_ITEM_SELECTION_GW" but no log is displayed in smp push log.I tried running "/IWBEP/R_MGW_PUSH_TEST" also but didnt help. I configured rfcs following below thread

Configuring ECC and Gateway for notification pu... | SCN

when using /IWBEP/R_MGW_PUSH_TEST error comes.

in Gateway error log error message is "

Failed to send notifications to consumers

"

 

Please help

Regards


do not keep source when use expand parameter

$
0
0

Hi experts,

 

I am facing an issue that I can't figure out.

I will try to simplify my problem to make it understandable:

I have three entities, demand, position and grappe.

You can find the graph in attached file

 

 

Demand's table is stored in a real database, when position and grappe are stored in a cluster database. The id of the cluster is saved in demand.

 

I can't have a direct access to the positions because I need to know the id of the cluster, so all my URL are build this way :

.../DemandSet('0')/PositionSet

.../DemandSet('0')/GrappeSet

.../DemandSet('0')/PositionSet('0')/Grappe etc

 

But when I call ".../DemandSet('0')/PositionSet('0')?$expand=Grappe, it called the method GrappeSet_GetEntity but the source is Position and not demand. If I do not have the parameter of Demand, do not have the id of the cluster and then I cannot access my data.


Really appreciate your help !


Please let me know if you need more information from me.

GET_ENTITY method calling even GET_EXPANDED_ENTITY is implemented

$
0
0

Hello Everyone,

 

I have implemented GET_EXPANDED_ENTITY method to makes use of Data Provider expand framework. I have defined relations, associations, navigation as well. My problem is that when I am using the URI /sap/opu/odata/SAP/ZPUR_HEA_ITE_SRV/PHeaderSet('4500004837')?$expand=HeadtoItem,  GET_EXPANDED_ENTITY is called successfully and in turn GET_ENTITY is called as well.

But I am not getting the complete response . I am getting blank header and no expanded items are present in the output. I can see only header with blank values. Please suggest me on how to get rid of this. Awaiting your thoughts

 

regards,

Lakshman.

[saml]Where to configure what URL request will redirect to IDP ?

Individual Bapi's not available for Sales Organisation, Distribution channel, Division,and Sales Office??..

$
0
0

Hi Techies,

     I'm making a odata service where I need to get a list of sales order type, sales orgs, dist channel , division, sales office.... ..

 

BAPI WHICH GIVES ALL THE SALES ORG.

BAPI WHICH GIVES ALL THE DISTRIBUTION CHANNEL

BAPI WHICH GIVES ALL THE DIVISION

BAPI WHICH GIVES ALL THE SALES ORDER TYPE

BAPI WHICH GIVES ALL THE SALES OFFICE.

 

 

Kindly share the bapi's .. it will be very helpful....

P.S: I tried for get_details bapi for my OData service but its not needed over here as I need the Get_List bapi

 

 

Best Regards,

Pavan G

FIORI PO Approval Workflow adjustments

$
0
0

Dear All,

 

I am currently implementing FIORI PO approval app and stuck at Workflow integration point, requesting the help on the same.

 

We have Release Strategy configured and workflow is also running in place (custom WF, custom Tasks) seamlessly.

 

I am currently implementing PO app with this running WF(I have done the Task ID assignment and even Work Items are received in the app).

 

Issue is, I am not able to perform action (Approve / Reject) I am getting an error.

 

I know that I have to do few adjustment to workflow, but I need to know what adjustments to be performed on the custom Task which we are currently having, please help on this.

 

Attached few screen shots for reference.

 

Error_on_Approve.JPG    

Viewing all 1745 articles
Browse latest View live


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