cancel
Showing results for 
Search instead for 
Did you mean: 

BADi to add custom Amount Reference in Frequency term

Former Member
0 Kudos

Hello

We have a requirement whereby we will be entering the quarterly amount in the unit price in the condition while we would like the system to post this amount on monthly basis on pro-rated basis based on actual days.

Example:

Amount in Unit Price : EUR 15,000

Condition start/ end date: 19.04.2014 to 18.07.2014

Frequency: Monthly

Amount Reference: Here we need an option of quarterly

Expected Cash Flow:

19.04.2014 to 30.04.2014 = 15000 * 12 / 91

01.05.2014 to 31.05.2014 = 15000 * 31 / 91

01.06.2014 to 30.06.2014 = 15000 * 30 / 91

01.07.2014 to 18.07.2014 = 15000 * 18 / 91

Thanks

Rakesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196871
Active Participant
0 Kudos

Hi Rakesh,

I could not find a Badi for the same. If you found something please inform.

I would suggest the following alternative.

1. Enter the per day rate as per the number of days of the contract in the unit price. As per the case mentioned by you the per day rate is 164.8352.

2. Use the calculation method as 'Differing Measurements' for the condition and enter the following entries.

M.Ty      Amt       UOM     Des     From               To

Z002     12         DAY     Units    19.04.2014    30.04.2014

Z002     31         DAY     Units    01.05.2014    31.05.2014

Z002     30         DAY     Units    01.06.2014    30.06.2014

Z002     18         DAY     Units    01.07.2014    18.07.2014

3. Use the frequency settings as the following.

4. Following are the results for the same.

Hope this helps.

Regds,

Hardik Sharma

Former Member
0 Kudos

Dear Hardik

This does not seem to be a feasible solution considering we have close to 90,000 contracts in picture. Moreover, we need to calculate from start of condition and not start of calendar.

I checked with OSS and they do not have solution either

Thanks

Rakesh

yeong-chul_jeong
Active Participant
0 Kudos

Dear Sharma

If you want to customize for your client requirement or your rule of Cash Flow Calculation Not using standard frequency interval(frequency start), you can try to define the "Calculation Formula".

Go to RECACUST > Conditions and Flows > Calculation and Distribution Formulas > Calculation Formulas

1. Defined your "Calculation Rule" such as "Z001"

2. Apply the Enhancements BADI : 

    - BADI_RECD_CALC_RULE (Implementation: Calculation Formula for Conditions)    

   

IF_EX_RECD_CALC_RULE~GET_ATTRIBUTESGets the Attributes
IF_EX_RECD_CALC_RULE~GET_PARAMETERGets the Parameter Values
IF_EX_RECD_CALC_RULE~GET_UNITSGets Units
IF_EX_RECD_CALC_RULE~GET_VALUESSupplies the Calculation Amounts
IF_EX_RECD_CALC_RULE~GET_FLEXIBLEGets the Flexible Values

Best regards,

Yeong Cheol, Jeong

yeong-chul_jeong
Active Participant
0 Kudos

Hi, Rakesh Sharma

In your case, you can use "Type of Start of Frequency" on the 'Condition Tab > Frequency > FrequencyStart' item as below.

   You can choose from the following :

     - Start of the Condition

     - Start of the Calendar Year  

     - User Selection(Custom)

In your case, you must use "Start of the Calendar Year' and then Cash-flow amount will be calculated until every end of month. so, Cases of First and Last month will be calculated by number of days.