web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Store PO's

(0) ShareShare
ReportReport
Posted on by

Hello

I have a multi-store HQ RMS environment where a selection of PO's created in one store in particular weren't seen at HQ. Looking at these store PO's via SQL Studio Manager in detail I can see that the PO's are designated as POType '0' . I therefore believe these to be local store PO's.

Thinking that its an easy task just to change the 'POType' flag for these PO's to '1' and the PO's will be seen at HQ on the next 401 update, I tested on one PO. The PO appeared at HQ but it didn't have any line type entries within it - I assume therefore that the data associated with this PO held in 'PurchaseOrderEntry' table didn't copy over on the 401 update.

How can I therefore get the PurchaseOrder and PurchaseOrderEntry table data for each PO in question up from store level to HQ?

Kind Regards

Bruce

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: Store PO's

    Hi Antonijo,

    Thanks for the reply,

    I managed to get the PO's through to HQ in the end using pretty much the same method as you highlighted at the end of your message. Instead of updating a field through tSQL, I merely added a comment to the PO's themselves within RMS which in turn updated the DBTimeStamp and pushed them through to HQ.

    All is well now.

    Cheers

    Bruce

  • Suggested answer
    Antonijo Todorovik Profile Picture
    4,025 on at
    RE: Store PO's

    Hi Bruce,

    Well, first of all, let me remind you that attacking directly the database with tSQL is not a very good idea. So, I always recomend doing it in TEST environment. Contact your RMS Partner.

    Now, knowing your skills in tSQL and RMS database are good, I would say that your logic is OK, but not exact. For example, the field you are talking about, POType is not where the StoreID is saved, the correct field where this value is saved is logically StoreID field. The PO is "seen in HQ" not 'coz you changed the POType flag, but 'coz there was a change in that particular record in that particular table, which updated the DBTimeStamp field, which RMS compared to the DBTimeStame value for that record in RMS HQ Database in that particular table... Again, to be able to see the entries, you will have to "update" the PurchaseOrderEntry records, who are linked to the PO. Also, have in mind that there is additional table, PurchaseOrderEntryDetail where more information could be saved (not mandatory) per each entry in that particular PO....

    So, to be able to help You to finish your task, I think the best would be if I share with you the possible values for some of the fields, so You can understand better the records:

    1º) POType field in PurchaseOrder table

    0 – Purchase Order

    1 – Purchase Order generated from HQ

    2 – Transfer In

    3 – Transfer Out

    4 – Transfer In created from HQ

    5 - Transfer Out created from HQ

    2º) Status field in PurchaseOrder table

    0 – Open

    1 – Partial

    2 – Closed

    3º) IsPlaced field in PurchaseOrder table

    0 - Order has not yet placed

    1 - Order has been placed

    4º) ID field in PurchaseOrder table

    - Auto generated; Primary key column

    5º) PurchaseOrderID field in PurchaseORderEntry table

    - Foreign key; Refers to ID column of PurchaseOrder table (this is how the entries are linked to the PO header, 1 to N relation)

    6º) PurchaseOrderEntryID field in PurchaseOrderEntryDetail table

    - Foreign key; Refers to ID column of PurchaseOrderEntry table (this is how the EntryDetails are linked to POEntries, 1 to 1 relation)

    Hope this helps.

    Two final tips, if I were You:

    - I would go to the whole process with the user, to see how is he/she creating the POs, 'coz it's strange the RMS didn't upload the PO into HQ...check the system times of RMS HQ and RMS SO of that store in particular...

    - if you have to go by tSQL, update a field that is "not important", like DateCreated or similar, that will automatically update the DBTimeStamp and with that upload the record on the next WS 401...

    Kind regards, A.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans