BaBernd
14th December 2016, 18:01
Hello to All,
within a function I'll execute a select on table cprrp041 (is not necessarily important which table). In the selectdo area the function tccom.dll0010.print.record(1) transfers the record set to a report.
But I also like to transfer a calculated variable (here cal.week) within this selectdo area to the report. But it doesn't. I also tried the export()-function within the selectdo, but I haven't also no success.
Does anyone has an idea how I can join the result of the variable with the record set for transfer.
Here an example of my problem:
function long print.production.order.selection()
{
select cprrp041.*
from cprrp041
where cprrp041.koor = 3
selectdo
cal.week = val(sprintf$("%u(%02W)",cprrp041.date) |* calculated calendar week
tccom.dll0010.print.record( 1 ) |* record set transfer
endselect
}
Best Regards
Bernd
within a function I'll execute a select on table cprrp041 (is not necessarily important which table). In the selectdo area the function tccom.dll0010.print.record(1) transfers the record set to a report.
But I also like to transfer a calculated variable (here cal.week) within this selectdo area to the report. But it doesn't. I also tried the export()-function within the selectdo, but I haven't also no success.
Does anyone has an idea how I can join the result of the variable with the record set for transfer.
Here an example of my problem:
function long print.production.order.selection()
{
select cprrp041.*
from cprrp041
where cprrp041.koor = 3
selectdo
cal.week = val(sprintf$("%u(%02W)",cprrp041.date) |* calculated calendar week
tccom.dll0010.print.record( 1 ) |* record set transfer
endselect
}
Best Regards
Bernd