SAP Function WRF_APC_DIST_PAQA - Distributing Put Away Quantities

Parameter Reference Type Length Default Optional Text
IR_ITEM REF TO CL_WRF_APC_ITEM 0 Operational APC - Purchasing List Item Class

Parameter Reference Type Length Text
ET_LOG WRF_APC_PLIST_LOG_TTY h 580 Purchasing List Messages Log
ET_RETURN WRF_APC_BAPIRET2_TTY h 548 Error messages sent during Operational APC exceptions

Parameter Reference Type Length Default Optional Text
CR_PLDEF REF TO CL_WRF_APC_PURC_LIST_DE 0 Operational APC - Purchasing List Definition Class
CR_PL_COL REF TO CL_WRF_APC_PURC_LIST_CO 0 Operational APC - Data Communication Class
CR_PUTAWAY_COL REF TO CL_WRF_APC_ITEM_COLLECT 0 X Operational APC - Purchasing List Item Collection Class

Exception Text
CX_WRF_APC_PL_EXCEPTIONS
CX_WRF_APC_ROOT_EXCEPTIONS Operational APC - Global common exceptions

Functionality
This function module calculates the putaway quantity for a purchasinglist item and distributes it to the subsequent rollouts based on thesales and assortment ratios.
The major steps in the process are:
Aggregate the putaway quantities for the corresponding purchasing listitem on the material level.
Read the sales pattern for the material from the BW. This gives thesales ratios for the posting periods following the store presentationdate.
Calculate the sales ratios that are valid for the subsequent rollouts bymatching posting periods and rollouts. If they do not match exactly,calculate the ratio according to the number of days of the postingperiod that fall into each rollout.
Calculate the assortment ratio for the purchasing list item based onplanning for the assortments for a key figure (maintained in Customizingfor key figures).
Calculate the quantities:
Calculate the target quantity for the rollout using the ratio of theaggregated putaway quantity that corresponds to the sales ratiodetermined for this rollout.
Write the target quantity for the rollout to the correspondingassortments. For this distribution, the system uses the assortment ratiocalculated as described above.
Insert the calculated quantities for each rollout/assortment into thecorresponding purchasing lists. If they do not yet exist, the systemcreates them, but only if the corresponding rollout already exists inCustomizing.
Write the calculated quantities to the key figure (maintained inCustomizing for key figures).
It is possible to redistribute the same purchasing list item. The systemthen recalculates the quantities and deletes the old distribution.