Sei sulla pagina 1di 12

Batch Derivation with BADI Derivation

Purpose: When sender passes values of numeric single value characteristics to receiver,
we can either pass minimum/maximum or average value of multiple sender batches. We will
show case how BADI enhancement DERIVATION can be utilized and mean absolute value
can be calculated and sent to receiver batch for results.

Example:
Receiver Material N-2600 Cetepharm-N tablet in IDES client.

Generated by Jive on 2013-03-05+01:00


1

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


2

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


3

Batch Derivation with BADI Derivation

When these sender batches send the SI characteristic to receiver sender batch would
calculate the plain average.
SI (receiver) = (30+90)/2 = 120/2=60.

With the help of BADI DERIVATION we would calculate mean average with below formula:

SI( receiver) = SI % of sender1*batch qty issued of senderbatch1 / total qty issued to


receiver +

Generated by Jive on 2013-03-05+01:00


4

Batch Derivation with BADI Derivation

SI % of sender2*batch qty issued of senderbatch2/ total qty issued

SI( receiver) = = 30*0.1/0.4+90*0.3/0.4


SI( receiver) = =7.5+67.5=75.

Generated by Jive on 2013-03-05+01:00


5

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


6

Batch Derivation with BADI Derivation

1.
1. Method BWU_LIST_CALL_AFTER: CT_BWU_LIST table would provide you
the information about all batches so far issued
to the process order.Extract the same in global internal table I_BATCH_TAB
to be used in method RECEIPIENT_VALUES_AND_STATUS.

Generated by Jive on 2013-03-05+01:00


7

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


8

Batch Derivation with BADI Derivation

Logic to be written in method RECIPIENT_VALUES_AND_STATUS:


1.
Refine the batches received as a result of batch where used search results from
I_BATCH_TAB to make sure we are only considering results relevant to receiver process
order.
2.
Refine I_BATCH_TAB to have batches relevant to consumption only ( Type C from
I_BATCH_TAB).
3.

Calculate the total quantity of sender batch issued to process order.

4.
Apply mean absolute formula explained above if i_recipient_condition_record-exit1 =
c_wtavg which is control parameter we defined in receiver condition record in EXIT1.
5.
Update results in CT_RECIPEINT_VALUES parameter of method which would flow to
batch automatically.

Generated by Jive on 2013-03-05+01:00


9

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


10

Batch Derivation with BADI Derivation

Generated by Jive on 2013-03-05+01:00


11

Batch Derivation with BADI Derivation

Receiver batch shows mean absolute average instead of simple average per formula
explained above.
Same way BADI DERIVATION can be useful in implementing your own logic during batch
derivation.

Generated by Jive on 2013-03-05+01:00


12

Potrebbero piacerti anche