Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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.
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:
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.
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.
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.