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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Duplicate Lines in ReqTrans

(0) ShareShare
ReportReport
Posted on by 5

Hello

I am pulling data from REQTRANS table REFTYPE = 8. I am getting duplicate lines with either the same quantity or 2 lines with quantity that's been received and remaining quantity. Each line has 2 different REQPROCESSID. How do I get the correct lines with correct remaining quantity?

pastedimage1636653020805v1.png

Thanks!

Daren

I have the same question (0)
  • RP-MAS Profile Picture
    7 on at
    Did you ever figure this out?   If not, maybe the following will help a little.

    1) In ReqTrans for RefType = 8 (Purchase Order), the same RefId can appear any number of times. 
    I am looking at our environment and the first example of a ReqTrans for RefType = 8 I found has RefId xxx0137919.  There are 253 ReqTrans records for that RefId in a single plan (our static plan) for a single MRP run (single ReqProcessId value).   

    First, the RefId is for the purchase order, not the purchase order line.  If the purchase order has 10 lines, then you could easily have 10 ReqTrans records with that same RefId.

    Second, a single purchase order line can have multiple rows in ReqTrans.  For example, if 500 units were purchased to be used in producing finished goods, those 500 units on that one PurchLine could be assigned to 100 different production orders (their production BOMs) where each production order BOM line gets qty 5.


    2) As to why you have duplicated ReqProcessId values, I don't know.   
    You can query the ReqLog table using the ReqProcessId to see the StartDateTime and EndDateTime.  If one of them is not recent (maybe it is from last year), you MIGHT want to consider writing an X++ job/Runnable class that deletes the ReqTrans records for that RecProcessId.

     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans