Problem creating an OData service with RFC-/BOR Import.

Hi Experts,
i am running always into the same problem
I want to create an Odata Channel with "SEGW" and Datamodel with an RFC import.
RFC si GET_CPU_ALL
but I am running always into the same problem when I want to generate the runtime.
I don´t know why.
Error: ... _DPC was generated with syntax errors....
I would really appreciate if someone could help me.
Thanks

Oh dear, your'e not an ABAP guy are you
OK, you can go back to my previous suggestion and do it a different way, but first...
TF_CPU_ALL isn't a table, it's a structure of type CPU_ALL. GET_CPU_ALL uses that as the interface structure for data it sends out.
Starting with a blank service, create a model by using DDIC import wizard, using CPU_ALL as the structure. Call the entity "CPU". Mark 'serialnr' as the key.Create an entityset called "CPUSet".
Generate the service.
Go to DPC_EXT, find method CPUSET_GET_ENTITYSET and redefine it. Assuming that you can leave the inputs as the defaults, call function GET_CPU_ALL in the method with the importing parameter TF_CPU_ALL assigned to ET_ENTITYSET.
call function 'GET_CPU_ALL'
     tables
       tf_cpu_all = et_entityset
     exceptions
       others     = 1.
   if sy-subrc <> 0.
* Implement suitable error handling here
   endif.
That's all it needs.
Activate EXT class and try your service.
opu/odata/sap/ZCPUALL_SRV/CPUSet?$format=json
"type" : "ZCPUALL_SRV.CPU"
         "Type" : 101,
         "Subtype" : 3,
         "Serialnr" : 0,
         "NbrCpu" : 2,
         "Load1Avg" : 7,
         "Load5Avg" : 29,
         "Load15Avg" : 30,
         "IntSec" : 1059,
         "SyscSec" : 4555,
         "CsSec" : 895,
         "UsrTotal" : 3,
         "SysTotal" : 1,
         "IdleTotal" : 96,
         "IdleTrue" : 96,
         "WaitTrue" : 0
Did it myself in under 10 minutes from build to test.

