Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Compare closed RMA's to other than closed RTV

Posted on by Microsoft Employee

I am trying to make a report that will pull any RMA with a status of closed (03) where the associated/attached RTV has a status of anything other than closed (40).

 

Can someone help me to identify the correct tables.

 

Thanks

*This post is locked for comments

  • Suggested answer
    MichaelJ2 Profile Picture
    MichaelJ2 265 on at
    Re: Compare closed RMA's to other than closed RTV

    I think this will do it:

    select *

    from SVC35000 r

    inner join SVC05501 t

    on r.RETTYPE = t.RETTYPE

    inner join SVC35200 l

    on r.RETDOCID = l.RETDOCID

    and r.Return_Record_Type = l.Return_Record_Type

    inner join SVC35210 p

    on l.RETDOCID = p.RETDOCID

    and l.Return_Record_Type = p.Return_Record_Type

    and l.LNSEQNBR = p.LNSEQNBR

    inner join

    (

    select RTV_Number, RTV_Type, RTV_Return_Status

    from SVC05600

    union all

    select RTV_Number, RTV_Type, RTV_Return_Status

    from SVC35600

    ) rtv

    on p.SVC_Document_Number = rtv.RTV_Number

    inner join SVC05003 rtvt

    on rtv.RTV_Type = rtvt.RTV_Type

    where r.RETSTAT = t.Close_Status

    and rtv.RTV_Return_Status <> RTV_Closed_Status

    and p.SVC_Process_Type = 2

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans