Cross-company code posting BAPI_ACC_DOCUMENT_POST number range

When I use BAPI_ACC_DOCUMENT_POST for cross-company code - I put the first company code in the header and first line item and the second company code in the second line item.
This posts - however there is a BIG problem with the document numbers it posts:
1. It posts <b>both</b> company codes using the number range of the second company code.
2. It updates NRIV for only the second company code.
How do I get this to work properly and post with the correct number range for the first company code.

Not sure if this applies to you or not - check Note OSS 419588 - Distributing cash discount base amounts in tax calculation.

Similar Messages

  • BAPI_ACC_DOCUMENT_POST- Cross Company-Code Posting problem

    Hi,
    I am using BAPI_ACC_DOCUMENT_POST in a program to post a GL document.
    The program works fine for single company code posting.
    For <b>cross company-code posting</b>, i.e. when my upload file contain more
    than 3 company code,
    The document gets posted and uploaded in SAP but the posting result i.e
    for clearing accounts is incorrect.(clearing accounts of post in company is not generated)
    FYI, There is <i>no error message returned from BAPI</i>.
    Am I possible to do this with bapi, so I have to split my doc and post
    it pro company code?
    Thanks in advance.
    Best Regards,
    Hikaruno

    Hi,
    It seems the G/L account is a reconcillation account..Try with another G/L account and see.
    Regards,
    Nagaraj

  • Cross company code posting

    hi
    while posting cross company code posting in F-02 for customer,the open item is not cleared
    ex: com.code:1000 have customer debit balance
    the customer paid to com.code 2000
    in f-02, 40 bank in com.code:2000
                 15  cus. in com.code:1000 has been taken in new com.code option
    but open item is not cleared?
    how can i post?
    next in company code 1000- 2000 company balance will be there and same com.code 2000 also will have 1000 com.code balance , how can i clear this
    regard
    sowmya

    you can use F-30 for the clearing at the same time as the posting.
    But it may be better to have the repsonsible person in the customer's company to do the clearing, so he/she knows the payment has been received (although in the same company).
    Current accounts between companies should be "cleared" at regular intervals. ie. offsett asset & liabitily side. It's a business decision on when to clear the balances.

  • Cross Company code posting is available for recurring payment setup?

    Hi All,
    I could not find the cross company code field for recurring payment setup with useing T code FBD1.
    Vendor is created in paying company code 1000, however, the rent has be booked to cross company code (1001) cost center (2000).
    So, while trying to do recurring payment setup, I could not see the field.
    I know the alternative option that i can use the "Cost Center(1000)" is assigned to CoCd 1000 and do recurring setup without useing cross company code, later i can post the manual journal for correction (as below), however, I do not want use this option.
    Dr/Cr       CoCd                         GL account            Cost Center           Amount
    Dr            1001                         Rent account          2000                      XXXXX
    Cr            1000                         Rent account          1000                      XXXXX
    Please let me know your thoughts on this.
    Thanks,
    Srinivas

    Hi, ok17 is not for cross company,but for CO-FI real time integration.
    Ex. you maintained for "RKL     Actual activity allocation" Dr 123 Cr 567
    Then while posting activity allocation in CO you'll get posting like Dr 123 Cr 567   (with corresponding CO objects)

  • Cross-Company code posting Error

    Hi Experts,
    When I am trying to Post an intercompany transaction facing an error "A unique company code has not been assigned to company number XXXX"
    Scenario:
    1. Company code 1 debit
    2. company code 2 credit
    In simulation I can see the line items as below
    Cocd PK    GL Acct     Amount
    IN01   40     1                100           Expense acct
    IN02   50     2                100           Expense Acct
    IN02   40     3                100          Inter comp clerg acct
    IN01   50     4                100         Inter Comp Clerg Acct.
    but still above said error message is pops up:
    rgd
    YJ

    Hai Ravi,
    Thanks for the link,
    From the document split settings i can able to post an Inter-co document and that is : Expense of company code 1 to Expense of Company Code2. But In case of Vendor invoice (F-43) - Liability for Comp code 1 and Expense for Comp Code 2. In vendor case scenario I am still facing the same error.
    My doubt on this error is how the line item of Comp code 1 can derive the profit Center (PC1) information when entry is as below:
    Trnsct      Compcode       Amt           Profit Center
    Vendor          1               10000
    Expesne        2               10000         PC2
    Your suggestion or assistance on this is highly appreciated.
    rgd
    YJ

  • Cross company code posting in assessment cycle

    Friends,
    I developed one assessment cycle to send from Cost center A ( company code A with USD) to Receiver cost centers B ( company code B with CAD) and Cost center C ( Company Code A and USD), When I do the assessment cycle and check the details it is showing me 100% taken out of sender and assessed to B and C.  But when I check cost center report of Cost center A, the credit is not same as the debits ( i made the cycle to take out 100%). When i drilled down in the credits ( sent from assessment cost element), I see object currency to be different from transaction currency ( should be the amount that needs to be credited) even though Object and transactions currencies are in USD.
    Any input on why object currency value will be different from transaction currency value even though both are in USD? Is it something because of cross company posting with different currencies? Thanks in advance

    Hi,
    check SAPNET note 549430 it describes the system beahivour and what you can do.
    BR Christian

  • CROSS COMPANY CODES POSTING - OBYA

    Dear Experts ,
    Can you plese tell me
    1] when we post F-02 debit for AAAA company code and credit for BBBB company code , it generates 4 line items
    my question is  this will shows in open item when we post in F-02 , then how to clear this docments to show in cleared items
    Thanks in advance for resolving my problem
    Regards
    Bhaskar

    Hi,
    This company codes will be created with open item managed gl accounts in each of the company codes.
    Using F-03 you can clear these GL accounts whenever there is an offsetting entry posting.
    Regards,
    Krishna Kishore

  • Cross-company code postings - FI validation

    Hi,
    We start using the cross-company code postings (transaction OBYA) between company code A and company code B and have to give authorizations both company codes to the Finance users. The idea is to have a set of G/L accounts which are allowed to be used when company code A and B are posted via cross-company code posting.
    SAP recommends to implement a validation in FI to restrict the Intercompany scenatios. I attempted to create a FI validation for complete document (call-point 3) with no success:
    1)
    IC Rule: BSEG-BUKRS = A and BSEG-BUKRS = B and BSEG-HKONT IN ACCOUNTSET
    Prerequisite: TRUE
    Check: IC rule
    Message: E-  Account & not allowed for cross-company postings
    When I test it, the Intercompany clearing account configured in OBYA, and which is in ACCOUNTSET, shows up in the error message, which unwanted.
    2)
    IC Rule 1: BKPF-BUKRS = '0017' AND BKPF-BUKRS = '0005'
    IC Rule 2: BSEG-HKONT IN ACCOUNTSET
    Prerequisite: TRUE
    Check: IC Rule 1 --> IC Rule 2
    Message: E-  Account & not allowed for cross-company postings
    No error message is issued at all, even if the G/L account is not in ACCOUNTSET.
    Please advise what I am missing.

    Hi Nitin,
    Thank you for your feeback.
    I just wanted to clarify that the cross-company code posting is when company code A can intitiate a posting to company code B simultaneously (for example Intercompany re-charge, cash concentration, etc.). The trigger for cross-company code posting is the company code field on the line item. If company code A is in the header (BKPF-BUKRS) and at least one document line item filled up as company code B, the system created two documents for each company code, offsetting the Intercompany clearing account, configured in OBYA.
    For example:
    Posting via FB50: Leading company code = company code A (BKPF-BUKRS)
    Item 1: Debit; G/L account 1; Cost Center 1; Amount 200; Company code A (as a default)
    Item 2: Debit; G/L account 1; Cost Center 2; Amount 100; Company code B (manually changed)
    Item 2: Credit; G/L account 2;                        Amount 300; Company code A (as a default)
    The systen creates two postings:
    Posting 1: company code A
    Item 1: Debit; G/L account 1; Cost Center 1; Amount 200;
    Item 2: Credit; G/L account 2;                        Amount 300;
    Item 2: Debit ; I/C Clearing Account;              Amount 100;
    Posting 2: company code B
    Item 1: Debit; G/L account 1; Cost Center 2; Amount 100;
    Item 2: Credit;I/C Clearing Account;              Amount 100;
    The only connection between the two is the cross-company code number (BKPF-BVORG), which assigned by the system once posted, as a logical connection.
    I guess we could use a dedicated document type. If that's the case, how would the validation work then?
    Coudl you please share more details on the BTE option?
    Thank you,
    Inna

  • Cross company code transaction error in F-48

    Dear all
    I have a problem in cross company code posting. I have done all the settings like company codes are assigned to company(OX16) and i maintained gl accounts in OBYA also. When i am trying to post cross company code posting i am getting the error:
    A unique company code has not been assigned to company number XXXXXX
    Message no. GLT0001
    Diagnosis
    Document breakdown is active in your system. In certain cases, a company code is derived from the company ID number, and this must lead to the assignment of a unique company code.
    A unique company code could not be assigned to company number XXXXXX.
    System Response
    You cannot carry out the required posting.
    Procedure
    Assign one company code to company number XXXXXX.
    Please tel me wt setting i have to do in system.
    Thanks in advance
    Thanks and Regards
    Girish.

    Hi Chandra,
    Thanks for your information.
    I tried in OB60 BUT still same error i am facing. we have activated document splitting .IF document splitting is deactivated then its working fine ,When document splitting is activated then we have facing this error,
    If any notes or any setting please guide me.
    Thanks and Regards
    Girish

  • Value date cross company code postings

    Dear all,
    it is possible to influence the value date on a company code level via the transaction OB68. With this transaction you can state that the current date is used as the default value for the value date when entering line items.This works fine when posting a G/L posting within the same company code.
    When entering a cross company code posting, the indicator in transaction OB68 is ignored and the document date is used to be proposed as default value for the value date.
    Does anyone know which SAP parameters can influence the value date for cross company code postings ? If this is not standard SAP possible, does anyone already encountered this problem and, if so, how did one solve this issue ?
    Many thanks,
    Regards,
    Kristof

    thank you for the reply ... unfortunately I expected some Z-programmation

  • Prevent cross-company code postings for certain document type

    Hi all!
    I am looking for a possibility to prevent users from posting a "cross-company code posting" just for a certain document type.
    I checked validation rules and BTEs but without success. Do you have an idea?
    Thanks for any support.
    Michael

    Thanks for your reply. I have already tried to use a validation rule, but without success.
    It did not work as the relevant field "New company code" (NEWBK) in not part of BKPF or BSEG, but (only) of structure RF05A. Thus, I cannot use the field in a validation rule.
    Or is there a way to make RF05A fields available for use in validation rules?
    Regards, Michael

  • How to break the document line items in cross company code document

    Hi,
    Currently the cross company code posting is summing up all the line items and posting as a single line item as long as the line items are having the same tax code.
    The system will break the line items only if there are non-identical tax codes. How can i change this default behaviour to break the line items in all cases?
    http://wikisend.com/download/436966/2.zip

    It is the standard SAP behaviour to sum up all the identical tax code values.

  • Assignment to Co. Code for providing number range

    Dear Forum,
    We are trying to specify the number to Company Code for providing number range using the T code AO11. However, we notice that in the initial screen the particular company code does not appear against which we are required to specify the number. We also do not see the icon for adding the new entry. Is there some config missing due to which we are not able to see the Company Code. Would  appreciate your help.
    Thanks!
    Regards

    Hi raj n,
    OK, now I unerstand.
    An entry exists for every FI existing company code in transaction AO11 as long as the company code is assigned to a chart of depreciation  (Tr. OAOB).
    Please check your setting in transaction OAOB.                                                                      
    Regards Bernhard

  • How to use Cross Company Code document  number as Reffrence.

    Hi
    Actually user wants to post the same debit credit line items with Editing the amounts which he has posted last month
    So i suggested him to use post refference of the previous month document number.
    Since that is Cross company document number. There is no source to give  in T.Code FBR2. There is a fecility to give only document number of a company code not cross company code.
    Assume that there are 3 company's involved in that document.
    company  X --- 25 line items
    company  Y -- 75 line items
    Company  Z -- 100 line items
    Since he given in header data X Co code it has generated the Cross company code document number 1000X 08 ( which means 1000 is doc.number X is company code 08 is year. This is sap standard cross company code doc number format)
    and individual document number is
    X - 1000
    Y-  2000
    Y-  3000
    If he post with the reffrence of X company only 25 lines will come remaining 175 line he as to post manually.
    If he take Y Doc number  only 75 lines will come
    If he take Z Doc number  only 100 lines will come
    To bring all lines there is no provision to give Cross company Doc number.
    Please advice how to use cross company doc number as refference.
    Tks
    Shivaji

    Hi guru
    This is answered
    Thanks
    shivaji

  • Posting using cross company code transaction must be blocked

    Hello Guys,
    I have a  problem related to cross company code transaction.
    In the OBA7 I have the document type KE that not allows posting using cross company code transactions. In the moment that I am creating a new document through the FB01, I have an error as "Consolidated companies US52 and ' ' are different
    Message no. F5080. As a results, the document cannot be created by this way. This is the correct process.
    But I have several documents that was used the doc type KE and the cross company code transaction was used. This is my issue. I don´t know why these documents were posted. The document come from another interface via IDOC and the IDOC not errored out.
    Can anyone help on this?
    Thanks
    Rafael B.

    Hello, I´ve checked the log and no changes since 2008.
    The document was created in 2010.
    This is the message: "No logs found for the selected period"
    More suggestions?
    Regards.
    Rafael

Maybe you are looking for

  • My computer is broken so is there anyway to make a new apple Id for my husband without loosing anything

    Can I make a apple Id for my husband without him loosing anything!?

  • Is there a firewall that can block an application?

    I'm looking for a firewall that can block applications. The firewalls for linux that I've found using google and also the one I'm using now can not block an application. There used to be an option for iptables (-m owner --cmd-owner programname), but

  • Issue in ALV configuration

    Hi, I have some requirements to make some changes in WD ALV layout. By reading some earlier blog i guess i can make use fo class CL_SALV_WD_CONFIG_TABLE. however im not sure how would i make my ALV node (or data) available to methods of these class.

  • Arabic text running the wrong way

    I need to place a series of words, in Arabic, in an array. When I copy the words from the original text document to the script window, the order of the letters reverses from right-to-left to left-to-right, so basically all the Arabic is being written

  • AC_DOCUMENT_DIRECT_INPUT - BBTAX values

    Hi    Our system is connected to Vertex. When I use this function module without tax details  on BBTAX it posts. But when I fill BBTAX details ( ( tax code, tax amount and tax jurisdiction ) )the system shows an error "Error in external tax system: L