[MESSAGE.GENERAL] How can take the actual error text for ABAP proxy error?

Hi...
I'm a ABAPer.
I got to create outbound abap proxy for synchronous server proxy and described below.
My problem is program can not catch the actual error message when occurred error during send data to XI.
The return message is just 'MESSAGE.GENERAL'.
But according to the XI part, 'Key error' is actual reason.
So... how can i take the actual error text like 'Key error'?
<b>* Only MESSAGE.GENERAL is return message for all kind of errors.</b>
Thanks.
Below----
  TRY.
      CREATE OBJECT abap_proxy.
      CALL METHOD abap_proxy->execute_synchronous
        EXPORTING
          output = gs_out
        IMPORTING
          input  = gs_in.
  Exception Handling
<b>    CATCH cx_ai_system_fault  INTO  go_sys_exception.
      g_sys_result = go_sys_exception->get_text( ).</b>
    CATCH cx_ai_application_fault INTO go_app_exception.
      g_app_result = go_app_exception->get_text( ).
  ENDTRY.
  COMMIT WORK.
Return status 'D' is succeeded.
  if  gs_in-sales_group_rer_sap-xstat <> 'D'. 
     WRITE:/ 'System Error Message      :', g_sys_result.
     WRITE:/ 'Application Error Message :', g_app_result.
  endif.
*--Result--
System Error Message      : MESSAGE.GENERAL
Application Error Message :
Message was edited by: Miju cho
Message was edited by: Miju cho

Thanks guys, this was useful.
My scenario is for Asynchronous communication.
I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
Have i got this right?
I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
The following receivers support acknowledgments:
ABAP and Java proxies (XI 3.0 SP1 for the latter)
Integration processes
IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
Receiver adapters support system acknowledgments but not application acknowledgments
My Receiver is JDBC. So I guess I cannot use acknowledgements either.
Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
I'll tell you abt what happened earlier.
My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
Thanks and Regards,
Ashwin

Similar Messages

  • How can i add Document Header Text for s_alr_87012357

    Hi Gurus
    How can i add Document Header Text for  s_alr_87012357(Advance Return for Tax on Sales/Purchases).do i need change the standard program or is there any alternate to do this please  help me  out.

    i found it .its in output list and i did change the layout settings.thanks

  • How to View the Actual Remaining Budget for Earmarked Fund?

    Hi All,
    First of all, pardon if my questions below are very basic, I'm an ABAPer trying to gasp the big FI process.
    Background:
    I created a project definition then allocate a budget via CJ30.  I created WBS Element then allocate a budget again.
    I created an Earmarked Fund via TCODE FMZ1 using WBS Element as my main budget allocation.  I then created a vendor invoice using that WBS Element.  I then post a payment against the invoice created.
    Via PS Report s_alr_87013557, I can see that my actual budget was deducted by the funds disbursed from my payment document.
    Does it have an impact on my earmarked fund?
    If I use the Earmarked Fund in my posting, is there a similar report to PS where I can see the actual budget deduction?
    Thanks.

    I am dealing with a similiar situation right now. In the standard PS reports, I cannot find where the value type (2A) for funds reservations (earmarked funds) is included in the report characteristics.
    We made a copy of one of the standard PS reports S_ALR_87013534 (form 12KST1G)  by going into CJE6 and then added value type 2A. After changing the custom report, your payment using the earmarked fund will be in the actual column and the remaining unused amount for the earmarked funds should be in the commitment column.
    In the earmarked fund document when you display it there is a button for consumption that shows the activity for that document.

  • How can solve the problem in email " SMTP Relay "Message rejected" ", how can solve the problem in email " SMTP Relay "Message rejected" "

    Dear sirs,
    how to solve the mail problem which occurs while I am abroad; bearing in mind that I use HOTSPOT and sometime it's sending emails sometime getting the below messages " SMTP Relay "Message rejected"

    The outgoing mail server is rejecting mail from your network address. Typically that happens when your mail service provider is also your ISP, and you connect to it from another network. The SMTP server will allow connections without a password from anywhere, but it will only relay mail from within the ISP's network. It could also be that your account on the server has expired or been suspended.
    If you need to send mail from outside your ISP's network, use an independent mail service provider. I don't have a specific recommendation.

  • Who can tell me how to find the leave request Webdynpro for ABAP iview

    Hi,Expert,
    As I know Portal only has Webdynpro for java iview for leave request iview in the past.
    but someone tell me SAP portal has delivered some new standard WebDynpro for ABAP iview.
    I have a requirement to create a employee role for new Leave Request service created by WD ABAP . Under Content Provided by SAP in Content Administration, I couldn't find the iView assocated to the leave request except the Java one. Is there have any Employee Self-Service Web Dynpro ABAP workset ?
    thanks
    Olivia

    The business package for ESS based on Webdynpro for ABAP is available only for ECC 6.0 EHP5.
    If you are on EHP5, you may choose to use this version of the BP.
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/25/340b0507434193adbfe3f8fc8896c7/frameset.htm
    Leave Request application:
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/1f/a073be62744fcca7e1fae9942f0031/frameset.htm
    Thanks,
    Shanti

  • How to determine the sender business system for ABAP client proxy

    Hi All,
    I have one doubt: when the client proxy sends the message to XI, how could i know what is the sender business system name for it?
    Is it the logical system which is reflected in Technical System?
    let's say if i have the ABAP system, the technical system is ECC, which has three clients: 001, 066 and 000.
    And the client 001's logical system in ECCCLNT001 (all the client proxy is created in this client). In this case, the sender business system name is ECCCLNT001, am i right?
    If no, please correct me.
    Thanks in advance
    Leo

    Hi lawrence
    When data is distributed between different systems, each system within a network has to be clearly identifiable. The u201Clogical systemu201D deals with this issue.                               
    A logical system is an application system in which the applications work together on a common data basis. In SAP terms, the logical system is a client.
    Since the logical system name is used to identify a system uniquely within the network, two systems cannot have the same name if they are connected to each other as BW systems or as source systems, or if there are plans to connect them in any way.
    Although SAP does not recommend that you connect test systems to production systems, a test system can have the same name as a production system. This makes copying production systems to test systems a lot simpler.
    You are only allowed to change the logical system name of a system if the system is not connected to any other systems, because changing the logical system name would render all the connections to other systems useless.
    Logical system names must contain capital letters and numbers only. SAP recommends the following naming convention for logical system names: <System-ID>CLNT<Client>.
    Regards
    sandeep

  • How to change the stsndard selection text for a LDB..

    Hi All,
        I am using a LDB selection screen. I want to change the selection text of the standard selecetion field.
    For ex, for LDB- PNP, i want to change the 'Personnel number' text to 'Employee ID'...
    Please let me know how to do this.
    Regards
    Nanda

    Hi Nanda,
    Here is the code which is exactly suitable for this req.
    TABLES: pernr.
    data: i_tab type standard table of RSSELTEXTS with header line.
    initialization.
    i_tab-name = 'PNPPERNR'.
    i_tab-kind = 'S'.
    i_tab-text = 'Employee ID'.
    append i_tab.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
      EXPORTING
        program                           = 'ZESO_TEST'
      tables
        seltexts                          = i_tab
    EXCEPTIONS
      PROGRAM_NOT_FOUND                 = 1
      PROGRAM_CANNOT_BE_GENERATED       = 2
      OTHERS                            = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Eswar

  • How to get the Ship-To text for an Order from R/3 to CRM?

    Hi experts,
    how to get the Ship-to-Party text for an Order from R/3 to CRM?
    Here I used a Function Module CRM_ORDER_READ and its working in the Development server.
    After when this passed to the Stage Server for the Order i am maintaining the same Ship-to-Party for the order in the Stage server and I am no getting the text for that{Text maintained for the Ship-to-Party in the stage server}.
    Thanks in advance.

    Hello Nilaksha.
    You can use the following query. Modify the segment to be queried if you wish.
    SELECT cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4 "Account",
    nvl(sum(l.accounted_dr - l.accounted_cr),0) "Balance"
    FROM gl_code_combinations cc,
    gl_je_lines l
    WHERE cc.code_combination_id = l.code_combination_id
    AND l.set_of_books_id = <your set_of_books_id'
    AND cc.segment2 = 'your segment value'
    AND l.effective_date <= '30-nov-09'
    GROUP BY cc.segment1||'.'||segment2||'.'||segment3||'.'||segment4
    Hope this helps.
    Octavio

  • SSL: How to use the same key pair for ABAP & JAVA?

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

    Hello,
    I want to setup an XI (3.0 on Netweaver04)installation in the way, that ABAP AS and JAVA AS use the same key pair for SSL. My problem is to define the same private key on ABAP and JAVA. With the JAVA Administrator I am able to define or import a private key. But I could not find a possibility in ABAP to manage private keys in order to use the same on as in JAVA. What is the procedure for this?
    Thanks and Regards,
    Frank Tottleben

  • How to set the printdocument tool text, for print by the thermal printer?

    Hello, is that be the same as the A4 paper printer?. I used for-loop-condition for print series of the pages, but the A4 printer printed for me 1 page only, but I asked it, for print more than 50 papers, by the thermal printer, by I used for-loop within
    the printdocument tool text, but I not the now tested it by the thermal printer, is that the for-loop succeed when I use it by the thermal printer? where the A4 printer printed 1 paper only for me. where I want series of the pages where I used for-loop-condition,
    and I want that succeed by the thermal printer, and is that be true? and what the true if that was wrong?

    Hi,
    Based on your desccription, I'm afraid that it is not the correct forum since this forum is to discuss the VS IDE.
    If you want to achieve it in code, I suggest you post this issue to the specific language development forum like C#, VB or others.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7b07c516-46c5-46ab-a83a-92432b1e262f/print-multiple-pages-per-sheet-in-c
    https://social.msdn.microsoft.com/forums/windows/en-us/b6c5a867-ffa6-4e46-b6de-543b645e73c8/printing-and-previewing-multiple-pages-in-c
    http://www.codeproject.com/Tips/733680/Printing-and-Previewing-multiple-pages-in-Csharp
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error Handling for ABAP Proxy sender

    Hello Everyone,
    I am trying out a scenario of SAP R/3 to Oracle database (ABAP Proxy to JDBC).
    I have the following code and it works fine.
    CALL METHOD prxy->execute_asynchronous
          EXPORTING
            output = it.
         commit work
      CATCH cx_ai_system_fault .
        DATA fault TYPE REF TO cx_ai_system_fault .
        CREATE OBJECT fault.
        WRITE :/ fault->errortext.
    I know that the above Catch block would be used to handle system errors on the sender side.
    Please tell me what kind of errors could these be and what I can do to test these errors. ie. I want to  create error situations explicitely and see how they are handled.
    Thanks and Regards,
    Ashwin

    Thanks guys, this was useful.
    My scenario is for Asynchronous communication.
    I guess Fault messages are used in case of Synchronous communication for handling application errors. So if there was something wrong at the JDBC end then I could use the fault messages.
    Have i got this right?
    I also came across this piece on Acknowledgements. But is says that they can be used with the following Receivers:
    The following receivers support acknowledgments:
    ABAP and Java proxies (XI 3.0 SP1 for the latter)
    Integration processes
    IDocs (note that IDocs only return acknowledgments when they have been configured using the ALE audit)
    Receiver adapters support system acknowledgments but not application acknowledgments
    My Receiver is JDBC. So I guess I cannot use acknowledgements either.
    Hence, I need to know what I can do to replicate the system errors eg. failed server etc...so that I can get catch these errors during sending.
    I'll tell you abt what happened earlier.
    My XI server was down. I executed the code for the sender ABAP Proxy and it did not catch the error. In SXMB_MONI in the R/3 system, I could see the messages queued up. When the XI server started, the messages were transferred to XI.
    I need to handle such errors...ie. If  the server is down or message did not reach XI then my ABAP program that sends data via ABAP proxy needs to know that something went wrong.
    Thanks and Regards,
    Ashwin

  • Message flow in SAP PI 7.31 JAVA only for ABAP Proxy synchronous scenario with Oracle DB

    Dear Experts,
    I am working on a synchronous scenario Sender ABAP Proxy <===> SAP PI 7.31 JAVA only <===> Oracle Database.I have successfully
    configured all the proxy configurations as well both Sender SOAP and JDBC receiver channels are showing no error when pinged from
    Cc monitoring in NWA.
    1.During testing at Tx SPROXY , I am triggering a message and after 5 minutes I receive an PARSING error message with 2 messages in ECC
    local IE i.e. Tx SXMB_MONI.
    Note : In NWA , I can see only 1 message that too in cancelled status.
    2.Seeing the trace of the messages I assume that the messages have not moved from sender ECC system. I am still confused with flow of message
    from the Message Audit log. Audit log of error messages.Could any one share the full Audit log of a successful message generated in SAP PI 7.31 JAVA only.
    3.I observed that the QIN Scheduler status in ECC is in INACTIVE status. There is no queue id for 2 messages generated in ECC. Does
    it should in ACTIVE status in Tx SMQR..
    Regards
    Rebecca

    Hi Thomas,
    Valuable inputs..
    1. Since I don't have any audit log for successful message, would you be able to share referring to the
    below screenshot whether the message was put into receiver JDBC adapter and JDBC adapter tried to retrieve the Select response from Oracle Database.
    2.I have done some setting in Advance mode of the receiver JDBC to increase the time out and other parameters as per SAP note but still the issue is same. If you perhaps have some experience in such scenarios, please share some input so that I can ask the Oracle Database administrator exactly what is required from our side.
    3.Regarding the slow response from Oracle , there was some suggestion that the datatype of the request and response should match the column name of the Oracle database. I did that.. Do you have any more suggestion that may be hampering the generation of the response message from the Oracle like SAP note or document.
    Regards
    Rebecca

  • How to change the an IT text for IT70

    Dear all,
    I would like to change the name of an infotype can someone pls tell me how to do that.
    currently the text is : Court Orders Great Britain
    change to : Court Orders Netherlands
    thanks
    shruti

    Hi
    Go to SPRO -
    > PM--> PA--> Infotype
    Select the Infotype which one u want to chg the name
    With regards
    Vikram

  • How to configure systems for ABAP Proxy use

    Can somebody please point me to the documentation regarding the configuration settings for the use of ABAP proxies, on both the XI and client sides? I have performed readiness checks as specified by SAP, the ABAP Proxy tests all pass, yet when I write a program with a proxy, the message does not appear in the integration engine monitor.
    I think I have missed something in configuration settings, but don't know for sure. hence the request.
    Kind Regards,
    Tony.

    Hi,
    Please follow the below configuration steps for ABAP proxy:
    ABAP Proxy configuration:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Thnx
    Chirag

  • I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved.

    I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

