Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Duplicate Lines in ReqTrans

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
    RP-MAS 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans