Hello all,
We have created a customized "Customer Statement report" in Business central for our Customers. The customer wanted to add a column "External doc no" in the report.
we have added a column "External doc no" in the data item "Sales Invoice Header" under the "DtldCustLedgEntries" data item. but when we want to modify the "word layout" of the report the table has the repeat data in one section under DtldCustLedgEntries, so when we added the column "External doc no" in this table that will give empty data under this column!
Is there any way we can get data in the column External doc no?
Does any help, please?
Thanks.
Hi, how about adding a flowfield field to "Detailed Cust. Ledg. Entry" table first? In this way, the processing in the report will be simpler.
For example,
Hope this helps.
Thanks.
ZHU
Thanks, ZHU
But I need to add External Document No. on the DtldCustLedgEntries data item.
can you help me with that?
Hi, I'm sorry I haven't done a detailed test, but I think the following should work.
Standard Code:
Hope this helps.
Thanks.
ZHU
I need more help from you, please!
I wrote this code, this is what you meant?
okay, but now, how I can use the variable in the word layout? I didn't find it in the word layout after the built?!!
reportextension 50112 CustomerSR extends "Standard Statement"
{
dataset
{
modify(DtldCustLedgEntries)
{
trigger OnAfterAfterGetRecord()
var
ExternalDocNumLL: Record "Sales Invoice Header";
begin
ExternalDocNumLL.SetRange("External Document No.");
end;
}
}
}
Thanks For your response
I will try it now.
I think you can create a global variable and on after get record you can assign the external document number to the the new variable created, make the new variable as the new column in the report.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156