SAP NetWeaver Gateway and JSON Error Handling

Hello All,
I am developing a small test application using Netweaver Gateway to understand the error handling.  I am using Postman to test the Gateway service.  I have developed small RFC FM to read return list of deliveries for a shipment.  The RFC reads in a shipment number and returns the list of deliveries.  The RFC also has Return parameter of type BAPIRET2 that stores the error message if shipment is not found.  We want to use only JSON format for the application.  So, I have set the 'Accept' parameter at request header to 'content/json'.  I am also aware of the exception /IWBEP/CX_MGW_BUSI_EXCEPTION that allows to throw an error message from backend suite.  I have that by having a Return parameter of type BAPIRET2, the generated method automatically handles the error message and sets the correct HTTP status.
Now the Problem:
As mentioned earlier, we want to use JSON format.  When I set the header parameter or specify $format=json in the URI the HTTP status code is always set to 500 when there is an error.  The error message about invalid shipment also is not returned.
When I remove the JSON format parameters, the XML format is returned and HTTP status is set to 400 with appropriate error message.
How can we get the Gateway to set the HTTP status code to 400 along with error message in the event of an error in RFC.  I have tried with the exception /IWBEP/CX_MGW_BUSI_EXCEPTION and BAPIRET2 return parameter but still does not work.  Is this a known issue in Gateway/JSON?
Please see attached screenshots.
Thanks,
Rutul Thakkar

Anyone have encountered this issue?  Any suggestions?
Thanks,
Rutul Thakkar

