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

Notifications

Announcements

No record found.

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,827 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,827 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans