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.

Similar Messages

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • 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

  • User exit MV50AFZ1

    Hi all,
    I need to do some activity when TO (Transfer Order) is confirmed. The exit 'MV50AFZ1' will be triggered when i confirm the TO but inside the exit, only Delivery tables are populated but not the Transfer Order tables.
    The activity that i need to do should only be done when TO is confirmed. But the exit will trigger for all the delivery related things.
    How would i restrict my activity to perform only when TO is confirmed?
    could someone help me with this please?
    Thank you.
    Suresh.

    Hi Suresh,
    User exit MV50AFZ1 is  used for the purpose of Delivery Doc related tables to move some fields into the  delivery header work area LIKP. 
    So the moment when the TO is Confirmed the Picking will be confirmed and Del table will be externally updated.
    Warehouse related info will not be triggered through this Exit.If you need to control then your logic should not be with this Exit.Put a break point in TO program. I dont remember if there is any specific Exit for TO but I think you can still control.
    On the whole I still did not get your problem statement properly.
    Regards,
    Hari
    Singapore

  • 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

  • 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

  • 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

  • System Error in User exit.

    Hi Guys,
    I am working on a PO exit(Enhancement: MM06E005 and Component: EXIT_SAPMM06E_013), the problem I am facing is if i throw an error message, it gets displayed as information message and then pop ups a system error message (error in method PO_CHECK).
    I tried using BADI and got the same message.
    If I use a different component EXIT_SAPMM06E_013, I am getting the error message.
    Any thoughts on this.
    Regards,
    Madhu C

    I'm doing two-step picking.
    First step is creating wave pick (delivery grouping) based on shipment (transaction VL35_S) and then transfer order for group (transaction LT0E).
    In that moment, it is possible that I transfer on the bin less materials then needed (variable weight, etc.) .
    When doing collective picking (VL06P) for the deliveries from the bin, it could happen shortage on the bin end I get the message 'System cannot find source storage bin' which is OK but I don't want to klick on the screen for every item shortage.
    Hope you got the picture ...
    Ante

  • Error in user exit for System menu

    Hi,
    I was working on the user exit for the System menu.
    There was some error in the menu exit I added and then logged off.
    Now when I am tryin to log in the system again and error is given without allowing me to login because the initial log on screen loads the system menu.
    Can anyoone help me resolve this issue.
    Edited by: Ashutosh Tripathi on Mar 26, 2008 11:16 AM

    Michael,
           Thanks for the quick response,
    I did check in IMG, an entry is already there, the 'primary field' is checked,
    USD is assigned to the iso code USD.
    Regards,
    Disney.

  • 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

  • ABAP program error for user EXIT

    Hi, I wrote code in  EXIT_SAPLRSAP_001
    When check and active it there were no syntax errors but when go rsa3 and check it gives an error at the follwing line
      it_mcekpo[] = c_t_data[].
    Runtime error: The internal talbles are neither compitable nor convertable.
    I have defined it_mcekpo as below:
    DATA  BEGIN OF IT_MCEKPO OCCURS 1.
            include structure mcekpo.
    DATA  END   OF IT_MCEKPO.
    But when I double click on 'c_t_data[]' , I get a message "object not defined, do you want do define".
    Can some one tell me how should I define this, what aption I should choose and what is the strcture.
    I am trying to add afnam, banfn and bednr from ekpo table to MC02M_0ITM (2LIS_02_ITM).
    And is there any naming convention for 'it_mcekpo' and 'c_t_data'?
    Any help is appreciated.
    (This is my first userexit)
    data: begin of it_ekpo occurs 0,
          ebeln like ekpo-ebeln,
          ebelp like ekpo-ebelp,
          afnam like ekpo-afnam,
          banfn like ekpo-banfn,
          bednr like ekpo-bednr,
         bukrs like ekpo-bukrs,
      end of it_ekpo.
    when '2LIS_02_ITM'.
      it_mcekpo[] = c_t_data[].
      select ebeln ebelp afnam banfn bednr bukrs
      from ekpo  into table it_ekpo
        for all entries in it_mcekpo
        where ebeln = it_mcekpo-ebeln and
              ebelp = it_mcekpo-ebelp.
    performance imprv.
      if not it_ekpo is initial.
         sort it_ekpo by ebeln ebelp.
      endif.
      loop at it_mcekpo.
        read table it_ekpo with key ebeln = it_mcekpo-ebeln
                                    ebelp = it_mcekpo-ebelp
                                    binary search.
        if sy-subrc = 0.
          it_mcekpo-zzafnam = it_ekpo-afnam.
          it_mcekpo-zzbanfn = it_ekpo-banfn.
          it_mcekpo-zzbednr = it_ekpo-bednr.
         it_mcekpo-zzabukrs = it_ekpo-bukrs.
       endif.
       modify it_mcekpo.
    endloop.

    Hi,
    TRY the below code :
    TYPES BEGIN OF TYPE_02ITM.
         INCLUDE STRUCTURE MC02M_0ITM.
    TYPES END OF TYPE_02ITM.
    TYPES:  BEGIN OF TYPE__ekpo,
    ebeln like ekpo-ebeln,
    ebelp like ekpo-ebelp,
    afnam like ekpo-afnam,
    banfn like ekpo-banfn,
    bednr like ekpo-bednr,
    bukrs like ekpo-bukrs,
    end of type_ekpo.
    CASE I_DATASOURCE.
    when '2LIS_02_ITM'.
    WHEN '2LIS_02_ITM'.
    DATA:
      ITAB_EKPO TYPE STANDARD TABLE OF TYPE_EKPO
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:
      ITAB_02ITM TYPE STANDARD TABLE OF TYPE_02ITM
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    ITAB_02ITM[] = C_T_DATA[] .
    select ebeln ebelp afnam banfn bednr bukrs
    from ekpo into table itab_ekpo
    for all entries in ITAB_02ITM
    where ebeln = ITAB_02ITM-ebeln and
    ebelp = ITAB_02ITM-ebelp.
    performance imprv.
    if not itab_ekpo is initial.
    sort itab_ekpo by ebeln ebelp.
    endif.
    loop at ITAB_02ITM.
    read table itab_ekpo with key ebeln = ITAB_02ITM-ebeln
    ebelp = ITAB_02ITM-ebelp
    binary search.
    if sy-subrc = 0.
    ITAB_02ITM-zzafnam = itab_ekpo-afnam.
    ITAB_02ITM-zzbanfn = itab_ekpo-banfn.
    ITAB_02ITM-zzbednr = itab_ekpo-bednr.
    ITAB_02ITM-zzabukrs = itab_ekpo-bukrs.
    endif.
    modify ITAB_02ITM.
    endloop.
    c_t_data[] = ITAB_02ITM[].
    With rgds,
    Anil Kumar Sharma .P

  • Incorrect nesting error in user exit include

    Hi,
    In one of my requirement I had to add an additional screen using EXIT_SAPMM06E_016, this Function module exists in XM06 Function group, this exit holds an include ZXM06U41.
    This function group holds screens, so when I implement a screen and create the PBO module in this particular include, it by default includes
    MODULE STATUS_XXX OUTPUT.
    ENDMODULE.
    When i check this include it says:
    Incorrect nesting: Before the statement "MODULE", the structure introduced by "FUNCTION" must be concluded with "ENDFUNCTION".
    I have no clue where the open function is?
    Your help will be very much appreciated.
    Please help.
    Thanks,
    -Sandeep

    You cannot define a screen module in a function module code.
    Refer to available documentation how to properly implement enhancements of this kind. Enhancement name is MM06E005 (in SMOD). Screen definitions and the corresponding modules will happen in function group XM06, not in the exit function module.
    Edit: To elaborate, your PBO module will go into include ZXM06ZZZ, or better yet, into new include ZXM06O01 which should be part of ZXM06ZZZ (just to keep the usual naming convention).
    Edited by: Tamas Hoznek on Feb 28, 2012 2:51 PM

  • [SOLVED] Messages (errors?) when exiting openbox

    I start openbox from the command line with the startx command. My .xinitrc consists of:
    exec openbox.session
    After exiting I have the following two lines on my console that I don't understand:
    which: no hsetroot (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl)
    which: no esetroot (/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl)
    Last edited by kfrazier (2011-10-14 16:45:15)

    Do you have hsetroot installed?
    esetroot is in the AUR: https://aur.archlinux.org/packages.php?ID=4537
    Last edited by karol (2011-10-14 16:07:48)

Maybe you are looking for