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: 

Automatic Cancel Module Bookings checkbox for Deregistration

Former Member
0 Kudos

Hi,

Does anyone know where we set access to allow the functionality to work for the checkbox that says Cancel Module Bookings when you deregister a student?

I've checked authorizations and the IMG and do not see anything. I believe it may be a table authorization of some kind, but I'm not sure where to look.

Any help would be greatly appreciated.

Thanks!

Mike

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Thanks PK...this BADi was hit when I did another trace and might help.

The problem with changing the Mode to 'D' as you suggest for us would be that we wouldn't be able to get the drop-down list of cancel reasons if staff members cancel a booking manually. We currently set the mode to 'P' for our process.

With the mode set to 'P', we still hit the BADi when I do a trace, but it always returns a space for the cancel reason...

-


method IF_EX_HRPIQ00CANCELREASON~SET_REASON .

data: timelimits(4).

select single timelimit from hrt1750 into timelimits

where timelimit = 'ZRG1'

and peryr = year

and perid = period

and begda le date

and endda ge date.

if sy-subrc = 0.

cancel_reason = 'DROP'.

else.

cancel_reason = space.

endif.

endmethod.

-


I would need to have a way for the BADi to check if it was being used when a deregistration is being performed with the Cancel Booking checkbox flagged. And if that is the case...to default a specific reason to pass forward. Do you think this is possible?

View solution in original post

6 REPLIES 6

Former Member
0 Kudos

Hi Mike,

From authorization point you need these.

1) Process MB03

2) Infotype 1001 Relationship 506

SAP is calling (FM 'HRIQ_STUDENT_BOOKING' ) Module drop in background. . It might be your VSR rules that stopping you from dropping modules.

Thanks,

Prabhat SIngh

Former Member
0 Kudos

Hi PK,

Thank you for your response. It is nice to hear from you again.

We did have the proper authorizations, but one thing I found was that we also needed a message override on the rule container for call-up point 003 for this to work. I added all the messages that I had to a user that could not get this to work and now it will work for them. I'm still testing to find exactly which message(s) are needed for that, but that was at least promising.

Another issue I discovered was when that cancel bookings checkbox is used...it will cancel the future bookings correctly, but there is no place to feed it a reason code. We would like to use this process and give it a DROP reason cancel code so that the student would automatically be refunded as well.

However, I do not see anyplace I can configure this to happen. When I trace the process, I can see that one BADi called ZCSF_PROG_DEREG is used. This calls function HRIQ_STUDENT_DEREG_CREATE_RFC which calls function HRIQ_STUDENT_DEREG_CREATE_DB which performs cancel_sm_booking. Here is where I first can see a reason code available to be used, but it is commented out...

CALL FUNCTION 'HRIQ_STUDENT_MODREG_WITHDRAWAL'

EXPORTING

is_object = ps_student

iv_mode = 'B'

iv_date = pv_endda

  • IV_REASON =

IMPORTING

ev_return = pv_subrc

  • ET_MODULES =

EXCEPTIONS

wrong_input = 1

no_modules_found = 0 "no error in this context

technical_error = 3

OTHERS = 4.

If I give IV_REASON a value during my trace, it will cancel the bookings with this reason code. However, this is SAP code and we can not change it.

Do you have any further thoughts on what we might be able to do? I may have to file an OSS note to see if we have any other options.

Thanks again for your help.

0 Kudos

Hi Mike,

You can implement BADI 'HRPIQ00CANCELREASON'. You can use System date depending upon de-regestration timelimit according to calender. You can set drop reason.

In order to call this badi, You have to change config table 'V_T7PIQSWITCHVAL' and MODREG,CANCREAS setting value to 'D'.

I don't know where this is in SPRO(IMG). You can use SM30 to maintain this.

Thanks,

Prabhat Singh

Former Member
0 Kudos

Thanks PK...this BADi was hit when I did another trace and might help.

The problem with changing the Mode to 'D' as you suggest for us would be that we wouldn't be able to get the drop-down list of cancel reasons if staff members cancel a booking manually. We currently set the mode to 'P' for our process.

With the mode set to 'P', we still hit the BADi when I do a trace, but it always returns a space for the cancel reason...

-


method IF_EX_HRPIQ00CANCELREASON~SET_REASON .

data: timelimits(4).

select single timelimit from hrt1750 into timelimits

where timelimit = 'ZRG1'

and peryr = year

and perid = period

and begda le date

and endda ge date.

if sy-subrc = 0.

cancel_reason = 'DROP'.

else.

cancel_reason = space.

endif.

endmethod.

-


I would need to have a way for the BADi to check if it was being used when a deregistration is being performed with the Cancel Booking checkbox flagged. And if that is the case...to default a specific reason to pass forward. Do you think this is possible?

0 Kudos

Hi Mike,

You are getting drop reason initial because in this case perid and peryr are initial. I don't think so it will get any hit in hrt1750( peryr and perid initial). Modify this badi Implementation to handle perid and peryr initial logic.

Thanks,

Prabhat Singh

Former Member
0 Kudos

I do believe that will work. I've had the programmer make the change and I'm testing it now. Looks good so far.

Thanks for your help!