POSTING_ILLEGAL_STATEMENT in message of ME21N

Hi gurus, when i create an ODA (ME21N) with related output message, on the save i have the dump:
************Runtime error
Report outputRuntime Errors POSTING_ILLEGAL_STATEMENT
Statement "CALL SCREEN" is not allowed in this form.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
There is probably an error in the program
"SAPLKKBL".
This program is triggered in the update task. There, the
following ABAP/4 statements are not allowed:
CALL SCREEN
CALL DIALOG
CALL TRANSACTION
SUBMIT
How to correct the error
Probably the only way to eliminate the error is to correct the program
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note
If you have access to SAP Notes, carry out a search with the following
keywords:
"POSTING_ILLEGAL_STATEMENT" " "
"SAPLKKBL" or "LKKBLU01"
"K_KKB_LIST_DISPLAY"
Information on where terminated
Termination occurred in the ABAP program "SAPLKKBL" - in "K_KKB_LIST_DISPLAY".
The main program was "RSM13000 ".
In the source code you have the termination point in line 441
of the (Include) program "LKKBLU01".
The program "SAPLKKBL" was started in the update system.
438 if gt_stack-is_layout-detail_only is initial.
439 if gt_stack-is_layout-suppress_dynpro is initial.
440 if i_screen_start_line eq 0.
call screen 500.
442 sy-pagno = g_sypagno. "wegen Dynpro 200 Spoolinfo bei F8+Druck
443 else.
Pls reply.
Thanks & regards!
Ferdinando

May be somebody has called the FM K_KKB_LIST_DISPLAY from a custom update task FM called from any user exit or badi. And in update task u cannot call screen statement as the FM K_KKB_LIST_DISPLAY is calling that's why update task terminated and this dump occured. Just search in the main program of ME21N with K_KKB_LIST_DISPLAY to find out the location form where it get called.
Regards,
Joy.

