Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 19, 2008 at 07:41 AM

    Hi,

    Seems there is some problem with the user exit USEREXIT_SAVE_DOCUMENT..

    Put a breakpoint and see.

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 19, 2008 at 07:37 AM

    hi,

    open MV45AFZZ in se38 and change the logic in USEREXIT_SAVE_DOCUMENT.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 08:22 AM

    what could be the error

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.