bpanda
14th July 2015, 08:30
Hello,
If we see at ttaad500(Job Input variables ) then on this table on "Record" field (ttaad500.rcrd) you can notice the form fields are assigned with some values.
But the form fields are also combined with some numbers.
For Example:
013bpid.f:=""022bpid.t:="ZZZZZZZZZ"
Is there any certain logic behind this "013" combined with "bpid.f" and "022" combined with "bpid.t" ?
Please share your knowledge on this.
Thanks & Regards
Biswajyoti Panda
JaapJD
14th July 2015, 10:15
The length of 013bpid.f:="" is 13. The length of 022bpid.t:="ZZZZZZZZZ" is 22!
bpanda
21st July 2015, 07:45
Thanks JaapJD,
But I am unable to understand which length you are mentioning about.
If domain length, then both the fields' domain length is same 9 characters.
Then how one is 13 & another is 22 characters?
Can you please tell me in detail?
Thanks & Regards
Biswajyoti Panda
JaapJD
21st July 2015, 10:07
013bpid.f:=""
1234567890123 <-- 13
022bpid.t:="ZZZZZZZZZ"
1234567890123456789012 <-- 22
So the first 3 characters represent the length of the expression that follows, including its own length of 3 characters.
andreas.toepper
21st July 2015, 10:15
Try reading it literally. The Information is stored in concatenated strings:
013bpid.f:=""
022bpid.t:="ZZZZZZZZZ"
Lets take a look at the first string (013bpid.f:="") and count its length: 13 chars (from '0', the first char of the string and including the '"' at the end).
OK, next string (022bpid.t:="ZZZZZZZZZ"). Length is 22 chars.
So the length nnn is some kind of relative datapointer. ("Starting from the first byte of this dataset you'll find the next one when reading nnn bytes.")
This kind of data-separation I did expect in datafiles, like archive-files. It never occurred to me, that it's being used in tablefields. I guess this is a very old part of the LN/Baan/Triton-datastructure. It's kind of funny, like the discovery of an ancient artifact.
Oh, sorry - been to slow.
bpanda
22nd July 2015, 07:31
Thanks JaapJD for your help.
Now I understood completely.
Thanks & Regards
Biswajyoti Panda