Similar Messages

  • Difference between SAP NetWeaver Gateway 2.0 and SAP NetWeaver Gateway productivity accelerator for Microsoft

    Hi Experts ,
    Can anyone tell me the difference between SAP NetWeaver Gateway 2.0 and SAP NetWeaver Gateway productivity accelerator for Microsoft ?
    Best Regards,
    SK

    SAP  Netweaver Gateway 2.0 is a product for Exposing ERP data as OData for external consumption which is independent of any Microsoft product. Using this you can model OData services and Expose them for light weight consumption. You can use this in use cases where  you just want to consume the OData in some client or so, and you do not want any kind of accelerators to help you in development or in your integration.
    GWPAM is an interoperability framework from SAP that leverages SAP NetWeaver Gateway and Microsoft technologies enabling customers and partners to easily and quickly compose solutions that consume and extend SAP throughout Microsoft technologies for on premise and on demand deployment. With GWPAM you get components like
    GWPAM Visual Studio Add-On,GWPAM Template,GWPAM Project,GWPAM Outlook Add-In which are very much Microsoft specific.

  • SAP Business Workflow and SAP Netweaver Gateway - Missing extensible elements

    Hello,
    For a mobile project we use SAP Netweaver Gateway in order to retrieve information from workflows stored into SAP Business Workflow.
    We are able to retrieve standard informations for a workflow but custom fields added into "Extensible Elements" section are lost when exit SAP NG.
    We have checked the configuration of SAP NG (by 4 differents person) and it seems to be OK.
    Do you have an idea why the custom fields are lost during SAP NG processing ?
    Thanks in advance
    Best regards,
    Dominique

    Hi Dominique,
    FYI. SAP Fiori Approve Requests uses task processing service. This may help.
    How to display application data in SAP Fiori Approve Requests app
    Regards, Masa
    SAP Customer Experience Group - CEG

  • Flash Builder 4.6 and SAP Netweaver Gateway plugin works just fine

    Hi, i have just installed the new Flash Builder 4.6 and add the SAP NetWeaver Gateway plugin on it.
    I you follow the documentation available (http://download.macromedia.com/pub/labs/flashbuilder_sap/flashbuilder_sap_gettingstarted.p df) and then select the "DEMO_BANK" service instead of the "DEMO_FLIGHT" as writtent in the documentation and then bound the "selectZ_demo_bankCollection" to your datagrid, the demo works just fine.
    My platform specification is:
    - Windows 7 Integral running on VMware Fusion installed on my MacBook Air (just installed yesterday and full updated from Windows Update)
    - Flash Builder 4.6 (fresh download from this morning)
    - Internet Explorer 9 (last update at this time)
    - Flash Player 11.1.102.55 (last update at this time)
    - flashbuilder_sap_p1_plugin_110111 (the SAP Netweaver Gateway Plugin) available at http://labs.adobe.com/technologies/flashbuilder_sap/
    FXL

    note sure if I'm much help other than to CONFIRM it is working for me by using the sdk WITHOUT the compiler. Check out adobe's little note: "Note : Flex users will need to download the original AIR SDK without the new compiler."
    I am using FB 4.7 with AIR 3.6 and seems to compile correctly for iOS.
    Maybe try reinstalling flash builder?
    I honestly don't know if the JRE has anything to do with it... I'm using 1.7 ....to see what JRE you're using, open the Java Control Panel (I right click my java orange icon and hit properties), select the Java tab, then hit "View..."

  • Feedback Form for SAP NetWeaver Gateway development tools

    Hi all, if you wish to send your feedback (bug, new feature, and general feedback) to SAP NetWeaver Gateway development tools u2013 Xcode, Visual Studio, Blackberry, Search console, please use the attached feedback forms:
    For Xcode and Visual Studio tools please use Feedback form XC&VS.rtf
    For Eclipse, Blackberry and Search console please use Feedback form BB&SC.rtf

    Hi Michal,
      While installing the Netweaver gateway plugin for eclipse Juno version through the following link
    https://tools.hana.ondemand.com/juno   under Help -> Install New Software... I have encountered below error.
    Can you please help me in resolving it.
    An error occurred while collecting items to be installed
    session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Unknown Host: https://tools.hana.ondemand.com/juno/features/com.sap.core.editor.feature_1.0.6.jar
    tools.hana.ondemand.com
    Many thanks in advance.
    Regards,
    Parthi

  • SAP NetWeaver Gateway plug-in for Eclipse - New Version Available

    Hi All,
    I am happy to share with you that a new version (2.4.101 )of the SAP NetWeaver Gateway plug-in for Eclipse is now available [here|http://www.sdn.sap.com/irj/scn/downloads?rid=/webcontent/uuid/b09d414f-f227-2f10-bdbf-ba31c844b432].
    We will be happy to get any feedback on the tool from you.
    What's new?
    Framework
    u2022 Proxy generation support from Search Console
    u2022 New exploration screen (user provides URL) in Wizard
    u2022 OData 1.0 support (exploration including aggregation of catalogs)
    u2022 Enhancements (improved performance, bug fixes)
    Java Toolkit
    u2022 New Connectivity API (X.509 enablement, XSRF protection, error handling)
    u2022 New Parsing API
    u2022 OData 1.0 support
    PHP Toolkit
    u2022 OData 1.0 support
    Thanks,
    Nir

    Hi Michal,
      While installing the Netweaver gateway plugin for eclipse Juno version through the following link
    https://tools.hana.ondemand.com/juno   under Help -> Install New Software... I have encountered below error.
    Can you please help me in resolving it.
    An error occurred while collecting items to be installed
    session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
    Unknown Host: https://tools.hana.ondemand.com/juno/features/com.sap.core.editor.feature_1.0.6.jar
    tools.hana.ondemand.com
    Many thanks in advance.
    Regards,
    Parthi

  • SAP Netweaver gateway in solution manager

    Hi ,
    We have a solution manager 7.1(netweaver 7.02) and ECC IDES EHP 6 system for which we need to configure Netweaver gateway. We have installed netweaver gateway 2.0 components in solution manager system. Now is it possible to configure gateway on solution manager system instead of building a separate netweaver system for configuring gateway.
    Wondering if we can make solman as gateway system for accessing ECC IDES. Please give your suggestion and steps to perform.
    Regards,
    Prakaash

    Hi Prakaash,
    For overall installation prerequisites for SAP NetWeaver Gateway 2.0
    components, please have a look in the installation guide -> Installation
    Prerequisites:
    http://help.sap.com/saphelp_gateway20sp06/helpdata/en/52/fc994f456a4573957461be15520fe8/frameset.htm
    Quick Starter Configuration Guide - SAP NetWeaver Gateway:
    Quick Starter Configuration Guide - SAP NetWeaver Gateway
    The meaning for 'embedded deployment', below:
    http://help.sap.com/saphelp_gateway20sp04/helpdata/en/62/91ad98b19b4a91bca737fbe442273f/content.htm
    please refer to the below link for different deployment scenarios,
    http://help.sap.com/saphelp_gateway20sp04/helpdata/en/88/889a8cbf6046378e274d6d9cd04e4d/content.htm
    also,
    http://help.sap.com/saphelp_nw04/helpdata/en/90/cbde3f7bc1eb06e10000000a1550b0/content.htm
    how to configure SAP NetWeaver Gateway in the SAP ONline Help
    http://help.sap.com/saphelp_gateway20sp06/helpdata/en/4c/a670b0e36c4c01ae2b9a042056f9dc/frameset.htm
    Note 1569624 - Installation/Delta Upgrade of SAP NW Gateway 2.0
    1560585 - SAP Netweaver Gateway 2.0 Release Note
    1417757 - System logon, determining client and language
    Thanks
    vikram

  • SAP NetWeaver Gateway Trial Version of Duet Enterprise

    SAP NetWeaver Gateway Trail version Part 1 is not available for down load. I was successfully able to download Part 2 and Part 3 but Part 1 is not available. Can you someone help me with Part 1?
    THanks.
    Farhan.

    There lies another problem..
    I tried downloading 7.01 from sdn.sap.com
    The link for part2 of the file broke as many as three times
    So I switched to ftp link.
    But it happens to be 7.0
    can I use any download manager with sdn.sap.com
    If not, any alternate links..
    Quick Reply appreciated

  • SAP NetWeaver Gateway 2.0 Pre-Packaged Trial Version for Windows available

    The Windows version of SAP NetWeaver Gateway 2.0 Pre-Packaged Trial Version is available for release. For more information and to find the download links [here|http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/f091b083-c2d0-2e10-dfaf-d39b95b312d1].

    Hi Johny,
    In my view the very first thing to observe is if there is any
    licence implication by doing so as I believe it was designed to run on top of
    HyperV. Technically it is possible to do it. But the licence check should come
    first. I don’t know the answer for the licence implication.
    Best Regards,
    Felipe

  • SAP NetWeaver Gateway 2.0 Pre-Packaged Trial Version for Linux available

    The Linux version of SAP NetWeaver Gateway 2.0 Pre-Packaged Trial Version is available for release. For more information and to find the download links [ here|http://www.sdn.sap.com/irj/sdn/gateway?rid=/webcontent/uuid/90b292cc-a2d7-2e10-709d-9fba966a6937]. The Hyper-V Windows 2008 version will be available shortly.

    Hi Thomas,
    We currently have three pre-packaged demo version available with slightly different favours. We are evaluating which ones we want to maintain currently and currently all 3 are at SP4 levels. So a questions back to you would be, if the Hyper-V image was dropped, would the Windows 64 bit version still work for you?
    You can find that here.
    Regards,
    Wayne

  • SAP Netweaver Gateway 2.0 vs. Web Services

    Hello,
    I want to ask about SAP Netweaver Gateway 2.0. I understand its usage but why do we need it when we can create (globally compatible) web services and use SOa Manager? I want to implement Gateway add-on but I need to know differences between web services and Gateway before making last decision.
    Thank you.

    Hi,
    I have just answered your question in the the Gateway Forum...
    Martin

  • Difference Between SAP Netweaver 2004 and SAP Netweaver 2004s (7.0)

    Dear All,
    Could you please list out the differences between SAP Netweaver 2004 and SAP Netweaver 2004s (7.0)?
    Thanks,
    Rahul Bhat

    Hi Rahul,
    These threads can give you some insight:
    What's it gonna be: NW2004S?
    NW2004 vs. NW2004s
    Need help on Netweaver 2004 and Netweaver 2004s
    /thread/196931 [original link is broken]
    difference between 2004 and 2004s?
    NetWeaver version question
    Bye
    Ankur

  • New IBM JDK 1.4.2 for SAP NetWeaver 2004 and 2004s

    In May 2006 IBM System p brand and SAP announced the direction to enhance the IBM AIX 5L JDK 1.4.2 for SAP NetWeaver 2004 and SAP NetWeaver 2004s based applications. The new IBM JDK 1.4.2 for SAP NetWeaver applications on AIX 5L is 100% upward compatible for all SAP business applications and, compared to the classical AIX JDK, provides a more consistent runtime behavior, enhances memory management, and improves debugging capabilities.
    <b>General Availability (GA) of the new IBM JDK 1.4.2 for SAP NetWeaver 2004 and 2004s on AIX 5L</b>
    As part of a staged release process aligned between IBM and SAP a customer pilot program was started in August 2006 followed by a Controlled Availability (CA) program. Based on positive customer feedback resulting from real production usage and the very encouraging internal test results, the new IBM JDK on AIX 5L is/will be generally available
    •     for SAP NetWeaver 2004 SP14 and above starting at 5th of February 2007
                    and
    •     for SAP NetWeaver 2004s SP06 and above starting at 30th of March 2007.
    This means systems running above SAP NetWeaver releases in an AIX 5L environment are allowed to use the new IBM JDK without restrictions.
    This announcement does not affect the use and support of the classical AIX JDK outside SAP environments.
    <b>Transition Plan to the new IBM JDK 1.4.2 on AIX 5L</b>
    SAP will support the classical and the new JDK in parallel for a limited number of NetWeaver support packages. Afterwards only the new IBM JDK will be supported:
    •     for SAP NetWeaver 2004 the first support package only supporting the new JDK will be SP21 (planned date for SP21 see http://service.sap.com/~sapidb/011000358700001130682005E),
    •     for SAP NetWeaver 2004s it will be SP14 (planned date for SP14 see http://service.sap.com/~sapidb/011000358700004584092005E).
    So please plan a transition to the new JDK prior to the upgrade to these support packages.
    SAP and IBM strongly believe that the switch to the new JDK will improve your experience with JAVA based SAP applications on AIX 5L. Both companies recommend upgrading to the new IBM JDK 1.4.2 for SAP applications running on AIX 5L as soon as it matches your company’s maintenance plans.

    You can download the JDK directly from the sun java website...
    http://java.sun.com/products/archive/j2se/1.4.2_12/index.html
    I don't think Ubuntu is supported...
    Regards
    Juan

  • SAP NetWeaver BW and SAP BusinessObjects BI

    Dear Experts,
    I need to know if it is recommended to install both SAP NetWeaver BW and SAP BO BI on the same host OS or not?
    Best Regards,
    Mohamed Awny

    yes Dear
    you can install .But please check out the system capacity too
    thanks

  • SAP ERP - CTS and Backup error CPIC-CALL: 'ThSAPCMRCV'

    hello All,
    I have some issues with transport system and when I try to schedule backup jobs in my ERP system. When I try to reconfigure my transport system the following message:
    Could not start transport control program tp
    Message no. TP608 Diagnosis
    There was an attempt to start the transport control program tp using the local RFC interface. An error occurred here.
      Error code: 4
      RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Meaning of the error codes:
      03  RFC system failure
      04  RFC communication failure
    System Response
    The function terminates. Details about the error can be found in the trace file of the Gateway Monitor (SMGW).
    Procedure
    Contact your system administrator or use report RSTPTEST to localize the error. You can then execute the command again.
    Al ejecutar el reporte RSTPTEST  se presenta:
    Check Transport Tool                                       12.10.2011  16:32:11
           DES System DES
               tp Interface
               Transport Profile
               RFC Destination
               tp Call
    I executed the report RSTPTEST   and the result was successful.
    Another error is generated when I try to schdule the backup jobs in DB13:
    Name and Server     : cobogsap01 - cobogsap01
    DBMRFC Function     : DBM_GETF
    Command             : DBMMDF
    Error               : System Error
    Error Message       : timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20
    I checked the connection between SAP and DB and is OK. I found in some forums and SAP Notes that this error can be fixed with a kernel update, so I updated the SAP kernel, TP and R3trans files but the error continue.
    I don't know what more I've to check, so I need your help to solve this issue.
    Thanks
    HEPC

    hello Michael,
    I could fix the transport system, was a network issue, but the DB13 error continue, now when I test the DB connection the following error is show by the PRD system.
    Connect. test with "dbmcli db_state"                         Unsuccessful
    I decided to close this message and open another in MaxDB forum.
    Thanks
    HEPC
    Edited by: Hernando Polanía C on Oct 18, 2011 6:32 PM

Maybe you are looking for

  • Referencing a DMS document from within BI

    Hello, I am trying to determine how to reference a document in DMS (where it is stored on a Content Server) from within a Crystal Report on BI.  I believe that the answer involves installing the DMS Connector on the Portal. [http://help.sap.com/saphe

  • Problems with waveform integration

    What I need to do is waveform integration from an acceleration vibration signal to a velocity or displacement signal. To take the signal to velocity, I first filter the acceleration signal (HPFilter, 5Hz) to remove any offset and the perform the inte

  • Tolerance limit for invoicing

    I have found the node for setting toelrance limits . It is under MM-LIV-Invoice Block- Set tolerance. However the requirement is that we should generate warning message if the variance exceeds 10% per line item or if it exceeds $500 for entire invoic

  • Coding user exit

    Hi, I have a situation where I need to suppress three material numbers in my query. When I try to do that it wouldn't let me do that because I have 140,000 material numbers and the maxumum can be displayed are 500 values only. Can someone suggest me

  • Integrating EP with R/3, BW & third party systems such as LDAP directories

    Hi Expersts,    I am looking for Integrating EP with R/3, BW & third party systems such as LDAP directories and Portal application development using HTMLB. Can any one send the related information. if you send the detailed documents with real time sc