Intercompany Transactions

ragrebeloragrebelo Member Posts: 6
I'm configurating and testing intercompany transaction.

When I post a transaction (order to a vendor in the same database), I receive an error message: "IC Partner MN not exist as a Customer in current company".

MN is the company that is sending the order.
At the first time I didn’t configure the MN as customer in his company.
Then I configure MN as a costumer, and the same error appear.

If I change the IC Partner Code in the Company Information, the error message appears with this new code.

Could you please help me?

Comments

  • nunomaianunomaia Member Posts: 1,153
    If you are making an Order to a Vendor, I assume that is a purchase Order.
    Isn’t supposed to be vendor having a IC Partner Code instead of a customer?
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • ragrebeloragrebelo Member Posts: 6
    Yes it is. And the Vendor have the IC Partner Code.

    I don't know why it check the customer.
  • nunomaianunomaia Member Posts: 1,153
    I have made several intercompany purchases to vendors and I can't reproduce your problem.
    Can you run debugger and inform in witch codeunit/table appears that message.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • ragrebeloragrebelo Member Posts: 6
    CodeUnit 427
  • nunomaianunomaia Member Posts: 1,153
    I think that message it's from custom development. I'm in NAV 4.0 SP3 in that codeunit and don't have any message of that type.

    Can you copy a few line where is the error message is from codeunit.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • ragrebeloragrebelo Member Posts: 6
    Here it goes:


    GetCompanyInfo;
    IF ICOutboxPurchHdr."IC Partner Code" = CompanyInfo."IC Partner Code" THEN
    ICPartner.GET(ICInboxTrans."IC Partner Code")
    ELSE BEGIN
    ICPartner.GET(ICOutboxPurchHdr."IC Partner Code");
    ICPartner.TESTFIELD("Inbox Type",ICPartner."Inbox Type"::Database);
    ICPartner.TESTFIELD("Inbox Details");
    ICPartner.CHANGECOMPANY(ICPartner."Inbox Details");
    ICPartner.GET(ICInboxTrans."IC Partner Code");
    END;
    IF ICPartner."Customer No." = '' THEN
    ERROR(Text001,ICPartner.TABLECAPTION,ICPartner.Code,Customer.TABLECAPTION);
  • ragrebeloragrebelo Member Posts: 6
    I catch the error.

    I don’t know why but the IC Partner Code for de MN code doesn’t have the customer number.

    Because this field is hide, I did run to the table and insert the code.

    Now I can do the IC transaction.

    Thanks any way.
  • nunomaianunomaia Member Posts: 1,153
    I think I found your problem.

    When you create a Vendor has a IC Partner and its database transactions. You must create in other company a customer with your current company.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • nunomaianunomaia Member Posts: 1,153
    ragrebelo wrote:
    I catch the error.

    I don’t know why but the IC Partner Code for de MN code doesn’t have the customer number.

    Because this field is hide, I did run to the table and insert the code.

    Now I can do the IC transaction.

    Thanks any way.

    That field isn't hidden, it's in customer card.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • BabyJesBabyJes Member Posts: 1
    i have gotten the same error...one workaround i found to change the IC partner code to the code of the IC partner on the document you are sending, eg, if you're doing an intercompany PO and the IC Partner on that is ICP 30; change company information IC Partner to ICP 30 and the error goes away and it goes thru to the other company...its just not rite tho coz the whole idea of intercompany is that companies can be both creditors and debtors of each other....*yawn* <sigh> ](*,) or maybe i was just wrong...i'll look again...but ya...
  • jannestigjannestig Member Posts: 1,000
    if you are in the company A then has recieved the order from company B
    Have you made sure that company B has been setup correctly in company A ? this message suggests that the intercompany codes either have not been setup for MN or that it was setup incorrectly.
  • MbadMbad Member Posts: 344
    Check the company information for IC partner code on both companies.
Sign In or Register to comment.