Function module to get error message, using MSGNR, MSG ID, MSGV1...etc...

Hi There,
     I have BDC, in return it gives me message number, message ID, msgv1,...... etc. I want to get the original message using these values.
Please can you tell me which function module should I use.

Hii
Call the FM
<b>FORMAT_MESSAGE</b>
<b>Reward if Helpful</b>

Similar Messages

  • Is there any function module to get the variables used in a query?

    Hi experts
    Please, do you know if is there any function module to get the variables used in a query?
    Thanks and regards
    Luis

    Hi Srini
    Yes, I have checked the tables but I need a function module
    Thanks anyway!
    Luis

  • Getting Error Message using Formatted Search

    Hi,
    I am using formatted search for validating a particular field, and that happens fine.  Kindly let me know if I can also display error messages using the same formatted search.
    If yes, what am I to include in the formatted search, and if No, please let me know the alternative.
    Thanks in advance.
    Satish.

    Hi Satish,
    if you validate the value of a field and intend to rise an error message on detection of invalid values in a separate window or in the status line there is no way to do it with Formatted Searches (as far as I know)!
    You could use the following methods as simple workarounds if you don't want to program a solution with the SDK:
    1. Solution
    You can display the text of an error message in the field you validate; of course, the invalid data then is overwritten with your error message, but you could construct the message from fixed text parts concatenated with the data found in the field.
    Be sure to save the original data of the field in your query before you do anything else. This way you sustain the field data in case the data is valid!
    Example:
    DECLARE @save AS ....
    SET @save = $[xxxxx]
    IF $[xxxxx] test on invalid data
      SELECT 'Error: Invalid data: ' + $[xxxxx] -- in case of error
    ELSE
      SELECT $[xxxxx] -- no error - sustain valid data
    END
    2. Solution:
    You define a sepate User Defined Field (UDF) for potential error messages - that's the way I often programmed it for our own applications. Suppose that the Formatted Search is connected to this UDF and the field to validate is field 'xxxxx'. The Formatted Search is triggered (auto-refresh) on change of field 'xxxxx':
    IF $[xxxxx] test on invalid data
      SELECT 'Error: Invalid data: ' + $[xxxxx] -- in case of error
    END
    May be that there are minor syntactical errors or missing type conversions in the code above - but I hope it gives you an idea on how to solve your problem without SDK programming!
    Good luck!
    Frank Romeni

  • Function module to read error message provided message class and mssg no.

    Hi experts,
    I am trying to populate my database table with the error message.
    The error message as comming form standard code in an ITAB.
    I am getting the error class and message number.
    Can any body please tell me any function module to read the error.
    Or is there any way to populate the database table with the error message.
    Regards,
    Sandipan.

    Hi,
        You can use the Function module mentioned below.
    call transaction 'VA42' using bdcdata  mode  w_mode
                                        update  w_synch
                                      messages into it_mesgtab.
        loop at it_mesgtab into wa_mesgtab where msgtyp ca 'EA'.
        endloop.
        if sy-subrc <> 0.
          read table it_mesgtab into wa_mesgtab index 1.
        endif.
        call function 'MESSAGE_TEXT_BUILD'
          exporting
            msgid               = wa_mesgtab-msgid          "Messg class
            msgnr               = wa_mesgtab-msgnr          "Messg No.
            msgv1               = wa_mesgtab-msgv1
            msgv2               = wa_mesgtab-msgv2
            msgv3               = wa_mesgtab-msgv3
            msgv4               = wa_mesgtab-msgv4
          importing
            message_text_output = it_err-sapmessage.
       Append it_err.
    Regards,
         Srinivas

  • "Function module not allowed" error message

    Hi,
    We created a special FM to be processed when the INVOIC is in inbound processing. We link the FM to the process code and the process code to the partner functions. We get the error message; "Function module not allowed: & name of our FM". However, when we reprocess the idoc via WE19, it goes through.
    Did somebody ever face that situation?
    Thanks
    Martin

    Hi
    is it for MRM  .  If it is ,I faced the same Problem Martin .go to EDIFCT table give ur basic type and execute and check for entries .if there no issue other wise goto we57 and maintain the entry for basic type .

  • Get error message using adobe reader

    I keep getting a message error that says Adobe blocked for this web site.  Why?  Does Apple have a reader I can use for all pdf's?

    Karla8040,
    what is the exact text of the message error that you’re getting?

  • Equium A60: I get error message using explorer.exe

    Everytime I try to open an image file using Paint or Fax/Image viewer, or I try to drag a file into a folder I get the following error message:
    "Windows Explorer has encountered a problem and needs to close. We are sorry for the inconvenience"
    The error report says:
    "AppName: explorer.exe AppVer: 6.0.2900.2180 ModName: rpcrt4.dll
    ModVer: 5.1.2600.2180 Offset: 000847a6"
    Also I cannot open webpages that open in new IE windows. Norton Internet Security 2005 also would not open, but did claim to be active in the background.
    Does anyone have any advice for me?
    I've tried all the help for explorer.exe problems on helpwithwindows.com but nothing they suggested worked - such as spyware, malaware removal. I've run a few online virus checks - since Norton won't work I had to try the online scans.
    The laptop was bought last year, and we've lost the recovery CDs - so if we need them, then where can we get replacements?
    Many thanks,
    Jonathan

    Hi
    Well, this sound like a OS software malfunction. It's possible that some registry entries or/and data files are corrupted and damage.
    However, the best solution is to recover the OS.
    The other possibility is to use the "system restore" tool of Win XP.
    Then you can try to roll back the OS to the early point. But if it doesnt work so the new installation is needed.
    regards

  • How to customize error message using oraus.msg file?

    Hi,
    Is there a way to modify the oracle error message (for example: instead of ORA-01481: invalid number.. we modify it to "hello ! use a valid format.." ), is it possible using the oraus.msg file if not is there a solution?
    Many thanks

    968420 wrote:
    Hi Gauyav and Keith,
    i thak you for your quick responses , but i want the customized message to be displayed wherever the oracle error appears (in oracle forms screens , sql tool requests, ) not only in pl/sql code,That is a really bad idea
    {message:id=1007020}
    It would render the database completely unsupportable by anyone, and based on the quality of exception handling that is generally seen on these forums would result in databases that simply don't work.
    SQL> declare l_dummy number;
      2  begin
      3    select null into l_dummy from dual
      4    where 0 = 1;
      5  exception when others then
      6    raise_application_error(-20666, 'It doesn''t work!');
      7  end;
      8  /
    declare l_dummy number;
    ERROR at line 1:
    ORA-20666: It doesn't work!
    ORA-06512: at line 6
    as we've a lot of forms screens and it's not possible to modify all of them.These are strange kinds of forms that it is possible to create a lot of them but not possible to modify them.
    Is there a solution for this?Fix the forms.

  • Trying to convert word to pdf and getting error message using Ver. 7

    I what sent a word doc by a correspondent of mine which I tried to convert to a pdf. I right clicked the doc on my desk top and chose "convert to PDF". It looked as it has all the other times but after it had opened word it came up with an error window/message of "Missing PDFmaker files." "Do you want to run the installer in repair mode?" and then a yes or no button. If I hit no it closes everything if I hit yes it acts like it's installing something and after a while it tells me that the computer needs to be restarted for changes to take affect. I have run it twice now and it doesn't change anything.
    can someone give me any tips on this?
    D

    You did not indicate the version of WORD. If it is WORD 2007, then you can not do this function with AA7. Try opening the file in WORD and printing to the Adobe PDF printer. If that works, then look for the PDF Maker options in WORD (create PDF). If you find them, then try that. If they do not show but the print worked, then you indeed have an issue with PDF Maker - probably either the macro is not activated in WORD or the version of WORD is 2007.

  • I keep getting error messages using Mail

    error: the message could not be appended to the outbox
    the message could not be moved to the mailbox trash
    Any ideas?

    Back up all data.
    Select the named mailbox in the mailbox list, then select
    Mailbox ▹ Rebuild
    from the menu bar. Try to delete the message again.

  • Im working in Prem Pro cS6 and the system keeps collapsing Im getting error messages about build disk/builds/mightlysilt etc etc

    Im working in Pre Pro Cs6 and my audio isn't coming with the rest of the footage even though Ive used the same camera, same setting etc for the clips. One works, subsequent clips don't. This is frustrating. I get an Adobe message telling me there is an error and I keep getting catastrophic shut downs and crashes. please HELP

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    But... if you are having computer crashes, you may have a hardware problem
    BSOD shutdowns http://forums.adobe.com/thread/1427408?tstart=0 may help... or,
    http://blogs.adobe.com/kevinmonahan/2014/01/13/computer-shuts-down-with-premiere-pro-or-af ter-effects/

  • Function  module to get pernt by passinf objid and otype

    Hi,
    Help me to find any function module to get pernr by using objid and otype.or table name from which we can get pernr by passing objid and otype.
    thanks,
    satish.

    You are talking about on the OM side and obtain the perner via object P?
    You can through a few method. One is using evaluation path. There is a function module called HR_STRUC_GET which allow you to pass evaluation path to get the result.
    Using that, you could create a simple evaluation path from position (object s) to person (object p). The object ID of object P is your pernr.
    Unless you have central person functionality, that might no longer be the case.

  • I'm trying to make a cd from my itunes. I get error message "cannot be used because it is not recognized.

    I'm trying to make a cd from my itunes. I get error message "cannot be used because it is not recognized.

    I just figured it out. All I had to do was close out of iTunes then restart.

  • Getting error message when i am trying to update the excel file using script task in ssis package

    Hi Guys,
    I am getting error message when I am trying to update the excel. Please find the error messages as below
    Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
    Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
    Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
    Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
    and the code that   I am using is
    Dell - Internal Use - Confidential
    ' Microsoft SQL Server Integration Services Script Task
    ' Write scripts using Microsoft Visual Basic
    ' The ScriptMain class is the entry point of the Script Task.
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports Microsoft.Office.Interop.Excel
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
    Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial
    Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    Public Sub Main()
            Dts.TaskResult = ScriptResults.Success
    'Dim proc As System.Diagnostics.Process
    'kill all instances of excel
    'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
    ' proc.Kill()
    'Next
    Dim excelnacomm As
    New Microsoft.Office.Interop.Excel.Application
    Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
            wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
    the excel)
            wbnacomm.RefreshAll()
            wbnacomm.Save()
            wbnacomm.Close()
            excelnacomm.Quit()
            Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
    End Sub
    End
    Class
    Please let me know what could be the reason
    Smash126

    Download:
    Microsoft Office 2010: Primary Interop Assemblies Redistributable
    How to: Add or Remove References By Using the Add Reference Dialog Box  /  How to:
    Add and Remove References in Visual Studio (C#)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I use Firefox to access my college's website and my account there. Ever since I downloaded the new Firefox, I can't log in to my account at my college and I get error messages. What's wrong?

    Ever since downloading the most recent firefox update, I have not been able to log in to my account at my college's website. I just get error messages every time. Even when I went to the Computer Sciences person at the college, he couldn't figure it out either. I need to be able to use Firefox to log in there because I have to download pdf files from there and Firefox is the only browser that seems to let me do that. But now that I can't even log in b/c of this stupid Firefox update, then its totally worthless to me.

    Hello sadiepix,
    The following article details several things that can be done to quell iTunes' constant need for authorization.
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    Cheers,
    Allen

Maybe you are looking for

  • Po should not editable after grn

    Dear All My clint wants po should not editable after grn. pls help

  • Completar automaticamente en Reader 8.0

    Por necesidades de trabajo tengo que cumplimentar formularios que tienen una parte de los datos a introducir comunes. He intentado habilitar la opción Completar automaticamente y no me funciona. Trabajo con la versión Reader 8.0 y el formulario está

  • Flash player dont work

    flash player dont work after update from flash player 10.11 to the new flash player 11

  • Simple, but dumb, question

    My wife wants to copy a cassette tape to her G4 laptop. Is GarageBand the right application to digitize an analog source? I looked at the Apple page on GarageBand and didn't see anything that helped. Thanks.

  • User exit for IDoc MBGMCR - BAPI_IDOC_INPUT1 - BAPI_GOODSMVT_CREATE

    Hi Gurus, I just want to ask if there is any user exit that I can use for this IDoc. My requirement is to check if thevalue from E1BP2017_GM_HEAD_01-REF_DOC_NO already exist in MKPF using XBLNR. If this reference document already exist, I need to rai