How to  implement a message

In the note 890909 it is written toiImplement the message '066' with the following text in the message class 'FVD_INV_ACC'.
I never implemented a message. How can I do that?
Thank you in advance

HI
  u need messages to display some message (error or sucess or warning)
to check some condition
if sy-subrc = 0.
  message i000(bctrain) with 'Success'.
endif.
here i is information mesage type give some msgnum 000 to 999 use with
and placeholders
bctrain is a std message class.

Similar Messages

  • How to implement Scroling Messages in Forms 6i

    Dear Friends,
    I have a requirement as stated below.
    I have to fetch data from table and display on the forms as a scroling message ( like messages appearing on the webpage , moving from right to left ) in forms 6i application.
    I dont have any idea about how to implement it iam not sure if it is possible or not
    If you have any idea how to acheive this please suggest me
    Regards,
    Khader

    Write Code in When-New-form instance
    if id_null(create_timer('SCROLL_TIMER', 200, REPEAT)) then
         null;
    end if;
    When-Timer-expired
    DECLARE
         TimerName varchar2(40) := get_application_property(TIMER_NAME);
    BEGIN
         if TimerName = 'SCROLL_TIMER' then
              scroll_view('CNv_SCROLL', 0, mod(get_view_property('CNv_SCROLL', VIEWPORT_Y_POS_ON_CANVAS)+1, 37));
    end if;
    END;
    Create a Stacked CNV_SCROLL on you canvas
    and write any text in CNV_Scroll
    I hope your problem will solve.

  • ADF RC  - how to implement global messages

    Hi,
    I'd like to write global messages class shared by all application. It should be fired for all COMMIT (obviously without exceptions) operation and display following message:
    If user made any changes - <strong>"Changes have been commited"</strong>
    If user press commit without any changes - <strong>"There are no changes to save"</strong>
    It also would be nice to get a message when user insert or change in form and wants to leave page without commiting. He should get confirmation window with info:
    <strong>"You have uncommited changes. What dou you want to do:"</strong> and buttons:
    - <strong>Continue</strong> (Changes will be lost)
    - <strong>Don't leave a page</strong>
    I've seen similar solution in applications created in Jheadstart. Has anyone implemented this ?
    Kuba
    Edited by: KUBA on Nov 7, 2008 11:25 AM
    Edited by: KUBA on Nov 7, 2008 2:27 PM

    I think the simplest approach would be to create a custom subclass of DCJboDataControl (which also requires defining a custom data control factory subclass) and overriding the commitTransaction() method.
    For example:
    package test.view.binding;
    import oracle.adf.model.bc4j.DataControlFactoryImpl;
    public class CustomDCJboDataControlFactory extends DataControlFactoryImpl {
        protected String getDataControlClassName() {
          return CustomDCJboDataControl.class.getName();
    }and
    package test.view.binding;
    import java.util.HashMap;
    import oracle.jbo.common.ampool.SessionCookie;
    import oracle.jbo.uicli.binding.JUApplication;
    public class CustomDCJboDataControl extends JUApplication {
        public CustomDCJboDataControl() {
           super();
        public CustomDCJboDataControl(SessionCookie sessionCookie)
           super(sessionCookie);
    }Then you use the custom data control by configuring your factory in the dataControlUsage element in the DataBindings.cpx file like:
      <!-- etc. -->
      <dataControlUsages>
        <BC4JDataControl id="DepartmentsModuleDataControl" Package="test.model"
                         FactoryClass="test.view.binding.CustomDCJboDataControlFactory"
                         SupportsTransactions="true" SupportsFindMode="true"
                         SupportsRangesize="true" SupportsResetState="true"
                         SupportsSortCollection="true"
                         Configuration="DepartmentsModuleLocal" syncMode="Immediate"
                         xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
      </dataControlUsages>
      <!-- etc. -->

  • How to implement Message Sequencing  other than mediator

    Hi All,
    I am looking for a solution to implement the message sequencing option for the below integration scenario between Order management module and projects module using SOA and AIA 11g.
    1. The source system triggering requests is the Order management module(sometimes projects module) of Ebiz R12.
    2. When an order is booked an event is raised and pushed to WF_Deferred_Q in Ebiz environment.
    3. This messages are pushed to WF_BPEL_Q in SOA environment by the QAgent configured at the Ebiz end.
    4. At SOA end , there is an AqAdapter configured in OSB(as a proxy service) will poll WF_BPEL_Q and pull the messages.
    5. Based on the type of request messages are routed to different requestor ABCS services( AIA framework).
    Scenarios possible are:
    1.     Orders created newly and same are synched to projects module.
    2.     Orders updated and same is updated in the projects module. (order header id is same for multiple update requests on the order )
    Scenario 1: Two update requests for same order
    1.     When an existing order which has got five line items and each line item has got 2 sub line items, is updated at the same time from different locations(let’s say from India and Japan) where in order from India is updating the quantity on one sub line item whose parent line item is (lets say A) and another request from japan is updating the unit sale price in another sub lie item line item whose parent is also line item A.
    2.     Both the update requests which are raised will have the same order header ID and also the request from India is errored out while updating the projects module due to some reason which needs some manual intervention to update the data and resubmit the message.
    3.     Now we want to stop the request from Japan until the request from India is not processed.
    4.     Simultaneously we want to allow the orders which are independent.
    Note: We are not looking to use “wait” option which will have an impact on the performance .
    Please suggest your valuable inputs and expert thoughts in implementing the message sequencing with less impact in this situation.
    Thanks in advance.
    Regards,
    Shailesh

    Can someone post expert views on the below issue?
    Regards,
    Shailehs

  • How to implements a modal message dialog

    Hi~~
    I am developing a game and I need to show a question dialog .Player can start game after answering this question, but I find it difficult to implement it. Can anyone know how to implement it?
    thank..

    Look at the API for JOptionPane.showXXXXDialog()

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to implement Tool TIP in Table Control

    Hello Everyone,
    Can you please tell me how to implement a tooltip messages in table control columns.
    The Tooltip contains a simple message like "Doublde click on column.
    Thanks in advance.
    Edited by: Suruchi Razdan on Jun 6, 2011 7:57 AM

    Hello,
    In table Control->first Header Row has chance to maintain the Tooltip option.
    In table control columns maintain Double click options in attributes .
    Regards,
    Praveen

  • BI IP: How to create a message in custom developed planing function type

    Hello experts,
    I try to set a message in a ABAP planning function.
    I created a own planning function type and implemented the class in ABAP.
    Everthing is working fine until here. But how can I create a message which is visible in the report.
    Is it just to use the command " MESSAGE" ?
    Or do I have to use paramteres of the ABAP class.
    I've just implemented the interface IF_RSPLFA_SRVTYPE_IMP_EXEC and cannot find parameters for this.
    Thanks in advance
    Johannes

    Hi Johannes,
    please check
    Custom Messages WAD
    Re: How to indicate a message by a planning function type in an ABAP-OO-Class
    Regards Matthias

  • How to catch error message and show it in VC?

    I want to catch the error message and show it in VC.For example, if there is no data row in table view queryed from data service, then popup a window to show the message "No Data Found".I don't konw how to implement it!

    Hello Kane
    use expression{disble this after defining erroe messege} box in that popup there u can define your own message as error or warning accordingnly it display message
    I hope it work or Let me know it
    Regards
    ````Satish````

  • How to implement this function in JSP/Servlet env?

    Hi all,
    I working on a project, it provides functionality to upload file using JSP/Servlet. In the first JSP page, there is file location and submit button. After user select a file to upload and click submit button, a message, like "sending file to XXXX", will be shown on the screen. Once uploading and validation are done on the server-side, a successful/error msg will be shown to user.
    Here I have a question for the "sending..." msg and the successful/error msg. They should be put in one jsp page or in two separate page? how to implement them?
    Thanks for any help!
    Tranquil

    For the sending message... Well, the thing is, when you click submit, it's sending the file to the server and the server is processing it, and this is all done before the "complete" page is sent to the server. So one would need to use some Javascript on the page before the actual submit happens to show some message. This is done on Ebay when you put something for sale, you can upload an image, and there is a little popup message telling you that it's uploading, and it is removed when the process is done. Now, I'm not sure the exact details of how this works, but my educated guess is this:
    1) The onsubmit function of the form checks that the file upload fields have a value (no need to popup a message if no file upload, since that's what usually takes the time, although it could just be assumed there is a file). If a file is to be uploaded, or just want to show the message anyway, a new popup window is opened with the window.open method and the "sending" message is shown (either written via Javascript or just load a small web page to the window).
    2) The popup window, since you can't transfer the window object from the form page to the next page, has to check window.opener for some value that the success/error page would have to set. The success/error page could use it's body onload function to set a variable in it's own window object to denote that the page is loaded. The popup window can use a looping check using setTimeout or setInterval in Javascript to check for window.opener.isLoadedVariable to be present, and if so, close itself.
    I've never done that, but I see no reason why it wouldn't work.

  • How to implement this? please help

    In my java class, I have a string array called strarray which hold serveral elements, some of the elements have the same value , for example, the first element is "swimming", the forth element is also swimming. I use a for loop to get each element and give it to arrayHolder which is also a array with the same size as strarray. Now, what I want is: I defined a Vector called element I want this vector to filter out the element from arrayHolder, get the name of non-duplicated name from the arrayHolder, the result should be inside the element vector (swimming,walking,running,dancing), no duplicated name. My code is like follows:
    import java.util.*;
    import java.io.*;
    public class arrayTest{
    public static void main(String arg[]){
    String[] strarray={"swimming","running","walking","swimming","dancing","running"};
    String[] arrayHolder=new String[strarray.size];
    Vector element=new Vector();
    for(int i=0;i<strarray.length();i++){
    arrayHolder[  i  ]=strarray[  i  ];
    /* What should I do next to get the non-duplicated element from arrayHolder and
    * add them into the element vector????
    I did not finnish it, since I am a little bit confused, how to implement? Need some help. thanks.
    Message was edited by:
    Mellon

    Not sure if I see the use of strArray & arrayHolder (I've not looked at your code - you might use code tags next time (check the "code" button above the message textarea), but may I suggest using a Map of some sort instead of a Vector? It will prevent duplicates for you.
    Good Luck
    lee

  • XI: How to update the Message Status (shown by transaction SXMB_MONI  )

    Hi
       My question might be stupid, but I need you help.
    I would like to know how can I update the message status what we see while using trasaction SXMB_MONI  . The Scenrio is, I have a Custom Interface program build on the Abap Proxy interface method called EXECUTE_ASYNCHRONOUS.
    If I am not wrong, transaction SXMB_MONI is on the XI system and also on the SAP Application system. ( But I am not sure in what way the same transaction differ in two systems )
    My issue is,  when I receive the xml data into a structure in abap proxy, I am doing some validation on the received message data. If I found some error in the data , then I need to update the Message status of the SXMB_MONI to  ERROR flag. How to implement this ?   I have not done one before. And I am not sure, if any exception like error message is raised, will it stop the proxy from processing further and update the Message Status and this can be viewed using SXMP_MONI in the SAP application system to be ERROR flag?
    Or is there a BAPI or function module to handle this ?
    Appreciate your help
    David

    Hi
    I am not sure If I had understood you reply. But Would need your help to have a bit more insight to your answer. I am not completely into XI , but I am from ABAP side.
    At the R/3 side , Abap Proxy object geneted has the INTERFACE and its associated  METHOD, in which I am building my own abap code to do any validation on incomming data. But If I want to Raise a Exception, I understand that this Expection has to be first defined .
    But do I have to define a new Z Expection class  or can I just add a exception in the Proxy -Interface-method.
    I have not understood this process.
    All I need to do is, if I find any incomming data error , during my validation at the R/3 side, I need to stop the METHOD processing ( by any means ) and Update the Message Status flag show in SXMB_MONI to Error . 
    What is the trigger  that i can implement in myown code that will update the Message status to Error , from R/3 perspective of using SXMB_MONI.
    Thanks
    David

  • How to change the message value in COGI entry

    Hi All,
    I have two COGI records on a material for a plant and while creating those entries those were locked by another user.  So it is getting message number as 897 and so it is not displaying in the report COGI.
    Could anybody tell me, how to remove that message.
    Thanks,
    sreenivas.

    Sreenivas,
    You need to Implement the corrections mentioned in SAP Notes #325105.
    Solution as given in note
    Both incorrect goods movements and future change records for background processing of goods movements are stored in table AFFW. Error records differ from future change records by the fact that fields AFFW-MSGID and AFFW-MSGNO are filled (error ID and error number). Process requests can only be updated via reports CORUAFW0, CORUAFWP, CORUPROC or Transaction CO1P. Error records can be updated in Transaction COGI. They are also transferred to the update, provided you executed reports CORUAFWP or CORUPROC with the "Incl. incorrect goods movement" indicator set.
    In table TAFWD, you can enter specific error messages which should not be treated as an error record but as process requests.Useful candidates for such error messages are, for example, locking errors such as M3897:"The plant data of the material <XXX> is locked by the user <YYY>." You can maintain TAFWD entries by using Transaction SM31.
    AFFW records with errors which are entered in table TAFWD are no longer displayed in Transaction COGI (because they have been defined as a future change record) and can only be edited for the background processing by the programs and transactions.
    You can limit the error records to specific error messages in Transaction COGI by adding certain error messages to table TAFWD.
    Technically, the conversion of error records into process requests decreases the time and effort spent on lock management because only the respective process (background updating of goods issues and/or goods receipts) is locked during the update of process requests.However, error records are locked separately in order to prevent other users from affecting a record which is just being updated/processed.
    The following applies to postprocessing records from the repetitive manufacturing:
    As of Release 4.5B, these records can also be posted via transaction COGI (in addition to the repetitive manufacturing programs for postprocessing backlogs: Transaction MF47, report RMSERI13). However, basically they should NOT be posted using reports CORUAFWP and CORUPROC, including not with the "with incorrect goods movements" indicator set.
    Therefore, the definition of phantom errors in table TAFWDfor postprocessing records from the repetitive manufacturing has no effect. These records can not be redefined for future change records and must still be able to be postprocessed explicitly via transaction COGI.
    Regards,
    Prasobh

  • How to implement the schema validation with XSD in adapter module

    Dear All,
    I am trying to develop a EJB as the file adapter mudule.
    Please guide me how to implement the schema validation of the source message with XSD.
    Or provide me the relative resources about this task.
    Thanks & Regards,
    Red
    Edited by: Grace Chien on Nov 19, 2008 8:23 AM

    Hi Grace,
    You can do the xml scema validation in PI7.1 version directly.
    To develop the adapter module for xml schema validation
    Validating messages in XI using XML Schema
    Schema Validation of Incoming Message
    Regards
    Goli Sridhar

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

Maybe you are looking for

  • Can we call a function within a function??????Urgent

    Dear All, Like we can call a procedure from another procedure , in the same way can we call a function within a function. Please reply it's urgent. Regards

  • Can't open Waveburner files in L9

    Just installed Logic 9 and Waveburner wont open any of the links created in L8, I get the message "The document "title" could not be opened. WaveBurner cannot open files of this type". OK I thought let's create a new Waveburner file, I did this, burn

  • How to create a Unique Member List for PlugAccounts ?

    Hello everybody, Does anyone knows or did it in the past how to create a Unique Member List for Plug Accts? If anyone does could you please paste some scripting for reference? Thank you very much, JB

  • AE CS6 Crashing when scrubbing .mxf footage

    Hi everyone, I am using native .mxf -  MPEG-2 HD footage shot with a Canon XF300, and nearly every time I place it in the timeline or or viewer and scrub AE freezes and crashes. Non mxf footage doesn't cause AE to crash. I am running a newly built Wi

  • 1610 printing stays on the screen but nothing is coming out

    My PSC 1610c had what I believe was a power surge yesterday.  The screen runs and says"used black ink cart installed, press ok.  Use dtri-color ink cart installed, plress OK"  I did that and it seemed find, until I clicked on print to print a documen