How to have backend account determination working SRM

Hello everybody
Just came across thread
EBP G/L Account Assignment doesn't  follow R/3 Account Determination
while I was searching for a solution to this same problem I'm having here as well. I already thought about using BAdI BBP_DETERMINE_ACCT. But I'm stuck to find the right backend function module (R/3 4.7) in order to ask for the G/L account coming from the backend account determination.
Did somebody already solve this and if yes is willing to share knowledge?
Any useful help will of course be rewarded with points!
Best regards,
Renaud

<b>The function module in R/3 backend systems looks like that:</b>
FUNCTION <your function module name here>.
*"*"Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(I_MATNR) TYPE  MARA-MATNR
*"     VALUE(I_BUKRS) LIKE  T001-BUKRS
*"  EXPORTING
*"     VALUE(E_KONTO) LIKE  T030-KONTH
*"     VALUE(E_BSCHH) LIKE  T030B-BSCHH
*"  EXCEPTIONS
*"      NOT_FOUND
  DATA: w_subrc LIKE sy-subrc.
  DATA: i_ktopl LIKE t001-ktopl.
  DATA: i_bklas LIKE mbew-bklas.
  CLEAR: w_subrc, i_ktopl, i_bklas, e_bschh, e_konto.
* Determine chart of accounts
  SELECT SINGLE ktopl FROM t001 INTO i_ktopl
    WHERE bukrs = i_bukrs.
  w_subrc = w_subrc + sy-subrc.
* Determine bklas from material
  SELECT SINGLE bklas FROM mbew INTO i_bklas
    WHERE matnr = i_matnr
    AND   bwkey = '1000'
    AND   bwtar = space.
  w_subrc = w_subrc + sy-subrc.
* Determine G/L account
  CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT'
    EXPORTING
      bewertungsklasse       = i_bklas
      bewertung_modif        = '1000'
      kontenplan             = i_ktopl
      konto_modif            = 'VBR'
      soll_haben_kennzeichen = 'S'
      vorgangsschluessel     = 'GBB'
    IMPORTING
      buchungsschluessel     = e_bschh
      konto                  = e_konto
    EXCEPTIONS
      NOT_FOUND_T030         = 1
      NOT_FOUND_T030B        = 2
      NOT_FOUND_T030R        = 3
      NOT_FOUND_T030S        = 4
  w_subrc = w_subrc + sy-subrc.
  IF w_subrc <> 0.
    MESSAGE i100(zpcg_mm) WITH i_matnr RAISING not_found.
  ENDIF.
ENDFUNCTION.
<b>The BAdI code in SRM looks like that:</b>
method IF_EX_BBP_DETERMINE_ACCT~DETERMINE_ACCOUNT.
  data: e_konto(10) TYPE C,
        e_bschh(2)  TYPE C,
        wa_acct_data TYPE BBP_OCI_ENRACCT.
  IF NOT item_data-ordered_prod IS INITIAL.
    CALL FUNCTION '<your function module name here>'
      DESTINATION item_data-product_src_sys
      EXPORTING
        i_matnr = item_data-ordered_prod
        i_bukrs = item_data-co_code
      IMPORTING
        e_konto = e_konto
        e_bschh = e_bschh
      EXCEPTIONS
        NOT_FOUND = 1
    IF sy-subrc = 0.
      LOOP AT acct_data INTO wa_acct_data
        WHERE line = item_data-line.
        wa_acct_data-g_l_acct = e_konto.
        MODIFY acct_data FROM wa_acct_data.
      ENDLOOP.
    ENDIF.
  ENDIF.
endmethod.
<b></b>

Similar Messages

  • Account determination in SRM

    Hello,
    Can someone explain to me how the account determination in SRM works? I have a thorough understanding of MM.
    I would like to know what the possibilities are when configuring account determination (classic scenario).
    Thank you & Kind regards, Djoekie

    Direct material - stock / Inventory account posted - When you order a DIRECT
    for
    Consumption material - As discussed by Iftakar in Srm product category were mapped with GL accounts.
    but end user can change account assignment categories cost center , asset , wbs element, Order and GL accounts as defaulted.
    Muthu

  • G/L account determination in SRM by company code

    Hi,
    We have a requirement to default G/L account not only by product category but also by company code. I can see the field company on the BBP_DET_ACCOUNT table but in configuration this field is not there. I know the field company is not directly the company code field in ECC but is the BP in the org plan that has the company code flag on the function tab.
    We also know that we can use the BADI BBP_DETERMINE_ACCT to accomplish what we want but I am trying to find a way of doing it without any development.
    We are in SRM 5.5 connected to ECC 6.0.
    Thanks and regards, Jose Oyon.

    Dear Olyn,
    if it is showing in Account Determination analysis that "G/L account has been determined", but still in the incompletion log it shows "G/L account was not determined", then the most possible chance is that after creating the Sales Order the G/L account was determined for Customer or Material.
    You can be able to save the order even it is incomplete.
    Solution: you can delete the line item from the sales order & again add it
    Please let me know if this solution helps you or not.
    Thanks
    Bidhu

  • How to create new account determination in OBYC

    Dear SAP Guru,
    I'm getting error 'Maintain account determination (table T030B) for posting ST3' upon GR (posting) against PO. I noticed name of the procedure or group of procedures for which automatic postings can be generated is NOT maintain for ST3 in OBYC (Maintain FI Configuration : Automatic Posting - Procedure). Appreciate if you could show me the path or t/code how to create new procedure for ST3 & maintain in OBYC. Thank you.
    rgds,
    nantha

    Hello Nantha,
    Transaction key can be created in
    SPRO - MM - Purchasing - Conditions - Define Proce determination Process - Define transaction/event key
    Here go for new entries and maintain the transaction key with a description.
    Then go to M/08 and maintain the transaction key in the 'acct key' field for your pricing procedure and the condition type.
    Also make sure to tick the 'Accruals' tickbox in M/06 for the condition type you want to post in the account key.
    Now go to OBYC and maintain the G/L accounts along with the posting keys and the posting rules as explained in my previous reply.
    Regards
    Gregory Mathews

  • How to have different accounting for VAT of suppliers having  two sites?

    Hello Sir/Ma'am:
    Currently we are having 3 tax rates - VAT-0, AA-12, BB-12. [(N) Tax Managers>Tax Configuration>Tax Rates]
    Vat-0 is for non-Vatable purchases.
    AA-12 is for 12% Vat on AA site purchases.
    BB-12 is for 12% Vat on BB site purchases.
    We opted to use these rates depending on the invoice and site we entered in the Payables.
    So what we did, we just choose what rate that is applicable to an invoice thru TAX CLASSIFICATION CODE column at the Invoice Lines. The LOV shows the 3 rates we made.
    But it only gives the 1 recoverable tax accounting combination from what we defaulted. As a result wrong accounting will be given to the others.
    How to have a different accounting for recoverable tax (VAT) for AA and BB?
    Thanks,
    Emgee

    I already found out a solution for my query. thanks!
    emgee

  • Fcp to color how you have got color to work

    Hi Guys I am having problems in getting the work flow with color to work and keep asking question on how to fix it , so i am thinking is there any body who would like to share how they got color to work and what setting you use, what formats ect. so we could get a list of working mac that every body can see. so please if you are up and running and your wrok flow works please tell me and all the other just how you have done it
    Thanks

    Hi Trevor,
    welcome here!
    Maybe your message tells us more about some frustrations you have been experiencing rather than the actual technical glithces you have encountered.
    Therefore, I start with a very symple reply.
    When I need Color to grade my video (usually DVCPRO HD) I simply go to file>send to>Color.
    I colour grade, render and send it back to FCP.
    Never had problems with that.
    To use Color you may need (recommendable) dual core intel processor or higher, 4GB RAM or higher, X1900 graphics card, High Def. external monitor. An external or internal drive capable to let you edit on the fly.
    I noticed that you are using Leopard.
    Issues related to the new OS with FCPstudio2 are quite common and we are all taking notice of it.
    Leopard was not specifically designed for FCP users so those and other issues were more or less predictable.
    Hope this helps!
    Gig

  • How to have a creative p5800 working in 5.1 mode and microphone at the same time

    pls, can somebody advise, how can i use my creative p5800 in 5.1 mode and at the same time to have microphone working properly.
    for the moment i have installed my creative as stereo speakers and the mic is plugged into the sound card, which is not very conviniet, because my rear speakers are not working.
    i would be very greatful if somebody can help me.
    10x in advance

    Duplicate thread.
    Cat

  • Need serious help on how to have blocked account u...

    My account got blocked incorrecly and i submitted a request to have that unblocked, i also did mention that to let me know were to sumbmit the details that were listed on help topics,Dina at skype support just emailed the info below.My account is blocekd in correctly with no fault on my card, would want to have it unblocked..on what basis they did that ,naming my card to be fraudlent ? leaving all this aside,i want to focus on the resolution.please help in giving mme the info on how to sumbit or contact these guys to unblock it 
    Thank you for contacting Skype Customer Service.
    We are sorry to hear that you are experiencing difficulties with your Skype account Unfortunately we cannot help you with this error.Our records show that your transaction has been carried out with a fraudulent credit card and we have blocked further use of this account. Information about this transaction has been forwarded to the proper authorities.
    If you believe that this account has been incorrectly blocked feel free to contact us.
    Should you need more assistance, feel free to contact us again.Best Regards, 
    Dina A,

    I DONT GET THIS, I JUST SIGNED ON WITH SKYPE AND I GET TO FACE THIS.WITHOUT ANY FAULT,THEY PUT A SUSPENSION ON THE ACCOUNT ? IN ALL EMAILS I HAD ASKED THEM TO LET ME KNOW HOW SUBMIT PROOFS THAT WOULD STATE THAT MY CARD IS NOT A FRADULENT ONE ? THE THINKING QUESTION , HOW DID THEY ARRIVE ON CONCLUSION THAT ITS FRADULENT CARD? MAKES ON SNESE , IT BELONGS TO ME AND HAVE BEEN USING FOR MAY YEARS SMOOTHLY.LOOKING AT THE REPLY BELOW I AM NOT SURE IF THEY EVER WILL RESOLVE, READ MANY POST ON THE FORMU ON THE ACCOUNTS BEING BLOCKED !!!! THEY ALL ARE STRUGGLING TO HAVE THAT UNBLOCK WHILE SKYPE IS HAPPILY STITING WITH HARD END MONEY ,iF CAN SOME MODERTAOR CAN HELP ME ON THIS I WOULD APPRECIATE.THE MONEY WHICH PUT IN TO GET THE ACCOUNTACTIVATED IS HARD EATNED AS I AM STRUGGLING STUDENT !
    Hello 
    Thank you for your reply.
    We understand your concern regarding your Skype account status. Unfortunately for the time being it must remain suspended until further notice while we continue to investigate whether the activity that has taken place within the account has violated our Terms of Use:

  • How to have childs account e-mail me a copy?

    I just opened an e-mail account for my 9 year old daughter. I turned on the parental controls so that only people I designate can send e-mails.
    Question: how can I have incoming and outgoing mail send a copy to my e-mail address by default? cc or bcc
    Thank You

    It sounds like you are looking for a program like Typinator.
    It isn't free, and the site doesn't specify compatibility with any OS above 10.7.
    As of today, the latest release is dated May 29th, 2012.

  • How to have multiple remote people work on a book

    Our family is putting together a book, and we all live in different locations, all in California.  Initially we will send all the pictures (.jpeg's) to one person for the initial book.  We wanted to then maybe send the book around for final edits, etc.  Is the best way so send it as an Aperature library on a DVD or store it on a central host, such as Dropbox.  What are my other options.  Can I send a .pdf either for review or review and edits.  Thanks.

    Our family is putting together a book, and we all live in different locations, all in California.  Initially we will send all the pictures (.jpeg's) to one person for the initial book.  We wanted to then maybe send the book around for final edits, etc. 
    I think you already have listed all the options available to you: If you want your family members to be able to edit the book, you will need to send an Aperture Library  - export the album with the images and the book as an Aperture Library and send this library as DVD or upload it.
    What are my other options.  Can I send a .pdf either for review or review and edits.  Thanks.
    PDF. You can print your book to pdf and share it the same way.

  • Can't get my godaddy caldav to synchronize with lightning. Can someone explain how they have got this to work?

    all help is appreciated

    I have. I access the the calendar settings in Go Daddy Workspace and go into the share calendar tab. From there I publish my calendar and have the URL sent to me via the email calendar function. I then create a new network calendar in lightning and use the URL as the location. Lighting creates the calendar and I see it in my left menu but I am unable to put a check into it. Is anyone else having this problem?

  • Account Determination- MM Purchasing

    Hi all,
    I'm unable to understand how exactly the Automatic Account Determination works, can any one please explain it from SAP implementation point of view.

    Hi,
    In SAP every movement of goods is followed by one movement type and movement type trigged transaction event keys. G/L account assignment and G/L account assigned to transaction event key in OBY T.code. GR,GI & IR will updated by movement of goods only.
    In Account Determination, respective G/L accounts assigned to your chart of account,relevant to business transactions keys(Example:BSX,PRD,FRE,GBB),Account modifier(Example:BSA,VBR) and Valaution Calsss.If all are assigned then you would not face any problems during your posting of GR,IR etc..........
    For Account Determination 5 major characteru2019s are as follow:
    1.Chart of Account,
    2.Valuation Class,
    3.Transaction Event Key,
    4.Valuation Grouping Code,
    5.Account Grouping Code/Account Modifier.
    You can Configure Automatic Account Determination with T.Code are as follow:
    1.OMSK: valuation Class with Account category reference,
    2.OMWM: Active Valuation Grouping Code,
    3.OMWN: Active Movement type with G/L account,
    4.OMWD: Active Valuation Area,
    5.OMWB: Active Chart of account,Valuation Grouping Code,Account Grouping Code,Valuation Class and G/L acocounts
    For more check the links:
    http://sapdup.peteandmegan.com/?p=19
    http://www.bluemarlinsys.com/ns/0603-03.asp
    SAP MM Automatic Account Determination
    Regards,
    Biju K

  • HOW TO REDETERMINE ACCOUNT DETERMINATION(VERY VERY URGENT)

    HELLO,
    if in the billing the acoount detrmination was not carried out correctly and then we have done changes in customization to make it correct ,then how we will make the changes effective on the billing document in which the error of account determination came
    in prices we redetrmine by (A,B,C,G etc ) from update
    how to do for account determination
    plz tell very urgent

    Hi,
    I am not sure, how aacount determination is determined in your system.
    If it is based on customer acccount group, Material account group basis, yo can execute VF02, goto billing document header-> Accounting data -Account Assignment group and select the right account assignment group. Now goto line items of the billing document ->Accounting-> Account asignment group and update the right material account assignment group.
    Now save the billing document and release it to accounting
    Muraleedharan.R

  • RE: account determination for OI exchange rate

    Hello,
    I have maintained accounti determination for OI exchange rate differences in the transactio code OB09.
    G/L account --- Loss and gain..
    Can any one help me in testing ? How this should be tested that the accounts are working properly.

    Hi
    Come up with a test scenario where you post a foreign currency invoice (E.g. Customer Invoice) at the beginning of the month and then subsequently posting a receipt later on that would result in foreign currency gain or loss. Results of this should be as per u201CExchange Rate difference Realizedu201D set up in OB09.      F.05 should result with u201CValuationu201D set up in OB09.
    Hope this was clear

  • Abt account determination

    I want to know how does the automatic account determination takes place in MIRO,everytime how system picks
    Vendor account(credit)
    GR/IR(DEBIT)
    In MIGO it depends on movement type and all other things,
    but in MIRO there is no mvt type.
    pls let me know asap

    Unplanned delivery costs (UPF)                                      
    Unplanned delivery costs are delivery costs (incidental procurement 
    costs) that were not planned in a purchase order (e.g. freight,     
    customs duty). In the SAP posting transaction in Logistics Invoice  
    Verification, instead of distributing these unplanned delivery costs
    among all invoice items as hitherto, you have the option of posting 
    them to a special account. A separate tax code can be used for this 
    account.                                                            
    If the above setting is not done and you have std price than it will post to the price diff account and fi you hae MAP then based it will post the mateiral account

Maybe you are looking for

  • Ipod touch will no longer turn on or charge.

    Hi there, I recently restored my iPod touch and i didn't really watch the restore. I know the loading bar on ipod was nearly at end. Anyways, 10-15mins later i go to use my ipod and clicking the home button nothing displays. I then try to turn on, ye

  • The agents are not getting determined

    Hi Gurus, In the standard workflow WS00300022 with BUS 2104 for Approval of Appropriate request, the agents are not getting determined. Below are the steps followed: We have created a subtype for BUS 2104 and redefined the display and edit to add som

  • Keeps unexpectedly quitting!

    I got a softwear update and download them and restarted my computer. I tried to get another update because I had to force restart the computer so I wasn't sure if they all got download. Softwear update unexpectedly closed. So do Safari, Mail and who

  • New iPhone radio "dead" in 3 days.

    Well, after standing in line for 14 hours to get my new iPhone last Thursday, it appears the radio failed last night (Sunday)! The service bar shows "No Service Available" (wherever I am). Other iPhones in same location have 4 bars. Dial my phone fro

  • How to set up an iPad to print?

    How to set  up an iPad to print?