Similar Messages

  • Error message in ME21n / me22n (on save)

    Hi Gurus
               I need to raise a error message in ME21n for which I am using ZXM06U44 and EXIT_SAPMM06E_013
    I followed this link to help me out... https://forums.sdn.sap.com/click.jspa?searchID=20007769&messageID=6723170
    I am getting a information message even though I gave a message of type E. I tired two options:
    1.
    *    mmpur_message 'E' 'ZV' '013' lv_lifnr lv_bukrs text-t00 text-t01 .
    2.
    MESSAGE e013(zv).
    none of these was able to give a error message..

    Use BAdi:ME_PROCESS_PO_CUST
    Method:PROCESS_ITEM/PROCESS_HEADER"As per your Requirement.
    DATA : re_data TYPE mepoitem.
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = re_data.
    "Check for account assignment cat only for "A" and "L".
      IF re_data-knttp = 'L' OR re_data-knttp = 'A'.
        GET PARAMETER ID 'KNT' FIELD re_data-knttp.
        IF sy-subrc NE 0.
          MESSAGE 'You are not aurthorized to use Account Assignment Category (Logit)L!!' TYPE 'E'.
        ENDIF.
      ENDIF.
    I got Error Message in Incomplete log.

  • Warining Message in ME21N/ME22N in SAP4.6B

    Hi all,
    I have given a warning message in a user exit(EXIT_SAPMM06E_013). This user exit is triggered on PO SAVE. In ME21, ME22 the warning message is being diaplyed as expected. But in ME21N, ME22N the warning message is not being displayed but is just being ignored. Could you please give the reason for this behavior and the solution to provide the warning message in ME21N, ME22N in SAP 4.6B.
    Thanks in advance.
    Amit

    Hello,
    Try using the component MEREQ001 in a project on CMOD.
    You have some exits there:
    EXIT_SAPLMEREQ_001
    EXIT_SAPLMEREQ_002
    EXIT_SAPLMEREQ_003
    EXIT_SAPLMEREQ_004
    EXIT_SAPLMEREQ_005
    EXIT_SAPLMEREQ_006
    EXIT_SAPLMEREQ_007
    EXIT_SAPLMEREQ_008
    EXIT_SAPLMEREQ_009
    EXIT_SAPLMEREQ_010
    Try and see if any of them will work for your case
    Hope that will help.
    Mário Semedo

  • Is it possible to add error message in me21n  ?

    i post this question before  , but didn't
    get any answer .
    i add subscreen to me21n by (MM06E005).
    now i want to add message to inforce the user to fill
    the field in the tab .
    i tried to do so in the exit but its just lock the
    customer data tab .
    i tried exit EXIT_SAPMM06E_012  .
    the problem's are :
    1) is possible  ?
    2) if yes than where ?  (EXIT_SAPMM06E_012 ? )
    3) if yes how can i solve the problem that in the edit
    ( in the save process ) the user don't get the customer data tab of my ( go back to the last tab he was ) ?

    Hi,
    Yes..The macro is available in the top include of the user exit..
    You can use it as I mentioned above..
    I took the example from a standard program..The l_illegal_char is a field..
    Try this example..
    mmpur_message 'E' '00' '208' 'Custom field not populated' '' '' ''.
    Thanks,
    Naren

  • Raise an Error message in ME21N

    Dear All,
    I am using user exit (SRVDET: EXIT_SAPLMLSP_040) to raise an Error message, it will terminate ME21N by the Error message. Did anyone know how to make it return to ME21N after an Error message...
    I try to set screen to 500, 210...etc. but it seems make the program hung after leave screen. Any idea? Thanks a lot!
    BR,
    Well

    Hi
    Try to use the BADI ME_PROCESS_PO_CUST
    and raise the error message
    see the sample code
    BAdI Name: ZCHECK_PO_LINE_ITEM (Implementation name) PO Account assignment
    Definition Name: ME_PROCESS_PO_CUST
    Interface Name : IF_EX_ME_PROCESS_PO_CUST
    Implementing Class: ZCL_IM_BADIN_ACCOUNT_ASSGN
    Method :            PROCESS_HEADER
    METHOD if_ex_me_process_po_cust~process_header .
      DATA : re_data TYPE mepoheader.
    *get the item data
      CALL METHOD im_header->get_data
        RECEIVING
          re_data = re_data.
      re_header = re_data.
      IF ( re_data-bsart NE 'ZOC' AND re_data-bsart NE 'ZPC' ).
        IF ( re_data-bsart <> 'ZIC' AND re_data-bsart <> 'UB' ).
          IF re_data-bukrs NE '1001'.
            MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'Use only Sipchem Company'
                                            'Code for External Procurement'.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    Method :            PROCESS_ITEM
    METHOD if_ex_me_process_po_cust~process_item .
      DATA: v_menge TYPE bamng,   " PR Quantity
            v_statu.              " PR Status
      DATA : re_data TYPE  mepoitem,
           re_data1 TYPE mepoaccounting,
    re_accountings TYPE purchase_order_accountings ,
    header TYPE purchase_order_accounting.
    *get the item data
      CALL METHOD im_item->get_data
        RECEIVING
          re_data = re_data.
      IF ( re_header-bsart NE 'ZOC' AND re_header-bsart NE 'ZPC' ).
        IF re_header-bsart EQ 'ZRL'.
          IF re_data-konnr EQ space.
        MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant create a Release order'
                                              'without a reference to Outline Agreeement'.
          ENDIF.
        ENDIF.
        IF ( re_data-banfn EQ space AND re_data-anfnr EQ space ).
          MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You can create a Purchase order'
                                                         'only with reference to a PR or RFQ'.
        ENDIF.
        IF re_data-knttp NE 'K' AND re_data-pstyp NE '9' .
          IF syst-cprog EQ 'RM_MEPO_GUI'.
            IF re_data-uebto IS NOT INITIAL OR
               re_data-uebtk IS NOT INITIAL OR
               re_data-untto IS NOT INITIAL.
          MESSAGE ID 'ZM_MSG' TYPE 'E' NUMBER '000' WITH 'You cant change delivery settings'.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Error message in Me21n tcode

    Hi,
       we have developed a  user exit to get error message when po value is greater than some amount in me21n tcode. am getting error message when entering all items. But when  press SAVE button  i want that error message also. But am not getting that error message in that time.How i can write a code for that.

    Hi Geetha,
    For that requirement you have to code in  EXIT_SAPMM06E_012 or  EXIT_SAPMM06E_013 MM06E005.
    EXIT_SAPMM06E_012 : it will get triggered whenever you press HOLD,CHECK or SAVE button
    EXIT_SAPMM06E_013 : it will get triggered just before saving the PO.
    Thanks & Regards,
    Faheem.

  • How to display long error message in ME21N

    Hi,
    How to display a long error text (in multiple lines) in ME21N / ME22N message popup we get while saving or checking the PO. My error message length is 100 chars. It is displaying only 40 chars in a single line. My requirement is to display that in multiple lines of message popup. Please let me know asap.
    Thnks in Advance.

    Hi,
    Messages have long texts.... Uncheck the self-explanatory box, change your long message to a short one, place your long message in the long text of your message. SAP should handle the rest.
    Reward if helpfull...
    Cheers,
    Ameen.

  • Capture Screen message while ME21N

    How can I capture the PO Number while executing Me21N.
    In one report I am called ME21N. SAP Displays message PO <PO Number > Created. I want to capture the PO Number and wanted to do further processing.
    I tried to get data from SYST MSGV1, MSGV2 MSGV3 MSGV3. But all variables are blank.
    I cant use set and get parameters. Because if user exit PO creation without creating the PO then get parameter picks the last created PO number.
    CALL TRANSACTION 'ME21N'.
    EBELN = ???????

    I have to Call Just ME21N and then user will create the PO mannually. after he saves the PO I want the PO number for further processing.
    by using the following code I can Capture the PO number, but the problem is that it will behave like a BDC with differnet screen attribute.
    Note i_BDCDATA table is blank.
    DATA : EBELN TYPE EBELN.
    CALL TRANSACTION 'ME21N'
    USING i_bdcdata
    MESSAGES INTO i_messtab.
    *CLEAR i_messtab.
    *SORT i_messtab DESCENDING by msgtyp.
    *READ TABLE i_messtab  WITH KEY msgtyp = 'S'.
    *IF sy-subrc = 0 .
    EBELN = i_messtab-msgv2.
    I just want to capture the screen value after ME21N.

  • Item level messaging for Me21n

    Hi,
    Can macro mmpur_message be used to populate error message on item level of Me21n.
    Regards.
    Kusum

    Hi kusum,
    Please check SAP Note 310154 - ME21N/ME51N: Customer-specific check, generating error log
    Best regards,
    Christian

  • GR Message in ME21N/ME22N (SAPLMEGUI)

    Hi,
    In T-code ME21N/ME22N, under the item overview section, when a user selects an Account Assigment Category, I need to check the "GR message" box under Header section.
    I found a couple of user exit, but all these exit do not allow us to change the SAP standard field.  This is also documented in the SAP documentation.  If I go in debug and change the field MEPO1226-WEAKT it will work, but these fields are not accessible from the user exits.
    I also looked at using field exit, but that won't wont.  I also looked at the config (OME9) and was not able to find anything in there also.
    Does anyone have any suggestions?
    Thanks for you help.

    Hello,
    Try using the component MEREQ001 in a project on CMOD.
    You have some exits there:
    EXIT_SAPLMEREQ_001
    EXIT_SAPLMEREQ_002
    EXIT_SAPLMEREQ_003
    EXIT_SAPLMEREQ_004
    EXIT_SAPLMEREQ_005
    EXIT_SAPLMEREQ_006
    EXIT_SAPLMEREQ_007
    EXIT_SAPLMEREQ_008
    EXIT_SAPLMEREQ_009
    EXIT_SAPLMEREQ_010
    Try and see if any of them will work for your case
    Hope that will help.
    Mário Semedo

  • Display Error Message in ME21N

    Hi,
    As per my requirement, I need to display an error message while creating a PO based on certain conditions. I tried the Exit: EXIT_SAPMM06E_012 using which i can stop the creation of PO but it gives a pop up box saying HOLD or EDIT. Inside edit i can find my custom error message. The requirement is to print this error message at the task bar and not to allow the HOLD option to come. The creation of the PO should stop immediately after displaying an error msg at the task bar and before the Hold option.
    Please suggest which exit i need to use...

    Hi,
    You want to restrict the standard msg and instead of that u want to show your message,  i feel you can't erase the stnd message.
    However, try to use  where-used- list for that message using se93 mess no.
    Best thing, is to find the implicit enhancement and insert the message before your HOLD  mesages get populated.
    Try this keeping break point at ' MM06EFDCM' debug to find the excat place.
    Hope this will help you as i have done same for the similar type of requirment.

  • Error message in ME21N and ME22N

    Dear Friends,
    I am facing one problem... my requirement is at the time of saving purchase order i need to check some thing and if that check fails i need to display the error message and needs to stop the creation of purchase order. That error message at the status bar also ok and pop up also ok. But when i try to display that error message in one exit 'EXIT_SAPMM06E_012' then the eror message is not coming properly.. i mean it is displaying one box under that one red symbol and in the message comming my message class name. I could not able to display the proper error message in proper way.
    I have tried one BADI also post save method that is displaying error message properly but immediately after that i am getting one more pop up saying system error with POST_METHOD some thing like that. I haVe checked in debugging that second error message is displaying from the standard program (message class : ME and number 816) but i dont want that second pop up. How to skip that and how to provide proper error message.
    Any help will be highly appreciated.
    Thanks a lot in advance,

    Hi,
    here is the sample of the code we have used in our system.
    restrict logic based on Document Type and Company Code
    IF i_ekko-bsart EQ c_ub AND i_ekko-bukrs EQ 'XXXX'.
    loop at Line Items of PO
      LOOP AT tekpo WHERE loekz EQ space.
      if Receiving Plant is YYYY and Storage Location is NULL
        IF tekpo-werks = 'YYYY' AND
           tekpo-lgort = space.
        issue error message
          MESSAGE ID 'ZM' TYPE 'E' NUMBER '042' WITH
              tekpo-ebelp                               "line item
              tekpo-werks.                              "receiving plant
        ENDIF.          "receiving plant/storage location
      ENDLOOP.
    ENDIF.          "document type
    Hope this helps.
    -Ramesh

  • BADI/user exit for ME21N - Warning message for "our reference" field

    Dear all,
    I have a problem.
    In ME21N, I need to show a warning message (message w... ) when user enter an already-used-before input in "Our reference' field (EKKO-UNSEZ).
    I've tried in two methods.
    1. Using fm EXIT_SAPMM06E_004. But it can only works for Error message. My warning message never shows up.
    2. Tried to implement classic BADI ME_PROCESS_PO_CUST, using the PROCESS_HEADER method. Got the break-point spot on, but still didn't show the warning message.
    Why is my warning message always got override?
    Please advise.
    Thanks in advance
    Ahmad

    Hi Ahmad,
    Check the below links:
    Unable to put Warning messages in ME21N and ME22N in Exit / BAdI in ECC 6.0
    Warning message in me22n check user-exit can't process?
    Custome warning message in T. code me51n me52n & me21n , me22n
    Regards,
    Nisha Vengal.

  • Capture error messages in message log in ME21n transaction

    Hello friends,
    i have a question here.I have created a Z-table which contain data about material groups which will not be used for the particular plant.when we create a PO now ,i am checking for each line item whether the material group entered for each line item exists in Z-table or not.If exists then throw a message 'XXXXXXXX.'
    as this is an enhancement to Me21n transaction , i am using User exit EXIT_SAPMM06E_012 .Now my problem is for each line item i am checking for condition and throwing a message.My requirement is show up all messages(for eg : If more than 1 line item contain errors for the same condition) in the message log of the transaction ME21n screen.I dont think we can do this in the User exit as showing up messages in ME21n is standard functionality
    Could anyone please give any idea how to achieve this??
    Thanks in advance!

    Hi,
    You may write to application error log or call screen to show error log in user exit.
    Cheers.
    ...Reward if useful.

  • ME21N BADI which is used during messages

    Hello,
    we are looking for a BADI or user exit which is called if the user selects a message in ME21N e.g. eMail or printing.
    In the user exit or BAPI we have to ask the user about some additional parameters (special screen) which we need to send e.g. the mail.
    Thanks

    Hi,
    There is no perfect badi or user exit for this purpose. you need to doe some majic in coding. BADI ME_PROCESS_PO_CUST is one badi avl for POs and user exit EXIT_SAPLV61B_001 in messages.
    Sanjeev

Maybe you are looking for

  • Links from applications in a new window

    It use to be that when I clicked on a link in Mail, it would open in Safari within a new window right on top. Now it opens in a new window under the one that is already open. Is there anyway to fix this? I don't want to open something new in another

  • LSMW Recording...???

    Hi Experts,h I am doing migration with the LSMW recording process.  In the first step, I selected a recording method and entered the transaction code.  I selected the default all so that all the fields can be included.  I can see so many fields with

  • 3D Tracking without rotating?

    Hi, Is there a way of having a 2D layer (like a video of me behind green screen) that I turn to a 3D layer so that it the  camera I made with 3D camera tracking will make it stay in place in my other video, without rotation? Because when the video of

  • Problem using JFileChooser

    Hi, I am encoutering a strange error dialog, javaw.exe No-Disk dialog box with this message "There is no disk in the drive. please insert a disk in drive A" when using JFileChooser. I have been referring to some forums and understood this is a bug. B

  • Premiere Pro Quit Unexpectedly and got rid of All of My Edits

    I just purchased a membership for the Creative Cloud a few days ago and have been editing my short film on Premiere Pro. I had gotten through all of my sequencing, most of my sound editing, and most of my color grading. Everything was going well. Sud