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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

relation between GeneralJournalEntryTable and VendPackigSlipJour table

(2) ShareShare
ReportReport
Posted on by 56

Dear All,

Can you please let me know the relation between GeneralJournalEntryTable and VendPackigSlipJour table. I put relation GeneralJournalEntryTable.DocumentNumber  == VendPackigSlipJour .PackingSlipId.
Is there any other relation that can return me exact record form VendInvouce Jour table ?

Please give me more shed on this,

Thanks!

Arpan Sen

*This post is locked for comments

I have the same question (0)
  • Zain Bokhari Profile Picture
    3,208 Moderator on at

    Why are you looking for this relation? What is your actual requirement? can you please tell us a little more?

  • Community Member Profile Picture
    on at

    Hi,

         There is no other relation except

    GeneralJournalEntry.DocumentNumber  == VendPackigSlipJour .PackingSlipId.


    But you can join these two table using other table. If possible explain your explain your issue.

    Thanks

    Suresh

  • @rp@n Profile Picture
    56 on at

    Hi Zain,

    Actually i did report for ledger analysis. It's contain PO,Vend account ,name,voucher,Journal,Invoice ID, GRN no and date.

    For some journal no it's showing me wrong PO,Vend,name

    Then i found that in VendInvoicejour table same packing slip id is exist for different PO and Vendor account.

    for example : VendInvoiceJour table

    Purchid Vend    Packingslip ID

    PO001  V001    859

    PO002  V002    859

    PO003  V003    112

    i need POO2 for packingslip id 859 but it's select  POO1.

    Please give me more shed on this.

    Thanks!

    Arpan Sen

  • tgudwanski Profile Picture
    33 on at

    As far as it seemed in our team's work, the following X++ code fragment could be helpful:

    GeneralJournalEntry gje;
    SubledgerVoucherGeneralJournalEntry svgje;
    VendPackingSlipTrans vpst;
    VendPackingSlipJour vpsj;
    
    
    select gje
    	JOIN svgje
    		WHERE gje.RecId == svgje.GeneralJournalEntry
    	JOIN vpst
    		WHERE svgje.Voucher == vpst.CostLedgerVoucher
    		&& svgje.AccountingDate == vpst.AccountingDate
    		&& svgje.VoucherDataAreaId == vpst.DataAreaId
    	join vpsj
    		WHERE vpst.DataAreaId == vpsj.DataAreaId
    		&& vpst.VendPackingSlipJour == vpsj.RecId
    
  • Community Member Profile Picture
    on at

    Hi All,

    I have used this query ang get the voucher details of product receipt.

    SELECT *  FROM GeneralJournalEntry

    inner JOIN GeneralJournalAccountEntry ON GeneralJournalEntry.RecId = GeneralJournalAccountEntry.GeneralJournalEntry

    inner JOIN DimensionAttributeValueCombination ON GeneralJournalAccountEntry.LedgerDimension = DimensionAttributeValueCombination.RecId

    inner JOIN MainAccount ON DimensionAttributeValueCombination.MainAccount = MainAccount.RecId

    full OUTER JOIN ExchangeRateType ON MainAccount.ReportingExchangeAdjustmentRateType = ExchangeRateType.RecId

    full OUTER JOIN  FiscalCalendarPeriod ON GeneralJournalEntry.FiscalCalendarPeriod = FiscalCalendarPeriod.RecId

    inner join SubledgerVoucherGeneralJournalEntry on GeneralJournalEntry.RecId = SubledgerVoucherGeneralJournalEntry.GeneralJournalEntry

    inner JOIN VendPackingSlipVersion ON SubledgerVoucherGeneralJournalEntry.AccountingDate = VendPackingSlipVersion.AccountingDate

    AND SubledgerVoucherGeneralJournalEntry.Voucher = VendPackingSlipVersion.LedgerVoucher

    or SubledgerVoucherGeneralJournalEntry.Voucher = VendPackingSlipVersion.CostLedgerVoucher

    inner join VENDPACKINGSLIPJOUR  on VendPackingSlipVersion.VENDPACKINGSLIPJOUR = VENDPACKINGSLIPJOUR.RECID

  • ergun sahin Profile Picture
    8,826 Moderator on at

    community.dynamics.com/.../680674

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 28

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans