How to find the lines where messages are raised?

Hi experts,
I have a great difficult to find some points where a message is raised.
In GUI interface, we can use the u201CUsed-Listu201D option and the system show us the lines where the message is raised.
In web-client, some good SAP programmers wrote the code u201Cif 1=2 message u2026u201D after he/she input message in the message manager classes (cl_bsp_wd_message_service, cl_crm_genil_global_mess_cont, etc). So the u201CUsed-Listu201D resource manages to find those points.
However, some bad programmers didnu2019t do that and it is almost impossible to know where the message is raised in certain situation, though I have its message class name and its number, for instance, COM_PARTNER u2013 559.
Is there any tip about how to find a calling point?
Regards,
André

This will tell you the directory that contains the running program:
System.getProperty("user.dir")

Similar Messages

  • How to find the reports/Txs that are affected by changes made in NA30

    Hi All,
    Does anyone know how to find the reports and transactions that are affected by ISH Billing (Interim Billing /Final billing) in hte Tx NA30. I need to modify the some functiionality of Interim billing at NA30 and still maintain the consitenecy of NA30.
    Many thanks & Regards,
    Vijaya

    No idea about any such report but from SAP help got following list of billing reports. It might be helpful
    RNAABGR0 IS-H: Revenue Accrual
    RNAABRKZ IS-H: Change Billing Indicator of a Case
    RNABD000  IS-H: Patient Billing
    RNABILB0   IS-H: Change Billing Block via Conditions
    RNABILB1   IS-H: Change Billing Block via Conditions (Outpatient Cases)
    RNADIN03   IS-H: Billing Document Mass Print Program
    RNAFSPER  IS-H: Change Billing Block
    RNANFAL0 IS-H: Set Cases Without Billable Services to "Final Billed"
    RNANFAL1 IS-H: Set Outpatient Cases Without Services to "Final Billed"
    RNANFAL2 IS-H: Set Fully Billed Cases to "Final Billed"
    RNASED00 IS-H: Delete Case Selections
    RNASEK00 IS-H: Copy Case Selection
    RNASELM0 IS-H: Billing - Process Messages
    RNASEL00 IS-H: Case Selection
    RNASEL01 IS-H: Case Selection via Outpatient Visits
    RNASTO01 IS-H: Cancel Billing Documents for Case [Live Mode]
    RNASTO02 IS-H: Cancel Billing Documents for Case: Mass Partial Cancellation [Live Mode]
    RNASTO03 IS-H: Cancel Invoice Items per Case (Partial Cancellation) [Live Mode]
    RNASTO04 IS-H: Cancel Provisional Invoice
    RNAPRV04 IS-H: Cost Reimbursement u2013 Direct Patient Billing
    RNAENT00 IS-H: Billing Status of Inpatient Cases
    RNA_CASCADE_BILLING IS-H: Cascade Bill Processing

  • How to find the line no.

    I am parsing an xml document and doing its custom validation (i.e putting in my own constraints).so can i notify on which line no. of the xml document is the error present?if yes how?

    Rather than worry about a Locator, if you know the row number and column number where the problem occurs, how about using the non-locator constructors, such as:
    public SAXParseException(String message,
    String publicId,
    String systemId,
    int lineNumber,
    int columnNumber)
    Create a new SAXParseException.
    This constructor is most useful for parser writers.
    If the system identifier is a URL, the parser must resolve it fully before creating the exception.
    Parameters:
    message - The error or warning message.
    publicId - The public identifer of the entity that generated the error or warning.
    systemId - The system identifer of the entity that generated the error or warning.
    lineNumber - The line number of the end of the text that caused the error or warning.
    columnNumber - The column number of the end of the text that cause the error or warning.
    Then you can do something like:
    String msg = "complaint about the problem";
    String fn = file.getPath(); /* or some string description of the file/stream you
    are processing */
    throw new SAXParseException( msg, fn, fn, row, col );Then, in your ErrorHandler implementation, you can use code like:
        /** Returns a string of the location. */
        private String getLocationString(SAXParseException ex) {
            StringBuffer str = new StringBuffer();
            String systemId = ex.getSystemId();
            if (systemId != null) {
                int index = systemId.lastIndexOf('/');
                if (index != -1)
                    systemId = systemId.substring(index + 1);
                str.append(systemId);
            str.append(':');
            str.append(ex.getLineNumber());
            str.append(':');
            str.append(ex.getColumnNumber());
            return str.toString();
        }Dave Patterson

  • How to find the name of message mapping

    Hi folks
    i want to check the name of message mapping  which is used at run time. i can find the name of Interface mapping name in trace of message in SXMB_MONI.
    but i am not able to find the MM name.
    can some one help me .....
    Regards
    Gagan

    > but i am not able to find the MM name.
    You will find your message mapping name as class name in the pipeline step Request Message Mapping.  Please search for interface mapping and below which you will find the mapping name as this format...
    <Trace level ='"3" type="T"> Mapping steps 1 JAVA_JDK 
    com/sap/xi/tf/_<your mapping name> </Trace>
    Example as similar below...

  • How to find the path where the program resides

    I need to use the path where the running program file resides.
    My purpose is to make a program where some parameters are in a separate file. I want to have it in the same directory as the .jar program is. This way I could start and run the program from a memory stick.
    Is there a way to get the program path?
    Urpo Pietil?
    Edited by: urpo on Feb 12,:12 AM
    Edited by: urpo on Feb 12,:12 AM

    This will tell you the directory that contains the running program:
    System.getProperty("user.dir")

  • In the read_text function module,  how to find the  lines

    The coding follows like this,
    call function 'READ_TEXT'
           exporting
                client                  = sy-mandt
                id                      = id
                language                = sy-langu
                name                    = name
                object                  = object
           importing
                header                  = header
           tables
                lines                   = tab
           exceptions
                id                      = 1
                language                = 2
                name                    = 3
                not_found               = 4
                object                  = 5
                reference_check         = 6
                wrong_access_to_archive = 7
                others                  = 8.
    can u provide me with the correct data form which i can read the lines.

    I think this code will help you to read the lines
    *--LOCAL VARIABLES
      DATA : LV_NAME TYPE THEAD-TDNAME,
             LV_TEMP(128) TYPE C      ,
    *--Structure to Hold the Header Data for Func Modules
    *--Read_text
             X_HEADER TYPE THEAD      .
      CLEAR  : LV_NAME     ,
               LV_TEMP     ,
               V_IND_FG    ,
               X_HEADER    ,
               IT_TLINES   ,
               IT_TLINES[] .
      LV_NAME  = P_DELV_NO .
      X_HEADER-TDOBJECT = 'VBBK'.
      X_HEADER-TDNAME   = LV_NAME .
      X_HEADER-TDID     = 'ZMAN'.
      X_HEADER-TDSPRAS  = 'E'.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                CLIENT                  = SY-MANDT
                ID                      = X_HEADER-TDID
                LANGUAGE                = X_HEADER-TDSPRAS
                NAME                    = X_HEADER-TDNAME
                OBJECT                  = X_HEADER-TDOBJECT
           TABLES
                LINES                   = IT_TLINES
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
      IF SY-SUBRC <> 0.
         ERROR.
        CLEAR :IT_TEXT,
               IT_TEXT[] .
        V_IND_FG = 'X' .
        EXIT .
      ENDIF.
      LOOP AT IT_TEXT .
        IT_TLINES-TDFORMAT = '*'.
        IT_TLINES-TDLINE = IT_TEXT-LINE.
        APPEND IT_TLINES.
        CLEAR  IT_TLINES.
      ENDLOOP.
    Thanks,
    Koshal

  • Editable ALV - FM REUSE_ALV_GRID_DISPLAY_LVC- how to find the lines edited?

    hi all,
    I am using the FM REUSE_ALV_GRID_DISPLAY_LVC to display ALV which has one column as edited.
    it allows users to mass update that particular field. for eg: there are 100 rows in which user changes 5 rows. at user command SAVE i could see the entries modified in final internal table. but how coould i find only those 5 entries which are changed so that i can process only those records.
    Any pointers reg this would be appreciated.
    Regards,
    Sreekanth.

    ...take a copy of your internal table before you display the ALV and compare like this:
      if table1[] NE table2[].
      endif.

  • How to find the programs with message no?

    Knowing the error message no, i.e. V1 456, is there way to find out what ABAP programs issue this error message? So a debug point can be set in the right program.
    Thanks.
    Richard

    Hi,
        You can findout like below...
    1) Go to SE91 transaction
    2) Give message class as - V1 & message number as - 456
    3) Click on Display
    4) Select the message again by clicking the push button against 456 message
    5) Click on where used list on menu (or) CtrlShftF3
    6) Select - Programs in next popup screen ...
    so you will get list of the programs which used this message class & number
    Regards,
    Dj
    reward, if its useful

  • How to find HR Line manager of a PERNR present in PA0000

    Dear All,
    I am new to HR module. Can anyone tell me how to find the line manager of any user Id fetched from PA01005 against the pernr from PA0000 table

    This example find line manager for non-manager.
    REPORT ZDYN_SELECTIONS.
    DATA: user_pernr type pa0105-pernr,
           user_orgid type pa0001-orgeh,
           user_manager type pa0105-pernr,
           managers type table of OBJEC WITH HEADER LINE.
      PARAMETERS: usrid type pa0105-usrid.
      end-of-SELECTION.
      SELECT SINGLE pernr INTO user_pernr from PA0105
        WHERE usrid = usrid
          AND  begda <= sy-datum
          AND  endda >= sy-datum .
      SELECT SINGLE orgeh INTO user_orgid FROM pa0001
        WHERE pernr = user_pernr
          AND  begda <= sy-datum
          AND  endda >= sy-datum .
        CALL FUNCTION 'HRCM_ORGUNIT_MANAGER_GET'
          EXPORTING
            PLVAR                    = '01'
            OTYPE                    = 'O'
            OBJID                    = user_orgid
            BEGDA                    = sy-datum
            ENDDA                    = sy-datum
    *      PATH_ID                  = ' '
         TABLES
           MANAGER_INFO_TABLE       = managers
    *    EXCEPTIONS
    *      PATH_ERROR               = 1
    *      ROOT_ERROR               = 2
    *      NOTHING_FOUND            = 3
    *      OTHERS                   = 4
        IF SY-SUBRC <> 0.
    * Implement suitable error handling here
        ENDIF.
    LOOP AT managers.
      write managers-objid.
    ENDLOOP.

  • How to Find the number of Databases in a server.

    HI,
    Please tell me how to find the number of Databases are in a server . when the DB is not up.
    ps -ef | grep ora_
    This i know whether our DB is up or not. But i want to know how many databases are in a server .If the database is down .
    Cheers,
    Gobi.

    Hi,
    [oracle@oralinux admin]$ lsnrctl status
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 01-DEC-2006 16:25:41
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    TNS-01169: The listener has not recognized the password
    [oracle@oralinux admin]$
    Plz give me the solution.
    Cheers ,
    Gobi.

  • How to find the LOCKED ROWS in a table?

    Not locked objects, but for a table the locked rows.

    Check below links :
    http://www.jlcomp.demon.co.uk/faq/locked_rows.html
    How to find the locked row.
    who are waiting for same record?
    HTH
    Girish Sharma

  • How to find the Variable

    Hi,
    I searched in google i could not get proper anser.
    my question is
    how to find the varient is created are not. and also i am intrested to learn how to creat the variant...
    Thanks and regards,
    Kesava.

    hi ,
    i am intrested to learn how to creat the variant...
    For creating varient just run ur program,
    And enter the values into the inpur parameters or select-options.
    then press the save button,
    after it will display another screen which will ask about the varient name and its discription, fill it and save it,
    your varient will created.
    Same way u can create another varient also
    how to find the varient is created are not
    please refer below blogs:
    [Blog1|Create variants through ABAP;
    [Blog2|How to set up standard variant in ABAP report;
    thanks,

  • Since upgrading to Lion, i am unable to take screen shots.  i get the message that i don't have permission to save files to the place where SSs are saved.  how can i regain the ability to save screen shots?  thanks

    since upgrading to Lion, i am unable to take screen shots.  i get the message that i don't have permission to save files to the place where SSs are saved.  how can i regain the ability to save screen shots?  thanks

    First of all, are you using the OS native screen capture?
    If not, make sure the application you're using has been update for Lion.  I was using Snapz Pro for years, but I need to update it for use with Lion. Meanwhile Grab and the keyboard shortcuts are working on my Lion load.
    If you are using the native capture mode unsuccessfully, I would run the Disk Utility and repair permissions on the drive. For some reason, even in past OS Versions, routine maintenance of permissions makes life a lot easier.

  • Where can I find the file where the static mapping allocations of the DHCP server are stored?

    In our company we are using DHCP to assign static ip addresses to our clients.
    Now we are forced to change the ip address range. To prevent changing each allocation
    of mac-address to ip-address manually with the admin tool i would like to change the allocation
    in the file where the allocations are saved. The reason ist that i just have to use copy & paste for all
    the allocations.
    So how is the file named and where can I find the file where
    the static mapping allocations of the DHCP server are stored? Is it just an ASCII file?
    Must i note anything when i change the file manually?

    From man bootpd:
    BOOTP/DHCP STATIC BINDINGS
         Static IP address to ethernet address bindings are stored in the /etc/bootptab file and in Open Directory.  Bindings specified in the /etc/bootptab file take precedence over those in Open Directory.
         See bootptab(5) for more information about the /etc/bootptab file.
         For Open Directory, bootpd looks at the /Computers records for the following properties:
    /etc/bootptab is a standard text file, while the records in Open Directory can be manipulated either through the command line, or via Workgroup Manager.

  • How to find the number of fetched lines from select statement

    Hi Experts,
    Can you tell me how to find the number of fetched lines from select statements..
    and one more thing is can you tell me how to check the written select statement or written statement is correct or not????
    Thanks in advance
    santosh

    Hi,
    Look for the system field SY_TABIX. That will contain the number of records which have been put into an internal table through a select statement.
    For ex:
    data: itab type mara occurs 0 with header line.
    Select * from mara into table itab.
    Write: Sy-tabix.
    This will give you the number of entries that has been selected.
    I am not sure what you mean by the second question. If you can let me know what you need then we might have a solution.
    Hope this helps,
    Sudhi
    Message was edited by:
            Sudhindra Chandrashekar

Maybe you are looking for

  • NoClassDefFoundError only on Linux

    I am using WebLogic Server 8.1 SP4 on Windows and Linux. Both were installed as Production servers using JRocket. I have an MDB that I have created that has the following line: BaseEvent event = EventFactory.createBaseEvent("event data"); EventFactor

  • Just bought Final Cut Pro 7 (Final Cut Pro 3)

    Hello, I have both Final Cut Pro 6.0 and the new Final Cut Pro X running on my mac. Should I unistall, delete both FCP 6 and FCP X than re-install the new FCP 7 and than FCP X. Just wanted to do a whole clean re-install of FCP. Or can I just pop in t

  • Best WMV converter

    I have a client who insists on asking for his videos as .wmv files. I have tried every setting possible with Quicktime and FilpForMac WMV codec... But the videos always look terrible! Very pixelated. I've adjusted bit rates, quality settings, everyth

  • Not able to login with new LDAP user in portal..

    All, We have created a new user in our LDAP environment in Portal. ( not UME ). I am able to view the user id in Identity management and assigned the necessary roles. but, i am unable to login using the new user id. Can anybody please tell me what is

  • Transfers between warehouses

    HI, mi name is John Jairo I have a problem when I try to make a stock transfer between warehouse. I need to create an outbound delivery (Transaction VL01NO) with the Delivery Type "UL" between two warehouses, but when I enter the Customer I can´t con