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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

SSRS Report Multiple Line Item

(0) ShareShare
ReportReport
Posted on by 4

Hi experts,

I have multiple line item in my sales order, but in my case whenever i run my report it only shows 1 item number, can somebody help? thank you....

pastedimage1679469752333v3.png

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Might be you are using first only in your code. Can you please send the code?

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi JPM,

    Debug the code and find out how many lines are inserted into the temp table. Or for testing purpose you can convert report table type to regular and after troubleshooting you can change it to temp db. again.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, is it Query Based or RDP report? If query based then write SQL statement as per query and see how many records are retrieved. If RDP, then debug the method in DP class where you are inserting records in table.

  • JPM00 Profile Picture
    4 on at

    Hi sir this is my papoulate code whats the missing im a new trainee here in our company.

    public void populatetemptable1()

       {

           IntercompanyPurchSalesReference Reference;

           SalesTable      localSalesTable;

           PurchLine       localPurchLine;

           PurchTable      localPurchTable;

           ttsbegin;

               while select SalesId from localSalesTable

               join Reference

               where Reference.SalesId == localSalesTable.SalesId

               join localPurchLine

               where localPurchLine.PurchId == Reference.PurchId

           {

               TempT1.PurchId          = localPurchLine.PurchId;

               TempT1.PurchPrice       = localPurchLine.PurchPrice;

               TempT1.PurchQty         = localPurchLine.PurchQty;

               TempT1.LineAmount       = localPurchLine.LineAmount;

               TempT1.ItemId           = localPurchLine.ItemId;

               TempT1.SalesId          = localSalesTable.SalesId;

               TempT1.SalesStatus      = localSalesTable.SalesStatus;

               TempT1.insert();

           }

           ttscommit;

       }

  • GirishS Profile Picture
    27,833 Moderator on at

    You need to debug the code to find out the issue. Otherwise, it's difficult for us to find the issue from the code.

    Create a runnable class and paste the while select code into the runnable class and add info log and check.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Your code seems to be simple. So better, as Girish suggested, create a runnable job and see what it returns. Otherwise go to SSMS and write the same query what it returns and make your x++ code exactly.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans