Screen: illegal message in asset user exit

hi all,
I have done some validations in asset master user exit for some of the field while creating asset.
If for some valiation I put an error or warning message i.e.
message e001(zclass).
It just holds the screen and I cannot change the values. If I click BACK or EXIT button then it gives short dump saying:
screen: illegal message
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.............. "SAPLAIST"                                       
Screen number............ 1000                                             
Please advise.
Regards,
FS

Can u explain with example how you perfomed the check for the exit routine.
Thanks,
Noufal.p

Similar Messages

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR " Screen: Illegal message"

    Hi Experts,
    While deleting a sales order giving run time error.  PFB runtime error details.
    If you know any OSS message, please let m know. I tried, but there is no luck.
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situation
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the current
        screen.
    What can you do?
        Note which actions and input led to the error.
        For further help in handling the problem, contact your SAP administrator.
        You can use the ABAP dump analysis transaction ST22 to view and manage
        termination messages, in particular for long term reference.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    How to correct the error
        The program must be modified to correct the error.
        The modification must be made in "Exit Command" processing.
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
    Source Code Extract
    Line  SourceCde
        1 *---------------------------------------------------------------------*
        2 *       FORM YVBEP_LESEN                                              *
        3 *---------------------------------------------------------------------*
        4 *       Lesen der Tabelle YVBEP (nicht sortiert)                      *
        5 *---------------------------------------------------------------------*
        6 FORM YVBEP_LESEN USING US_POSNR
        7                        US_ETENR
        8               CHANGING CH_TABIX.
        9
       10   YVBEP = SPACE.
       11   YVBEP-MANDT = VBAK-MANDT.
       12   YVBEP-VBELN = VBAK-VBELN.
       13   YVBEP-POSNR = US_POSNR.
       14   YVBEP-ETENR = US_ETENR.
       15   READ TABLE YVBEP.
       16   IF SY-SUBRC > 0.
       17     MESSAGE E506 WITH US_POSNR US_ETENR.
       18   ENDIF.
    >>>>>   CH_TABIX = SY-TABIX.
       20
       21 ENDFORM.
    Could you please help on this issue.
    Thanks
    Srinu

    Hi Srinu,
    it looks like you got the error message Schedule line &1 &2 is missing in table YVBEP while deleting the sales order.
    It seems, that there are no SAP notes regarding this issue. Do you have this issue with all orders or with a single order?
    If only a single order causes this issue, maybe something was wrong during an update.
    If you get this error for many orders, then custom code (modification, enhancement, user exit in MV45AFZZ, ...) may be the reason for it.
    If you have no custom code in module pool SAPMV45A, then contact SAP for this issue.
    Regards,
    Klaus

  • Message error on user-exit MV50AFZ1

    Hi!
    I need to send a message error on user-exit MV50AFZ1 (VL01N), but I can't, because when I use BAPI_DELIVERYPROCESSING_EXEC for create deliveries, it will abort my program.
    My program try to create many deliveries together, when occurs a message error, I don't know what order is the problem!!
    Thanks,
    Tatiana

    Hello.
    In the exit, use a condition like:
    IF sy-tcode EQ 'VL01N'.
      MESSAGE E000(...)
    ENDIF.
    This will avoid the error in BAPI execution.
    Regards,
    Valter Oliveira.

  • Warning message in an User Exit

    Hi folks,
            In an user exit, I have to check a condition, and if it is satisfied i need to display a message box with some warning information. I am not supposed to use FM like 'POPUP_WITH_WARNING' as it is displaying big box.  So i am trying to use message-id with warning type. But as it is a exit (include program), i am unable to define a message-id in the include program. Is there any way to define a message in an user exit include or do we need to use any FM to display pop up warning message.
    Please suggest me.
                           Thanks,
                           Shyam.

    you need not define the Message Class in user-exit. You can use the system class SY
    write the code as
    message w499(sy) eith <text>
    where 499 = message number
              sy = message  class
    hope this helps,
    Raj

  • Dumb question about E messages generated in user exits called from dialogs

    After a user enters goods receipt info in MIGO and hits POST, there is a user exit (EXIT_SAPLIE01_007) which receives a copy of the goods receipt table (xmseg) from MIGO and lets you do whatever you want before the MIGO update task is called.  In other words, you're still in the MIGO dialog process.
    I have successfully used this exit before to pop an editable ALV that lets the user enter custom data per line item, and then store this data in memory so it can be accessed in MB_DOCUMENT_BADI or in the equivalent XMBC exit (enhancement MB_CF001).
    But here's my question.
    Suppose I generate an "E" message in EXIT_SAPLIE01_007. 
    Will this stop the MIGO "POST" so that the update task isn't called?
    And will the text of the "E" message be displayed at the bottom of the main MIGO screen (the one you hit "POST" from) ????
    Edited by: David Halitsky on Feb 21, 2008 9:03 PM
    Edited by: David Halitsky on Feb 21, 2008 9:04 PM

    Hi David,
    it seems that you will get it:
    E in Status bar
    +behaviour:     +
    PAI processing is terminated, and control returns to the current screen. All of the screen fields for which there is a FIELD or CHAIN statement are ready for input. The user must enter a new value. The system then restarts PAI processing for the screen using the new values. Error messages are not possible in POH or POV processing. Instead, a runtime error occurs.
    according to help [http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaabc35c111d1829f0000e829fbfe/frameset.htm]
    best regards,
    Wojciech

  • Returning to initial screen with earlier values from USER EXIT

    Dear All,
    I'm creating message invoking code in one of the user exit in the FB60 Transaction. When the user saves the invoice, as per code, an error message is displayed if the invoice is for a particular order. but after showing the message , the transaction itself is getting terminated. The type of the message is 'I'.
    We require that after showing the message, the user should get back to the earlier screen with earlier values of all fields except ORDER number.
    In short it should lead us to change the order number and nothing else.
    Please help as it is really an urgent issue.
    regards
    Ajay.

    hi ajay,
    i do not know the complexity of your user exit,
    maybe you could try using 'SET CURSOR FIELD <fieldname>.'
    but SET CURSOR would only work for types C,N,T .
    try it out and transfer me with your knowledge if you find another way out
    cheers,
    Aditya.

  • Need selection screen values in Search help user exit in same report

    Hi Experts,
    I am using Logical Data Base PNP.
    Created a custom search help to validate the records for IT000 based on the selection screen dates.
    Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
    When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
    This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
    As of now it's picking the employees based on the DATE selection of selection screen,
    Regards,
    Prasad

    Hi,
    Go Ahead as mentioned by Satyesh T - (Option two).
    Reading Select Options from DYNP_VALUES_READ
    reffer the above link for getting more clarity for using  'DYNP_VALUES_READ'
    Regards.
    Arun

  • Selection screen values in global variable user exit

    Hi all,
    I made a project report global variable of type 3 (User Exit) and I develop the related code in enhancement KKDR0001 component EXIT_SAPLKYP1_003. In this code I need the value of project definition that user entered on selection screen.
    Does anybody know how can I get this data?
    Thanks!

    Hi,
    You can do the following for getting project in Earlier screen
    Data: l_string(20) type c
    Field-symbols: <fs> type any.
    l_string = '(Screen)variable name'.
    assign l_string to <FS>.
    Just try above...

  • Message type in user exit

    Hi,All,
    In Tcode AS01,I use user exit AISA0001 to check the value of ANLA-SERNR,if the value did not fit the rule,raised an error through "message ... type 'E' or message exxx with ...", now the problem occured, although I enter new value for the field SERNR,in the user exit, I got the old value,It seemed that the PAI did not trigged again.
    Does anybody can help?
    Thanks very much!
    Pole
    Message was edited by: gw gw

    Hi there,
    Not sure if this will help as im not sure at what point the user exit is called, but there is a method to access field values available in the main SAP program from within the user exit using field symbols. The code for this is as follows:
    field symbol declaration
      FIELD-SYMBOLS: <status>.
    Assign value of variable from calling prog to field
    symbol
      ASSIGN ('(SAPMM06E)RM06E-BSART') TO <status>.
    The value will now be contained in the field symbol
    <status> which can be used as usual i.e.
      message exxx with <status>.
    Hope this helps
    regards
    Mart

  • Best practice on integration message augmentation via user exit or rfc call

    I am looking for documentation that would provide best practices on whether to use user exits to augment the data on an IDOC or to forward the standard SAP produced IDOC to PI where rfc calls are made to augment the data as required for the specific target system.
    I am sure there are pros and cons for both solutions, but I am hesitant to use user exits since we now have moved the knowledge of what a target system wants from the integration layer to the source layer.  If a second target system comes along in the future, the user exit becomes more complicated with additional target specific requirements. 
    Any links to best practice documentation on this subject is greatly appreciated.
    Edited by: Sean Sweeney on Oct 15, 2009 6:59 PM

    Hi Steve,
    Might be trying for solution for a long time, If i understood your question clear let me clarify you few points.
    You are trying to access the bex query which is designed with the exit's in the background based on the logic and trying to call the entire dimensions and key-figures in a single connection. Then you are trying to map those data in the charts.
    Steve, try to make more connections based upon the logic and split them. use the same query but split them by sales per customer group, sales per day, sales per week by making three different connections and try. You can merge the prompts from all connections.
    Hope this Helps!!!
    Sorry if i misunderstood your question.
    --SumanT

  • VA01-VA02 : Error message in a user exit / MV45AFZB

    I everyone,
    i want to add an error message in the exit "USEREXIT_CHECK_VBEP" (MV45AFZB) but when i do so it displays the following abend message :
    "Incorrect index structure for table XMVERF_POS
    /0000000222 /000030 "    (V1322).
    just after mine.
    do you have any idea ?  
    Xavier.
    PS : I use SAP ECC5

    Hi Xavier,
    Here is the explanation when you get this type of error:
    Short Text
    Incorrect index structure for table &
    Diagnosis
    Internal error.
    Procedure
    Repeat the transaction.
    If the error occurs and you have a CRM System connected to your ERP System, the document may have been archived in the CRM System.
    If the error occurs again, inform your system administrator. If the error cannot be corrected, call the SAP Hotline directly. Describe which steps preceeded the error.
    This is the long text description of that error message, so please let me know what next i mean whether you checked this and took the necessary action as explained above.
    let me know if your problem still persists, else kindly close the thread.
    Regards,
    Yugandhar

  • Display error message in SD user exit

    Hi,
    I want to display an error message in FORM USEREXIT_CHECK_VBAP. (Include MV45AFZB)
    Afterwards, the user should be able to correct the wrong values, but the fields are locked because of the error message. How can I keep the relevant fields open?
    Thanks in advance
    Roland

    Hi,
    Instead of giving an error message...Probably give warning message..
    If you give error message..It will lock the entries..
    Thanks,
    Naren

  • User exit message problem

    hi all
    i am giving an error message in a user exit the error message comes as a pop up and moving ahead takes me out of the transaction i seriously donot want this.
    even worning messages are coming as success ones
    is there a way out for giving error msg
    regards
    navjot

    Post details of the transaction code you are trying to issue the message in, and of the exit you are using.
    Often transactions have multiple user exits, and you may be using the wrong one to issue the message.
    In some cases like Purchase Orders you need to call SAP code / macros to add the message to a list of messages that the standard screen will then display.
    Andrew

  • 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.

  • User exit/BADI for VT03N Shipment overview screen

    Hi All,
    I have a requirement to add a custom field to the shipment overview screen. This field will be populated with one of the special partner function on the delivery and should be displayed in the shipment overview screen.
    Are there any user exits/BADI's available for the same?
    Regards,
    Nilesh.

    Hi Nilesh,
    in our ECC600 system I found the implementation /DSD/CL_IM_RP_SHPMNT_EXT. Please have a look at the methods implementation, this may provide a solution for you.
    You can also check the customizing IMG. For sales and distributuion you can find a lot of text documents explaining customer extensions.
    Kind regards
    Clemens

Maybe you are looking for