Substitution of account(HKONT) when posting in MIGO/MIRO

Issue: Need to change account(HKONT) when posting in MIGO/MIRO
example:       HKONT(GL Account)       KTOSL(Transaction type)
               1000000001              XX1
               1000000002              XX2
               1000000003              XX3
If XX3 exist then replace hkont of XX1 to hkont of XX2
expected result is:
               1000000002              XX1
               1000000002              XX2
               1000000003              XX3
Solution with problems:
1. Used substitution GGB1>Financial Account>line item for field HKONT. My problem with this is, since the data is in line item. How can I get the replacement of my account(shown above sample). if BSEG structure only shows 1 line item. I tried using bool_data-bseg. but its empty. Im assuming bool_data is used when callup 003(complete document) is triggered.
I used subtitution field G/L - Exit <UXXX>
Any Ideas or solutions would be great!!

if your Substituion exit is called then you can directly change the value of
BSEG-HKONT there according to your requirement.

Similar Messages

  • Substitution of account(HKONT) when posting in MIGO

    Issue: Need to change account(HKONT) when posting in MIGO
    After simulation the G/L account is split into tax wise amonts like 2% ecess, 1% hscess 2%cst.
    example: HKONT(GL Account) is display in one g/l account
    g/l account             amount                       posting key
    10030000          5,961.86-                     31
    10030000         50,675.79-                    31
    10030000         2,980.93-                      31
    expected result is:  i need to display like this
    10030000          5,961.86-                     31
    10045000         50,675.79-                    39
    10045000         2,980.93-                      39
    Thanks,
    Sreedhar.

    This is not true.
    If the system generate a FI document, the FI validations and substitutions rules will take place.
    Modification on key fields (like HKONT) by substitution have to be heavily tested because can lead to inconsistency.
    Regards,
    Alexandre

  • Display Accounting Doc when posting MIRO

    Dear SAP GURUS,
    Please teach me how to display the accounting document number when posting an invoice (MIRO).
    Invoice document no generated when saving the invoice : 520014152.
    I needs to go to MIR4, and click on "Follow-on documents" in order to know the Accounting Document no:5100000416 and the Special purpose ledger no 1002455422.
    Can I display the invoice no and the accounting no together at the same time?
    Please help.
    Thanks.

    yes i can at the time of MIRO u can see both
    go in SU01 for and user
    in Parameters enter IVFIDISPLAY in Parameter ID and X in Paramater Value
    thus for that user u will be able to c Invoice number and accounting number after saving MIRo
    u will get message like
    Invoice document 5105608893 was posted ( Accountng Documnt: 5100000000 )
    hope this helps

  • Make changes to auto generated line items when posting invoice thru MIRO?

    Hi All,
    My requirement is to make some changes in line items data when posting invoice through MIRO transaction.
    I have written a substitution for the same, The issue is that some line items get automaticaly created (i.e inter company posting). I need to make changes to these line items as well but substitution is not being triggered for these auto generated line items.Is there any way by which I can update in these line items as well ?
    further do we have any internal table which holds all the line items at runtime....to which I can refer and make the changes. I have searched but could not find one.
    Can anybody provide some inputs on this.
    Thanks,
    Lucky.

    Hi Kaushik,
    Thanks for your reply.
    I am using BADI INVOICE_UPDATE but here we will not be having line items which are auto generated.
    When we do inter company posting, line items are automatically created and these are not avaliable in the BADI. I am not sure if we can trap these line items any where.....the possible alternative which I can think of is to use memory reference and modify the internal table which holds all the items but unfortunately I am not able to find any such internal table to refer to at run time ...have u got any idea on this?
    Thanks,
    Lucky.

  • Why is vendor negative when posting invoice in MIRO

    Hi all,
    I have a very basic question.
    When posting an invoice in MIRO, why is the vendor GL account negative? I assume this is vendor A/P, so shouldn't it increase in an invoice?
    ie.. vendor   5.00-
    GR/IR  5.00 +
    If you have a website to redirect me on this topic so I can learn more about it, it would be most helpful.
    Thanks,

    Pistal,
    Must say nice name
    When posting an invoice in MIRO, why is the vendor GL account negative? I assume this is vendor A/P, so shouldn't it increase in an invoice?
    ie.. vendor 5.00-
    GR/IR 5.00 +
    Thease is because The vendor is your Crediator , You have to pay him the amount
    It Is like u went to hotel have sum  food, then  wheather you will pay to hotel or hotel will pay to you? and from  whhoes wallet will losse money  urs or hoteler?
    I guess that was the easiest ex any 1 can gave

  • GL Account Missing when Posting Up GRPO

    The scenario happen like this:
    1) Customer creating a PO with 3 items.
    2) One of the item that my client created needed to change warehouse, so they make an amendment through clicking into the Item master data, and change the warehouse from WSE 01 to HQ.
    3) Then in the PO, they deleted the item line, added new row and selected the same item code again, update.
    4) Then they copy the PO to GRPO.
    5) Then they have the procedure to update the serial number for the machine.
    6) After that, when they want to post the GRPO, it has an error message showing: G/L Account is missing [Goods Receipt PO - Rows - Warehouse Code][line:3] [Message 131-46]
    Any idea on this issue?

    Hi Micheal.......
    You need to set all the mandatory settings required for the transaction documents.
    You need to set the GL account determination. You need to set the Warehouse account GL
    You need to set the Item Group account GL.
    You need to set the Freight accounts.
    You need to set the tax accounts.
    You need to set the landed cost account......... Etc........
    Regards,
    Rahul

  • Error When Posting in Migo

    Hi All,
    I'm using ECC 6.0 IDES.When I'm trying to post a goods receipt for a PO using Migo,I got a short dump like
    No RFC destination is defined for SAP Global Trade Services
    Also there is some info in sourcecode like....
    when a goods movement for an inbound or outbound delivery is posted
    directly from VL31N/ VL01N, XBLNR is not yet known when we call
    CKMV_AC_DOCUMENT_CREATE, but the number is supposed to be stored in
    BKPF as well. There is no other way to forward XBLNR to FI as not
    every document is posted by MB_CREATE -> a new function module in
    MBWL for transferring the information, called by FI, meant to load
    the complete function group for all MBxx postings when this isn't
    required (Performance). Would be the better way to transport the
    information after switching off MBxx in later release.
    Can Some One resolve this error Please.
    Thanks & regards,
    Ravi S

    hi
    i am not an abaper, we had the same issue.
    general the fuctional/abaper will go to the source code add/delete the things. so better u go to source code by keeping the brack points...r else
    ask u r basis people to check. they will help u. if they r not getting ask them to reset it.
    regards
    ram

  • ERP EHP4 causing dump when posting invoice in MIRO

    I originally posted this in the MM forum but was advised to move it here.
    We just implemented ERP EhP4 w/SAPAPPL603 and are now getting a dump when using MIRO to posting a vendor invoice against a PO. The error seems to involve new logic for multiple account assignment introduced with this EHP. The dump is in include LMRMBWF02 of SAPLMRMBM, and indicates that data object S_MCRBPO does not contain component XHISTMA. The lines in LMRMBWF02 are (starting at 772):
    FORM bw_read_co_history_dyn_sub USING event TYPE bwmode
    s_index_mcrbpo TYPE eval_iv_index_key_s
    s_mcrbpo TYPE mcrbitm
    CHANGING s_mcrbco TYPE mcrbco.
    DATA: s_ekbe LIKE ekbe,
    s_ekbz LIKE ekbz,
    s_ekbz_ma TYPE ekbz_ma, "MAA EhP4
    s_ekbe_ma TYPE ekbe_ma, "MAA EhP4
    f_arewr TYPE ekbz-arewr, "MAA EhP4
    f_areww TYPE ekbz-areww. "MAA EhP4
    CASE event.
    WHEN c_recompilation.
    IF s_mcrbco-xunpl = space.
    Not for unplanned account assignments
    IF ( s_mcrbpo-exkbe = 'X' ).
    Read PO history for goods item
    IF s_mcrbpo-xhistma = space. "MAA EhP4
    ...with the last line being the culprit. The actual break in execution occurs at line 119 of SAPLMRMP, BESTELLUNG_BUCHEN where function MRM_BW_PO_HISTORY is called.
    Had some other errors where tables weren't properly activated after the EHP installation, but here most everything seems to be activated properly. The exception is table EKBE, which activates but with warnings about missing enhancement categories of tables or includes/subtypes for four active dependent tables. That's the only lead I've got.
    Can't find any notes or other posts about this error, any ideas would be greatly appreciated!

    Hi,
    the only thing i´ve found is this OSS Note:
    https://service.sap.com/sap/support/notes/1105679
    Best regards.

  • Change GL Account No at posting of document - MIGO

    Dear Fellows.
    I have a requirement to change the GL Account no when POST button is presses in MIGO. Account no will be fetched from a ZTABLE where they are store with respect to document type. I tried to do this with BADI but didn't find any BADI that will allow me to change GL. Most of them only import GL account . not a single one export at posting.
    Then i tried to find EXITS but didn't find any useful one.
    I just want to know if there is any BADI or EXIT that will fulfill my requirement. If there is not then i will have to do modification.
    Regards,
    Abdul Moied Yousuf

    Hi
    Generally Mod's here doesnt look into these kind of scenarios seriously unless its reported to move to the appropriate forum or the person who posts the actual question must take the responsibility. So there is no room for blaming anybody
    Also it depends upon the keyword we use for searching ;). I suggest you to use google first and then SCN second .. Thats what i do
    kesav

  • Filling alloction field for a subledger account by posting invoice by MIRO

    Hi, at this moment I am struggling with a problem concerning filling the field Allocation at line item of an GL account. When I am posting invoice by MIRO, I want to see certain information on line item of an GL Account. When I am posting an invoice by MIRO, this field is for P&L accounts and balancesheet accounts filled with the value such a determined in FS00, tab Control data, field Sort Key. So therefore all my accounts has the sort key Purchase order. When posting invoices by MIRO, the posting in FI, is showing me on line item level the PO-number in the field Allocation.
    However, when I am posting an invoce by MIRO on an reconcilliation account for asset, the allocation field is empty, MIRO is not filling this field automatically. Although the settings of the sort key is the same as for other balance or P&L accounts.
    Has anybody an idea how the allocation field can be filled automatically for an reconcilliation account for assets

    Hi
    Run the program RM07CUFA
    in SE38 Tcode and check the inconsistencies.
    Also in FS00 go to details of the GL account and double click on field status group under create bank interest tab and then double click material management/additional assignments.
    You can see the required or suppressed fields

  • Problem with migo, miro

    Hi All,
    I am having a message when i do MIGO, MIRO as follow.
    Purchase order 4500017222 does not exist"
    But the above number is my purchase order i got  it when i created with PO wiht ME21N.
    I think tables r not updating . can any one give me the solution for the same.
    Thanku

    Hi
    Please check in the PO ta the header level whether a tab release strtergy exists.If so then go to transaction ME29N and release the PO.After going to transaction ME29N open the release stratergy tab in the header and release it and save the PO.Then try to do GR aganist this PO.
    Along with this,please check some other settings also,which may be also the reason due to which your GR is blocked
    Please check the delivery tab of PO.Check whether the GR check box is checked or not.If not checked,please check it.
    Just check you have created standard PO.If by mistake you have you have created a framework order then there will not be any GR.
    HOPE THIS WILL HELP YOU
    Reward if useful
    Thanks and Regards
    SHYAM.R

  • Exit or substitution GL account when posting goods issue

    Hi out there,
    does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose. Although if I unblock it in table GB01 this does not work.
    If there is no possibility does anyone know a customer exit to change the account determination for GBB VBR when posting a goods issue ? It is needed for special postings and I want to program it either in a substituiton or exit.
    Thanks a lot for your help.
    Sebastian

    Dear Sebastian,
    It is possiable to change G/L through subsitution. But you will have to take help from abaper who will write code for the subsitution.
    Any subsitution which is realted to G/L can be written though the following path
    Financial Accounting (New)->>Financial Accounting Global Settings (New)->>Tools->>Validation/Substitution->>Substitution in Accounting Documents
    after that enter new line and double clik to write ABAP code based on your requirement.
    Hope you got the way.
    Rupesh

  • Problem when change bank clearing account for payment posting.

    We recently changed the bank clearing account for payment posting (program PC00_M99_PPM). But I found out because the config can only be changed but not delimited on payroll side, the program errored out when it retro back for an employee to the old clearing account.  So what am I supposed to do to fix this problem?
    Have anyone ever handled this problem before and could please throw some light on it?
    Thanks in advance.
    Johnson

    hi
    check following
    1. Check in OMWD, whether Valuation grouping code "0001" ia ssigned to Ur plant
    2. OBYC - If you have assigned GR/IR Clearing A/c to WRX then check whether you have maintained it with combination of valuation class and GL A/c
    If yes then maintain only GL A/c w/o valuation class OR maintain one entry with valuation class empty and GL A/c
    check following
    Error in service entry sheet
    Re: Error in ML81N
    http://sap.ittoolbox.com/groups/technical-functional/sap-acct/grir-clearing-account-wrx-doesnt-recover-gl-account-2224137?cv=expanded
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-ps/problem-while-posting-service-entrysheet-in-ecc-60-version-1483547?cv=expanded#
    regards
    kunal

  • Invalid Account Code Message 173-9 when posting Outgoing Payment

    When attempting to post an Outgoing Payment our customer recieves the following error: Invalid Account Code Message [173-9].  The local currency is CDN and Invoice currency is US.  The error occurs only when back dating the outgoing payment to Jan 31, 2011 on Posting, Due and Doc Date.  If the Posting/Doc date are left as the current date and the Due is set at Jan 31, 2011 then there is no issue.
    I've checked the posting periods, G/L determination and BP setup. 
    Note: this exact process has been completed many times in the past.
    Version:
    SAP B1 2007A SP01 PL11
    Any assistance would be appreciated.
    I've seen another post with a similar question but the answer did not solve our issue.
    Invalid Account Code when adding outgoing payments

    Hi,
    You may check this: Invalid Account Code error when posting AP Credit Note
    Thanks,
    Gordon

  • Error when posting debit balances to expense accounts

    dear experts.
    A screen dump is produced when saving or posting debit balances to expense accounts for only certain periods and for a certain fiscal year in this case year 2006. credit balances are being posted without any problem to the same accounts, same periods and fiscal year. what might be the problem. can the problem be solved form the ABAP side or FI side?
    its urgent

    Hi Willard,
    Karthik is right, we need more input to resolve this issue. ST22 can give it to you.
    This issue as far as I understand has nothing to do with ABAP. It has to be resolved by functional / basis people.
    Is there any internal order / cost center assignment when posting to these expense a/c's?
    Regards,
    Siva

Maybe you are looking for