Display SalesOrigin field in SalesConfirm Report.

Hi,

I want to display the Sales Origin field of the SalesOrder Createdin the Sales Confirm Report.

AR>SalesOrder Details>setup(tab) >administration >salesorigin

but when i used a display method

display str salesorigin()
{
SalesOriginId SalesOriginId;
;
select SalesTable1
where salesline1.salesid == salestable1.salesid ;
return salestable1.SalesOriginId;
}

It does not return any value.

Can anyone hellp me on this issue.

Thanks and Regards.

Vikas Mehta.

It will not work , as there no value in salesTable1.salesId.

the report uses a table CustConfirmJour - which will also contain the SalesId field.

use this SalesTable::find(CustConfirmJour.SalesId).SalesOriginId;