Skip to main content

Notifications

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

  • RP-MAS Profile Picture
    7 on at
    Duplicate Lines in ReqTrans
    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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Martin Dráb Profile Picture

Martin Dráb 510 Most Valuable Professional

#2
Saalim Ansari Profile Picture

Saalim Ansari 315

#3
Adis Profile Picture

Adis 312 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans