Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7742351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:15:16+00:00 2026-06-01T09:15:16+00:00

In purchase order form – Line – Tab Quantity, there is Received, Delivery Reminder

  • 0

In purchase order form – Line – Tab Quantity, there is Received, Delivery Reminder and Ordered.

I want to be able to entry those field by X++ code, because currently our company still entry data into old system.

I can retrieve the arrival purchase order goods data from that old system, then I want to entry those retrieved data by code into Axapta.

What table and field should I consider when doing that?
What functions available to easily update each PO lines received quantity?
Sample Code is nice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:15:17+00:00Added an answer on June 1, 2026 at 9:15 am

    How to create a purchase orders?

    Sample code for sales orders can be found in jinx’s AX blog.

    Skip or translate the German text, the code is at the bottom, the essential being the createLine method call. A global replace of “sales” to “purch” will do the trick for you.

    Which fields to consider?

    Lots and lots but start with the identity numbers, quantities and item units.

    Quantities are in purchase units (PurchQty) and inventory units (QtyOrdered). You will have to set both, but one of the arguments to createLine will do it for you.

    Update:

    To update the received quantities you have to update a packing slip. Besides updating the quantities it updates/creates inventory transactions.

    You can do this by updating the PurchReceivedNow and InventReceivedNow fields on the PurchLine table, the second field can be set by calling the setInventReceivedNow method.

    Then you update the packing slip (you will need the purchase order and a packing slip id):

    void postPackingSlip(PurchTable purchTable, PackingSlipId packingSlipId)
    {
        PurchFormLetter letter = PurchFormletter::construct(DocumentStatus::PackingSlip, true);    
        letter.update(purchTable, packingSlipId, letter.transDate(), PurchUpdate::ReceiveNow);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an order entry form that has a ListBox with a list of
I have a purchase page and I don't want the user to be able
Take Purchase Order as an example. There is Purchase Order header and one or
I have a 'Purchase Order' class. It contains information about a single purchase order.
I'd like to trim these purchase order file names (a few examples below) so
Have SubscriberList When an order is placed I want to check if New User's
I have a purchase order table and another table to contain the items within
I have set up a couple of Customer Groups in Magento (General, Purchase Order
I have 4 groups of checkboxes and corresponding dropdowns on a form. Is there
If there are semantic errors in the form (mostly from external API), I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.