Warning message in field exit

Hi All,
I'd the requirement of giving a warning message for transaction VA01 if user enters some specific order type.
So I'd created a field exit for AUART for this screen. But i am able to give error message only and found out that warning & info messages can't be given in a field exit.
Please help me out. Is there any way I can give a warning message in field exit or suggest some other sol. for it.
Thanks,
Manu

Hi,
Thanks f or your answers, but the issue is that i need to give this message as User enters the details on VA01 screen & presses enters.SO i can't use user exit like move_field_to_Vbak & others.
Also, using a FM to give pop up message will ultimately make use of statement CALL SCREEN which is not allowed in field exit, i also tried FMs which displays messages normally means not in pop up screen, but again through it also i can only give error messages.
Please suggets if there is any other option.
Thanks,
Manu Parihar

Similar Messages

  • How can i display warning messages in user exit EXIT_SAPLMGMU_001 (MM02)

    Hi all,
    while modifying the material master using MM02, i have added new conditions to display messages in user exit EXIT_SPALMGMU_001.
    But using this user exit i am not able to display warning messages.
    Can you please help me with this?
    Sample code which i have included in exit :
    SELECT SINGLE mstav FROM mara
    INTO w_mstav
    WHERE matnr = wmara-matnr.
    IF wmara-mstav NE w_mstav.
    IF wmara-mstdv NE sy-datum.
    wmara-mstdv = sy-datum.
    MESSAGE w177(z03_mm) WITH text-s04 text-s21.
    ENDIF.
    ENDIF.
    Thank you all in advance.

    As written in the SAP documentation of the Enhancement , you can only raise error message using a
    MESSAGE .. RAISING APPLICATION_ERROR.
    You could manage the "warning" yourself, sending an error first time and keeping a trace of the check in some STATICS variable, and not raising the error again if data input remains unchanged between two call of the include.
    <i>----
    EXIT_SAPLMGMU_001
    Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
    The customer exit is in function module MATERIAL_UPDATE_ALL. The
    function module checks the data for errors (logical relationships,
    foreign keys, fixed domain values, and so on) when the material master
    is updated.
    Use
    o New fields
    You can make checks possible for new fields of your own. These
    checks must be identical to the checks that you carry out for your
    new fields in online maintenance.
    o Existing fields
    For existing fields, you can extend and intensify the checks.
    You can also change data for descriptions and general material data
    (MARA). For example, the descriptions can be generated from attributes
    of the material.
    Limitations
    You cannot bypass existing checks.
    Interface to Application
    The respective data of the current logical transaction is contained in
    the structures, for example, in structure WMARA for MARA. Nonrelevant
    structures are transferred with their initial values.
    General material data that can be changed (CMARA) has the structure
    MARU. This MARA view contains fewer internal fields than MARA itself. If
    WMARA is filled, CMARA is also filled when accessed.
    The customer exit contains the exception APPLICATION_ERROR for your
    self-defined error situations.
    Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
    terminate the current (logical) transaction and display your message in
    the log. </i>
    Regards

  • Error Message in Field Exit

    Hi All,
    We have a FM which throws an error message. When that is executed in report, it works fine and the error message is displayed.
    We have implemented this FM in FIELD EXIT for PRCTR. But it is not throwing any message. We checked the data, it is fine.
    Can any one know how to solve this??
    Thanks,
    Sreedhar

    Also you need to check whether this is assigned to any program/screen. As you know it will only trigger in the attached program.
    See the documentation of RSMODPRF program.
    Regds
    Manohar

  • Messages in field exits

    Hi all,
    I need to perform some validations over a field and I am doing it on a field exit. The requirement is that I have to inform the user if, after the validation, the exit changes the value of the field.
    Does anyone has a hint for that?
    Thanks in advance!
    Best Regards,
    Ezequiel Martin

    Well, I have changed the strategy because it was too difficult and complicated because I had to perform several other validations using other fields, and in case those other fields were changed, validate everything again.
    After all, I have put al the required validations in a user exit and issued an error message proposing a new value for the field so the user will have to change it manually.
    This is, by far, the simplest solution I found.
    Thank you all for your time and help!!
    Cheers,
    Ezequiel Martin

  • WARNING MESSAGE in USER EXIT

    Hi ,
    We are not able to TRIGGER a WARNING MESSAGE but we are able to TRIGGER an ERROR MESSAGE for a particular Business Scenario in side a user Exit.
    Any way we can produce the WARNING MESSAGE from the USER EXIT.
    Regards,
    Sap User

    Hi sapuser,
    1. We can issue message of type 'I'
      (messsage of type W
      gets displayed on status bar,
      and if the standard transaction,
      again display some its own message,
      then our message will be overwritten)
    2. it will be displayed in a message box.
    regards,
    amit m.

  • Warning message in Query "Currency field CCCUR-WAERS will not be filled"

    Hi
    I generated a infoset using table COSP, when I click in generate infoset, sap shows this warning message:
    Compare field group fields with Data Dictionary
    Currency field CCCUR-WAERS will not be filled
    Currency field TKA01-WAERS will not be filled
    How can I fix the value for fields CCCUR-WAERS and TKA01-WAERS in my query ? when I execute the query this dont show the correct values for some fields because waers field.
    Thanks & Regards
    Ramesh Narayanan

    Dear,
    Yeah system shoots this warning because system is unable to get the currency key for the amount in the report, may be because the primary table is unable to provide this information.....better take currency key by joing any other header table....
    Not a big worry
    Regards,
    Chintan Joshi

  • To through custumize warning messages while creating PO

    Hi All,
    I want to through some warning message throgh user exit while creating PO is there any standar message id i can use to through warning message i know '00' with number 398 but that is working only for error message.
    Regards
    Sagar

    If you're doing these in an exit, you decide in your code whether A,E,I,W, message type.  Beware though, how you present...you might want to do I messages with the "display like E" addition.  I utilize message 016 from message class GR a lot...It's just placeholders and you can then issue messages with three or four values, like:
      message e016(gr) with
      <document> <item> 'text' 'more text'
       etc....  mix and match up to four values, literals, constants, text-elements, etc.

  • Warning message in UserExit

    Hi all,
    Iam  writing one exit for MIGO Transaction. Everything is fine but the only thing is,
    If i generate error message in EXIT Using :  Message e127(zmcd) with loc_per.  It is working fine . But i need to display it as warning message. so i tried to change it to : Message w127(zmcd). But it is not working in this case.
    Please help me out from this situation.
    Thanks in advance.

    hi,
    check the below threads
    WARNING MESSAGE in USER EXIT
    Error Message in User Exit
    Hope this helps !
    Reward with points for helpful answers
    Cheers
    Alfred

  • Break-point in field Exit

    Hi Gurus,
    How can we keep a break point in filed exit . can any one help me .
    I Kept break point in the  functional module(field exit) but when i execute cursor is not stopping at break point.
    can any one help me
    thanking in advance.
    Thanking you,
    Raju

    Hi,
    The following ABAP statements are not allowed in the function modules of field exits:
    BREAK-POINT,  " We can not ues this statment
    CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,
    COMMIT WORK, ROLLBACK WORK,
    COMMUNICATION RECEIVE,
    EXIT FROM STEP-LOOP,
    MESSAGE I, MESSAGE W.
    Field exits have to be tested in isolation in the development environment. To analyze problems that occur only in the screen environment, the relevant variables can be written to the file system using TRANSFER... and can be analyzed there.
    <b>Conclusion is We can not debug the Field Exits</b>
    Regards
    Sudheer

  • BADI/user exit for ME21N - Warning message for "our reference" field

    Dear all,
    I have a problem.
    In ME21N, I need to show a warning message (message w... ) when user enter an already-used-before input in "Our reference' field (EKKO-UNSEZ).
    I've tried in two methods.
    1. Using fm EXIT_SAPMM06E_004. But it can only works for Error message. My warning message never shows up.
    2. Tried to implement classic BADI ME_PROCESS_PO_CUST, using the PROCESS_HEADER method. Got the break-point spot on, but still didn't show the warning message.
    Why is my warning message always got override?
    Please advise.
    Thanks in advance
    Ahmad

    Hi Ahmad,
    Check the below links:
    Unable to put Warning messages in ME21N and ME22N in Exit / BAdI in ECC 6.0
    Warning message in me22n check user-exit can't process?
    Custome warning message in T. code me51n me52n & me21n , me22n
    Regards,
    Nisha Vengal.

  • User exit for change warning message to Error message in va01

    hi,
    I want to change  a warning message to as a Error Message in VA01 t-code,
    how can i proceed for this. where i need to change
    ( without changing standard code)
    thanks in advance.

    *& Report  ZUSEREXIT                                                   *
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.

  • User exit or badi to deactivate warning message

    Hi all
    I want to use the functionality of uploading points (goods receiving hours) which is there in customer master for creating the sales order.
    Actually client wants to create a sales order for particular customers (ex: sales office wise) on particular day only, so I am planning to use the uploading points functionality,
    (EX: I will make a entry  in goods receiving hours om monday for the praticular set of customers,so sales order has to create on Monday, system has to pick the customers which having the Monday  and start creating the sales orders ( ABAPer will right the program) but the problem is while creating the sales order system is giving a warning message(goods receiving hours), I want to deactivate that.
    Please let me know any USER EXIT or BADI for this requirement
    Thanks in advance,
      Regards,
      Nagesh N
    Edited by: nageshdb4u on Feb 7, 2011 5:51 PM

    Kindly  explained  how  you have  solved  others  may benefit..
    regards
    Arunkumar

  • Warning Message:- Field BRSCH from structure CUSTOMER-CENTRAL_DATA-CENTRAL-DATA is provided by Business partner

    Hi Experts,
    I get this error when replication the Organization Unit created in transaction BP from CRM to ECC.
    The error is generated in ECC system and Error Class is CVI_EI.
    Any ideas.
    Kind Regards,
    Gaurav

    Hi Gaurav,
    The Business partner does not have 'industry Key' that is reason the warning msg is coming.
    BRSCH- Industry Field
    you can check this in structure 'CMDS_EI_VMD_CENTRAL_DATA ' which will be filled at run time and later validation happen in  Program 'Fill_customer_central' on it. You can set up breakpoint at line number 183 where the validation is failing and warning message is getting raised.
    Please assign point if above information helpful.:-)
    Thanks
    Prem

  • How to handle warning message for the fields in tab merging , PERSONAS 2.0

    Hi all,
    Please advice me on the below issue.
    In a transaction VA32 , I have merged the fields from one tab to another tab using tab caching.
    when i try to change the value of  a merged fields , it throws the warnings message. So it is continuously looping from one tab to another tab.
    So i tried to use the additional editor concepts in tab caching as below.
    Looping is stopped and throws warning message in the same tab.
    All the changes are saved successfully only when the enter button is clicked once in the main screen, else the changes are not saved and my previous value remains.
    Anybody have an idea on how we can use Additional actions in Tab caching concepts.
    Thank you,
    Arun

    Hi Kranthi,
    When i try to save the fields which i merged from different tab is not saving.
    Please find the below details.
    Green highlighted fields are custom fields which is merged from different screen like header or item overview screen. This is handled in script button.
    Red highlighted fields are merged from different tab like shipping or sales using tab caching concept.
    While changing the value of the fields which is merged from different tab , and press ENTER then it throws the Warning message if occurs.
    After warning message, if i try to save using the script button for copying all the custom fields which is merged from different screen , pasted it to their respective screens and also saved.
    Its working fine.
    When i try to save it before pressing ENTER button then the respective changes had made in the merged fields from different tab are not reflected.
    How we can handle this issue?
    Thank you,
    Arun

  • Problem with displaying warning message in exit EXIT_SAPMM06E_012

    Hi,
    I need in EXIT_SAPMM06E_012 exit display warning message.
    I've created klass Y0108MM_Z1 and message 000 in it.
    When i display as error message -> message e000(Y0108MM_Z1).
    everything is fine.
    but when use message w000(Y0108MM_Z1) it doesn't apear.
    Please help it is very important for me.
    Regards,
    Greg.
    Message was edited by:
            Grzegorz Skibinski

    Hi,
    I think message will appear.
    For testing please do from the main screen press Alt+F12 > options> options tab --> check " dialog box at warning message " and test your scenrio.
    Here warning message appear in a dialog box.

Maybe you are looking for

  • Use of Keyword "IN" in PL/SQL

    I have a SQL statement similar to the following: SELECT * FROM emailListTable WHERE emailGroup IN ('Group1','Group2', ....) In other words, I do not know in advance how many E-Mail Groups I will be fetching e-mail addresses for. How do I use a variab

  • Conditionally hide and show the fields

    Hi, I want to make fields conditionally rendered true or rendered false on page load. Karthik

  • Can WSUS coexist on Site Servers if we don't want to use SUP?

    We are a multi-site shop with one SCCM 2012 site server in each location.  We don't need the more robust options for delivering Windows Updates that SCCM+SUP brings, and are content to use WSUS and the traditional WUACLT interface instead.  However,

  • Color Profile on my MacBook

    I do a lot of photography and printing, so I generally keep my computer set to AdobeRGB, which produces the best printing results. However, I am not sure what Color Profile my MacBook should be set to when editing video. What do you guys think?

  • Premiere Pro 2.0 Compatible with Windows 7?

    Can anyone tell me if Premiere Pro 2.0 for Windows is compatible with Windows 7 Home Premium?