Ansicht
Dokumentation

OIJP_PLANNING_RR - IS-OIL TSW - Planning proposal routine RR (Rep. inventory Reorder )

OIJP_PLANNING_RR - IS-OIL TSW - Planning proposal routine RR (Rep. inventory Reorder )

General Data in Customer Master   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This routine tries to make proposals for the demand object as closely as possible to match the issues for the object on dates determined by the re-order point being reached.

Once the internal tables have been filled by the pre-routine process and and calculations as above, only columns RMRP and IMRP should be empty at this stage (although IMRP may contain values from previous runs).

See Appendix RR for a spreadsheet example. The steps to follow are (for the demand object) :

1. Check that planning run flag (PLANFLAG) is not set.

2. Set variable Back_Date as day 0 or refresh BACK_DATE (see lower down)

3. Find the first incidence in the future after BACK_DATE in column column IBASE where the inventory is less than or equal to RE-ORDER point
Record the inventory figure in RMENG (local variable)
Record the date in RDATE (local variable)

4. Check RDATE is less than or equal to END_DATE (calculated from from SY-DATUM plus PLHOZ). If yes, carry on. If no, then End.

5. Find the highest inventory in IBASE on or after RDATE.
Record the inventory figure in HMENG (local variable)
Record the date in HDATE (local variable)

6. Calculate MAXINV - HMENG > record result in PMAX (local variable).
This will be the maximum allowed proposal for RDATE.

7. Find the most recent previous SFLAG setting prior to RDATE.
If found, record date in SDATE and IBASE in SMENG. If none found, take SDATE as first Stock Projection Worksheet date and SMENG from this record.
8. Calculate SMENG - RMENG - put result in PREP.

9. Calculate lesser of PREP and PMAX - put result in PRES.

10. Check that PRES is greater than or equal to 0,5 * INCLOT - this this ensures that we have at least the minimum space for a proposal. If If check OK, carry on. If check fails, goto step 18.

11. Check RDATE record for an SFLAG setting > if marked, step 12. If not marked, step 14.

12. Incremental proposal to be made.

13. Calculate the incremental batch size for the proposal - PRES * INCLOT / INCLOT, round to the nearest INCLOT (e.g. req. 17, INCLOT 10, 17 * 10 / 10 = 17, round to the nearest 10 gives 20).
Record value in PMRP (local variable).
If PMRP is greater than PMAX, PMRP = PMRP - INCLOT. If resulting PMRP is less than or equal to zero, skip to step 18. Else Skip to step 17.

14. New batch proposal to be made.

15. Is PRES greater then or equal to minimum batch size (MINLOT) ? If , step 16 If no, skip to step 18.

16. Calculate the batch size for this proposal - PRES - MINLOT = = remainder, then remainder * INCLOT / INCLOT, round to the nearest INCLOT, gives partial result, then MINLOT + partial result gives proposal (e.g. requirement 42, MINLOT 25, INCLOT 10 > > remainder = 42 - 42 - 25 = 17 >> partial result as before in step 6. = 10, then proposal = 25 + 10 = 35).
Record this value in PMRP.
If PMRP is greater than PMAX, PMRP = PMRP - INCLOT.
If resulting PMRP is less than MININV, skip to step 18. Else goto step 17.

17. Place PMRP in RMRP on the RDATE, refresh values in IBASE.
Set SFLAG as marked on RDATE (as dates help to work out .issues" between batches.

18. Set BACK_DATE = HDATE.

19. Check BACK_DATE is equal to or less than END_DATE. If yes, loop around from step 3. If not, then End.

End.

This routine is then looped around (steps 3. to 19.) until the whole planning horizon has been covered, this is when one of the Back_Date versus END_DATE checks fails.

This is then the routine for planning using replacement type and with re-order point method.

At the end of the planning routine above, the values in RMRP should be be added to the values in BASE and then both columns returned to OIJRD for the demand object (overwriting the pervious values).


Example

Notes

Further information





Parameters

I_PTYPEFLAG
T_OIJDOPL_TAB
T_OIJLOCMAT_WA
T_OIJTSMAT_WA

Exceptions

Function Group

OIJP

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 4406 Date: 20240523 Time: 144541     sap01-206 ( 64 ms )