Skip to main content

Notifications

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

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: SSRS Report Multiple Line Item

    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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: SSRS Report Multiple Line Item

    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.

  • JPM00 Profile Picture
    JPM00 4 on at
    RE: SSRS Report Multiple Line Item

    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;

       }

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: SSRS Report Multiple Line Item

    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.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: SSRS Report Multiple Line Item

    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
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    RE: SSRS Report Multiple Line Item

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

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans