How obtain Error messages in iDocs ??

I need to develop a simple alv report of iDocs activity.
I am using tables edidc, edid4 and edids.
But I cannot obtain the error message completely.
In table EDIDS i have the fields:
STATXT : message
STAPA1,STAPA2,STAPA3,STAPA3: paramers for message
(to replace & by variables parameters for the message).
I cannot found a FM that prepare the full message (like left-side tree in WE05).
I need to obtain the detail message and not the simple message: "idoc created" or not.
somebody can help me ?
thanks in advance
regards
Leandro

Hi,
you can do it using MESSAGE_PREPARE or FORMAT_MESSAGE.
or you can use this logic...
[code]
  CLEAR IT_MESG.REFRESH IT_MESG.
    DATA: T100 TYPE T100,
          BUFFER(273).
    LOOP AT IT_EDIDS INTO X_EDIDS WHERE STATUS = C_51.
      SELECT SINGLE * FROM T100 INTO T100
                                WHERE SPRSL = SY-LANGU
                                AND   ARBGB = X_EDIDS-STAMID
                                AND   MSGNR = X_EDIDS-STAMNO.
      IF SY-SUBRC = 0.
        BUFFER = T100-TEXT.
      ELSE.
        BUFFER = TEXT-M00.
      ENDIF.
at first &1/&2/&3/&4 or. $1/$2/$3/$4 replace
      IF T100-TEXT CA '$1'.
        REPLACE '$1' WITH X_EDIDS-STAPA1 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '$2'.
        REPLACE '$2' WITH X_EDIDS-STAPA2 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '$3'.
        REPLACE '$3' WITH X_EDIDS-STAPA3 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '$4'.
        REPLACE '$4' WITH X_EDIDS-STAPA4 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '&1'.
        REPLACE '&1' WITH X_EDIDS-STAPA1 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '&2'.
        REPLACE '&2' WITH X_EDIDS-STAPA2 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '&3'.
        REPLACE '&3' WITH X_EDIDS-STAPA3 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '&4'.
        REPLACE '&4' WITH X_EDIDS-STAPA4 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '$'.
        REPLACE '$' WITH X_EDIDS-STAPA1 INTO BUFFER.
        REPLACE '$' WITH X_EDIDS-STAPA2 INTO BUFFER.
        REPLACE '$' WITH X_EDIDS-STAPA3 INTO BUFFER.
        REPLACE '$' WITH X_EDIDS-STAPA4 INTO BUFFER.
      ENDIF.
      IF T100-TEXT CA '&'.
        REPLACE '&' WITH X_EDIDS-STAPA1 INTO BUFFER.
        REPLACE '&' WITH X_EDIDS-STAPA2 INTO BUFFER.
        REPLACE '&' WITH X_EDIDS-STAPA3 INTO BUFFER.
        REPLACE '&' WITH X_EDIDS-STAPA4 INTO BUFFER.
      ENDIF.
      CONDENSE BUFFER.
      MOVE BUFFER TO X_MESG.
      APPEND X_MESG TO IT_MESG.
      CLEAR X_MESG.
    ENDLOOP.[/code]
Regards
vijay