Similar Messages

  • Error connecting OData service with Appbuilder

    Hello,
    I have created an OData service with SAP Netweaver Gateway and there isn't any problem while testing the service on the browser.
    I made all the right settings in SMP 3.0 and the system is reached successfully from the server.I am developing the app with appbuilder so when trying to connect with SMP onboarding service there is the following error. Failed to get Service metadata.I can see the metadata in the browser so i can not understand what this error means.
    If anybody can help it would be very useful because im in a deadlock.
    Thank you in advance!

    Hi IIliona,
    I am facing the same error
    I can see the metadata in the browser.
    The operation of entity set returns correct results as well.
    Did you fix the it?  If yes, do you mind sharing your solution?
    Thanks!!

  • How to create a web services with Developer Studio?

    hi all,
    I would like to know how can I create a Web Services with Developer Studio 7.0, but a try because I could not publish it to consume.
    thanks!

    Thanks for your answers
    Web Services try when I get the following error:
    http://img386.imageshack.us/my.php?image=errorms9.jpg
    <--Localization failed: ResourceBundle='com.sap.caf.rt.resources.CAFExceptionResources',
    ID='MMR_BO_NOTFOUND', Arguments: ['Prueba2Service']-->
    I do not know what the cause of error
    thanks

  • How to build an OData Service with Gateway Service Builder (NO DDIC, BOR import)

    Hi Community,
    I hope to get an answer here to finish my project. I´m a newbie to the sap gateway service builder. Please provide me a helping hand.
    I have a problem I´m sure someone out there can help me.
    I need to create an sap ui app, which is monitoring our database behaviour (->transaction st06) is there someone who knows how to build a OData Channel with sap gateway service builder without importing a BOR- Object, or a DDIC?
    Or how to build an OData channel which exposes the database (monitoring) data from ST06?
    I would really appreciate if someone could help me.
    THANKS!
    JOE

    Hello Joe,
    If u do not want to import any Structure or BOR- Object, u can follow below steps :
    1. Create ur data model by adding the properties manually in SAP GW service builder with correct Edm    types.Doing this would be pain in my opinion ( sometimes we are forced to do this but no other option    doing this way )
       Create associations & navigation needed. 
    2. U can generate run-time objects.
    3. Go to appropriate classes and implement methods with ur Business Logic.
    4. Register ur service & consume.
    U can also import RFC to create data model and create mapping as per required by implementing correct method as well.
    once u do this generate objects and register service and consume it.
    Check this out for ur info :
    Detailed step by step procedure for Creating Gateway Service with all the CRUD Operations and testing them in Service Explorer Part1 
    Regards,
    Ashwin

  • Problem Creating a HTTP Service in SOAMANAGER

    Hi all,
    I am having difficulty in setting up a HTTP Service in SOAMANAGER.
    I have generated the Enterprise Service - Service Definition Succesfully in SAP from a RFC Enabled Function Group( this is working fine).
    I then go into SOAMANAGER -> Single Service Administration -> Select the Service -> Select the Configurations Tab -> Create Service
    The problem I have is that when this comes up under the
    Provider Security Tab -> Transport Guarantee -> Communication Security
    I do not have a radiobutton for "None" (this is what I want to select to create a HTTP service.)
    I have the options
    - SSL over HTTP (Transport Channel Security)
    - Asymmetric Message/Signature / Encryption
    - Symmetric Message/Signature Encryption
    Secure Conversation
    If you see William Li's blog /people/william.li/blog/2010/02/15/how-to-avoid-authentication-when-accessing-ws-provider-service you item 3.6 shows how the screen is supposed to look (with the additional option of "None" as the first radiobutton).
    My current workaround is to define the service and then go into SICF, select the service and change the Security Requirement from SSL to Standard on the Logon Data Tab. Although this works it is not the ideal solution.
    I'm wondering if there is something we are missing in our soap run time, perhaps a configuration setting we need to set in srt_admin. (I believe this option was there before we did a service pack upgrade)
    Has anyone experienced this before?

    Hi John,
    I've experimented something like that before. I think solution was:
    - Search the webservice in SE80, Repository Information System -> Enterprese Services
    - Enter the service definition
    - Go to 'Configuration' tab
    - Click on 'Transport Security'/'Authentication'
    - In profile setting, switch it for 'Low' or 'None'
    I believe this will turn available the option you're looking for.
    Kind regards,
    Garcia

  • Problems creating a web service that uses the report generation toolkit

    Hi,
           Im trying to develop a web service using labview 2013.
    I create a html form that is correctly communicating with my labview method and part of the web service functionality is to create a report from the data obtained in the html form published.
    I realized that using the report generation toolkit inside of the web service method the server cannot generate a report. ( If I run the same Vi before publishing the web service it works on the server but it doesnt work after I deploy it)
    I thought that maybe Im unable to use the report generation toolkit VIs inside of the web service because Im not incluiding the (dynamic VIs labview uses when they run), I tried to add the excel dynamic library to the proyect but with no success.
    I also tried to use VI SERVER to call a VI that generates the report using the report generation toolkit  in the method that runs when the web service is call but  it doesnt work either.
    How can I deploy a web service able to use  the report generation toolkit ?, how can I deploy a web service able to use VI server ?
    Any help is really appreciated.
    Erwin Franz 
    Erlab

    The issue you are running into is actually a limitation intended by Microsoft.  They don't want windows services to be able to call into the ActiveX interface for Microsoft Office for security reasons.  If you are deploying your web service to the NI Application Web Server on Windows you will run into this problem since the web server is a Windows Service.
    While I haven't tested this, you may be able to work around this by packaging your Web service with a LabVIEW EXE rather than deploying to the NI Application Web server. 
    Mark
    LabVIEW R&D

  • Binding to Odata Service with Input Parameters from HANA

    Hello,
    I'm developing a UI5 application that consumes a SAP HANA OData service to search a database (using fuzzy search). This service receives an Input Parameter, used to query the database.
    So every time the user searches for something I build a new binding path and refresh the model to show the search results in the sap.m.List.
    The Model:
    var hanaModel =  new sap.ui.model.odata.ODataModel("…/services/seed.xsodata");
    this.setModel(hanaModel);
    The search event handler from sap.m.SearchField:
    var listBinding = this.getView().byId("list").getBinding("items");
    listBinding.sPath = "/FoodstuffByNameValuesParameters(P_NAME='" + searchString + "')/Results";
    this.getView().getModel().refresh();
    My question is if this is the correct approach to create the model and bind the list when we have a service with an Input Parameter, or if there is a better way to do it.
    (This approach is actually working).
    Regards,
    Paulo

    i would do
    var       filter = [];
    var selectFilter = new sap.ui.model.Filter("name", sap.ui.model.FilterOperator.Contains, sVal);
          filter.push(selectFilter);
    listBinding .filter(filter);

  • Create RESTful web service with CSV format (bug??)

    Hi All:
    I am using APEX 4.2.2 with APEX listener 2.0.2.
    I have create a RESTful web service to retreieve some data from a table. The format is "CSV" (the other option is JSON, which I am not faimilar with).
    then I tested and it generate with below sample data.
    United States,"Zhang, Kevin",IT
    Above data means: Country, fullname, department
    As you can see value of fullname is double-quoted and also contains a comma (,) in it.
    Then I create a web service reference in a test application. Then I create a a form and report on web service.
    The problem is the fullname. The output looks like below:
    Country                 fullname                    Department
    United States        "Zhang                      IT
    As you can see, APEX is not able to get fullname correctly.
    Anyone see this issue and how to resolve it?
    Thanks!
    Kevin

    Kevin,
    I'm not sure I would classify it as a bug so much as an enhancement. We need the ability to set the "Text qualifier" as one can from Excel. This would allow the above to be seen a single a single field and, then, to do what you want. However, as I'm sure you realize, this just doesn't exist at the moment.
    So; you could store the first and last names in separate fields in the table (don't forget that you could use virtual columns for this purpose) or simply alter your query to pull them out as if they were separate fields, i.e. use SubStr and InStr.
    If you simply must see them in this format when the CSV is opened, you could create a formula in Excel to do this for you.
    -Joe

  • Problem creating J2ME web service client

    Hi,
    I am using netbeans (5 and 5.5 beta 2). I have created a web service which works fine. I also created a regular web service client as a standalone application which also works fine and connects to my web service with no problem.
    BUT, when I want to create a J2ME web service client (under a J2ME application) I have to locate my WSDL file. but the wizard shows me the error "WSDL file does not contain port information".
    By looking at the WSDL file I can see that port is created - or maybe I'm wrong.
    piece from WSDL file:
    <service name="myServiceName">
    <port name="myServiceSPort" binding="tns:TranslatorWSPortBinding">
    <soap:address location="myURLLocation"/>
    </port>
    </service>
    Please note that I have replaced the actual values in above piece
    I tried to use wsgen manually but it didn't help.
    Can anyone help me in generating the correct WSDL format as J2ME web service client expects?
    Thanks a lot,
    S.

    well stubs are generated separately using WTK 2.5 stub generator but the problem is with the WSDL at this point.
    S.

  • Security Error when creating a web service with Flex

    Hello comminuty.
    I'm using Flex to create a standalone application and I have to use web services to retrieve data from SAP.
    I used the bapi bapi_flight_getlist to create an associated WS that works fine (tested with the Eclipse's WS Explorer).
    In Flex Builder, I use the following code to create my web service:
         <mx:WebService
              showBusyCursor="true"
              id="service"           
              wsdl="{wsdl}"
              result="resultCreateWSHandler(event);"
              fault="faultCreateWSHandler(event);">
                <mx:operation name="FlightGetList"
                     result="resultWSHandler(event)"
                     fault="faultWSHandler(event)"></mx:operation>                    
            </mx:WebService>
    And this is the error I'm getting:
    (mx.messaging.messages::ErrorMessage)#0
      body = (null)
      clientId = "DirectHTTPChannel0"
      correlationId = "E578ED8C-EF29-44E7-8D57-57B4DB6EB613"
      destination = ""
      extendedData = (null)
      faultCode = "Channel.Security.Error"
      faultDetail = "Destination: DefaultHTTP"
      faultString = "Security error accessing url"
      headers = (Object)#1
        DSStatusCode = 0
      messageId = "6E7AC45E-418D-90CD-96AD-57B52DB1DAF4"
      rootCause = (flash.events::SecurityErrorEvent)#2
        bubbles = false
        cancelable = false
        currentTarget = (flash.net::URLLoader)#3
          bytesLoaded = 0
          bytesTotal = 0
          data = (null)
          dataFormat = "text"
        eventPhase = 2
        target = (flash.net::URLLoader)#3
        text = "Error #2048: Violation de la sécurité Sandbox : http://localhost:8300/ztest2/bin-debug/ztest2.swf ne peut pas charger de données à partir de http://XXXX:8006/sap/bc/srt/wsdl/bndg_DEB8A28C2E19EEF19C080050568D135B/wsdl11/allinone/ws_policy/document?sap-client=800."
        type = "securityError"
      timestamp = 0
      timeToLive = 0
    Translation: "Error #2048: Sandbox security violation: http:....swf cannot load data from http:...client=800"
    Would any of you have an idea about what is causing this error??
    Thanks for any help you can provide.
    Regards,
    C.

    Hi Cristina
    Did your flex application worked. i am also having same problm. cant access the BAPI from standalone flex application.
    Jay

  • Problem in starting Integration service with DAC 11g

    Hi friends,
    Im @ the step of registering integration service and the repository service in DAC 11g. I can start the Repository service well in DAC, but facing issue in starting integration service with DAC, while trying to test connection im getting a message like
    Failure connecting to BIA_IS!
    Im not sure the reason to this problem in DAC. I have also setted the necessary environment variables like INFA_HOME and INFA_DOMAINS_FILE referring the domains.infa file like
    INFA_DOMAINS_FILE = C:\Informatica\9.1.0\domains.infa
    Also checked with the dac_env file which has the below contents
    REM -----------------------------------------------------
    REM
    REM ENVIRONMENT VARIABLES THAT YOU MAY NEED TO SET FOR
    REM  PROPER INFORMATICA 8.x or 9.x HANDSHAKE.
    REM
    REM INFORMATICA_SERVER_LOCATION denotes installation of
    REM Informatica components. Example:
    REM C:\Informatica\PowerCenter9.1
    REM
    REM DOMAINS.INFA_FILE_LOCATION denotes the location
    REM (including name) of domains.infa file
    REM
    REM Please make sure to set correct values for variables
    REM mentioned above
    REM
    REM -----------------------------------------------------
    set INFORMATICA_SERVER_LOCATION="C:\Informatica\9.1.0"
    set DOMAINS_INFA_FILE_LOCATION=C:\Informatica\9.1.0\domains.infa
    set INFA_CMD_STYLE=8
    set PATH=C:\Informatica\9.1.0\server\bin;%PATH%
    set INFA_DOMAINS_FILE=%DOMAINS_INFA_FILE_LOCATION%
    What could be the problem and where to check with the logfile related to the integration service failure in DAC.
    Thanks in advance.
    Regards,
    Saro

    Hi guys,
    The issue is sorted out. The below are the two precautions to be considered.
    *) Make sure of INFA_HOME/Server/bin exist @ the end in the PATH variable.
    *) For each and every change in the PATH variable, it is better to restart the services(both infa and DAC) then and there for the changes to take effect.
    Regards,
    Saro

  • Problem creating an sql query with a parameter which is a list

    Hi,
    Im having a problem creating a certain SQL query.
    The query looks like this:
    SELECT gstock_id FROM germplasm_stock gps, germplasm gp WHERE gps.germplasm_id = gp.germplasm_id AND organism_id IN ($childList:VARCHAR).
    the organism_id field is of DECIMAL type.
    the parameter childList is actually a list of Id's, something like: 123,124,789
    and it is created dynamically by an other function, so I cant just put it there staticlly.
    I tried using the ARRAY type instead of VARCHAR, but that didn't work,
    anyone knows how can I give this query a parameter which is a list of numbers ?
    Thanks

    I have tried all the following options and the same issue occurs:
    EXEC dbo.uspGetSiteChanges @ChangeVersion = ?
    With Parameter: 0, @ChangeVersion, ChangeVersion
    EXEC dbo.uspGetSiteChanges ?
    With Parameter: 0, @ChangeVersion, ChangeVersion
    In my first data flow I use the following and it works on two OLE DB Sources:
    EXEC dbo.uspGetSiteChanges @ChangeVersion = ?
    With:
    In my second data flow task, I use the same command and parameter mappings and it fails, very strange.

  • Bex Odata Services with Customer Exit

    Hi All,
    Im using Bex as Odata Services in order to export the result set , everything works fine until i tried to use Customer Exit in Bex...in that moment the Odata Service goes down an shows a few errors.
    Does anybody know how can i manage this?
    Thanks a lot.

    Hi Marcos,
    Can you please explain your scenario and what you have done so far (e.g. share the coding in the user exit)?
    I understand that you get a few error messages. Please share them too and display the error messages on the lowest level (with details on the error).
    Last but not least, on which BW release and SP level are you working?
    Thanks,
    Sander

  • Problem creating a web service PROXY from a wsdl file/URL

    Hi,
    I am experiencing problems when I want to import a WSDL file for creating a proxy object.
    When I import the WSDL file from URL I get an error like this: <b>404   Not Found
    The requested resource does not exist.</b>
    Then, I  try to create it from a file, but I get other error:
    <b>Document not found (path o:\BCS.WSDL, error code 7</b>
    The error code 7 indicates <b>unknown error</b>
    Any help?.
    thanks in advance.
    Eduardo.

    Hi,
    I've done the same from other ECC6.0 System and everything was working perfetly, why all this can happen?
    I've ckecked the activation of the proxy objects, traces, etc... and it's the same in both systems, what more should i check?
    Thanks in adavance.

  • Problems creating the Master Repository with MS SQL Server 2000

    Hello guys!
    I can't create the Master Repository with MS SQL Server 2000 database.
    Wath is the correct adress in the URL?
    I select the Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver and the URL: *jdbc:microsoft:sqlserver://<host>:<port>;SelectMethod=cursor[;<property>=<value>...]*
    Thanks
    Maurício
    Edited by: user857262 on 03/10/2008 10:05

    Hi Maurício,
    For MS SQL Server the following drivers should avaliable in /drivers folder (http://www.inetsoftware.de/),
    * msutil.jar
    * mssqlserver.jar
    * msbase.jar
    JDBC Driver is:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    JDBC URL is:
    jdbc:sqlserver://serverName\instance:port;property=value[;property=value]
    Example,
    jdbc:sqlserver://myHost:1433;selectMethod=cursor;databaseName=myDB
    Thanks,
    G

Maybe you are looking for

  • How do I make space on my MBP and transfer old files to External Hard Drive?

    I recently ran out of the 250 GB space on my 2010 Macbook Pro, so I bought a non-apple external hard drive. I plugged it in and Time Machine automatically popped up. I just wanted to know what the correct way to transfer all my old files that I'm not

  • Expanded Profit Center Hierarhcy display in Report Painter.

    Hello, We have built a report painter based P&L report with variation on company code and profit center.  The profit center hierarchy has multiple levels.  User requirement is  -  The report output should show the profit center hierarchy fully expand

  • Scale Fit Not Working Correctly

    Hello, I have a front panel with a tab control containing 12 tabs. Each tab contains a cluster with one of the controls as an XY Graph. When I populate each of the graphs with data, I want to set the "Scale Fit"  or "ScaleFit" property to 1 so that e

  • SD WEB screens

    I am looking for information on the new web based order entry screens available in ECC6.0.  I need to know if if is possible to implement these with just the ABAP stack installed and not the JAVA stack??

  • Viewing test messages in my details for the month???? Please help....

    Hi everyone, I always look at my monthly bill, text messages as well. This month on the testing there are a bunch of texts that in the FROM: has this number 0080001176 then it says TO: and it will show my number. I have no idea what this number is? I