Validation of G/L account during ME51n

Dear Sir,
Using Me51n , We are creating PR having Item-Category as "D" and we need to validate the G/L code before saving of PR to ensure that correct G/L is mentioned .
To perform the desired validation , I request the forum members to guide me about the suitable BADI / USER EXIT available to handle the mentioned requirement .
I shall be highly obliged for the kind help pl .
With Regards
B Mittal

Hi Mittal -
BADI - ME_PROCESS_REQ_CUST , in the method PROCESS_ITEM is correct.
Follow the below code to get the GL data
DATA :   li_items TYPE mmpur_accounting_list,
             lw_items TYPE mmpur_accounting_type,
             lw_exkn  TYPE exkn.
   IF im_item IS NOT INITIAL.
   CALL METHOD im_item->if_acct_container_mm~get_items
      RECEIVING
        re_items = li_items.
IF NOT LI_ITEMS is initial.
    LOOP AT li_items INTO lw_items.
      CALL METHOD lw_items-model->get_exkn
        RECEIVING
          re_exkn = lw_exkn.
* Check the value of GL with lw-exkn-sakto to validate it
    ENDLOOP.
ENDIF.
   ENDIF.
Let us know if it helps

Similar Messages

  • Error message: "Enter valid currency [Message 173-57]" during Deposit transaction

    Hi All,
    Is there a specific reason why can't I deposit from a "Multi-currency" cash account to a "specific (i.e., USD)" cash account using the Banking> Deposits> Deposit module.
    I have already read below threads related to this issue.
    Error message "Enter valid currency [Message 173-57]" during cash deposit
    Can't Create Cash Deposit of Journal Entry due to "Invalid Currency" Error
    Transfer Between bank accounts in different currencies
    GL Postings between different currency accounts
    foreign currency transactions
    SAP Business One Note: 1260658 - Transfer monies between different monocurrency accounts
    I have posted successfully e  cash transfer from multicurrency to monocurrency cash account thru Journal Entry, However, I wanted to know the reason why it is not possible to post this transaction thru the Banking> Deposit module.
    Appreciate your feedback on this matter.
    Thanks!

    Hi,
    Same error message is appeared in 8.81 PL10. So this is not due to PL. If you select other than local currency at deposit currency, this error appears.
    Let me check and update.
    Thanks & Regards,
    Nagarajan

  • Validations for G/L accounts and Cost Centers!

    Help!!!
    I need to create bunch of validations:
    Ex. If account is 12345  - then is can be posted to only cost center XXX, YYY, ZZZ, BBB...
    If G/L account is 33333 - then it can be posted to cost centers AAA and BBB...
    There are different rules for 137 accounts.
    Here are the questions:
    1. Is it all one validation and 137 steps or are these all different validations?
    2. How can i limit one G/L to many cost centers? What is the formula? It doests let me post If account is 12345 then check cost Center XXX OR YYY OR ZZZ OR....
    It lets me post "OR" only one time.
    Do i need to create a Set for each validation from GS01? or is there any easier formula?  - It is not the range of cost centers, they are just random!
    Please help!!!!!!!!!!!!!!!!!!!!

    I did exacly that!
    I created a SET.
    Then i went to validation and said preriqisites  - account "XXX"
    Check Cost center IN SET
    Message - Error
    I attached my validation to my company code and put it as Active in OB28
    I even ran the program RGUGBR00 to activate all the sets and validations...
    Now i test it and it is still posting to any cost center.
    What did i miss?

  • Substitution of GL account during MIRO?

    Hi,
    Is it possible to substitute an gl account during posting to FI with the MIRO transaction?
    If so, what are the steps?
    Thank you very much,
    Eric van Zundert

    Hi,
    You only can change the G/L account number when MIRO, which the PO was generated with account assignment category! For example, the PO with account assignment category -- K Cost center, when you do MIRO, you can go to item line's column "G/L account No.", change the G/L No. to the substitute one; or find one column with name account assignment, then click the button, you can change the G/L account No. as well.
    Regards
    Z.T

  • Validation checks we usally do during mapping

    Hi Experts,
       Can any one Help me what are validation checks we usally do during mapping before posting to R3 system.Can any body please give me some examples.
    Thanks
    dhanush

    Hi
    I assume you are making an entry into a table on R/3,let me know if you want something else.
    1)Import and Export parameters are taken care of.(i.e.Data types,format etc)
    2)Exceptions are handled
    3)Primary Key is taken care of.
    4)Foreign key constraints.
    Thanks

  • How to change price differences account during subsequent debits only

    Dear all,
    Has anyone succeeded in changing the price differences account during invoice posting (MIRO) according to particular customer specifications like having it changed only in case of subsequent debit invoices (this is a current requirement which we would like to solve)? Is there any BADI which influences the price difference account determination or is there only the PRD-related setup via account-determination-customizing?
    Thank you for your feedback!
    Kind regards,
    Klemens

    They don't want to control the "PRD accounts" - they just need a solution to have different accounts available for the situation in which the usual PRD account assignment triggers. They need this because they get subsequent invoices (very late in the process) after the whole stock is already moved away and hence, the whole subsequent invoice amount would go to the price difference account; which they don't want to have.

  • Option to Choose Recon Account during MIRO

    Hi All,
    Is there a way to make the reconciliation (GL) account a selectable field during MIRO? I mean, can I have the option to change the recon account during invoice verification? Our users want to have such option.
    I would appreciate any input. Thanks! =)
    Willing to award points. =)

    Hi Biswajit,
    There are vendors who have one or two reconciliation accounts (though only one recon account) is mainatined in the vendor master. We want to have the flexibility to choose/ change the recon account during invoice verification. I know we can change the recon account in VM prior to MIRO to reflect the correct account but it would be tedious do this everytime. What I want to know is if there is any way to control the fields (particularly recon account) during MIRO? Thanks! =)

  • Account during inventory posting?

    Hi Guys,
    Can you give u detailed explanation of the following accounts during inventory posting?
    1.Incidental costs of external a 
    2.Inventory posting              
    3.Gain/loss from revaluation    
    4.Purchase offsetting account
    5.GR/IR clearing account         
    6.Cost (price) differences       
    7.Materials management exch.rate 
    8.Purchase account  
    These accounts can be obtained from simulating in OWMB with movement type 101.
    Thanks in advance,
    Alex

    Hi Alex,
    Basically the accounting entries you are checking in the OMWB belongs to movement type 101(As you know).So whenever GR is made following accounts are updated.Here few accounts belongs to if purchase offsetting account is active at your company code level which is purchase offset account and purchase account.
    Now if you are making a GR of total value 100 then flow will be as follows.
    Inventory account           Dr            100
    GR/IR clearing account   Cr             100
    If there is some price difference wr.t. MAP and PO rate then two case will be there
    1. Purchase account  will be debited w.r.t. difference amount if stock coverage is there.
    OR
    2. Cost price differece account is debited.
    In case of Material with standard price difference amount goes to
    Cost Difference again
    Material Management Exch rate accounts gets hit when there is difference in Foreign currency rate and your local currecy rate.
    I hope now you must have good idea of accounts as per movement type 101
    Regards
    Vivek Sharma
    -- Reward if helpful

  • 7016 - The Health Service cannot verify the future validity of the RunAs account

    Hi,
    We have several gateways set up on our other domains (DMZ, Test and Dev) using certificates to connect to the RMS with a few agents reporting to the gateway in it's domain. I am recieving this warning for all gateways and agents that are being monitored (in the other domains).  All our servers are either Win 2003 32bit or Win 2003 64bit.
    The Health Service cannot verify the future validity of the RunAs account PRODUCTION\username for management group PRODMGMT due to an error retrieving information from Active Directory (for Domain Accounts) or the local security authority (for Local Accounts). The error is The network path was not found.(0x80070035).
    From the searching that I've done on the net, a couple of people have mentioned that if you set the password expiration flag on AD users and computers for the account the problem will go away.. This hasn't happened for me.
    I have checked the logs on the gateway servers and they report the following messages:
    Event Type: Error
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7016
    Date:  15/03/2010
    Time:  6:05:25 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service cannot verify the future validity of the RunAs account PRODUCTION\username for management group PRODMGMT due to an error retrieving information from Active Directory (for Domain Accounts) or the local security authority (for Local Accounts).  The error is The network path was not found.(0x80070035).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Warning
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7020
    Date:  15/03/2010
    Time:  6:05:25 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service has validated all RunAs accounts for management group PRODMGMT, except those we could not monitor.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    However a few hours later I don't get any error messages and it seems to be working happily.
    Event Type: Information
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7026
    Date:  15/03/2010
    Time:  9:02:28 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service successfully logged on the RunAs account PRODUCTION\username for management group PRODMGMT
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Information
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7023
    Date:  15/03/2010
    Time:  9:02:28 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service has downloaded secure configuration for management group PRODMGMT successfully.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Information
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7025
    Date:  15/03/2010
    Time:  9:02:28 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service has authorized all configured RunAs accounts to execute for management group PRODMGMT.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Information
    Event Source: HealthService
    Event Category: Health Service
    Event ID: 7024
    Date:  15/03/2010
    Time:  9:02:28 AM
    User:  N/A
    Computer: DEMOMMS003
    Description:
    The Health Service successfully logged on all accounts for management group PRODMGMT
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Despite the successful logs that appear the gateway still shows up with the same warning.
    If i stop and start the service on the gateway it then shows up as healthy in SCOM, but then the next day it the warning comes back.
    Is the problem caused by different domain acounts and when it tries to find it in the domain it can't find it?
    Cheers, 
    Phil

    I also have the same problem with my scom 2012 system.
    I am getting 7021 and 7016 events.
    as mentioned by Jonathan, i am able to open notepad with the user account for which we are getting error.
    another thing noted, when we run setspn -l domain\acc , we are getting error 
    Ldap Error(0x51 -- Server Down): ldap_open
    or
    FindDomainForAccount: Call to DsGetDcNameWithAccountW failed with return value 0x00000525
    Could not find account DOMAIN/account
    Another point to add, my server is ABC.XXX.company.com and acc i am using us YYY\acc_name. I mean to say my account is of diff domain.
    This config is working fine no issues at all in another server which was setup earlier with 2007 r2.
    Manish
    I recently had the same issue in our Forest. Did you try YYY.company.com\acc_name? If you use the netbios name, setspn (and scom does on account validation as well, if you just pick the domainname from the list) will try to resolve the dc via netbios. Two
    alternatives: add the other domain to the dns searchlist for your network adapter (I won't do this one, this does not resolve the cause of the problem) or configure your action accounts with fqdn [email protected] The funny thing is, in scom event
    you will see scom validated account "\[email protected]" (still add's the backslash)
    Correction: this did not solve the issue as mentioned before, the error reappeared again... :(

  • [svn:fx-trunk] 5121: Fixing generated SymbolClass class names to take packages into account during FXG - SWF conversion.

    Revision: 5121
    Author: [email protected]
    Date: 2009-03-01 19:08:01 -0800 (Sun, 01 Mar 2009)
    Log Message:
    Fixing generated SymbolClass class names to take packages into account during FXG -> SWF conversion.
    QE: No
    Doc: No
    Checkintests: Pass
    Reviewer: Discussed with Corey
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/TextFXGGraphics.java

  • My Apple ID is valid but My icloud account does recognize it. I've had iPod touch for two years

    I've had I iPod touch for two years and have find my iPhone on it. I've lost it and now when I try to look for it it says my Apple ID is valid but does not have an icloud  account. Like I said I set it all up when I first got it and use it a few times why won't it work now and is there some way to reassociate it with my ID. Is there somewhere my info is stored?

    Do you another Apple device that is eligible for an iCloud account and is using that iCloud account?
    http://support.apple.com/kb/HT4759
    I suspect not and that the iPod has been restored and thus your account removed for the iPod. Then you iCloud account was deleted since you not longer have a device using it.

  • Display descriptions of cost center and G/L account in ME51N/ME52N/ME53N

    Hi Experts,
    Can any one suggest that how to display descriptions of cost center and G/L account in account assignment subscreen- ME51N / ME52N / ME53N.
    Thanks in Advance...
    Siva

    hi
    if the field is required then u have to enter them manually
    so if this are not required then goto OKB9 here give the default cost center for the Gl acct

  • F110 error - No Valid Payment Method found - Account ID missing

    Hello All,
    I am trying to clear some Vendor invoices in F110 using a Payment method. We have entered the House Bank at the time of posting the Vendor Invoice (Invoice is posted through an BAPI) and I am able to see the House Bank in BSEG - HBKID.
    Further for the Payment Method we are using only one House Bank and one Account ID - which has been configured correctly in FBZP - Bank Determination.
    However when we are running F110 for clearing the invoices - we are getting an error no valid payment method found. I am able to see the Payment Method & the House Bank while editing the Proposal - only Parameter which is missing is Account ID - though we have maintained it in Bank Determination configurartion.
    Any help will be appreciated a lot to fix this issue.
    Thanks and regards,
    Ankur

    Dear,
    Everything may be alright but payment method is assigned to Bank Account in Bank selection section FBZP. So, system will process payment from the bank account with assigned payment method. So, there is no Account ID system is not able to find the payment method. It is difficult to provide remedy. If house bank and account ID is not in the vendor master then update them.
    Just try it out....all the best.
    Regards,
    Chintan Joshi.

  • Field Bus. Area is a required field for G/L account - during VF02

    Dear All,
    Having error "Field Bus. Area is a required field for G/L account.." during billing VF02 in SD. Config done:
    1) FI requires BA... So not allowed to change FSG....
    2) BA assignment to plant/ division in SD done...  Rule 1
    3) Material master updated with division..done...
    Please give the solution.
    Regards,
    Ranjeet

    Dear,
    Business Area is assigned to Plant and Division Combination in:
    SPRO>Enterprise Structure>Assignment-->Sales & Distribution >Business Area Account Assignment>Assign Business Are to Plant and Division.
    Please check whether BA is assigned or not.
    Br,Vivek
    Edited by: View_taurian on Sep 15, 2011 4:11 PM

  • Post freight cost to a different a GL account during 411-K for consignment PO Process

    We are planning to implement PO consignment for one of the client.
    The scenario is, client pays the freight cost to the supplier in advance upon receipt of consignment stock .When consignment stock is moved to own stock (411k), during the movement of the stock we need to create two accounting entries one for the material cost and the other for freight cost such that the freight can be adjusted with advance paid freight cost. Freight cost can be settled manually with another PO but the requirement is moving average price of the material should include the  cost of material  and freight cost .
    For an example if the material cost is $100(PB00) and freight cost is $10(FAR1 - 10%), during 411k it  should create  two entries one for material cost($100) and the other for freight cost($10) which can be adjusted manually.
    We tried by adding freight condition (FRA1) in consignment info record along with PB00 –Gross price and in this case during 411k it is summing both the prices($110) and posting to one GL account and the same settles during MRKO  but what we are looking for is how we can split this into $100 and $10 .
    I know standard SAP does not support this this during 411k.
    I want to know if there is any User exit, pricing procedure, routines, etc...  Or any other way that can be used to achieve this requirement. Appreciate more detailed answer

    Hi,
       As you know, currently the delivery cost are not supported in consignment and pipeline settlement. The system design is explained in the note: 208555 - MB11 Delivery costs for pipeline and consignment.
       If you want delivery cost in consignment, you have to go for development. There should be additional entry for delivery costs in RKWA table. I am not sure about the feasibility, but still would like to share the below points:
       For creating additional entry in the accounting document while doing MB1B / MB11, you may check the BADI AC_DOCUMENT.
       You may refer the note: 165647 - Documentation: Enhancement RMVKON00 (MM-IV) which explains some enhancements related to consignment settlement.
    Regards,
    AKPT

Maybe you are looking for

  • Can i upgrade my macbook pro to 10.6

    I have the original MacBook Pro with Intel 2.16 GHz Core Duo processor, and 2 GB RAM. I am currently running 10.5.8, but I have an iPhone 5 running the latest iOS. In order to get the latest iTunes on my computer so that I can sync my iPhone, I need

  • How to put OR clause in SELECT statement

    Hi How to put OR clause in SELECT statement to return number_first/number_last to match records from another table's column. <pre> SELECT a.id , flat_number ||' '|| a.number_first||' '||a.street_name||' '||a.suburb address1, apt_no ||' '|| street_no|

  • Report out put to Excel file

    Hi, Please help me in this requirement. Is there any option to get the out put of report 6i out put to excel format file.

  • How to send short message services(SMS) from PC desktop to Mobile  with the

    sir, i want to know " how we can send the free SMS from PC desktop to Mobiles? this is my project part of final year project and till now i m in confusion. what r the various tools and technologies will be in used for implementing the SMS system. In

  • IPhoto barely runs, always freezes, slows down entire computer

    My iPhoto (v9.4.3) runs SO painfully slow, and has been doing so for months. Every time I open it to import or view photos, I end up having to force quit at least once. It causes any other applications running to lag and freeze when it's open as well