SAP Program RJHAEG00 - IS-M/AM: Generate Schedule Lines for Resubmission Orders

Description
This program is used to generate ad schedule lines for items with the'TF' date type (till forbid).
The system selects all order items with this date type and for which noschedule lines have been generated by the required date for scheduleline generation.
The booking unit and either a date or a copy number up until whichgeneration should be performed are required as a default for scheduleline generation
Generation start date
The start date for the new generation period is determined from theexisting ad item. If schedule lines already exist, the generation startdate is preassigned using the last schedule line date + 1 day or therespective copy number for this date. If no schedule lines exist, thestart date is booked using the start period for the item. If no startperiod has been specified, the system date or the copy number whichcorresponds to the system date is used instead.
Generation end date
The end date is booked using the end dates or the end copy numberdetermined using the selection.
If particular booking units are not selected, no schedule lines will begenerated for their items.
Following each generation run, the end date or the end copy number aresaved for each booking unit in table JHAEGEN. This table is used as thebasis for schedule line generation for new 'TF items' that are createdin dialog mode.
Checks are made to establish whether a generation end date was alreadydetermined for the booking unit in table JHAEGEN. If this is the case,the order will generate schedule lines in dialog up until this enddate.
Test run
The checkbox field No DB update can be used to start the programin test mode. In this instance, schedule lines will not be updated andthe table JHAEGEN will not be updated.

Precondition
The following data is required for each ad item to ensure that thegeneration run is successful:
Date type = 'TF'
Booking unit
Business content component
Ad spec number
Date category (C = copy/ D= date)
Date cycle