Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Need SQL table information for PrePay and Landed Cost lookup from Voucher and Adjustment Entry Window

(0) ShareShare
ReportReport
Posted on by

Hello Guys,

I am looking a SQL query which will help me to auto generate Voucher and Adjustment Entry records.

I did not able to locate tables for below values.

PrePay and  Landed Cost

Please let me know if any one has idea or any one have data structure diagram of Dynamics SL.

Thanks

Asif Huddani

*This post is locked for comments

  • Verified answer
    Asif Huddani Profile Picture
    Asif Huddani on at
    RE: Need SQL table information for PrePay and Landed Cost lookup from Voucher and Adjustment Entry Window

    Guys,

    Finally i find it for Pre-Pay

    SELECT APADJUST.adjdrefnbr,
           APADJUST.adjgrefnbr,
           APADJUST.adjamt	   
    FROM   APADJUST,
           APDOC WITH (nolock)
    WHERE  
           APADJUST.adjddoctype = APDOC.doctype AND
           APDOC.refnbr = APADJUST.adjdrefnbr AND
           APADJUST.vendid = APDOC.vendid AND
           APADJUST.adjddoctype = 'pp' AND
           APADJUST.s4future11 <> 'v' AND
           APADJUST.adjamt > 0 AND
           APDOC.docbal <> APDOC.origdocamt AND
           APADJUST.vendid = 'E01181' AND
           APADJUST.adjdrefnbr LIKE '%'
    ORDER  BY APADJUST.adjdrefnbr
    OPTION(fast 500) 


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 Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans