Error message at VA01

Hi guys,
I've tried to display an error message and I know that it makes all field greyed out.
Is there a way there I can validate header data and prompt the user a message?
I've searched around but no avail. I've tried coding at MV45AFZZ, MV45AFZB but its not working as intended.
Thanks for your time!.

Hi Rafael,
Sorry but it appears I can't use macro message in the exit. anyway yeah, solved the problem.
I coded the error message in userexit_save_document_prepare.
From SDN searches:
MESSAGE lv_b TYPE 'I' DISPLAY LIKE 'E'.
         PERFORM folge_gleichsetzen(saplv00f).
         fcode = 'ENT1'.
         SET SCREEN sy-dynnr.
         LEAVE SCREEN.
So far its working well.
Thanks for all the help.

Similar Messages

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

  • To change the warning message to error message in VA01.

    I want to change the warning message into error message in the standard VA01 transaction..
    The steps I follow :
    order type -->
    enter
    sold to part -->
    ship to party -->
    Purch order no -->
    Req deliv date -->
    Material -->
    Order quantity -->
    SU -->
    enter.
    The warning error dispayed is
    No add. vendor / customer data maint. for 16320340 - please maintain J_1IMOCUST...
    Want to change the above into error so that it shud not go further.

    Hi Arif,
    Click on Save  Icon.
      System will give information: No add. Vendor / Customer data maint. For INJ95C01 -Please maintain J_1IMOCUST.<b> Ignore it.</b>
    Result
    System will calculate Price of the Material creates Schedule Lines and saves the document. System will give a message: Standard Order has been saved.
    <b>**REWARD IF THIS HELPS WITH POINTS**</b>
    Regards
    AK

  • SO items are refreshed after showing error message in VA01

    Dear experts:
    I have a problem in VA01, please kindly help me.
    If we use the expression " message err_msg type 'E' " in userexit_save_document of MV45AFZZ , the system would show pop-up window with message "Item 000010 does not exist", then I can only quit VA01 screen and input SO data again.
    Why the so items are refreshed and how to solve this?Thanks a lot!

    Hi,
    Bcoz you are using Error   ("E") message .if u will use meassage type 'W' or 'I'(information) it will not happend. use any one.
    OR if want only error message u have to use in AT EXIT-COMMAND.
    regds,
    paras

  • Problem after raising an Error message in VA01

    Requirement: I need to raise an error message when a particular item and sold to party combination is not having any live contract.
    What I did: In USEREXIT_MOVE_FIELD_TO_VBED.
    1.     XVBAP having item details
    2.     VBAK structure having header details (I will get sold to party here)
    3.     VAPMA structure having the contract detail if any contract is exist.
    Here I raised an error message and its getting raised properly.
    Problem: Once the error message came I can’t able to clear or delete that line item (in va01 screen), I am getting an error message” No item category is available” only I can go back without saving.
    And I have tried in USEREXIT_MOVE_FIELD_TO_VBAP. Here I am not able to access the contract details from VAPMA (coming as blank)
    Please help me to clear this problem

    Use the form-exit USEREXIT_MOVE_FIELD_TO_VBAP.
    You can retrieve the VAPMA data as:
      SELECT * FROM VAPMA WHERE MATNR = US_MATNR AND
                                VKORG = US_VKORG AND
                                TRVOG = US_TRVOG AND
                                VTWEG = US_VTWEG AND
                                SPART = US_SPART AND
                                KUNNR = US_KUNNR.
    You will find this code in form VAPMA_SELECT in include MV45AFDB_VAPMA_SELECT

  • ERROR MESSAGE for VA01

    hi all,
         i wanna add a userexit for VA01 in program MV45AFZZ to check if reference field in Accounting Tab is initial before i save this sales order.
         when i add the belowing code in Form USEREXIT_SAVE_DOCUMENT,and press save buttom twice.
    CONSTANTS: c_bukrs_vf TYPE vbak-bukrs_vf VALUE 'PK04',
                 c_auart TYPE vbak-auart VALUE 'ZOR',
                 c_ucomm TYPE sy-ucomm VALUE 'T\04',
                 c_text TYPE char40 VALUE 'Please enter Policy reference',
                 c_type TYPE c VALUE 'E'.
      IF vbak-bukrs_vf EQ c_bukrs_vf
       AND vbak-auart EQ c_auart.
        IF vbak-xblnr IS INITIAL.
          FCODE = FCODE_GLEICHE_SEITE.
          MESSAGE c_text TYPE c_type.
        ENDIF.
      ENDIF.
        there's a error message that 'item 00010 doesn't exist.',then i exit this transaction.
        if i put these code in Form USEREXIT_SAVE_DOCUMENT_PREPARE, it works fine.Could anyone give me any suggestion for the reason?Thanks in advance.
    Thanks and Regards.
    Desmond.Yang
    Edited by: desmondyoung on May 25, 2009 4:08 AM

    Hi Yang
    generally USEREXIT_SAVE_DOCUMENT_PREPARE is used when some validations are required before saving any sales order, here we are not updated any tables.
    While USEREXIT_SAVE_DOCUMENT is used for saving sales order in some tables other then standard or some manipulations required before saving data to tables.
    In  your case you are just validating the sales order not manipulating data, hence go for USEREXIT_SAVE_DOCUMENT_PREPARE.
    try and revert

  • Profit center error message in VA01

    Hi,
    I am getting error message while creating sales order
    " Profit center 2000/1500 does not exist for 08.11.2008 "  - what could be reason ????
    My material is T-AU214 in IDES  sales org 1000, DC 12
    Thanks,

    Dear SM,
    Profit center 1500 does not exist in controlling area 0001
    Go to:
    T. Code: KE51 - Create Profi Center
    Key-in Controlling Area (say, 0001 in your case).
    Next, Key-in Profit Center (i.e. 1500)
    and either hit ENTER or Click Tab: Master Data
    Once you enter, Maintain entries in respective Tabs:
    1. General Data
    2. Basic Data
    3. Company Code
    Also, when you maintain all the data, You just check with Tab: Period of Examination;
    There, you maintain data -
    --> Valid From
    --> Valid To (as 31.12.9999)
    and confirm.
    Eventually, this must resolve your earlier error of:
    Profit center 2000/1500 does not exist for 08.11.2008
    Best Regards,
    Amit
    Note: This information is just for Knowledge-sake; but i must suggest that you should contact to your FI-Counterpart. Its always better if right person do the job.

  • Error message in VA01

    Dear SAPians
    when iam saving the order in VA01 Iam getting this error "Flow control: Entry SAPMV45B, PKAL, 50, * , * , * is missing in T185 "
    Kindly let me know the solution for this Issue.
    Regards
    Prakash

    Hi,
    Kindly implement the OSS Note 160780 and check.
    It will help to resolve the issue.
    Thanks & regards,
    Rahul Verulkar

  • Error Message while ship to party is not assigned to sold to party in VA01

    Hi All,
    In VA01, i need to throw an error message while giving a ship to party, which is not assigned to sold to party.
    I tried in  EXIT_SAPLV09A_001
                  EXIT_SAPLV09A_002
                  EXIT_SAPLV09A_003
                  EXIT_SAPLV09A_004
    above user exits, but i couldnt find the solution.
    if possible provide with the code.
    i appericiate the early response.
    Regards,
    Kumar.

    User exit MV45AFZB, form-routine USEREXIT_CHECK_VBAK.

  • VA01  error message

    Hi Experts,
                    I do have one issue.
    The issue is that for example I have a text "SUDHEER"  for Delivery and Billing block in VA01 Tcode..
    If the enduser enter the value "SUDHEER" in Delivery or Billing Block when he saves it the message should comes as u have entered wrong text .so that  the enduser undertsands that he should enter other text in Delivery and Billing Block.
    I have written the code for this, but with an Error message.For this purpose the screen is unable to proceed .so i need a code how to enter another text when wrong text is placed.
    If i give Information message if we save it,it will be saved so i need allow the enduser till he enters data in the Delivery and Billing Blocks correctly instead of "SUDHEER".
    The code is as follows.
    if
      ( t180-trtyp = 'H' )  and
      ( vbak-lifsk    =  'SUDHEER' or vbak-faksk = 'SUDHEER' ) .
       message e398(00) ' Wrong Entry'.
    Thanks in Advance,
    Sudheer.

    You can do that here...
    in the include.
    MV45AFZB
    i did that once, here you can raise the error message, place your code in the below form.
    *&      Form  USEREXIT_CHECK_VBAK
    *       This Userexit can be used to add additional logic for         *
    *       checking the header for completeness and consistency.         *
    *       US_DIALOG  -  Indicator, that can be used to suppress         *
    *                     dialogs in certain routines, e.g. in a          *
    *                     copy routine.                                   *
    *       This form is called from form VBAK_PRUEFEN.                   *
    FORM USEREXIT_CHECK_VBAK USING US_DIALOG.
    ENDFORM.

  • VA01 Error Message - Partners Validation

    Hi Experts,
    I have written a code to validate the partners(Sold-to & Ship-to) while creating a sales order in VA01 (program 'MV45AFZB') ( user exit form: USEREXIT_CHECK_VBAK).
    If an invalid relationship is detected, this enhancement will display an error message and stop the sales order creation until the correct sold-to/ship-to relationship is entered or maintained.
    I could able to give the error message based on the validation but the all the fields(Sold-to & Ship-to) on the screen are grayed out and are not ready for input.
    Please suggest if there is any way to make these fields input enabled.
    We are using SAP version ECC 6.0
    Thanks in advance,
    Anil

    Hi Keshav,
        Thanks for your reply. By including the code in SAVE_DOCUMENT_PREPARE of MV45AFZZ I could able to give the error message. Still all the fields are grayed out. and I need to rerun the transaction VA01 with the correct sold-to and ship-to partner data.
         Please suggest is there any other way to correct the ship-to data without re running the transaction VA01. After displaying the error I want the Ship-to and sold-to fields should be displayed as input enabled fields.
    Thanks,
    Anil

  • 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

  • Error message Address doesn't exist 24593 in t-code va01,va02,va03

    Hi Friends,
    After entering order in T-code va03 i get the error message Address doesn't exist 24593 .
    please guide
    thanks in advance,
    regards.
    Bhaskar

    Check your ship-to Party.
    Also read the S-note 865271

  • PSM - Error while Posting (FI311 Error Message)

    Hi,
    We have activated Funds Management in our company code,
    We have used FMDERIVE for derivation rule for Costcenter-Funds Center, GL A/C to Commitment Item
    We have also declared "Statistical Commitment" for Certail GL Accounts,
    But System produce error message during following transactions:-
    VA01- Sales Order,
    MIRO- Invoice Verification
    MIGO- Goods Receipt
    F-58    Bank Payment.
    System is not allowing the above transaction for posting, in trun it gives the message No commitment item is derived - FI311 Error message,
    What is the root cause ?
    regards
    N.Kumar

    Hi,
    It might be too late to answer this question.
    Please check whether the commitment item assigned to the GL account has financial transaction 40 assigned to it.
    If it is not then you need to create a new commitment item with FT 40 and assign it to GL account in which you want to post GR.
    Your problem will be solved.
    Thanks
    Sanjay

  • 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

