Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : 7PtftKAq7LYuDodDlaPULY
Finance | Project Operations, Human Resources, ...
Suggested answer

SSRS Report Multiple Line Item

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2023 07:23:28 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
    3,618 Moderator on 22 Mar 2023 at 08:14:49
    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
    27,823 Moderator on 22 Mar 2023 at 08:10:08
    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
    4 on 22 Mar 2023 at 08:04:58
    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
    12,554 Moderator on 22 Mar 2023 at 07:39:57
    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
    27,823 Moderator on 22 Mar 2023 at 07:32:28
    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
    3,618 Moderator on 22 Mar 2023 at 07:27:43
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans
Loading complete