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

Add custom table in Salesinvoice report

(5) ShareShare
ReportReport
Posted on by 134
Hi,
 
I want to ada a custom table in salesinvoice report in the datasource section. eg. INGSalesDetail
It seems that we need to make it regular and createdtransactionid as yes.
I would like to know what all other settings are required at code level in salesinvoiceDP class to make sure that same record is shown to the user for the custom table INGSalesDetail.
eg.
the temp table is selected with transaction id in code
[SRSReportDataSetAttribute(tablestr(INGSalesDetail)) 
and COC of setconnection needs to be done.
 
Thanks,
VK
Categories:
I have the same question (0)
  • Vahid Ghafarpour Profile Picture
    12,168 Super User 2025 Season 2 on at
  • Suggested answer
    Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    In order to modify a standard SSRS report, you need to create new report (Duplicate of the standard one), create COC class for the DP class, and modify the new design.
     
    Check the following link for more details: SSRS_Report_Modify
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

     
  • Suggested answer
    Vishal Tiwari Profile Picture
    393 on at
    Hi, 
    To add a custom table to the Sales Invoice report, you may follow these steps (however I'm unaware of your exact requirement):
    1. Ensure to check the table settings - table type(regular), CreatedTransactionId, Primary Index & SaveDataPerCompany
    2. Extend SalesInvoiceDP Class - modify using coc to include custom table in the data provider. 
    3. Modify set connection using coc : (something like below)
    [ExtensionOf(classStr(SalesInvoiceDP))]
    final class SalesInvoiceDPExtension
    {
    public void setConnection(SrsReportRunContext _srsReportRunContext)
    {
    next setConnection(_srsReportRunContext);
    this.INGSalesDetailTmp.setConnection(this.parmReportContract().parmtransDataContract());
    }
    }
    4. Populate custom table data : Override processReport() to insert records in the table.
    and finally you can change the report design based on datasource fields etc. 

    Thank you!

    *****If this was helpful, please mark it as "Verified" so others with the same issue can benefit.*****
  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Hi, 

    Is your issue resolved? If yes, mark the answers that helped you as verified. 

    Thanks,

    Waed Ayyad

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 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans