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

Similar Messages

  • 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

  • Client Copy Error - ERROR: Type 'F' user exit with SYS_ERROR:

    Hello,
    We want to create a client copy from client 001 to clien 715.
    The client copy test runs successfully.
    The following error occurs in normal mode of client copy.
    1 ETA028XClient copy from "03.11.2010" "17:12:43"
    1 ETA029 System ID............................ "IS3"
    1 ETA043 Target client........................ "715"
    1 ETA030 R/3 Release.......................... "701"
    1 ETA354   Basis Support Package..............."SAPKB70107"
    1 ETA031 Host................................. "xxx"
    1 ETA000 Start in background............. ....." "
    1 ETA032 User................................. "SAP*"
    1 ETA033 Parameter
    1 ETA034 Source client........................ "001"
    1 ETA188 Source client user masters............"001"
    1 ETA185 Copier profile:......................."SAP_ALL"
    1 ETA036 Table selection
    1 ETA177 Customizing data ....................."X"
    1 ETA037 With application data................ "X"
    1 ETA155 Initialize and recreate......... "X"
    1 ETA294 Change documents are not copied
    2 ETA367XStart analysis of system "17:12:43"
    3 ETA108 "/GC1/CC_EXIT_CLIENT_DELETION" executed "        0"("        0") entries copied
    4 ETA114 Runtime "             0" seconds
    3 ETA072 Exit program "/GC1/CC_EXIT_CLIENT_DELETION" successfully executed "17:12:53"
    A2EE/SAPAPO/OM 012 "Mandant 715:" "Verbindung nicht oder fehlerhaft gepflegt:" "IS3CLNT001" " "
    2 ETA102 ERROR: Type 'F' user exit with SYS_ERROR: "/SAPAPO/OM_CLNT_COPY_DOWNLOAD"
    2 ETA534 "RCOD:" " 8" "SY-SUBRC:" " 0"
    2 ETA191 Program ended abnormally
    Can you help me?
    thx
    Torsten

    Torsten,
    Are you doing a local client copy in a SCM System. I can see it fails & is looking for SCM specific fn modules & user exits.
    If yes, has a look at this notes there are some steps that needs to be done for the transactional date:
    894490 - Client copy: Transactional data
    And re-post it in the SCM forum: SAP Advanced Planning & Optimization (SAP APO)
    - Regards, Dibya

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

  • Types of USER EXITS user for enhancement

    Can any one please let me know the types of USER EXITS user for enhancement normslly used in SD module.
    Thanks

    Hi,
    here you can find what's enhancement (overview), the steps, and exits in bw ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    and later abap in bw may useful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    for general understanding of enhancement, take a look this 'Changes to the SAP Standard ' doc
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975a043b111d1896f0000e8322d00/frameset.htm
    ... Enhancements represent potential customer requirements that have not been developed in the standard software. Instead, the standard provides for further development of such exits at the customer site, using logic specific to the customer ...
    some threads on data extraction enhancement
    Enhancement
    Re: User exit
    Hareesh

  • 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

  • PO document types and user exit

    Hi freinds
    There is a typical issue I have. The Document types required by my client is huge. I want to bring them down. Is there any way it can be done using user exits. If yes how to do the same.
    Regards
    Eldee

    Hi Dev,
    To reduce the document types you have to delete those entries from customizing tables you need not have to use user exit for that
    Which document types you want to reduce?
    BR
    Diwakar

  • Output type in user exit USEREXIT_SAVE_DOCUMENT in VL02N

    Hello all, i am using the user exit USEREXIT_SAVE_DOCUMENT in include MV50AFZ1 to process some information when delivery is saved in VL02N.  The problem is i have to limit this to a certain output type.  There are 3 different ones that the user can choose from and i have to be able to know which one they did. 
    Does anyone know what table is used to store this information that i can read in the user exit?  Or is there a FM to get that information?
    Thanks in advance for your help.
    -- David

    Hi
    Check This table  T685B and this view VN_T685B for output ..
    Regards.

  • 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

  • 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

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

  • Message to display in MIGO user exit

    Hi everyone,
    I have used a User Exit EXIT_SAPMM07M_001in migo for automatic batch generation, the problem is that when I give the message in the user exit it does not pop up the information.
    E.G. message 'Batch is xyz' type 'I'
    also i have tried to use the function module POPUP_TO_CONFIRM but this also does not give a pop up display.
    How can I go about giving a message popup in MIGO .
    regards
    Yao Chhang

    Maybe it's not running the code in the exit.
    You can check this by add some lines to a logfile on the application server for testing purposes.
    data: l_dataset type string value '/export//intf/abaptemp/zzhstest0001.txt',
          l_string type string,
          l_string2 type string value '**********************************************'.
    open dataset l_dataset for appending in text mode encoding default.
    l_string = 'Test 1'. transfer l_string to l_dataset.
    concatenate sy-Datum sy-uzeit sy-uname into l_string. transfer l_string to l_dataset.
    l_string = l_string2. transfer l_string to l_dataset.
    close dataset l_dataset.
    Run the program.
    Check the logfile.
    regards,
    Hans
    Please reward all helpful answers !!!!!

  • 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

Maybe you are looking for

  • WAN light not working!

    My Network extender just currently stopped working out of the blue. My WAN light is not coming on at all, my ethernet cable is plugged in correctly. I even switched out the cable just in case the cable went bad. I have reset the system and still no W

  • #1 Complaint(s) about Business Catalyst missing features

    I am posting this as a relative newbie to BC but as a long time ( since1994) web designer and programmer.  I encourage others to respond with their own suggestions for improvement. 1. The lack of responsive templates AND responsive menus    ( I find

  • Hard Drive getting full in a strange manner

    OK, U have an internal HD with a capacity of 92.84 GB. Until earlier today I had 15 GB available. I have been backing up my data to a Time Capsule, and the only thing I can think of is that the data is being backed up to the internal HD instead. That

  • Avoiding Z-table and having a global internal table during Sales Order

    Hi All, I have a requirement like this. 1. In the R/3 system I am creating Sales order. 2. For each line item, it will call APO system to check the availability of the materials and the informaiton is returned back to R/3 system. 3. As the soon as th

  • Enter Condition in SM30

    Hi All, I have a requirement wherein I am creating an custom table with table maintenance generator with 1 screen but client want that before going into the single screen view of the table maintenance generator a dialog box should come where we have