gmmisdt
30th December 2017, 06:22
Hi,
I use tcibd001.exin field as per my reuirement and when m going to compare this field with another table in which field's datatype is double and tcibd001.exin is string now while comparing its give error as attached.
FInd attached my query below.
|******************************************************************************
|* tdsls4401mc02 0 VRC B61O a live
|*
|* VJJI
|* 2017-12-28
|******************************************************************************
|* Main table tdsls401 Sales Order Lines, Form Type 4
|******************************************************************************
|****************************** declaration section ***************************
declaration:
table ttdsls401 | Sales Order Lines
table ttcibd001
table ttdtrg190
extern domain tcqsl1 back.qty
|****************************** program section ********************************
|****************************** group section **********************************
group.1:
init.group:
get.screen.defaults()
|****************************** choice section ********************************
choice.cont.process:
on.choice:
execute(print.data)
choice.print.data:
on.choice:
if rprt_open() then
read.main.table()
rprt_close()
else
choice.again()
endif
|****************************** field section *********************************
field.orno.f:
|****************************** function section ******************************
functions:
function read.main.table()
{
select tcibd001.exin,sum(tdsls401.qbbo):back.qty,tdtrg190.prmx
from tdsls401,tcibd001,tdtrg190
where tdsls401.item = tcibd001.item and tdsls401.qbbo > 0 and tcibd001.exin <> "" and val(tcibd001.exin) >= tdtrg190.cpfm and sval(tcibd001.exin) <= tdtrg190.cpto
group by tcibd001.exin,tdtrg190.prmx
selectdo
rprt_send()
endselect
}
Regards,
Vishal
I use tcibd001.exin field as per my reuirement and when m going to compare this field with another table in which field's datatype is double and tcibd001.exin is string now while comparing its give error as attached.
FInd attached my query below.
|******************************************************************************
|* tdsls4401mc02 0 VRC B61O a live
|*
|* VJJI
|* 2017-12-28
|******************************************************************************
|* Main table tdsls401 Sales Order Lines, Form Type 4
|******************************************************************************
|****************************** declaration section ***************************
declaration:
table ttdsls401 | Sales Order Lines
table ttcibd001
table ttdtrg190
extern domain tcqsl1 back.qty
|****************************** program section ********************************
|****************************** group section **********************************
group.1:
init.group:
get.screen.defaults()
|****************************** choice section ********************************
choice.cont.process:
on.choice:
execute(print.data)
choice.print.data:
on.choice:
if rprt_open() then
read.main.table()
rprt_close()
else
choice.again()
endif
|****************************** field section *********************************
field.orno.f:
|****************************** function section ******************************
functions:
function read.main.table()
{
select tcibd001.exin,sum(tdsls401.qbbo):back.qty,tdtrg190.prmx
from tdsls401,tcibd001,tdtrg190
where tdsls401.item = tcibd001.item and tdsls401.qbbo > 0 and tcibd001.exin <> "" and val(tcibd001.exin) >= tdtrg190.cpfm and sval(tcibd001.exin) <= tdtrg190.cpto
group by tcibd001.exin,tdtrg190.prmx
selectdo
rprt_send()
endselect
}
Regards,
Vishal