croezen
2nd January 2007, 10:53
Hi hi,
In a reportscript i am trying to use the following ;
#include "itccom0006"
itccom0006.remove.blank.address.fields( l.nama, l.namb, l.namc, l.namd, l.name, l.namf, l.pstc )
When i compile i get the error ;
rtdpur4401o1000( 209): Error: Unresolved reference to function 'itccom0006.remove.blank.address.fields'.
I have tryed ; " #include <bic_tt> " and "#include <bic_text>".
this doesn't help. Whats the matter? :confused: I have copied this from a standard program script, so it should work!
Dikkie Dik
2nd January 2007, 12:22
Can you compile the script you copied it from? Or if this in the standard layer, you maybe can copy it to a "development" VRC.
If you can't compile, maybe your package combination does not include the path for includes. Check on runtime your fd file for the path to itc.
Hope this helps,
Dick
Kozure Ohashi
2nd January 2007, 12:34
Please try to include itdsls0004 as well.
OR: Could be you have to use the DLL tdslsdll0004 to call the include.
Regards,
Kozure
croezen
2nd January 2007, 13:08
Dikkie,
I am using other includes as well, so the path can't be the problem.
I can compile the script i copied it from. this is a program script and i am trying to use it in a reportscript, could that cause problems?
Kozure,
itdsls004 is used only for declaration of external variables, i have tryed to include it as well, but that didn't do the trick.
Kozure Ohashi
2nd January 2007, 13:12
Please try to only register the above mentioned dll in your script.
Then call your itccom0006 function.
(do not include any functions).
Regards,
Kozure
bdittmar
2nd January 2007, 13:20
Hi hi,
In a reportscript i am trying to use the following ;
#include "itccom0006"
itccom0006.remove.blank.address.fields( l.nama, l.namb, l.namc, l.namd, l.name, l.namf, l.pstc )
When i compile i get the error ;
rtdpur4401o1000( 209): Error: Unresolved reference to function 'itccom0006.remove.blank.address.fields'.
I have tryed ; " #include <bic_tt> " and "#include <bic_text>".
this doesn't help. Whats the matter? :confused: I have copied this from a standard program script, so it should work!
Hello,
is the include available on your system (source) ?
Must be in $BSE/application/tc<VRC>/itccom/icom00060 !
Try icom0006.remove.blank..............
The include on my system uses :
function itccom0006.remove.blank.address.fields(
ref domain tcnama shf.nama,
ref domain tcnamb shf.namb,
ref domain tcnamc shf.namc,
ref domain tcnamd shf.namd,
ref domain tcname shf.name,
ref domain tcnamf shf.namf,
ref domain tcdsca shf.ccty.dsca)
itdsls0004 read.customer.adress.declaration is used in sls and pur module !
Regards
george7a
2nd January 2007, 13:29
In the worst case, check this link:
http://www.baanboard.com/baanboard/showthread.php?t=5917
- George
croezen
2nd January 2007, 13:48
Tanks guys, for trying helping me out.
Kozure,
Try'd it, but it didn't make any difference ( same error )
Bernd,
the include is present on my system in the standard VRC ( BAAN\application\tcB40_c4\itccom )
George,
Thanks, I can make a new function to get it working, but i want to know why i can't use the standard function. It must be possible to get it working!
Eddy
Kozure Ohashi
2nd January 2007, 14:37
I tried it on the test server, no problem.
Please post your script.
Regards,
Kozure
croezen
2nd January 2007, 15:00
|*** Eastborn declaraties ***********************
table ttcmcs001
table ttcmcs007
domain tcmcs.str10 e.label.maat
domain tctxtn alg.txt
extern domain tcmcs.long film
extern domain tcdsca g.unit.desc
extern domain tcdsca g.label.adres
#pragma used dll otdebndll0009 |* log report gebruik
#pragma used dll otdebndll0330
#include "itccom0006" |* remove blank address fields
| #include "itdsls0004"
before.orco.51:
before.layout:
g.label.adres = ""
if tdpur040.suno = " 70416" then
domain tcorno l.orno
domain tcpono l.pono
domain tcnama l.nama
domain tcnamb l.namb
domain tcnamc l.namc
domain tcnamd l.namd
domain tcname l.name
domain tcnamf l.namf
domain tcpstc l.pstc
domain tcmcs.str50 l.sortaddress
domain tcmcs.str60 l.naamwnpl
l.orno = val(tdpur041.cprj)
l.pono = 1
tdebn.dll0330.GetDeliveryAddress( l.orno, l.pono, l.nama, l.namb,
l.namc, l.namd, l.name, l.namf,
l.pstc, l.sortaddress, l.naamwnpl )
itccom0006.remove.blank.address.fields( l.nama, l.namb, l.namc, l.namd,
l.name, l.namf)
if not isspace(l.nama) then
g.label.adres = "(vanuit verkooporder)"
cdel.nama = l.nama
cdel.namb = l.namb
cdel.namc = l.namc
cdel.namd = l.namd
cdel.name = l.name
endif
endif
Han Brinkman
3rd January 2007, 12:47
does the include file contain the function you are referring to??
Regards,
Han
croezen
3rd January 2007, 13:13
Han,
I don't have the code of the include file. So i can't check if the function is in it.
I have copied the code from another programscript.
Kozure Ohashi
3rd January 2007, 13:18
Dear croezen,
you have to have the source otherwise you can not use the include.
The compiler copy the source (just text of the include itccom0006) within in your calling program script and compiles it. (other like with a dll)
Therefore you should have access to the source in Maintain Functions.
Otherwise this would explain the error.
Regards,
Kozure
croezen
3rd January 2007, 13:36
That explains a lot.
Thank you very much !
bdittmar
3rd January 2007, 15:27
That explains a lot.
Thank you very much !
What's right ?
You said :
Bernd,
the include is present on my system in the standard VRC ( BAAN\application\tcB40_c4\itccom )
Han,
I don't have the code of the include file. So i can't check if the function is in it.
I have copied the code from another programscript.
Regards
croezen
3rd January 2007, 15:51
Sorry guys, didn't mean to get you confused.
The situation is that I have got the file on my system, but it's an empty file!
I don't know how it got there but that's another story.
I know now why it didn't work, so i am building my own.
thanks for your help!
Han Brinkman
4th January 2007, 12:48
If the include is used in some report scripts than you can ask Baan to provide you the include file. You should be able to compile/change every report.
If it's only used in program scripts than you can ask for it only if you are allowed to have sources.
Regards,
Han