Similar Messages

  • Database Connector error: 'cannot obtain error message from server'

    I am using Oracle stored procedures and I have used IN parameters for input and INOUT parameter of REF_CURSOR TYPE for returning resultset in Crystal Report 2008 by using package. Now when I am trying to add the package in the Crystal Report, parameter input box prompts, I enter some values and gets Database Connector error: 'cannot obtain error message from server'.
    But when I do not use INPUT parameters and use OUT parameter of REF_CURSOR type it runs well without any issues.
    We are using ODBC connection for Oracle.
    Kindly suggest.

    Hello,
    Search the Knowledge Base for "oracle store procedures" and you'll find a document on how to write a SP so CR can use them.
    Thank you
    Don

  • 'Cannot obtain error message from server' when trying to use ODBC

    Post Author: Grant C
    CA Forum: Data Connectivity and SQL
    Hi, I'm developing some reports using Crystal XI on my local PC, using an Oracle 10i back end on a separate server.  The SQL for the report is in a method in an oracle package.
    When I set the datasource location, selecting 'Oracle Server' then entering the details works fine, and the report runs.  However, when I try to use an ODBC connection I get the following error:
    Database Connection Error: 'Cannot obtain error message from server.'
    The ODBC link is set up as a System DSN, which works fine when I test it.  I think I need to use ODBC as some of the reports (which I inherited) seem to fail when run on the Crystal Server, and it seeme to be the ones set up with ODBC which work.
    Any thoughts?  Thanks.

    Hi Mars-
    It sounds like your NI-DAQ installation may have become corrupted. I would suggest uninstalling and reinstalling the DAQmx 7.4 driver to correct this problem and ensure that you're up to date. This download is available here: NI-DAQ 7.4
    If the problem persists you may want to uninstall and reinstall LabVIEW and then NI-DAQ in that order. The error message will usually give an indication as to which VI the error occurred in. Please let us know which VI is failing if you're unable to avoid the error with these suggestions.
    Have a good day-
    Tom W
    National Instruments

  • Database Connection Error: Cannot obtain error message from the server

    I have a SQL statement that wants to add a temp table to the database.   The SQL statement works fine but when I try to add it via 'Add Command' feature in Crystal XI R2, I get the following error message:
    Database Connection Error: Cannot obtain error message from the server
    Any ideas?
    Thanks in advance,
    Zack H.

    Hi Raghavendra,
    I am using this in the 'Add Command' feature but I get the error message displayed in the subject line:
    CREATE TABLE #TibetanYaks(
    YakID char(4),
    YakName char(20) )
    INSERT INTO #TibetanYaks (YakID, YakName)
    SELECT  LastName, FirstName
    FROM      Employee
    WHERE      EmployeeID between '2000' and '3000'
    I haven't tried to add this as a stored procedure but I imagine it will work as I have no problems yet with stored procedures.  I simply want to be able to use temporary tables for the sole purpose of that session and not creating anything static in the database.
    By the way, even though I get the error message, when I look on the backend database, I see that the temporary table was successfully created...its just not brought across correctly in Crystal.
    Any ideas?
    Zack H.

  • Re : How to Error Handling In Idoc /ALE.

    Hi This is Arief , 
                            I tranfer the Data  Through ALE  from One Client To Other Client some of Data not Posted ......how check other client wither Data Posted or not ....
    How to error Handling In IDocs.....pls Help me.......
    Kind Regards
    Arief .S

    Hi
    The exception handling for idocs
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f1543d711d1893e0000e8323c4f/frameset.htm
    Exception handling in File to IDoc Scenario
    For RFCs
    Re: Passing SAP Exceptions to a sync SOAP Call
    Error Handling when using RFC
    Exception Handling while Calling RFC - BPM
    handle exceptions in remote function modules

  • Error message : Info Idoc missing ;database system

    I am  trying to load the data from database system  oracle ,the data was successfully loaded into psa , but can’t able to load the data into ods from psa .
    Data in psa is all green without any errors , as  info idocs are missing its not letting  to load data manually from psa to ods ,
    I try to reload  but coming up with same error
    Next day problem was fixed automatically, I want to know what is the exact reason for this problem  and  how can  next day  it fixed automatically

    Error message : Info Idoc missing ;database system
    I need the solution urgently, please help

  • Send custom error message using IDoc conversion rule?

    Hello,
    I am using an Idoc conversion rule in BD79 to load cost centers.  In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field.  This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits. 
    Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
    Thank you,
    Rhonda

    Hi Rhonda,
    Any luck on the below.. i have a similar issue...
    Sorry to hijack your thread...

  • Error message when IDOC Monitor

    Dear Friends,
    When i monitor IDOCs, i meet one type error message, and have no idea about it, anybody can give some ideas? and what dose the 'BOL' mean? please describe it in detail, thanks a bunch~
    Senario:
    Direction: 2 (Inbound)
    Message Type: INVOIC
    Current Status: 51 (Application document not posted)
    Error messages in application log as following:
    Cost document from BOL not found 73769702-001
    Can't determine fiscal year
    Freight condition not found 73769702-001 Z003
    Freight condition not found 73769702-001 Z006
    Error in Bose Freight Processing

    These are posting error which you need to correct. BOL means Bill of Lading. You can go and check documentation of different fields in segment/idoc types for more information,

  • How capture error message

    Hi,
    I want that during the raise of my 'When new form instance' trigger the application closes when a certain error message is displayed (frm-4****). How can I prevent that this message (the popup) is displayed before the application closes.
    Thanks.
    Ken

    Francois,
    So I've got to put my close procedure in the on-error trigger.
    Something like:
    If error_code = 'FRM-4****' THEN
    exit_procedure;
    END IF;
    Does the 'When new form instance' stops at the moment the error is raised or is it first finished?
    Thanks

  • Business connector developer-Error message 'No IDOC found in input'

    Hi,
    Please note that this query is related to business connector developer not to XI.
    I have created a flow service based on an IDOC. When I tried to test the service from the business connector developer it gives me an error 'No idoc found in input'. I have done the setting based on the business connector configuration guide. The idoc also send to the port successfully.
    Can anyone guide me how to trigger the test from business connector developer for an idoc.
    Thanks
    Jim.
    Edited by: Jim Jose on Jul 13, 2011 5:58 PM

    Hi,
    Probably you would have created the routing today, with valid from todays date. But the order you are creating may be with start date in past and system is not able to find and valid routing for the day.
    I would suggest you to remove both the Basic "Start" and "End" and change the scheduling type to "Current date Scheduling", now enter. If system still not finding the routing, use the function "Read PP Master data".
    Regards,
    Prasobh

  • How customize error message

    Dear Forum
    i am user of jdeveloper and found oracle.jbo.DML exception, system generate error messagebox.So i want
    to show own Messgebox for this error.
    And bc4j gererate error with particular error number,
    how it will catch.
    javed

    Thanks for reply
    while exception throw from bc4j some particular
    type error such as (oracle.jbo.DMLException) JBO-26041
    message display.
    And i import (oracle.jbo.uicli.controls.JUErrorHandlerDlg)
    class in our jFrame code.
    i want to catch error no 26041 inorder to display own
    messageBox.
    please tell me briefly?
    And some code of it.
    It is possible try,cath block?
    i used messageBundle class i overite message but unable to minimize the size of dilogBox.

  • Not supported. Details: Cannot obtain error message from Server

    Post Author: Florian
    CA Forum: Data Connectivity and SQL
    Hi,I'm using CR9 and try to use an Oracle stored procedure as a datasource for a report. But everytime I want to add the procedure to the report with the help of the database expert I get this error.I already searched for a solution, installed SP4 that should solve the problem --> nothing changed.Strange thing: when I connect directly to the Oracle Server (instead of ODBC), everything runs fine. Any suggestion?  Best Regards,Florian

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    You need smarter management.
    If a software supplier suggests a patch, and the patch corrects something, then you need to apply it.
    Implementing a test server is optimal of course. If they do NOT have one, then they must have a disaster recovey plan in place, if it breaks something else, implement it.
    They sound like poorly thought out, fear mongering IT people that should be replaced.
    I would write up an analysis that states that management will not implement the suggested solution.
    In either case, I would get your resume in circulation
    -k

  • Custom error message in mapping-Alert

    We are using XSLT mapping and We are raising custom error message based upon some conditions i.e if vendor number is invalid or blank.If it doesn't meet the requirement,mapping will fail and it will throw error message as" IDoc XXXXXXXXX is having invalid vendor number".
    My question is,we would like to send this custom error message to email receipients through RWB-AFW.
    How do we capture this custom error message is alert category or alert rule?

    SOLVED!!!!
    UDF call to RFC-FM by passing payload dato in t it

  • Capturing custom error message from alert category

    We are using XSLT mapping and We are raising custom error message based upon some conditions i.e if vendor number is invalid or blank.If it doesn't meet the requirement,mapping will fail and it will throw error message as" IDoc XXXXXXXXX is having invalid vendor number".
    My question is,we would like to send this custom error message to email receipients through RWB-AFW.
    How do we capture this custom error message is alert category or alert rule?

    You can not unless u use BPM.
    VJ

  • Error message MH084 Assignment of material to material group missing in classification system

    hi dear expert
    we are encounter some issues, when we are edit/display a generic article, error message popup show MH084, as below picture
    we has been search this issues from our forum, some thread like this:http://scn.sap.com/thread/1027185, but we are ensure that we are create generic article by IDoc: ARTMAS06, some guys mentioned do this can avoid this error.
    and yet, we found something maybe this why error message popup, when we are display article & merchadise group & charct. profile relationship by transaction code WGUS, all of the article popup error message, there are no relationship with profile relationship .
    so, our question is how can we create generic article to avoid error message (using idoc), and how can we to fix relationship between article & charact prifile.
    thx.

    We are receive replied from SAP, Customizing-functional is the root cause of error. This function interfere SAP standard function module CLAP_DDB_INIT_CLASSIFICATION to update classification table.
    sorry and thx all of you reply.

Maybe you are looking for

  • Unable to edit html file

    Hi, I downloaded an html file from our server to edit the logo. However, I am unable to edit the logo part. It's like commented out. And once I opened the file on Dreamweaver CS5, I am getting this pop-up message: "This page contains some SWF objects

  • Icloud document sync broken on one account

    I hope the community has found a solution to this... i have two different icloud accounts. One, my main account, has 20gb of storage, and is my email address. The other, has 5gb, and was opened to test this issue. when i use the first icloud account

  • Tutorials about WebServices and Java

    I am looking for general info on how to use WebServices in Java. Has anybody have sample Code? I want to implement a WebService that sends large amounts of data to the client. Can a WebService send complex Objects to the client? thx

  • Auditing all page privileges across the portal

    Our Portal intranet has hundreds of pages all with differing access requirements. It is necessary to be able to audit what pages have what group access at what privilege level. Is there a way I can do this via a built in Portlet, report or piece of S

  • Problems Creating PDFs

    A lot of problems creating PDFs come from using the wrong printer to create the PDF or underlying printfile. You should use Adobe's Distiller printer instance to create a PDF. This comprises the latest Adobe Postscript printer for your operating syst