Maybe you are looking for

  • Missing ID3 Tags on MP3 CD burned with iTunes

    I have a Sony CD Player in my car. This Player supports mp3 CD's. To Burn such CD's with iTunes is not the Problem. iTunes seems not to set the ID3-Tag in it's Libary. Is it possible to set the iTunes-Libary-Informations (as they are displayed on my

  • Can't record from external microphone

    I have a 17" Macbook Pro from Jan 2012 and I can't get an external microphone to work. Initially I tried a cheap Sony microphone with no luck. So purchased logitech headphones.  They have 2 jacks, one headphones, one microphone. I've tried it with Wo

  • Post customer invoice without line items.

    Ppl, I am extracting customer invoice data from an external sytem and data consists of invoice header with the invoice total but no line items.How can i post this invoice in FI. what is the meaning of posting in FI if i am not posting to GL or AR? Wh

  • Get a report joining data from Get-MailBox and Get-MailBoxStatistics

    Hi I have 2 cmdlets, and every has different information of the same users, the point is that I have to get the information of every cmdlet  and in excel I have to join the information Is there a way to get both information joined in one shot? This i

  • SQL Script - error in executing the select with multiple conditions

    Hi gurus, I'm having trouble in the command syntax below: SELECT * FROM "TEST_RVS"."VH_TEST"  WHERE   "AUFNR" = 20210807 AND  "BWART" = 101. WHAT IS THE CORRECT SYNTAX WHERE TO CONDITION WITH MULTIPLE FIELDS? Thanks !