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

Similar Messages

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR

    hi to all experts,
    whenever i try to delete a particular sale order im getting a runtime error
    stating that
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situat
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the cur
        screen.
    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
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT
    SourceCde
                  message e001(zm) WITH text-335 ltab-kunnr text-334.
                else.
                  if ktab-jkunnr <> ltab-kunnr.
                    ktab-jkunnr = ltab-kunnr.
                    jobsitecode = ltab-kunnr.
                    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                    EXPORTING
                      input  = jobsitecode
                      IMPORTING
                      output = jobsitecode.
                    SELECT SINGLE * FROM kna1 WHERE kunnr = jobsitecode.
                    IF sy-subrc = 0.
                      ktab-jname1 = kna1-name1.
                      ktab-jstras = kna1-stras.
                    ENDIF.
                    chg_flg = 'X'.
                  endif.
                endif.
              else.
                message e001(zm) WITH text-336.
    * Validation for relationship between Sold-to Party and Ship-to Party
    *          if ktab-ckunnr+0(4) NE ktab-jkunnr+0(4).
    *            message e001(zm) WITH text-335 ktab-jkunnr text-337 ktab-ckunnr.
    *          endif.
              custcode1 = ktab-ckunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = custcode1
                IMPORTING
                  output = custcode1.
              jobsitecode1 = ktab-jkunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = jobsitecode1
                IMPORTING
                  output = jobsitecode1.
              SELECT SINGLE * FROM knvp
              WHERE kunnr = custcode1
                AND vkorg = vbak-vkorg
                AND vtweg = vbak-vtweg
                AND spart = vbak-spart
                AND parvw = 'WE'
    Error analysis
        The program attempted to issue a " " message during "Exit Command"
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT

    Hi,
    Seems there is some problem with the user exit USEREXIT_SAVE_DOCUMENT..
    Put a breakpoint and see.
    Regards,
    Nagaraj

  • Interesting scenario- user facing error while deleting a sales order

    Hello All,
    I have one interesting scenario and want feedback from your side as soon as possible
    Scenario-
    One of my clients is facing a problem while deleting a sales order.
    the sales order he is trying to delete is the old order created in 2007.
    when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
    document flow looks like this
    Order - 200004715                     Being processed
    invoice- 700005310                    completed
    accounting 700005311                 cleared
    Cancel Invoice 700005315            completed
    Accounting 700005316                 cleared
    Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
    Can somebody please throw some light on this problem.
    Thanks in advance.

    Hi,
    As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
    If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
    Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
    Hope it clarifies the issue.
    Regards
    Murali

  • While creating Sales order in Va01 runtime error

    Hi friends,
    While i am creating sales order in VA01 i am getting runtime error
    Thanks in advance
    venuprasad

    This could be due to some recent code changes in SAPMV45A...may be some user exits...
    The Dump which is obtained can be analysed by an ABAP person and could lead you tot he right issue.
    Hope this helps
    Regards
    Biju

  • Authorisation for deletion of sales order

    Dear All,
    We want to have the check when deleting the sales orders that the users can not be able to delete the sales orders.
    We wrote the code to MV45AFZZ for the deleting the sales orders-user exit FORM USEREXIT_DELETE_DOCUMENT
    But while deleting the sales order, we got dump.
    Could you please help us why we got abap dump?
    We wrote the below part:
      message 'ZZZZZz' TYPE 'E'.
    Regards
    J.Black

    The output of error messages and user dialogs is possible only with restrictions in the FORM routine USEREXIT_DELETE_DOCUMENT. Messages of the type E or W cannot be output. This causes the runtime error DYNPRO_MSG_IN_HELP as of Release 4.0.
    Other notes
    The deletion of the delivery can no longer be prevented at this point by returning to the dialog, since all the delivery data has already been deleted logically. If the user has to prevent the deletion of the delivery for certain reasons, the system should issue an error message of the type A.
    Check this link:[http://www.sapnet.ru/viewtopic.php?p=811]

  • Sales order getting maximum doc value exceeds but not blocking.

    Hi Experts,
    My client using automatic credit control .
    And for one risk category we have activated max doc value and sen the value is -0.01. It means even though for the free of charge sales orders also should be block.
    I have created a sales order with free of charge item with value of 0.00 after getting warning message and it is blocking.
    And i have one scenario for service items , where am creating sales order with value of 0.00 for the service items and while saving the sale order getting warning message and it is not blocking.
    Why this sales order is not showing in vkm1 event though if i get warning message while saving the sales order time.
    Please any body help out form this issue
    Regards
    Venkat

    Hi
    That i already setup and maximum doc.value i have set there -0.01.
    The same functionality is working for diffrent sales document type,but it is not working for this service sales document processing.
    Is there any scenario like if there is no delivery further process it should not block
    Please revert immediately if any body knows
    Regards
    Venkat
    Edited by: venkat s on Jun 8, 2009 1:28 PM

  • Material Listing Error while creating the sales order

    Hi Guru's
    I have mantained a material in the lisitng for A002 combiantion for SO/DC/Pric. ref. material
    While creating the sales order is throwing an error as material is not listed so the transaction is not possible.
    I have done the basic invetingation on the folowing aspects
    1)checking the material in the listing
    2)Validity periods
    3)Material not blcoked
    4)Mateial is extened for the respective sales org
    Kindly help ASAP.
    Thanks & Regards
    Tarakaram

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • RunTime Error while saving a Sales Order

    Hi All,
    When i am saving a Sales Order, the system is throwing a Runtime Error.
    The ABAP Code in the Runtime Error screen as follows.
              select * from (t681-kotab) appending table <cond_tab>
                     up to 1 rows
                     where kappl  = se_kappl
                     and   kschl  = se_kschl
                     and   datbi >= se_date
                     and   datab <= se_date
                     and   (coding_tab).
    Till these days, there was no such error while saving a Sales Order.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.
    select * from (t681-kotab) appending table <cond_tab>
    up to 1 rows
    where kappl = se_kappl
    and kschl = se_kschl
    and datbi >= se_date
    and datab <= se_date
    and (coding_tab).
    The reason could be is someone has screwed up the entries in T681 table. Check that out.
    Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.
    Let me know if you are still stuck up.
    If you can send me the ST22 dump of the run time error, i might be able to help you more  on this.
    Hope this helps.
    Thanks,
    Balaji

  • Error while saving the Sales Order

    Hi experts,
        i am getting a runtime error while saving a sales order stating: SAPSQL_EMPTY_TABNAME. It says the field T681-KOTAB could be empty. I would give in more inputs. Someone plz help.
    Thanks.

    I would expect that KOTN521 would be a Database table defined in the ABAP Dictionary that relates to the condition implemented in 521 for the usage specified in that record.
    You should be able to go into the info system, SE84, and search under ABAP Dictionary / Database Tables to see what KOTN521 is.
    Also, since the only Keys to T681 are KVEWE and KOTABNR, and there are two KOTABNR entries with a value of 521, then there must be two different usages (KVEWE) associated with that table.
    If you see what they are, you can check to see what the usages represent.   Based on a lookup, it appears that a usage of N is for Free Goods, A is for Pricing etc.   In our system, we only have A entries.
    What are the usages for the 521 entries?  Do they relate to Free Goods/Pricing???
    Does the table KOTN521 exist in the ABAP Dictionary?
    Answering these questions may get you closer to the answer.
    Can you compare the values in these entries to what you have in different SIDs?
    Is this problem happening in Production, or is it still in a development or Quality Assurance client?
    If it is still in development or Q, then it may be that a recent customization change was made.
    Compare the entries across your systems, if possible.
    Good luck
    Brian

  • Error while saving a Sales Order in the CRM Mobile Application

    Hi,
    I am facing issues while saving a Sales Order in the CRM Mobile Application. I am getting the error message "Value Field KvLangu is not valid (Error: 236 / 1102)".
    I would be very grateful if somebody had faced this issue before and this way could help me with some information.
    Best Regards,
    Rogerio Prado.

    Hi Rogerio,
    You should put mobile sales related messages in the forum "CRM Mobile applications"
    This error message is coming because the language table SMOT002 might be empty in your mobile client OR it does not have all the values which have been customized in the system.
    You need to have subscription based on publication "customizing objects" assigned to your site.
    Regards
    Vivek

  • Error while creating the sales order with billing reference

    hi alll
    i am getting error while creating the sales order with billing reference.The line items are coming in grey.I am not able to change the items as well as the quantity field.Can u guide me
    cheers
    shalsa007........

    Dear SAP SD 007
    I can confidently tell that an enhancement or an user exit has been applied in your scenario
    You have to check that
    Normally when creating a sales order with respect or referring billing documents the qty will be in editable mode and it is standard problem
    Your people has solved the standard problem by enhancement
    Usually OR--LF-PGI----F2 (SAY THE QTY IS 25 UNITS)
    Now you are creating returns order with reference to F2 in the return order type Re there is a standard issue that user can edit the qty to 30 from the original 25
    To solve this only your people have used userexit
    Line items and qty greyed out means definately there is some enhancement or user exit applied
    You have to check that
    Regards
    Raja

  • Credit Check while creation of Sales Order for Item Category Purchase Req

    Hi Experts,
    We are creating Sales Order using an Order Type ABCD for a material 1000. While creating Sales Order, we use Item categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO).
    Credit Check settings are there at Order Type ABCD as well as all the Item Categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO). We are trying to test a scenario where a customer does not have enough credit limit while creating a sales order.
    When we create a sales order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP), credit check fails because our customer does not have enough credit limit, so that Sales Order gets created and Delivery does not get created (This is what we want), then we go into VKM1 manually and relase the sales order and then if we go to VA02 and check the status of the Sales Order, it says sales order status is complete. My Sales Team is saying here also Purchase Requisition is getting created.
    When we create a sales order for Item category ZOBO, it is going into Purchase Requisition screen. Once we give another plant in the create purchase requisition screen and save it we are getting a message that cannot create Purchase Requisiton because of Credit Block.
    The settings were same for all the Item categories.
    1) What made difference to complete Purchase Requisition for Item Categories (ZOVD, ZOVB,ZOST,ZOVP) and not for Item Category ZOBO when my customer is not having enough credit Limit.
    2) Why Purchase Requisition screen is not coming for us when we create an Sales Order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP). We only get Create Purchase Requisiton Screen for Item Category ZOBO.
    Thanks
    Rajanikanth

    Hi,
    None of the Item Categories has Create PO Automatically.
    Thanks
    Rajanikanth

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

  • I have deleted a sales order,how to retreve the same document number

    Hai,
        I have deleted the sales order,so that document number is out.When i craete the next order will i get the same number which i have already deleted.
    I want the same number again,for that what should i do...
    I dont want that number be missed,the reason is there should be a flow in number,with out missing some numbers in between.
    Thx
    Venu
    Edited by: venugopal on Aug 6, 2008 9:12 AM

    Dear Venu
    Yes this is possible but should not hand over the responsibility to end users.
    B4 implementing this in production, please test a document and proceed.
    Go to VOV8, select your order type and execute.  There see what numeric value is maintained against the field "No.range int.assgt".  Now go to VN01, [click on Status]  tab and go to that number.  On your right, you can see the last generated sale order number with editable option.  You can change it.
    For example, if your last created sale order reference is 805, you will see this 805 in the above area.  Change it to 804 and save.  Now if you create a new order, the reference of that particular sale order will again be 805.
    But as I already mentioned, each and every time, you need to go and change this area which is not recommended. 
    thanks
    G. Lakshmipathi

  • When i save sales order, Getting error.......

    Hi expert,
    I have created my own standard order (from company code to master data maintenance and Pricing Procedure).
    1. Here the problem is that when i save the sales order, getting message/error is that Financial document: No financial document assigned.
    2. If click "Header Output Preview Icon (ctrlshftF1)" in the sales order,getting error/message is that No Output has been Selected for Printing.
    Please help me out from this problem.
    Looking forward to hearing from Expert soon.
    Thanks in advance

    Dear Kaviya
    1)  Probably you are trying to create an export order for which the field "Financial Doc" is made mandatory. 
    As you may be aware, few export orders are to be executed against Letter of Credit which should be created through VX11N.  Once all the required datas are given in vx11n while saving, a document reference will be generated.  This reference you should assign in sale order.  To do the same, after giving the datas in sale order, select "Goto --> Header --> Billing Document".  Here at the bottom screen, there is a field "Financial doc no".  Assign the reference you got in vx11n.  Now try to save the order.
    2)  I dont know why you are trying to print the sale order.  Is it necessary.??
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • HT4539 How can I cancel a subscription from the Itunes? I got it from a newstand which was dowloaded from the apple store for free. h

    I have bought only one brochure of a magazine called SuperInteressante on the itunes newstand. It costed £1,99. However, the payment was set automatically for every new edition published and so I have been charged 1.99 since then. I sent an email for

  • HELP - how do I Stop Sharing Every Photo on Every Device?!?!?!?

    Why have Apple decided that I want to share all of my photos with every single device?!  I DON'T!!!  There are thousands of them and they fill up devices so that apps no longer work - a totally stupid idea - can anyone please help before I delete iph

  • Empyting iPhoto Trash

    How do you empty iPhoto trash? Selecting the photo in trash has only restore photo under "Photos" and I cannot find delete or move to trash under any menu item. Thanks for your help. Vernon

  • Oracle universal installer erro

    Hi Friends I'm trying to install Oracle 10g client database on my a windowsl os but while installing 10g i'm getting oracle universal installer error. error in writing to directory c:\document and settings\allusers\local settings\temp. can anyone ass

  • Inspiron n7010 graphics+gnome3=fallback mode

    Hello everyone, I have a problem. When I tried to install gnome3, it goes into fallback mode. Switching over to the terminal reveals that I don't have 3d acceleration on my card. But I do (works on Ubuntu, anyway). I have an ati graphics card (Mobili