BADI - ME_PROCESS_REQ_CUST- G/L Accounts Error Message

Hi guys,
I have a problem regarding autodeterminating G/L Accounts.
I used BADI ME_PROCESS_REQ_CUST with Method: PROCESS_ACCOUNT.
For setting the G/L Account I used:
            ls_accounting-sakto  = ls_ctrlacc_b-sakto.
            ls_accountingx-sakto = 'X'.
            CALL METHOD im_account->set_exkn
              EXPORTING
                im_exkn = ls_accounting.
            CALL METHOD im_account->set_exknx
              EXPORTING
                im_exknx = ls_accountingx.
The problem is in ME52N (changing mode) when i change the G/L Account and after the BADI Logic, a still receive the transaction error "Enter a G/L Account" which will disappear if i press enter again.
So ...i need in my BADI Logic , at one point (G/L Account is not initial) to erase from the Message Stack that error.
How do I do that using data and methods from this BADI method: PROCESS_ACCOUNT?
Thanks a lot.

I solve this problem by doing :
CALL METHOD cl_message_handler_mm=>get_handler
        IMPORTING
          ex_handler = lref_msg.
CALL METHOD lref_msg->remove_all.
mmpur_message_force  'E' 'ME'  '083' text-003 '' '' ''.
Now, I don't know how to set cursor on matkl field
Any opinions?

