SAP for Higher Education and Research Discussions
Spark conversations about student engagement, research optimization, and administrative efficiency using SAP in higher education and research. Join in!
cancel
Showing results for 
Search instead for 
Did you mean: 

Rule not working

Former Member
0 Kudos

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....

8 REPLIES 8

Former Member
0 Kudos

Dear All,

Can any one check it at your end and tell me the result.

Thanks in Advance

Dmoreira
Active Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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