batch derivation with badi derivation

Upload: wipro651975

Post on 02-Jun-2018

371 views

Category:

Documents


4 download

TRANSCRIPT

  • 8/10/2019 Batch Derivation With Badi Derivation

    1/12

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

    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 valuecan be calc ulated and sent to receiver batch for results.

    Example:

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187091/Capture1.PNGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187091/Capture1.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    2/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187092/Capture.2PNG.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    3/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187093/Capture3.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    4/12

    Batch Derivation with BADI Derivation

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

    When these sender batches send the SI characteristic to receiver sender batch wouldcalculate 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 toreceiver +

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187097/Capture4.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    5/12

  • 8/10/2019 Batch Derivation With Badi Derivation

    6/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187099/Capture6.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    7/12

    Batch Derivation with BADI Derivation

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

    1. 1. Method BWU_LIST_CALL_AFTER: CT_BWU_LIST table would provide youthe information about all batches so far issued

    to the process order.Extract the same in global internal table I_BATCH_TABto be used in method RECEIPIENT_VALUES_AND_STATUS.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187101/Capture8.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    8/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187102/Capture.9PNG.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    9/12

    Batch Derivation with BADI Derivation

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

    Logic to be written in method RECIPIENT_VALUES_AND_STATUS:

    1. Refine the batches received as a result of batch where used search results fromI_BATCH_TAB to make sure we are only considering results relevant to receiver processorder.

    2. Refine I_BATCH_TAB to have batches relevant to consumption only ( Type C fromI_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 tobatch auto matically.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187110/Capture9.PNGhttp://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187110/Capture9.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    10/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187111/Capture10.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    11/12

    Batch Derivation with BADI Derivation

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

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187112/Capture11.PNG
  • 8/10/2019 Batch Derivation With Badi Derivation

    12/12

    Batch Derivation with BADI Derivation

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

    Receiver batch shows mean absolute average instead of simple average per formulaexplained above.

    Same way BADI DERIVATION can be useful in implementing your own logic during batchderivation.

    http://scn.sap.com/servlet/JiveServlet/showImage/102-36407-3-187114/Capture12.PNG