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

Similar Messages

  • 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

  • Error message in customer exit

    HI ABAPer's,
    I am facing the one problem  while giving the error message in customer exit  ZXM06U43(POCustomer exit). The scenario is i am looping the  tekpo(PO line item) internal tables and doing some validations if any lineitem fail in the validation i need  give the error message .I dd the  but all ways it showing the error in last line item in the  PO.
    Thanks,
    Harinath

    Hi,
    You have to either leave the screen. Also you can try EXIT in place of LEAVE SCREEN as per suitable to your transaction.
    SAMPLE CODE:
      IF SY-SUBRC <> 0.
        MESSAGE E059(ZGO) WITH I_MSEG-MATNR I_MSEG-AUFNR.
        LEAVE SCREEN.
      ENDIF.
    Regds,
    Anil
    Edited by: Anil Katoch on Sep 3, 2009 7:37 AM

  • How to raise error message in substitution exits?

    Hello Experts,
    How to raise error message in substitution exits. I have tried with normal statement,
    Message 'Welcome!!' type E.
    But its inot stopped at that error message, Its goes next standard code and picked other messag and shown as error message.
    Th exit seems U100, I that I want to stop by using error message based on some condition. Please throw the answer quickly

    HI Sanjana,
    In the Substitution exits you can create the message in the configuration it self.
    You dont't need raise message explicitly.
    Thanks,

  • Error message from user exit - current screen becomes grayed(non-editable)

    I am working on a Sales Order (VA01/VA02) user exit(USEREXIT_SAVE_DOCUMENT_PREPARE) in MV45AFZZ program. I am validating certain values entered by user in this exit. Based on a condition, I issue a error message e.g. "message e001(ZV) with .....". I expect the processing to interrupt and the system control  returns to the current screen. When there is an error, error message shows up on the status bar, but the current screen is completely grayed out(non-editable), not able to modify the incorrect entries. I keep hitting ENTER but no change to the grayed screen. Is there anything wrong in the way I issue error message?
    I am on ECC6.
    Thanks.

    could you please help me if possible in my senario :-
    I am validating a field(serial number while creating delivery) in standard exit ZXQSMU04 and written a code to display an error message. The functionality is working correctly on validation and displaying the error message. But once the error is getting trigger the serial number field is becoming in gray mode i.e non editable.
    I tried a lot to overcome this issue but not getting success could anyone help me to make the field editable while triggering the error message.
    Please note : Its an exit and not having any message field in export or return table. Also tried with warning and information message.
    Thanks in advance.
    Regards,
    Gautam Kumar

  • 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

  • Custom error message in user exit is giving Short dump

    Hi All,
    We have a scenario where in if any user try to create/Change/Delete particular types of contract in SAP system we have to issue error message
    saying ZIN/ZIR contract creation/Change/Deletion is blocked in SAP. This has to be done from the web application. So we are putting below code
    in user exit MV45AFZZ in the form USEREXIT_SAVE_DOCUMENT_PREPARE.
    CONSTANTS: lc_vbcpic01 TYPE sy-uname VALUE u2018VBCPIC01u2019, u201CWeb application user ID
             lc_zin           TYPE vbak-auart VALUE u2018ZINu2019,
                         lc_zir            TYPE vbak-auart VALUE u2018ZIRu2019,
                         lc_text(32)    TYPE c VALUE u2018Check long text for more detailsu2019.
    DATA: l_uname TYPE sy-uname.
    CLEAR: l_uname.
    MOVE sy-uname TO l_uname.
    *If user ID is not the Web application ID then block the creation/Change/Deletion
    IF   l_uname NE lc_vbcpic01
    AND ( vbak-auart EQ lc_zin
    OR    vbak-auart EQ lc_zir ).
    MESSAGE e830(zv) WITH lc_text.
    ENDIF.
    This code is working fine while creating/Changing the contract i.e. Giving us error message so that user wonu2019t be able to create/change the contract.
    But when we delete the contract from VA42, Control is coming to this message statement and is giving Short dump. Below is the error analysis of the dump.
    Error Analysis:
    During "Exit Command" processing, the program tried to send a " " message.
    This is not allowed at this point in processing.
    The program had to be terminated.
    Screen name.............. "SAPMV45A"
    Screen number............ 4001
    If any one has come across such scenario/any work around for this problem please let me know your inputs. Your inputs are highly appreciated.
    I am working on 4.6C version of SAP.
    Note: When i issue information/Warning message contract is getting deleted after displaying the message.
    Thanks,
    Vinod.

    I exactly replicated the same in DELETE_DOCUMENT also
    I am getting the Dump. I tried with exit also , but it continued and deleted. To avoid deletion we have to use Leave program or LEAVE TO CURRENT TRANSACTION.
    Delete Function is Defined as EXIT command. so it is not possible to give error message. To convice you i just copied demo program and raised the error message.
    it is also giving the dump.
    copy the demo program DEMO_DYNPRO_AT_EXIT_COMMAND and make this change , information to error .
    MODULE cancel INPUT.
      MESSAGE e888(sabapdocu) WITH text-001 ok_code input1 input2.
      IF ok_code = 'CANCEL'.
        CLEAR ok_code.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    and see...

  • Error Message in user-exit  EXIT_SAPLRRS0_001 in Query

    Hi,
    ABAP BW Guru's
    I got an ABAP  type problem with RANGE numeric variables  in EXIT_SAPLRRS0_001.
    With character or dates iuser-exits worke fine.
    My characteristic is CONNID Type  NUMC 4
    My user-exit variable is named CONNID_EXIT_STEP_2.
    My ABAP processing in the exit for the user-exit varibale is quite simple (testcase):
      DATA: l_e_t_range TYPE rsr_s_rangesid.
      l_e_t_range-low  =  '17'.
      l_e_t_range-opt  =  'EQ'.
      l_e_t_range-sign =  'I'.
      APPEND  l_e_t_range      TO   e_t_range.
    My Error message in the BEX Analyser is:
    Value "17" for user-exit variable CONNID_EXIT_STEP_2 is inavlid.
    What's wrong with the ABAP processing in the exit  (testcase) ?
    The debugger clearly shows l_e_t_range-low with value 17.
    l_e_t_range-low  seems is a character.
    Anyone can give a tip ?
    Thank You !
    Martin
    ThanXs

    Dear Karthik,
    You are right. First time my user exit execute, after that report automatically call message located Function Module LCOPDU13 504th row
         IF NOT SY-MSGID IS INITIAL.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    Message number is 806 message id is RU.
    Can you help me for fix this situation? I just want to add a data control in ZXCOFU05 user exit. For user fill data (werks based)
    Thanks your helpful answer

  • Error message in FM exit EXIT_SAPLIMR0_001

    Hi
    Is it possible to throw an error message from a function module exit which is invoked in update task or invoked from a subroutine on commit.Is there any workaround for this? I am using the FM exit in enhancement IMRC001 and trying to throw an error message when the measuring point of equipment reaches a maximum value. Message is displayed in the screen but after that when I perform some action e.g back or enter it gives a dump stating
    SYSTEM_ON_COMMIT_INTERRUPTED
    Error analysis
        During the COMMIT WORK statement, the following are executed:
        - the routines registered with the statement PERFORM .. ON COMMIT,
        - the registered methods for the events of the object services
          and
        - possibly the local update (SET UPDATE TASK LOCAL).
        An exception was raised and caught. The normal sequence of the routines
        was interrupted by this resulting in the program being continued before
        the call of COMMIT WORK. As this can lead to inconsistencies, the
        processing cannot be continued in the normal way.
    How can I solve this? Thanks in advance
    Sudip

    Hi All,
    I have written code for creating a notification of type 'M1' within the user exit EXIT_SAPLIMR0_001 when the total counter reading exceeds the upper range limit maintained for Measuring point.
    When it exceeds, it will trigger a notification and also a measurement document will be created.
    Past Reading for Total Counter Reading : 100552
    Total Counter Reading : 100601
    Upper Range Limit       : 100600
    Counter Reading which I enter : 1
    Difference : 49
    While I am trying to create a Mea. Document via IK11, it is creating 2 measurement documents one for the difference reading 49 when we enter the counter reading as 1 and the other document with zero difference reading.
    Can anyone suggest me on that??
    Earlier response will be appreciated..
    Regards,
    JK

  • Error while activating field exit

    hi all
    while activating field exit iam getting error
    like system is not configuted for field exit
    solution is Set the abap/fieldexit parameter to YES in the system profile and restart your SAP system
    then in which tcode  i can set the parameter
    thanks in advance

    1)Login to R/3
    2)Tcode RZ10
    3)Select instance profile
    4)click extended maintenance
    5)change
    6)Add parameter
    7)Abap/fieldexit -> save and activate the changes.
    Then restart you r/3 system.

  • Display error message in user-exit EXIT_SAPMP56T_002

    Hi,
    I'm doing a validation in user-exit EXIT_SAPMP56T_002 (include ZXTRVU03), and I want to display a error message. So, I'm using the instructions:
    continue_with_update = 'N'.
    MESSAGE ID xxx TYPE 'E' NUMBER yyy.
    What happens is that in SAP GUI it works fine, but in SAP Portal it gives a lot of java exceptions.
    Is there other way to display the error message that it works fine in the portal?
    Thanks.
    Sónia

    Hi,
    I tried with that but it doesn't work.
    With the instruction "Message ID..." the portal shows an RFC ERROR SYSTEM FAILURE with all that java exceptions.
    With your suggestion it does not retrieve my message, and instead it retrieves a customized message "Trip cannot be saved in this status, check mileage start and end location", that refers to the expense report and does not make any sense when I'm only creating the trip.
    Any idea for this?
    Thanks.
    Sónia

  • Display error message in user-exits for ME21n

    Hi,
    I want to give error message in exit EXIT_SAPMM06E_013
    but it is getting displayed as information and gets roll back .
    Can anyone help to display error message and stop there itself so that to give corret data and save.
    the code in this exit is as below.
    IF I_EKKO-BUKRS = '0800'.
        CLEAR:V_FLAG.
        READ TABLE TEKPA WITH KEY PARVW = 'ZN'.
        IF SY-SUBRC NE 0.
          MESSAGE E000(ZD)."'XXX' TYPE 'E'.
        ENDIF.
    ENDIF.
    Thanks,
    Suresh

    check this
    EXIT_SAPMM06E_012 to display error message
    especially look at the last post , adding the log.

  • Error in activating Field exits

    Hi...
       At the time of activating field exits data element , I am getting the message as " System is not configured for 
    field exits " . In a default profile I also set the parameter abap/fieldexit = YES & restarts sap logon too.
    Plz.. give me the solution ASAP
    Thanks in advance
    Deepa

    Hi Deepa,
    refer to this link
    Field Exits
    re: field exits
    hope it helps..
    Regareds!

  • Error message "EDI: Field SEGNAM in data record is default"

    Hi all,
    I am facing issue in Idoc creation. I am getting error message saying 'EDI: Field SEGNAM in data record is default' and so Idoc is not getting created.
    Can anybody tell me how to resolve this. I checked in debugging mode and found that this error message is coming from a standard program.
    Waiting for some good replies.
    Thanks,
    Archana

    Hi,
    Yes, it is getting displayed from FM 'EDI_SEGMENTS_ADD_BLOCK'.
    But not getting any clue how to resolve this as it is getting displayed from standard program.
    Any clue on this?
    Thanks,
    Archana

  • Raising error messages in user exit..

    hi,
    i have my code in sales order user exit FORM USEREXIT_SAVE_DOCUMENT.
    the code needs to check for a condition and if that fails i do not want to allow the user to save the sales order, rather do the change as i expect.
    i can display the message using my message class, right ? but then how to prevent further action of saving the sales order ?
    thks

    After you give the error message, set the FCODE to 'ENT1'.
    Like:
            message e398(00) with
                    'Some error occured. Press enter.'.
            fcode = 'ENT1'.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Infocube data extract to a flat file

    Hi, I have a requirement to extract data from a infocube into a flat file and send it to a 3rd party. The data in infocube is coming from erp and another 3rd party system. This combined data in inficube needs to be extracted and send to another 3rd p

  • Preview 5.0.1 (503) no longer displays inspector or Show Color- windows

    Recently, when I command +Show Inspector+ or +Adjust Color-+ * *no window appears*. Reading this topic alongside Preferences for Phone: blank in Address Book 5.0.1 (864), Mac OS X 10.6.2, I wonder if a recent installation of third party software is c

  • VPN Questions... What program should I use?

    I need to connect to a Watchguard Firebox X1000. The only program that I can find that might work is VPN Tracker. I just want to know what program everyone else uses to vpn and why. And if anyone else is in the same predicament as I.

  • Adapter not running

    Hi there! I'm trying to create a simple Delete User process task, but after configure it (well configured, I guess...), when I try to Revoke a user, the adapter doesn't even fire, nothing happens and the Task Status goes to "Cancelled". I can't track

  • Time Zone issues with iCal 2.0.3?

    I've been using iCal for a while now, and haven't had any problems until just recently. For some reason, meeting notices sent to me from Outlook (Windows XP) now appear in iCal with times for Africa (I am based in Arizona, and the people sending me t