CI Billing- Selection & Grouping Variant

light111All about CI billing – Billing Process, Subprocess, Selection Variant and Grouping Variant  with Aggregation


The below post shows how the selection variant of a billing process helps in finding correct set of BITs to be taken further for the billing process and the grouping variant helps to put which set of selected BITs to be put together into billing units and do the aggregation inside each billing unit.

By default for the same header data, all of it BITs can be put together into a single billing unit but the customizing helps not only how to merge but also how to split the BITs into different billing documents.


The billable item class- CUSG

1

The subprocess- TELC

2

Assigning subprocess to the bit class.

3

The billable items types- TCAL, TDAT & TMSG

4

Assigning billable item type to the subprocess.

5

The source transaction type.

6

The debit and credit- main & sub transactions for the subprocess and billable item type.

7


Before doing the bill process, let see the billing type and billing item type and assignment.

8

The billing type- BTTE

9

Here we will not use any custom billing item type but will use- 0INVBILL .

10

Let’s assign the same billing item type to the billable item type.

11


Let’s see the billing process and the selection & grouping variant.

12

Here the selection variant- SVTE . The selection variant helps to pick up the BITs for the billing depending on the selection criteria mentioned in the variant.

13

The assigned BIT class- CUSG  [ here we can assign multiple BIT classes but for start with take only one BIT class].

14

The billable item type for the bit class of the selection variant. Once of the billable item type are EXCLUDED.

15

For now the source transaction type is initial in the selection variant.

16


The selection variant helps in selecting the matching BITs where as the grouping variant determines which all bits can be put together into separate billing units and creates billing doc per billing unit and again in each billing document how the BITs can be aggregated.

In Grouping Variant, first is the grouping characteristics. For simplicity here we will consider SOURCE TRANSACTION ID- SRCTAID .

17

The grouping variant is GVTE.

18

The assigned characteristic is source transaction id. It has two sections billing unit and aggregation behavior. 

19

20

The billing process- BPTE 

21

Here we have taken a single subprocess. Multiple subprocess can be assigned to a single billing process but in that case the billing split happens for the subprocess.  

22

The billing process with subprocess, selection variant, grouping variant and the billing type.

2324


With above steps we are ready for the checking of selection and grouping.

->1:  Lets check the selection variant.

Lets create few bits for the same subprocess, same bit class but with different billable item type . 

Here the BIT Monitor.

25

Let’s check how selection variant works with the single billing doc creation transaction.- FKKBIX_S

26

The current selection variant.

28

The selection picks all 3 BITS  as it matches to bit class and billable item type maintained in selection variant.

27

Let’s make the one of the billable item type- TMSG as excluded.

29

Now the billing – picks all BITs except when billable item type= TMSG

30

We can also delete- one billable item class – TDAT from the selection variant.

31

Out of 3 billable item class , one is not added to the selection variant, one is excluded.

32

Now when billing is executed for the billing process- it picks only one BIT out of 3 satisfying the selection variant.

33

let’s delete all billable item type for the BIT class of the selection variant.

34

35

Now it picks all 3 bits in the billing selection process as the selection is made on basic of the BIT class as we have not specified any billable item type under BIT class.

36

Now currently we have only BIT class assigned to the selection variant but no billable item type under the bit class but let’s now assign source transaction type 01 under the BIT class.

37

The BIT monitor contains below 5 BITs , 3 BITs with source transaction type- 01 and others with source transaction type- 02.

38

The billing now picks 3 bits with source transaction type- 01 satisfying the selection variant.

39

let’s make source transaction type- 01 as excluded in the selection variant. 

40

The billing process now excludes 3 bits with source transaction type- 01 and selects the rest 2 BITs.

41

Now lets add 01 & 02 source transaction type to the selection variant.

42

The billing process now picks all BITs with BIT class- CUSG  and source transaction type- 01 or 02.

43


Upto now we get to know on a basic level how selection variant helps to pick the required set of BITs  out of the pool of BITs for the billing process. Now lets check the Grouping Variant.

Before this – currently the selection variant set up is as below- It has 3 billable item type and source transaction type- 01 & 02 under the BIT class- CUSG.

4445

The grouping variant – GVTE contains the SOURCE TRANSACTION ID: SRCTAID as the grouping characteristics. 

There are two different parts:

1-> Billing Unit- It determines with all selected BITs can be put into a single billing unit/billing document.

2-> Aggregation Behavior- It works within a billing unit, how the BITs selected for a single billing unit can be aggregated. Aggregation mains works with numerical fields.  Like adding the amounts if the currency is same or adding the quantity if the unit is same .. Like follows. 

46

Execute the billing transaction.

47

With the help of selection variant of the billing process, picks the below shown 4 BITs. 

48

It sets the same billing unit to all the 4 BITs as the source transaction ID is same for all BITs which is the grouping characteristics.

49

Select execute button.

50

Choose display billing document.

51

With aggregation behavior, it add up the amount as all 4 bits have the same currency and also adds up the quantity.

52

let;s check below case- Below are the bits with same source transaction ID but with 2 different currencies.

53

Execute billing for the billing process- The selection variant selects below BITs for the billing.

54

As all bits have same source transaction ID, they are assigned the same billing unit.

55

As the currency are different, the BITs split into two billing items and in each item the aggregation happened for amount, quantity.

56

Lets check another case- below are the BIT monitor with 2 set of BITs having different source transaction ID.

57

The billing process- selction variant picks below bits for billing.

58

Now it assign two billing units the BITs as the grouping characteristics- source transaction ID varies.

59

It tries to create 2 billing document.

60

For the first billing document,  the items split as they have different currencies and then aggregation happens for each item.

61

The second billing doc is created for another source transaction ID where all  BITs are combined to for a single billing item and aggregated the amount as all BITs have same currency and also quantity is aggregated.

62


 

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s