Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

(0) ShareShare
ReportReport
Posted on by 60

Hi,

AX offers a function to auto create a purchase agreement from a sales agreement between two companies that have an Intercompany relationship. 

 

But when i do it i got the following error:

"Conversion of Agreement classification code was not specified."

 

I corrected the above by using appending the value mapping section of the IC relationship to use external codes for "Agreement classification". 

 

After doing so i still get an error saying that the values mapped does not exist. So it point towards my mapping not being done fully correctly.

 

Any help regarding the mapping would be appreciated.

 

The sales agreement is created using a normal "Blanket sales agreement"

I have been trying to auto create a purchase agreement from a sales agreement using the "generate purchase agreement button" (found in the Intercompany section of the action pane when viewing sales agreements).

 

Thank you,

Huzefa

*This post is locked for comments

  • RamK Profile Picture
    2,580 on at
    RE: Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

    Hi HHa, Good to know that you are able to create agreements now.  I am fine with your step by step explanation.  Please mark the right answer, so that others can benefit from your experience

  • Suggested answer
    HHA Profile Picture
    60 on at
    RE: Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

    Hey Ram,

    You were right - It was the values of the external codes that was not matching. Thank you for pointing it out...

    After trying different scenarios I have now understood how the system uses the "values".

    In case somebody else has had the same issue hopefully this explanation can help.

    First a step by step is given. Then an explanation of what the system does is given. Ram please free to add/correct if needed....

    Scenario: Automatically create a Purchase agreement using a sales agreement based on an IC relationship (in my case USMF is the selling company and DEMF is the buying company).

    Step-by-step:

    1) If you want to use external codes for the agreement classificaiton, then select the "External" and the code you want to use when setting up the IC PO value mapping in IC relationship setup form - for this example - let’s call this code "IC".

    2) Create the sales agreement in USMF for the IC customer and select a sales agreement classification type that you created - let’s call it "SAC IC".

    3) In USMF, navigate to Sales & Marketing -> setup -> sales agreements -> sales agreement classifications and select SAC IC and press "external codes" button at the top. In this window select the code IC, click the general tab and add a the following value in the value-pane at the bottom: "IC value".

    NOTE: I have experienced that the "value-pane" sometimes is visible when on the overview tab . Other times you have to navigate to the general tab for it to be visible.

     

    3) Navigate to DEMF -> Procurement and sourcing -> setup -> purchase agreement  -> purchase agreement classification and select the agreement classification type that you would like the automatically purchase agreement to be created in - lets call it "General purchases".

    4) When selected click external codes and you will notice that the code "IC" is also available here because the external codes table is global.. Select the code "IC" and click on the general tab and add t he same value called as added earlier under the USMF sales agreement section: "IC value".

    5) Close all the forms and navigate back to USMF -> Common -> Sales Orders -> sales agreements. Find the sales agreement that you want to use to create the IC purchase agreement automatically and click the "Generate purchase agreement" button in the intercompany section of the action pane.

    6) Your purchase agreement has been created. To check it navigate to DEMF -> Procurement and sourcing -> purchase orders -> purchase agreements.

     

    What the system does:

    1) According to your IC value mapping setting and your selection of the external code, the system finds the external code “IC” in USMF and finds the value assigned to it: “IC value”.

     

    NOTE: Each agreement classification can give its own value to the external codes. And it is the "values" that link the sales agreement classifications to the purchase agreement classifications and vica versa.

     

    2) Then it finds that same value for the same external code in DEMF and creates the purchase agreement using the classification under which the system found the IC value.  

  • Suggested answer
    RamK Profile Picture
    2,580 on at
    RE: Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

    Looks like your external code values between the companies are not matching.  Now you have two options.  Option 1: Create new external code (code, description) and link it in both company. Option 2: Please try to create new agreement classification as "IC" in Sales / Purchase side, then try it with "Our" setting in inter company classification values.

  • HHA Profile Picture
    60 on at
    RE: Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

    Hi Ram,

    Yes - I have created many IC orders - both direct delivery and non-direct delivery and that didn't seem to give any problem....

     

    /Huzefa

  • Suggested answer
    RamK Profile Picture
    2,580 on at
    RE: Error upon auto creating a purchase agreement from a sales agreement for an intercompany relationship

    Are you able to create inter company orders for the given Customer/vendor...?  Looks like you have not configured intercompany setups completely.  If you are able to create orders clearly, then you can release agreement without any problem

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,267 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans