popeye
6th August 2002, 20:44
Hi,
I am looking at the script for tcmcs0139m000.
if tt.session.present(tcmcs039.sess) <> 2 then
set.input.error("tcmcs01395")
| Session not defined
endif
tt.session.present () can have 3 return values
0 = session not present
1 = session is present but NOT in the configuration of the user
2 = session is present and in the configuration of the user
What do you mean by "configuration of the user"?
How do I add to my "configuration"?
Thanks.
Regards,
Popeye
NPRao
6th August 2002, 21:10
Hi Popeye,
I believe the configuration means the users's current package combination.
mark_h
6th August 2002, 21:48
Found this in http://www.baanboard.com/programmers_manual_baanerp_help_functions_runtime_dictionary_information_tt_session_present. It looks in the runtime data dictionary of the current package. So my guess is you would have to add it to the RDD and to the users permissions to get a return 2. So the session could be present , but the user does do not have access - return 1. At least that is my guess.
Mark
NPRao
6th August 2002, 21:54
I found new problem with using this function in our BaaN-5.2 version.
If I use this function in my 3-GL code, I am getting a compilation error, although the help manual says its a 3-GL function.
I found that when you use
#include<bic_tt>
I do not get any more compilation errors.
popeye
7th August 2002, 01:25
NPRRao,
My session is in the same package combination.
and ... I am a super user.
Mark,
What did you mean by
"add the session to the Runtime DD"?
Please advice.
Thanks.
Regards,
Popeye !
NPRao
7th August 2002, 03:40
Hi Popeye,
I can only think of few other possibilities -
1. Even if you are a super user you might not have authorization to that session/module in the package, based on your Developer's Authorization Template.
2. Checking on our system, BaaN-5.2 that table tcmcs039 does not have that field called sess and that code isnt present in the script tcmcs0139. Seems, there is a difference between the BaaN Versions. Can you please check in the debugger the value of the field, tcmcs039.sess ?
3. If you do not have the password to see the developer authorization template, another way to verify the point-1 is to use this function and check the return values -
long get.session.permission( string session(13) )
I hope this helps.
mark_h
7th August 2002, 15:48
I was thinking that you might have to create the RDD for the session. Another thought is to run a shell and do an explode on the object to see if it finds it? Just a thought.
I really think NPR has the right idea about putting it in debug mode. See what is in the tcmcs039.sess field.
I guess you are trying to enter a session and you keep getting the session not found error? The explode on the object would tell us it exists in your current package vrc structure.
Mark
popeye
7th August 2002, 21:00
Hi
I checked it.
It is in my current package vrc.
tt.session.present() is returning 1.
The manual say 1 = session is present but not in the
configuration of the user.
What do they mean by "configuration of the user"?
Please advice.
Thanks.
Cheers,
Popeye
mark_h
7th August 2002, 21:26
Which session are you trying to add in tcmcs0139m000? Is it a Baan session or one you developed? Did you try creating RDD on the session?
I have tried several sessions using tcmcs0139m000 on our test server and all of them could be added.
Mark
mark_h
7th August 2002, 21:33
Found this solution on the Baan Support site.
1. Make sure the session has been successfully 'converted to runtime data dictionary'.
If problem still not resolved,
2. Via ttaad4100, go to table ttiex330, company 000, and check if record for your customized session exists or not. If it
doesn't,
Go to "patch objects after error solving" and patch the specific object (not the tt portion, but lower where it says IVa
appln)
After patching, problem should be resolved.
You probably should check out the solution yourself. It looks like this was posted for 4c4.
Mark
NPRao
7th August 2002, 21:42
Hi Madhu,
here is more info about Developer's Authorization Template -
popeye
7th August 2002, 22:41
Solution 152148 worked for me :)
Thanks Mark and NPR !
Cheers,
Popeye
popeye
8th August 2002, 00:40
Hi,
Why is it that the object should be present in tiiex330?
My problem is solved.
But I am not clear why the object should be there in tiiex330?
Do I always have to run the Patch session before adding a new
session to the Order Steps?
Thanks a ton for your replies/suggestions.
Cheers,
Popeye :)