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: 

Link between condition type and discount/surcharge category

Former Member
0 Kudos

Dear Gurus,

I defined a "condition type" for discount.

I defined discount type at "discount/surcharge category1"

I want to link them.

Because If I put the condition type to "pricing procedure" it work for every student. But I want that to work this discount only for students defined for this discount in student master data.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can use the Requirement Rule to define who or who should not get this pricing Procedure. You can use the REquirement Rule in the 600 range and code -- something like below then -- put the requirement rule number in the REQT column in the pricing prodecure.

form kobed_603.

data: lv_refund_percent type zcm_refund_percent.

*-----Don't evaluate if course is marked as transfer course or

*----- free of charge and total enrolled credit hours is not zero.

if ( komp-cmsmtransf = 'X' )

or ( komp-cmsmexmpt is not initial

and komp-zzoverall is initial ).

sy-subrc = '4'.

exit.

*--


evaluate if total enrolled credit hours is zero--


elseif komp-zzoverall = 'X'.

sy-subrc = 0.

exit.

endif.

*-If course is marked as 100 % re-fund don't eveluate it--


select single refund_percent from zcm_canc_reason into lv_refund_percent

where reason = komp-cmsmwdrea.

if sy-subrc = 0.

case lv_refund_percent.

when 100.

sy-subrc = 4.

when 50.

sy-subrc = 0.

when others.

sy-subrc = 0.

endcase.

else.

sy-subrc = 0.

endif.

*--- If the fee category is either Null or ERAD donu2019t evaluate -


if komp-cmsmexmpt is not initial

or komk-cmstcat = 'ERAD'.

sy-subrc = 4.

else.

sy-subrc = 0.

View solution in original post

4 REPLIES 4

Former Member
0 Kudos

You can use the Requirement Rule to define who or who should not get this pricing Procedure. You can use the REquirement Rule in the 600 range and code -- something like below then -- put the requirement rule number in the REQT column in the pricing prodecure.

form kobed_603.

data: lv_refund_percent type zcm_refund_percent.

*-----Don't evaluate if course is marked as transfer course or

*----- free of charge and total enrolled credit hours is not zero.

if ( komp-cmsmtransf = 'X' )

or ( komp-cmsmexmpt is not initial

and komp-zzoverall is initial ).

sy-subrc = '4'.

exit.

*--


evaluate if total enrolled credit hours is zero--


elseif komp-zzoverall = 'X'.

sy-subrc = 0.

exit.

endif.

*-If course is marked as 100 % re-fund don't eveluate it--


select single refund_percent from zcm_canc_reason into lv_refund_percent

where reason = komp-cmsmwdrea.

if sy-subrc = 0.

case lv_refund_percent.

when 100.

sy-subrc = 4.

when 50.

sy-subrc = 0.

when others.

sy-subrc = 0.

endcase.

else.

sy-subrc = 0.

endif.

*--- If the fee category is either Null or ERAD donu2019t evaluate -


if komp-cmsmexmpt is not initial

or komk-cmstcat = 'ERAD'.

sy-subrc = 4.

else.

sy-subrc = 0.

0 Kudos

Thanks Bev,

This is useful. On the other hand this is a standard in SLCM to use discounts/surcharges. We can chose a discount or surcharge under "Student Master Data" - "Fee calculation data" tab. Isn't there another customizing step without writing code to define a relation between "Student Master Data" - "Fee calculation data" and price conditions.

Thanks

Former Member
0 Kudos

What are you using to identify the students who are to be charged the discount? Student group or fee category? what?

0 Kudos

I want to chose discount: PIQST00 - Display Master Data - Fee calculation data - Display/Surcharge1

I can chose a discount student by student. Without a student group or a fee category.

I can customize the field "display/surcharge" from IMG - SLCM - Master Data in Student Lifecycle Management - Students - Fee Calculation Data - Define Discount/Surcharge Category 1.

But to define a discount and to select it for a student is not enought. Also I have to define a relation between that discount and a condition type.

Thanks