Maybe you are looking for

  • Linked files and underlined text confusion

    I'm running into some unexplained and strange behaviors in a simple Web page I just put up. The URL is http://www.elliottbaypipeband.com/Chunes/EBPBMusic/2011Music.html Problem 1: I've linked PDF files to text that describes the tune names. These lin

  • Number Finding

    Hi Team I have a query about finding the number like input data like 1234528215 Then ouput should be Number--Repeted Count 1-----------2 2-----------3 3-----------1 4-----------1 5-----------2 8-----------1

  • IDOC getting processed in reverse order

    Hello All, In our system whenever changes are made in the customer master an IDOC is generated. In my scenario i have created a ship to party for which an IDOC got generated as say 10. Now i add this ship to the sold to party due to which another IDO

  • From where can i get version 1.0... imp

    hello everybody,i know i may sound old & everything but i've just had a 60 GB ipod video which came with software version 1.1 & i need to downgrade to 1.0 ... all i need is the link from where i can download the old updater (1.0) & the way to downgra

  • Instaling Oracle 11.5.10.0.2 in External Harddrive

    Hi All, i have windows vista premeium (160 gb, 2gb ram, 2.2ghz) Laptop Is it possible to install oracle 11i in external hard drive and able to use that harddrive with my laptop. Any advise whould be appreciated Thanks, Amar