How to modify display label in error message raised from capi?

How to modify display label in error message raised from capi?
qms_transaction_mgt.process_rule_violation
( p_br_name => 'BR_PBR_DEL006'
, p_msg_code => 'PMS-00417'
, p_display_label => display_label
, p_table_name => 'pan_project_members'
, p_table_rowid => get_rowid
regards,
marcel

When you mean which columns are displayed, this is actually quite easy.
Display_label will display by default the unique key columns, or if no unique key exists, the primary key. To overrule this behaviour, you have to specify the columns you want to display by assigning them a 'descriptor sequence'.
For example, to display the ename on EMP warnings, assign descriptor sequence 10 to the EMP.ENAME column and regenerate the CAPI package.
Jeroen van Veldhuizen

Similar Messages

  • How to display exception on error page raised from custom login module?

    Hi All,
    I've created my own login module and I am using form authentication mechanism.
    Here is how my login and error pages defined in web.xml:
        <login-config>
          <auth-method>FORM</auth-method>
          <form-login-config>
            <form-login-page>/logon.jsp</form-login-page>
            <form-error-page>/error.jsp</form-error-page>
          </form-login-config>
        </login-config>
    But when my login module throws an exception (LoginException) the following code in <i>error.jsp</i> returns null:
    <%=request.getAttribute("javax.servlet.error.message")%>
    though this code works good on Weblogic.
    Declaring the <i>error.jsp</i> also in the <error-page> tag didn't help.
    So what did I miss to configure?
    Or maybe NetWeaver doesn't allow to get the exception from the <form-error-page> at all?

    If I understand your question correctly, you can use the CQ.Notification JavaScript object for this. See documentation here: http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.Notification

  • To display a continuos Error Message using BADI

    Hi Everybody,
                        There's a transaction that makes use of classes and interfaces to display an ALV grid with input enabled frames and fields. There's a need to display an error message using a specified BADI method, which gets triggered after the user enters the input. The error message is working fine for the first time.<b>But when i'm trying to enter the same input and press enter after the error message, the transaction is getting closed. How can i display the same error message, until and unless the user enters the correct input ?</b>  I've tried to trace the control using the debugger after the enter is pressed, but the debugger is also getting closed and the control is coming out of the transaction. Help me out in displaying the error message.

    Hi,
    Open the interface and go to the Methods tab.
    Select the Method and click on Parameters.
    In the method parameters, declare a variable
    RETURN      Changing      Type     ALM_ME_BAPIRET2_T.
    Now, inside your code, declare   DATA : ls_return TYPE bapiret2.
    and populate this RETURN table, something like:
            if not ( wa_mara-mtart eq 'SPAR'  or wa_mara-mtart eq 'ZMRO' ).
        CLEAR ls_return.
        MOVE 'E' TO ls_return-type.
        MOVE 'ERR_MESSAGE' TO ls_return-id.
        MOVE '999' TO ls_return-number.
        MOVE 'Enter proper error message here' TO ls_return-message.
        INSERT ls_return INTO TABLE return.
        endif.
    Then, back in your program, check if this table is empty proceed otherwise, STOP or EXIT.
    Regards
    Subramanian

  • How to get rid of the error message we could not complete your iTunes store request?

    How to get rid of the error message we could not complete your iTunes store request?
    having this problem when trying to authorise an newly downloaded app in iTunes

    Based on the numerous posts regarding iTunes and the App Store, there appears to be an issue at Apple's end. Although Apple has not provided any indication on the cloud status page.
    Do not change your settings.
    Edit

  • How to show a database trigger error message as a notification on a page

    I have a database with database triggers to ensure data integrity.
    If an insert or update does not comply to all the business rules, a database triggers raises an exception. When using Apex this exception is caught in the Error Screen, a separate screen, where the whole error stack is displayed.
    Does anyone know a way to display only the error in RAISE_APPLICATION_ERROR as a notification in the screen from which the transaction was initiated?
    Dik Dral

    Well, having had so little response, i had to figure it out myself ;-)
    Using Patrick Wolff's ideas from ApexLib I 'invented' a solution for my problem, that I would like to contribute to the community. I hope that it will come out a bit nicely formatted:
    Apex: Show Database Error Message in calling form
    The purpose is to show a neat error message in the notification area of the calling form.
    Default Apex show the whole error stack raised by a DB trigger in a separate error page.
    With acknowledgement to Patrick Wolf, I lent parts of his ApexLIB code to create this solution.
    <br./>
    Assumptions
    <ul><li>The error message is raised from a DB trigger using RAISE_APPLICATION_ERROR(-20000,’errormessagetext’).</li>
    <li>The relevant part of the error stack is contained within the strings ‘ORA-20000’ and the next ‘ORA-‘-string, i.e. if the error stack is ‘ORA-20000 Value should not be null ORA-6502 …’, than the relevant string is ‘Value should not be null’ .</li>
    <li>Cookies are enabled on the browser of the user </li>
    </ul>
    Explanation
    The solution relies heavily on the use of Javascript. On the template of the error page Javascript is added to identify the error stack and to extract the relevant error message. This message is written to a cookie, and then the control is passed back to the calling page (equal to pushing the Back button).
    In the calling page a Javascript onLoad process is added. This process determines whether an error message has been written to a cookie. If so the error message is formatted as an error and written to the notification area.
    Implementation
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js:
    <pre>
    var vIndicator = "ApexErrorStack=";
    function writeMessage(vMessage)
    {       document.cookie = vIndicator+vMessage+';';
    function readMessage()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    vPos = vCookieList.indexOf(vIndicator);
    // No cookie found?
    if (vPos == -1) return("empty");
    vStart = vPos + vIndicator.length;
    vEnd = vCookieList.indexOf(";", vStart);
    if (vEnd == -1) vEnd = vCookieList.length;
    vErrorStack = vCookieList.substring(vStart, vEnd);
    vErrorStack = decodeURIComponent(vErrorStack);
    // remove the cookie
    document.cookie = vIndicator+"; max-age=0";
    return(vErrorStack);
    function getElementsByClass2(searchClass,node,tag)
    var classElements = new Array();
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = newRegExp('(^|\\s)'+searchClass+'(\\s|$)');
    for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els[i];
    j++;
    return classElements;
    function processErrorText()
    var errorElements = new Array();
    errorElements = getElementsByClass2("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 )
    { errorText = errorElements[0].innerHTML;
    errorText = errorText.substr(errorText.indexOf("ORA-20000")+ 11);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    // errorElements[0].innerHTML = errorText;
    writeMessage(errorText);
    function show_message()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vErrorName = null;
    var vErrorMessage = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    // get errorStack
    vErrorStack = readMessage();
    if (vErrorStack == -1) return;
    // search for our message section (eg. t7Messages)
    var notificationArea = document.getElementById("notification");
    if (notificationArea != null)
    { notificationArea.innerHTML = '<div class="t12notification">1 error has occurred<ul class="htmldbUlErr"><li>' + vErrorStack + '</li></ul>'; }
    else
    { alert(vErrorStack); }
    </pre>
    This code is loaded as a static file in Application Express (no application associated).
    In both templates a reference to this code is added in the Definition Header section:
    <pre>
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    </pre>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="javascript">
    processErrorText();
    window.history.go(-1);
    </script>
    Back
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie and returns to the previous screen.
    The link to the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    The need for database driven messaging
    In some cases the need exists to process error messages in the database before presenting them to the user. This is the case, when the triggers return message codes, associated to error messages in a message table.
    This can be done by using a special Error Message Processing page in Apex.
    The error message page extracts the error message, redirecting to the Error Message Processing page with the error message as a parameter. In the EMP page a PL/SQL function can be called with the message as a parameter. This function returns the right message, which is written to a cookie using dynamically generated Javascript from PL/SQL. Than the contol is given back to the calling form.
    The redirect is implemented by location.replace, so that the error message page does not exist within the browsing history. The normal history(-1) will return to the calling page.
    Implementation of database driven messaging
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js already listed in a previous paragraph.
    In both templates a reference to this code is added in the Definition Header section:
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="Javascript">
    var errorText = null;
    function redirect2oracle()
    { window.location.replace("f?p=&APP_ID:500:&APP_SESSION.::::P500_MESSAGE:"+errorText); }
    function getError()
    { errorText = processErrorText(); }
    getError();
    redirect2oracle();
    </script>
    Go to Error Message Porcessing Page
    Back to form
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie.
    Then the EPM-page (500) is called with the extracted message as parameter.
    The link to the EPM page and the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    We need to create an Error Message Porcessing Page.
    Create a new page 500 with a empty HTML-region “Parameters”
    Create an text-area P500_MESSAGE in this region
    Create a PL/SQL region “Process Messages” with source:
    convert_message(:P500_MESSAGE);
    Create a PL/SQL procedure convert_message like this example, that reads messages from a message table. If not found, the actual input message is returned.
    CREATE OR REPLACE procedure convert_message(i_message in varchar2) is
    v_id number := null;
    v_message varchar2(4000) := null;
    function get_message (i_message in varchar2) return varchar2 is
    v_return varchar2(4000) := null;
    begin
    select msg_text into v_return
    from messages
    where msg_code = upper(i_message);
    return(v_return);
    exception
    when no_data_found then
    return(i_message);
    end;
    begin
    v_message := get_message(i_message);
    // write the message for logging/debugging
    htp.p('Boodschap='||v_message);
    // write cookie and redirect to calling page
    htp.p('<script language="Javascript">');
    htp.p('document.cookie="ApexErrorStack='||v_message||';";');
    htp.p('window.history.go(-1);');
    htp.p('</script>');
    // enter return link just in case
    htp.p('Ga terug');
    end;
    Note: The way the message is converted is just an example
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    Message was edited by:
    dickdral
    null

  • How do I get rid of error message, "iTunes could not back up the iPad because an error occurred."

    During a recent syncing of my iPad and iTunes, I cancelled a sync during the backup step of the process.  Since then I whenever I sync the ipad I know get, "iTunes could not back up the iPad because an error occurred."
    I have reset my iPad and turned off the MacBook, still the message occurs.
    Can someone offer some advice on how to get rid of this error message?

    You can try deleting your backup. Launch Itunes on your Mac and go to iTunes>Preferences>Devices. Highlight the name of the iPad backup and select delete. Quit iTunes, restart your Mac and try to sync again.

  • How do I get past the error message Sign In Failed on my 2nd computer?

    How do I getr past the error message Sign In Failed on my 2nd computer? I have signed out, uninstalled, and reinstalled to no avail.

    So I thought: let's try the link Carolyn Samit suggested. So I got to Apple - Support - FaceTime to find information I already knew, about port forwarding I had already tried:
    443 (TCP)
    3478 through 3497 (UDP)
    5223 (TCP)
    16384 through 16387 (UDP)
    16393 through 16402 (UDP)
    What's the logic anyway of opening router ports that let my Wi-Fi devices through while refusing a LAN device? What have we got here? A firewall that only protects against cables?
    I guess Apple is too busy selling iPads to help a customer who's trying to use Apple software on an Apple machine.

  • How to  find out where sap error messages stored...

    How to  find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Hi,
    I also got the same message when that message no is not there
    E:SABAPDOCU:000 test 
    yours is S-type and message id ZY and message no 127
    127 is not there either change the no  or create the same
    Regards
    Shiva

  • How to find out where sap error messages stored in our system

    How to find out where sap error messages stored in our system.like sometime we will get a error message with message number.whr it will be stored and whch table it is?

    Are you interested in WDA messages ?
    The set a breakpoint in METHODS IN class CL_WDR_MESSAGE_MANAGER.
    Then use call stack (default desktop 2 in debugger) to see where message is added to message manager.
    regards
    phil

  • How do I fix an install error message 0x8007054f

    How do I fix an install error message 0x8007054f

    https://discussions.apple.com/thread/3029902?start=0&tstart=0
    old link may be broken new one right here
    http://support.microsoft.com/kb/946414
    Just wanted to make sure you understand that if you do have question, there are the odds someone already answered it, and it wasn't me.

  • How can I get past the error messages that keep popping up when I try to download Flash player?

    How can I get past the error messages that keep popping up every time I try to download anything?

    Hi
    Could you please let us know more about the error messages that you got?
    The following page has information on the error messages: http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html
    Thanks,
    Sunil

  • Error Message: Data from Business Add-In ME_PROCESS_PO_CUST not transferred

    Hi All,
    I have done a BADI implementation for ME_PROCESS_PO_CUST and when I try to convert a PR to PO using ME59N in ECC u2013 AFS System I am getting below error message.
    Data from Business Add-In ME_PROCESS_PO_CUST not transferred.
    I am trying to populate certain PO fields ( ekko and ekpo ) from PR fields. But the above error occurs when I update the Ex Factory Date manual that is EKPO-J_3AEXFCM.
    I am updating this in the method PROCESS_ITEM and what I found while debugging is in the class CL_PO_HEADER_HANDLE_MM, in the implementation of IF_FLUSH_TRANSPORT_MM~START, the contents of field u2018my_iteration_countu2019 keeps increasing and becomes 10 and raises this error.
    I read few of the related questions raised by others in this forum and understood that this can happen if I try to change the field that is disabled ( greyed) in ME22N. But this field that I am talking about is enabled.
    I also tried to move my code of populating the field EKPO-J_3AEXFCM from the PROCESS_ITEM to the enhancement point just above the user exit EXIT_SAPMMO6E_018 but still it doesnu2019t resolve the error.
    (We donu2019t want to use User Exit and hence we are trying with BADIs or enhancement point.)
    Can anyone please help me with this. I also found an OSS note 1334046 but not sure if that can resolve my issue.
    Thanks in advance.
    Ameesha.

    Hi Ameesha,
    i think u need to implement the BADI ME_PROCESS_PO_CUST in SPRO settings.
    SPRO>Purchasing>Business Add-in Purchasing-->BAdI: Enhance Processing of Enjoy Purchase Order
    try this once.
    All check this link.
    [Error Message: Data from Business Add-In ME_PROCESS_PO_CUST not transferred;
    Hope it helps.
    Regards,
    Raj

  • Error message: (translated from Dutch) "Cannot find corresponding style page for media query"

    Error message: (translated from Dutch) "Cannot find corresponding style page for media query"(see image)
    I cannot find what is wrong with this page: steun sesem
    This message does not appear on the other pages of this site..
    What do I wrong??
    Thanks in advance!
    Martien

    There are two things that are probably causing this error.
    Line 22 in your HTML looks like this:
    </style><!--[if lt IE 9]>
    You need to remove the closing style tag:
    </style><!--[if lt IE 9]>
    Also in sesem.css, there's a missing closing brace on line 486:
    .footer {
      font-size: 1.1em;
      line-height: 1.4em;
      color: #878787;
      text-align: center;
    }  // <---- Missing closing brace
    /* Desktop Layout: 769px to a max of 1232px.  Inherits styles from: Mobile Layout and Tablet Layout. */
    There are other problems in your CSS, but fixing those two items should put you back on the right track.

  • Who knows where does this error message come from

    I have a program wrote with visual age java of ibm.it runs ok in develope page. I exported it in a jar file, it run some minutes and abrrupted with a message like this:
    *** panic: 16-bit string hash table overflow
    abnormal program termination
    who knows where does this error message come from and under which circumstance?

    One thing that comes to mind is that the literal string pool is limited - do you have lots of string literals or itern() lots of strings in your code?

  • IPad displaying an Hotspot Error message when trying to connect to wifi. How do I fix?

    When attempting to connect to the public wifi network at work on my iPad, I started getting the following error message today: "Error Opening Page - Hotspot login cannot open the page because the network connection was lost."  In order to utilize the network, you must read and accept a user agreement, which will not load and instead displays the error.  I have already tried turning of the wifi and turning it back on and rebooting the device.  This has never been a problem before, and I have had my iPad for several months now.  Further, my iPhone is connecting to the same network with no problem.  How do I correct this problem??  Thank you so much for any help provided!

    Hi elizabeth_lynn,
    Thanks for using Apple Support Communities.
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    If you're unable to join a nearby Wi-Fi network
    Try restarting your Wi-Fi router by turning it off and then on again.
    Note: If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    When joining an 802.11n Wi-Fi network, ensure that your router is properly configured. See this article for more information.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings.
    Note: This will reset all network settings, including passwords, VPN, and APN settings.
    Hope this helps,
    Mario

Maybe you are looking for