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

Identify IP Address calling oData service

$
0
0

Hi Guru's

 

I have a need to ensure that an Odata service is only called by one IP address. 

 

We use Layer7 as our runtime governance of service calls and the Odata service I want to expose contains "confidential" data so I need to ensure that the call has been made by Layer 7.  For me the best way to do this is to identify the IP address of the server calling my service - I am just not sure how one does this.

 

 

 

Regards

 

Dave Cuff


SMP3.0 GW get data based on the user logged in?

$
0
0

Hi Experts,

 

I setup application with SMP3.0 backend SSO profile as Basic& Security profile as HTTP.

 

I tried 2 sessions with 2 different users using rest client and updated order details in the SAP system.

 

But both changes are successful but shows the 1 user id as changed by.

SMP shows 2 sessions with  2 users.

 

Is it because of RFC destination user credentials on GW? gwdemo_bgrfc_dest? I tested with gwdemo_bgrfc_dest destination logon credentials as Current User. Still the same issue.

 

How do we program in GW to know who the user logged in?

 

Thanks

seenu

Need help for NETWEAVER ACCESS for ODATA Services

$
0
0

Hello Experts

Can any one let me know the way to get SAP NETWEAVER GATEWAY access,

 

Regards,

Prasad CH.

Batch Process Vs Create Deep Entity

$
0
0

Hello Experts

 

I need to Create\update couple of hundred records in my custom table from my UI through gateway in backend and only possible means available are batch or deep insert. I am not sure if deep insert can help me as i do not have any parent/child association possible and only way which i could think of leveraging deep insert is to define a dummy parent to carry out this operation. Other option looks like $Batch process to group these request and then carry out update in backend.

 

Which method is better in terms of performance for large data chunks? or is there any other better approach to accomplish this task?

SAP Demo Gateway ES1

$
0
0

