11-18-2008 9:26 AM
Dear All,
I have put a simple check at the time of module booking...
Pre-requisite = true
and check --> RHIQ_SM-SM_OBJID = '50006331'
I want to book the only module whose object Id = 5000633,
But I am not able to book any module, even module (object Id = 5000633).
I just wanted to check this rule first then I will add more condition on it.
How to apply this rule...
Book only one module whose object Id = 5000633, then I will proceed further..
Thanks in Advance....
11-18-2008 5:16 PM
Dear All,
Can any one check it at your end and tell me the result.
Thanks in Advance
11-18-2008 7:27 PM
Sudhir, I have checked a rule as the one of your example, with an ID of one of our modules, and works fine.
At the example below, in the Check syntax, the Object ID has a number 1 at the end. Below you mention Obj. ID as 5000633 (without the 1 at the end...). Maybe the SM Obj. ID number is wrong. Please check that.
R,
Diego
11-19-2008 8:36 AM
Thanks a lot Diego,
I did that sily mistake as you mentioned.
Problem solved.
Now I have written the logic for my requirement, module A and module B can not be booked simultaneously for a program. Either A or B can be booked.
I checked with two different logic..
1--- * ( RHIQ_SM-SM_OBJID <> '50006413' OR RHIQ_SM-SM_OBJID <> '50006419' )*
2--- * NOT ( RHIQ_SM-SM_OBJID = '50006413' AND RHIQ_SM-SM_OBJID = '50006419' )*
where 50006413= object id of A
and 50006419 = object id of B
I have check ed it on all the three call up point 01, 02 and 03.
But its not working in any case .. Is my logic is right??..Please check and tell me.. or suggest a right one...
Thanks and Regards
Sudhir Gupta
11-19-2008 12:23 PM
Sudhir,
Your logic is not right. How come you are expecting two different values from one variable at same time? In your case value of RHIQ_SM-SM_OBJID will be '50006413 or '50006419'. Use user exit to handle this.
Prabhat Singh
11-19-2008 2:47 PM
Thanks Prabhat,
You are right, I did not think in that direction.
Any way, I will try to do it using user exit.
Have you seen my other problem abou Room allocation for an Event?
Thanks a lot again,
Sudhir
11-19-2008 10:47 PM
Sudhir,
Yes, I did see your problem about Room allocation for an Event. But i didn't get any reason why i should resolve your problem. If you have any reason why please do let me know.
Prabhat Singh
11-20-2008 12:42 PM
Sorry Dear Prabhat,
I have no reason for that...
Any way Thanks a lot for your concerns and help so far.....
Thanks and Regards
Sudhir Gupta
12-09-2008 12:34 PM
You don't need to use a user exit to achieve this.
In VSR, you can a create a rule to be attached to the callup point Module Booking (Set). There you have access to the entire booking basket and history of the student in structure PIQRULEMASTERS.
If you have not done so, please consult the 'Rules & Regulations' cookbook.
Michael