Similar Messages

  • Exchange account error message unable to verify account

    While trying to configure my exchange account i get an error message as it says on the title: unable to verify account information, doesnt syns emails ut does sync contacts and reminders from the exchange account.
    it´s an iphone 5 with iOS 6, latest version.
    WHAT CAN I DO?
    pasword, domain and server info is correct, any advice?

    Contact your IT professional.

  • Creating Inhouse Bank account: error message GL group not maintained

    HI Experts,
    while trying to create an Inhouse Bank account F9K1 I get the error message: General Ledger group is not maintained.
    Indeed I`ve maintained the GL group in table TBKKCGRP for the relevant GL variant which is also assigned to my bank area. It`s weird, because, when I am opening the search help for the field General Ledger group on tab Control data under F9K1, all GL groups I`ve defined can be selected, but when I am trying to save my selection I get the message mentioned above.
    Can someone explain me the reason for this?
    Best regards
    Tobias

    Before it`s possible to assign a General Ledger group to a new account, the Customizing activity "Maintain Accounts for Payment Transactions" has to be finished.

  • Sharing to You Tube gives no linked account error message

    I am using FCPX 10.0.9
    When I try to share video to You Tube I get an error message saying that there is "NoLinkedYouTubeAccount". The account is valid and the user name is correct as well as the password. Am I missing something?

    Hi Russ, sorry it's taken so long for me to get back to your reply.
    The you tube site uploader works normally. I only have a problem when I try to share/upload directly from FCPX.
    I wnt to upload from fpcx because it loads a much smaller file size and the upload is much much quicker.

  • Group Managed Service Accounts Error Message access denied

    Hi I am playing around with group managed service accounts in my lab using a 2012 R2 DC on a 2012 r2 forest and domain Level .Net 3.5 installed.
    I am following this tutorial
    http://blogs.technet.com/b/askpfeplat/archive/2012/12/17/windows-server-2012-group-managed-service-accounts.aspx
    1. I installed the keys
    2. I waited for 10 hours
    3. I created the GMSA
    4. I tried to install the GMSA on the DC logged in as the Domain admin under a administrative powershell prompt
    5. I got the nasty error: access denied message.

    the powershell statement could be wrong...
    -PrincipalsAllowedToRetrieveManagedPassword

  • Account error message

    Can anyone help please? My iTunes account info has apparantly changed - without my input? I have tried to amedn but the account page states that my postcode and country are incorrect - even though they are correclty entered. I have used iTunes effectively for months and now this has happened. I have just set up Apple TV - could this be the reason?
    Bernard

    I had to do this four or five times - but it eventually worked!
    Thanks!
    One thing that I did was I went into my System Prefs
    and under the .Mac, I just deleted my account name
    and password in the fields, pressed enter which just
    refreshed the fields to make me enter my account &
    pass again. It went through verification process and
    accepted my password, logging me in again.
    Went back to iWeb and everything uploaded as normal.
    Hope this helps.
    Intel
    Macbook 2 GHz Intel Core 2 Duo   Mac OS X
    (10.4.9)   1 GB 667 MHz DDR2 SDRAM

  • Outlook recovered account error message

    Can not send email in outlook due recovered account

    This is an easy issue to fix in MacMail, unfortunately i don't touch stuff like OutLook.
    Generally it is caused by recently attaching a very LARGE file to an e-mail. Did you remember sending something lilke that to someone recently?

  • Error message in a BADI getting displayed in a popup instead of status bar

    Hello All,
    I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
    The BADI gets called on clicking 'Save' from transaction o3I8.
    Within the  BADI i am giving an error message using the following command:
    Message e000(ZABC) .
    However , the message gets displayed in a pop up instead of the status bar .
    The same is for information and warning messages.
    Any suggestions on how to display them in the status bar ?
    TIA
    Regards,
    Vartika

    Hi Brad,
    The checkbox to display messages in pop-up  is already switched off.
    Still themessages are getting displayed in pop-up.
    Regards,
    Vartika

  • Error Message in BADI WORKORDER_UPDATE

    Hi Experts,
    I am trying to raise error message in the implementation of BADI WORKORDER_UPDATE. The moment error message triggered it is giving the shortdump saying that commit work should not be interrupted.
    Can anybody please let me know how to resolve this issue.
    Thanks,
    Suneel

    Hi,
    Hope this previous posting is helpful
    badi WORKORDER_UPDATE
    Thanks,
    Aby

  • 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

  • Need to stop posting a line item in PR using BADI ME_PROCESS_REQ_CUST

    Hi All,
    I have a requirement to check the combination of the GLaccount and project and if the combination is not allowed i need to show an error message and to stop the user from saving the Purchase Requisition.
    For this i have coded in BADI ME_PROCESS_REQ_CUST in PROCESS_ACCOUNT method.
    the badi is triggered and the error message is also shown but it is not stopping the user from saving the Purchase Requisition.
    i want to know how to invalidate a line item as we do in PO by calling item->invalidate( ) method.
    i couldnt find any method like that in the ME_PROCESS_REQ_CUST BADI.
    Please anyone of us let me know how to invalidate a line item of a purchase requesition.
    Thanks,
    Srinath S

    Hello Srinath
    Looking at the signature of interface method PROCESS_ACCOUNT it becomes obvious that you cannot stop processing of the PO requisition here.
    You need to implement your validations in method CHECK because here you have a CHANGING parameter CH_FAILED (Nomen est Omen!!!).
    Regards
      Uwe

  • How to raise error message in MB_DOCUMENT_BEFORE_UPDATE?

    Dear Friends,
    I have a situation like, need to thro an error Message inside the BADI: MB_DOCUMENT_BEFORE_UPDATE.
    Based on some validations on XMSEG parameter inside the above BADI, I am raising an Error Message as usual.
    Message E208(00) with 'Posting error..'.
    When I raise the above error, the system ends with Short Dump.
    Could anyone please let me know, how to handle the above?
    Thanks in advance,
    Ramani N

    >
    Gaurav Gupta wrote:
    > Hi
    > I would like to suggest you to check whether you have used MESSAGE-ID addition in your REPORT statement or not. We are supposed to use it whenever we are trying to display error messages like *Message E208(00) with 'Posting error..' *.
    > Hope this solves your Problem.
    >
    > Regards
    > Gaurav.
    Hi Gaurav,
    My query is about BADI.  Hence, we can not use REPORT statement.
    Rgds,
    Ramani N

  • Error Messages in PCUI

    Hello,
    I have implemented the BADI "CRM_ORDER_STATUS" for validating with status change in opportunity with another field. This BADI is invoked whenever the status field is changed in the transaction.
    Inside the BADI I want to throw error message to the user on the PCUI screen. I tried using the "MESSAGE" ABAP statement in the BADI implementation but the message is not displayed in the PCUI but is displayed in the SAP GUI. Can anyone tell me how to display our own error messages in the PCUI screen.
    Thanks in advance.

    Hello,
    Here the example coming from the BADI 'CRM_CUSTOMER_H_BADI' documentation :
    Error messages
    Error messages should not be issued directly, but should be forwarded to the application log using the function module CRM_MESSAGE_COLLECT. By defining the error gravity, you can define whether it leads to a program termination, an incorrect status or only a warning in the transaction.
    The error messages issued must, however, be deleted by the implementer at the start of the BAdI, as otherwise they will not disappear from the log file, and the system would therefore continue to display the error, even if it was already solved.
    Example
    data:
        ls_msgidno type bal_s_idno,
        lt_msgidno type  bal_r_idno,
        lv_save_message    type c.
    *Delete message(s) at the beginning of the method
    ls_msgidno-sign       = 'I'.
    ls_msgidno-option     = 'EQ'.
    ls_msgidno-low-msgid  = 'CRM_ACTIVITY_H'.
    ls_msgidno-low-msgno  = '801'.
    append ls_msgidno to lt_msgidno.
    call function 'CRM_MESSAGES_DELETE'
      exporting
        it_r_msgidno   = lt_msgidno
        iv_ref_object  = is_activity_h_wrk-guid
        iv_caller_name = gc_object_name-activity_h. " See include programCRM_OBJECT_NAMES_CON
    *In the error case, collect the message:
    if .
      messge id 'CRM_ACTIVITY_H' type 'E' number '801'
             into lv_save_message.
    call function 'CRM_MESSAGE_COLLECT'
      exporting
        iv_caller_name = gc_object_name-activity_h " See include programCRM_OBJECT_NAMES_CON
        iv_ref_object  = is_activity_h_wrk-guid.
    endif.
    Hope this will help you.
    Regards,
    Frédéric

  • How to access error messages from gateway response in browser?

    hi,
    i get 400 bad request as response with error messages and transaction id .
    i need those messages in my alert box.
    how to do it?
    thanks and regards,
    kartik

    Hi,
    Now just use below code.
      oModel.read( sRead, null, null, true, function(oData, oResponse){
                          alert("Read successful: " + JSON.stringify(oData));
    },function(oError){
                          alert("Read failed");
                       var oXmlData = oError.response.body;
                       var oXMLModel = new sap.ui.model.xml.XMLModel();
                       oXMLModel.setXML(oXmlData);                              
                        console.log(oXMLModel.getProperty("/message")); 
                        console.log(oXMLModel.getProperty("/code")); 
                        console.log(oError);
    with above code, you will be able to read the response from body. also no need to add messages to header that I mentioned in earlier reply.
    I believe with above code, you will be able to read exact error messages.
    Regards,
    Chandra

  • Publishing desktop calendar to Mobile Me : error message

    Hi, I have been trying to publish a calendar created by ICal which is in my "On my Mac" folder and not in " XXXX Mac"to my Mobile Me account. These are all the messages I am getting, but I can't figure out what the problem is.
    FYI, I am using OS X 10.6.8, and ICal version 4.0.4. I have also NOT yet moved from Mobile Me to Cloud (could this be the problem??).
    Here are the steps I have taken :
    in ICal, selected calendar I want  >> Publish
    >>>> Publish Calendar as "xxxxx"
    >>>> Publish on : MOBILE ME..... OK
    Then I get this error message :
    ** Your MobileMe account configuration is not correct"... Your MobileMe subscription information is not correct.... To configure your subscription, use MobileMe preferences ***
    In MobileMe preferences :
    Account : access ok (ID ok, password ok)
    Sync : Automatic (OK).... If I select "sync" now my computer correctly syncs with MobileMe.
    Idisk : all OK
    Back to my mac : OFF
    Back to ICal :
    Preferences >>> Accounts .... the "accounts" page is empty, so i select *+* to create a new CalDAV account
    Account type : MobileMe / Automatic (I have tried both options, I get the same error message : see below)
    Email & password : OK
    Message : Searching for calendar accounts for the email address you provided...
    >>> Configuring CalDAV account
    >>> Error Message : "the account information was not found.The server has not specified a calendar home for the account at "/--https://cal.me.com/".
    I keep selecting the the option "Create" and keep getting the same error message.
    *** CAN ANYONE EXPLAIN TO ME WHAT THIS LAST ERROR MESSAGE MEANS, AND HOW I CAN RESOLVE IT?
    FIY, The regular sync between my computer and MobileMe works fine ; the problem I am having is publishing this "external" calendar.
    Thank you very much for your help,

    Re MobileMe
    I was going to uninstall but a little wary, on your advice I took the plunge and hey presto it worked.
    Many many thanks b noir it was driving me crazy.

Maybe you are looking for

  • Error while importing .par file into NWDS

    Hi Experts, For my query I saw a similar thread in sdn forum. the link is given below. /thread/382306 [original link is broken] I have unzipped the par file and inside this there is no other par file. So I have to import this par file only. Can anybo

  • I am switching from a PC to a Mac Pro OS1.7. Which Quicken program should I buy in order to transfer my old Quicken files from my PC?

    I am switching from a PC to a Mac Pro OS 10.7.4. Which Quicken should I buy in order to transfer my old Quicken files from my PC to my Mac? Will the files transfer?

  • Purchased whole album,one song wont play

    I recently downloaded a soundtrack album,all the songs except one play fine,if i click on it it plays for a second,then skips to the next song,i cant download it as a single track,it is an album only song.This isnt the first time this has happened,i

  • DB- stat() always return DB_LOCK_DEADLOCK, why?

    HI, when I run the test program below(windows or linux) concurrently, only the last launched process instance running properly, the previous instances always failed when executing db.stat(0), a bsddb.db.DBLockDeadlockError exception throwed. why db_s

  • 450 host down to some domains.

    We could not send mails to some domains, the message is 450 host down. When I try to do dnsstuff check on those domains, this is what I get, is this really normal. Your 1 MX record is: 10 mx.company.com [TTL=86400] IP=6x.1xx.1xx.1aa [TTL=86400] [IT]