Hello, I`m trying to connecto to the SAP Netweaver Gateway Demo System, In the site appear the message:

 

OPERATIONAL

The Netweaver Gateway test system upgrades are complete.  The system is now running normally.

 

But when I try to connect to it, I received the message:

"maximum number of connected terminals reached"

 

Can anybody help me?

 

Thanks in advance, Luis.

Gateway to SOAP

$
0
0

Hi,

 

I have one question, currently we have a webapp consuming the SAP data through SOAP/WSDL. The customer doesn't want to change their current front-end component, but they have the latest gateway installed, question is can the gateway generate a WSDL ? so that we don't need to make any modifications in the front-end framework.

 

Kind Regards

Benj.

oDATA invalid key predicate

$
0
0

Hi,

 

I am trying to perform a get_entity_set read with a key passed

in order to extract all data in the collection with a specific key in the model [fileid in my case].

 

The url I pass to perform the read is

 

/sap/opu/odata/sap/Z_COLL_PORTAL_SRV/fileRepositorySet('fileid20150915')

 

and when I execute I get the message

 

'Invalid key predicate'

 

Can anyone help me to find how to fix ?

 

What to return from GetEntity if requested record is not found?

$
0
0

Hi,

 

In my implementation of the GetEntity method I select the requested record from the database according to the key values passed to the method.

In case the requested record could not be selected because it doesn't exist, I simply return the empty (initial) er_entity.

This works in most cases and leads to an error like this:

 

       "errordetails" : [

         {

           "code" : "/IWBEP/CX_MGW_BUSI_EXCEPTION",

           "message" : "Resource not found for segment 'ContractVersion'",

           "propertyref" : "",

           "severity" : "error",

           "target" : ""

         }

       ]

 

In case my entity has fields of type Edm.DateTime which are mapped to ABAP type TIMESTAMP then I will receive an error like this:

 

   "error" : {

     "code" : "0050569259751EE4BA9710043F8A5115",

     "message" : {

       "lang" : "en",

       "value" : "In the context of Data Services an unknown internal server error occurred"

     }

 

 

In the Gateway error log the error info is "Invalid format (return structure): Property Name 'ChDateTime',  Property Value '0 '"

 

So what shell be done if the requested entity is not found?

Should I manually raise an exception in the getEntity method?

Any other proposals or best practice?


oData collection not binding to table rows

$
0
0

Hi experts,

 

I am developing a UI5 web application which consumes oData collections.
One of these oData collection is fetched using get_expanded_entityset method which I implemented in my oData service

The get_expanded_entityset method returns both header and line items in the form of a collection of items [in my case it is called 'toPosition' navigation property]

 

Now I have a data table which is binded to that oData method but I am not able to get the single line items data displayed into each cell.

This is the data bind code I use

 

         var oModelCarrier = new sap.ui.model.odata.ODataModel('/sap/opu/odata/sap/Z_COLL_PORTAL_SRV',{json:true});

         var tableCarrier = sap.ui.getCore().byId("carrierInvoiceSub-carrierSubmission--carrierTable");

         tableCarrier.setModel(oModelCarrier);

         oModelCarrier.setCountSupported(false);

         tableCarrier.bindRows( {path: '/fileRepositorySet',

                  filters : [ new sap.ui.model.Filter("fileId", sap.ui.model.FilterOperator.EQ, fileid) ],

                  parameters : {expand: 'toPosition'}

         });

 

and this is the table view part

 

        <table:Table id="carrierTable" enableGrouping="true" enableSorting="true">

              <table:title><Textview text="Carrier Shipments [Uploaded]"></Textview></table:title>

              <table:columns>

                 <table:Column>

                     <Label text="Invoice Num."/>

                     <table:template>

                           <layout:VerticalLayout content="{toPosition/results}" xmlns:layout="sap.ui.layout">

                              <layout:content>              

                                   <TextView text = "{invoiceNumber}" />               

                               </layout:content>

                           </layout:VerticalLayout>

                     </table:template>

                 </table:Column>

                 <table:Column>

                     <Label text="Container Type"/>

                     <table:template>

                           <layout:VerticalLayout content="{toPosition/results}" xmlns:layout="sap.ui.layout">

                              <layout:content>              

                                   <TextView text = "{containerType}" />               

                               </layout:content>

                           </layout:VerticalLayout>

                     </table:template>

                 </table:Column>

              </table:columns>

         </table:Table>

 

and most important this is the oData response I get from my service calling get_expanded_entityset

 

 

can anyone help me how to get collection data displayed on table cells ?
it seems the response I get is correct containing all the data I need for my application.

 

please be patient with me, I am learning oData / UI5 technology so I am not an expert

 

best regards,

claudia

 

 

Extension of SRM_PURCHASEORDER does not work

$
0
0

Dear Guru's

 

I have Extending SRM PO Approval Odata Service SRM_PURCHASEORDER to add custom Entity gives the following error message when calling from FIORI app:

 

The request URL or the metadata definition is incorrect.

Exception of type /IWFND/CX_SODATA_EDM_PROVIDER has occurred. See details for more information

Exception of type /IWCOR/CX_DS_URI_NOT_MATCHING has occurred. See details for more information

 

 

details behind Exception /IWFND/CX_SODATA_EDM_PROVIDER=

Resource WorkflowTasks not defined in Metadata

 

 

details behind exception /IWCOR/CX_DS_URI_NOT_MATCHING=

Resource not found for the segment

"WorkflowTasks(WorkItemId="000011586596" ,PONumber="2000088304")".

 

Same app call to Odata Service SRM_PURCHASEORDER yields correct results and all that was done was redefine and activate in SICF and Gateway maintenance.

 

 

to make matters worse Test transaction  /IWFND/GW_CLIENT cannot be used to call WorkflowTasks using custom Odata service as GET_ENTITY purposely throws out exception message.

 

Any help will be greatly appreciated.

Consuming my oData eclipse model in UI5 app view of eclipse

$
0
0

hi,

I have created an oData model in eclipse using service url - Zodata

 

I have created this inside an UI5 app where I have a View-  VIEW1

 

How do I attach my Zodata in my UI5 app model?

Both are in same project.

 

any hints appreciated.

- ags

creating Multiple orders with multiple items

$
0
0

Hi Experts

 

How to proceed to create multiple orders  with with multiple items in gateway(ODATA)?

 

as for i know Deep insert is used for Creating Header with Item

 

Batch is used for Multiple entries creation ( Not for header with item )

 

My requirement is

 

Customer   material  quantity      value

1000          a1          2               200

1000          a2          3               300

2000          b1          2               200

2000          b2          3               300

 

At single Url i want create 2 orders with customer wise

 

first order should be below items

1000          a1          2               200

1000          a2          3               300

 

 

Second order should be below items

2000          b1          2               200

2000          b2          3               300

what is the current Gateway SP level

$
0
0

hi

This is the current Gateway version .  Based on which component which should say, Gateway is running what service pack level? is my Gateway on up to date with the latest sp?

 

As per my knowledge it is running on SP9 based on SP_GWFND component. Is  this correct? If not what is the criteria to find sp level ?

 

Geteway.JPG

thanks

SAP_GWFND SP hub vs. backend

$
0
0

Hi!

 

I apologize if this is a trivial question but I couldn’t find a document describing possible SAP_GWFND SP versions in a Gateway hub scenario in a NW 7.40 system landscape.

 

OSS note 037662 - describes minimal installation requirements says "SAP_UI 740: SP 0012 =(mind.)=> SAP_GWFND 740: SP 0008 =(mind.)=> SAP_BASIS 740: SP 0002"

 

So my questions are:

  • Should SAP_GWFND SP levels in the hub and the backend should be always exactly on the same level?
  • Is it possible and reasonable to have the SAP_GWFND on a higher level in the hub? Think of SAP_GWFND >=SP9 in the hub and SAP_GWFND SP8 in the backend? Usually I prefer high SPs due to security considerations for example.
  • Is development of Fiori like Apps possible and reasonable if SAP_GWFND is on the right level in the hub but not in the backend? In this case I have serious doubts since more and Fiori features require specific Gateway features and sometimes special implementations. I would like to read it in official documentation.

 

Is there a note / document describing SP levels in this scenario especially for hub/backend systems especially for Fiori development and perhaps implementation of SAP Fiori Apps.

 

Best Regards,

Tobias

Offline Delta and Syclo Framework

$
0
0

Greetings fellow SAP people, I come here with a few doubts regarding Syclo framework in order to use Delta Query and Tracking.

 

I'm using this guide: #3 - How To Implement Lightening Fast OData Services with Exchange Table

 

As far as my understanding goes, Syclo Framework helps implementing the tracking table and the delta object and then with the binding of elements.

I'm implementing the example as it is in the H2G but I'm also trying to understand the underlying concept that goes with it.

I've got the following questions and suppositions of what happends when the EFI is triggered.

 

  • The Delta Table will keep track of every CUD operation that takes place in the APP side
  • If the APP goes offline, once it goes back online, the Delta Tracking side will trigger the Delta Query to obtain the partial data using the Delta Table in order to just make updates based on the portion of the content created while it was offline.

 

As far as I understood, that's all on the SAP side. However I'm curious about the next:

 

I was told that, in order to perform the update for the Delta History, it was necesary to implement ETags. Is this true?

The Delta side is only responsible for updates of the information, the offline side of the businessu operations should be handled by the SMP side to send the request once the APP is back online, is this assumption true?

 

WIth no further ado, I thank you all for your comments and your interest, perhaps if these questions are common knowdledge then I apologize, and if you guys could point me to any useful documentation to handle this case, i'd be greatly thankful.

 

Best regards.


Connect JavaStackSystem to GW system

$
0
0

Hi,

I have a question regarding maintaining services in SAP gateway system. If I use transaction
/IWFND_MAINT_SERVICE I can add oData services from backend systems with ABAP stack. I just need a RFC destination, create system alias for this system and then I can add services from this system.

But how does it work for a ME-system with java stack???

 

Appreciate your help.

Best regards, Thomas

OData SADL Batchrequest with multiple changesets doesn't work

$
0
0


Hello,
I’m currently developing a UI5 Application.
My oData service is based on SADL, so the implementation to retrieve the data is the generated SADL-standard implementation.
My problem is this: When I try to execute a batch request with multiple changesets, I get a short dump with the error MESSAGE_TYPE_X.
The error occurs in the program  /IWBEP/SAPLFGR_MGW_CLIENT_IF in the commit_check which is executed when commit work is called in /BOBF/IF_TRA_TRANSACTION_MGR~SAVE, because in my case mv_changeset_optotal is > 1.
When I just skip over the commit_check in the debugger, the batch finishes without problem.
Is there any possibility to avoid this check?
What's the sense of a batchrequest, if I can't hand over more than one request? My intention is to make more request by once, for better performance.

 

Kind regards, Stefan Frank

 


FORM commit_check .

 

* Commit Work is allowed for anyone of the following cases:
*   - no ChangeSet
*   - only one operation in Changeset
*   - during CHANGESET_END
  IF  mv_changeset_optotal = 1             OR
     mv_changeset_processing <> abap_true OR
     mv_changeset_end_processing = abap_true.
    EXIT.
  ENDIF.

 

  MESSAGE x051(/iwbep/cm_mgw_rt).

 

ENDFORM.

Limitations or Redundancy in SAP Gateway Product

$
0
0

I have been using SAP Gateway from one month and feel that there is too much of redundancy and Limitations. Let me brief in points :

 

1) Entity Relationship

ODATA  has an obligatory requirement for a Primary Key Relation between in the input and output parameters of the FM......For instance, if there is a INITILIZATION web service created that calls an FM to export 5 tables in the response , the GET ENTITY SET Query executes the FM as many as 5 times to the get the details which could be done with single execution of FM Here each table is addressed as an Entity which is not apt is what I feel...


I had to use ASSOCIATION to get 5 tables and why would anyone do that !

 

2)Custom Code in the Methods

When it comes to flexibility and altering a code , the custom code written in the methods ( GET , CREATE , DELETE , UPDATE , GET ENTITY SET ) is erased when the user hits a GENERATE button....

 

3)Redundant Data Returned

There is a set of redundant data that could effect the JSON response size unnecessarily for instance below....why is the metadata is in reponse....can that be avoided.....


"__metadata": {

                    "id": "/sap/opu/odata/sap/ywebservice/initAhsWebservice('RETURNLINK')",

                    "uri": "/sap/opu/odata/sap/ywebservice/initAhsWebservice('RETURNLINK')",

                    "type": "ywebservice.initAhsWebservice"

 

4)CREATE calls

The POST/CREATE web service does a GET method that calls the FM once more with the same data. This redundant code can be commented out but then the regeneration of the code would get that working again !!!

 

I want know if am following the right standards or am having half baked knowledge in SAP GATEWAY SERVICES !!!

Please let me know if am going in wrong way all together....

How to provide ODATA service for sth like Select Option in a Web application?

$
0
0

Hi Experts,

 

Scenaio:

In UI5 application, We want to create something like search help for a single field. For exmaple, A button next to field SalesOrder ID triggers a search help with search criterias Sales Group, Sales Offices and so on. This is just like the classic ABAP dynpro field.

 

Need suggestion in SAP GW service generation:

  • For the GW, how can I create a service which provide enough information to outside world?
  • Is Annotation related in this scenario?
  • Is there any document or step by step about this?

 

Thanks in advance.

 

 

Cain Sun

HTTPIO_ERROR_CREATE_MYSAPSSO error message while sending data

$
0
0

Hi All,

 

I am Getting the error ( HTTP Send failed: HTTPIO_ERROR_CREATE_MYSAPSSO error message while sending data. ) while executing the service from Tcode: /IWFND/GW_CLIENT.

 

Please find the screen shot attached.

Viewing all 1745 articles
Browse latest View live


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