<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Scheduling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551835#M581152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know as to how to schedule a job (genearting a report).  ie., I want to generate a report everyday at a particular time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2007 07:24:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-17T07:24:02Z</dc:date>
    <item>
      <title>Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551835#M581152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know as to how to schedule a job (genearting a report).  ie., I want to generate a report everyday at a particular time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone pls guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 07:24:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551835#M581152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T07:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551836#M581153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To create a job, u need to use transaction SM36.&lt;/P&gt;&lt;P&gt;Use Job wizard button in the application toolbar which will guide u step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 07:26:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551836#M581153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T07:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551837#M581154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Call transaction method then you have the programe, just schedule that programe in background in sm36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using Session method then your program generates a session. You can process this session using rsbdcsub program. Just schedule this program in the background and you can process the session at desired time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 07:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551837#M581154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T07:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551838#M581155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Execute transaction SM36 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define Job name, Job class, Target server &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on 'START CONDITION' button &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on 'Date/Time' button &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter Scheduled start DATE &amp;amp; TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on 'Job overview' button or execute SM37 transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the appropriate 'Job name', 'User name', 'Job Status' &amp;amp; Schedule date under 'Job start condition' and click on 'Execute' button or press F8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will now see all your scheduled JOBS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scheduling Background Jobs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Background jobs are scheduled by Basis administrators using transaction SM36.&lt;/P&gt;&lt;P&gt;2. To run a report in a background, a job needs to be created with a step using the report name &lt;/P&gt;&lt;P&gt;and a variant for selection parameters. It is recommended to create a separate variant for each &lt;/P&gt;&lt;P&gt;scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g. &lt;/P&gt;&lt;P&gt;company codes).&lt;/P&gt;&lt;P&gt;3. While defining the step, the spool parameters needs to be specified&lt;/P&gt;&lt;P&gt;(Step-&amp;gt; Print Specifications-&amp;gt;Properties) to secure the output of the report and help authorized users &lt;/P&gt;&lt;P&gt;to find the spool request. The following parameters needs to be maintained:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. Time of printing: set to &amp;#147;Send to SAP spooler Only for now&amp;#148;&lt;/P&gt;&lt;P&gt;b. Name &amp;#150; abbreviated name to identify the job output&lt;/P&gt;&lt;P&gt;c. Title &amp;#150; free form description for the report output&lt;/P&gt;&lt;P&gt;d. Authorization &amp;#150; a value defined by Security in user profiles to allow those users to access &lt;/P&gt;&lt;P&gt;this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching &lt;/P&gt;&lt;P&gt;authorization value in their profiles will be able to see the output.&lt;/P&gt;&lt;P&gt;e. Department &amp;#150; set to appropriate department/functional area name. This field can be used in &lt;/P&gt;&lt;P&gt;a search later.&lt;/P&gt;&lt;P&gt;f. Retention period &amp;#150; set to &amp;#147;Do not delete&amp;#148; if the report output needs to be retained for more &lt;/P&gt;&lt;P&gt;than 8 days. Once the archiving/document repository solution is in place the spool requests could &lt;/P&gt;&lt;P&gt;be automatically moved to the archive/repository. Storage Mode parameter on the same screen &lt;/P&gt;&lt;P&gt;could be used to immediately send the output to archive instead of creating a spool request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuring user access:&lt;/P&gt;&lt;P&gt;1. To access a report output created by a background job, a user must have at &lt;/P&gt;&lt;P&gt;least access to SP01 (Spool requests) transaction without restriction on the user &lt;/P&gt;&lt;P&gt;name (however by itself it will not let the user to see all spool requests). To have &lt;/P&gt;&lt;P&gt;that access the user must have S_ADMI_FCD authorization object in the profile with &lt;/P&gt;&lt;P&gt;SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).&lt;/P&gt;&lt;P&gt;2. To access a particular job&amp;#146;s output in the spool, the user must have &lt;/P&gt;&lt;P&gt;S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used &lt;/P&gt;&lt;P&gt;in the Print Specifications of the job (see p. 3.d above).&lt;/P&gt;&lt;P&gt;3. Levels of access to the spool (display, print once, reprint, download, etc) are &lt;/P&gt;&lt;P&gt;controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least &lt;/P&gt;&lt;P&gt;BASE access (display).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On-line reports:&lt;/P&gt;&lt;P&gt;1. Exactly the same configuration can be maintained for any output produced &lt;/P&gt;&lt;P&gt;from R/3. If a user clicks &amp;#147;Parameters&amp;#148; button on a SAP Printer selection dialog, it &lt;/P&gt;&lt;P&gt;allows to specify all the parameters as described in p. 3 of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#147;Scheduling background jobs&amp;#148; section. Thus any output created by an online report &lt;/P&gt;&lt;P&gt;can be saved and accessed by any user authorized to access that spool request &lt;/P&gt;&lt;P&gt;(access restriction provided by the Authorization field of the spool request &lt;/P&gt;&lt;P&gt;attributes, see p. 3.d of &amp;#147;Scheduling background jobs&amp;#148; section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access to report&amp;#146;s output:&lt;/P&gt;&lt;P&gt;1. A user that had proper access (see Configuring user access above) can &lt;/P&gt;&lt;P&gt;retrieve a job/report output through transaction SP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The selection screen can be configured by clicking &amp;#147;Further selection &lt;/P&gt;&lt;P&gt;criteria&amp;#133;&amp;#148; button (e.g. to bring &amp;#147;Spool request name (suffix 2)&amp;#148; field or hide other &lt;/P&gt;&lt;P&gt;fields).&lt;/P&gt;&lt;P&gt;3. The following fields can be used to search for a specific output (Note that &lt;/P&gt;&lt;P&gt;Created By must be blank when searching for scheduled job&amp;#146;s outputs)&lt;/P&gt;&lt;P&gt;a. Spool request name (suffix 2) &amp;#150; corresponds to a spool name in p. 3.b in &lt;/P&gt;&lt;P&gt;&amp;#147;Scheduling background jobs&amp;#148; section above).&lt;/P&gt;&lt;P&gt;b. Date created &amp;#150; to find an output of a job that ran within a certain date range.&lt;/P&gt;&lt;P&gt;c. Title &amp;#150; corresponds to spool Title in p. 3.c in &amp;#147;Scheduling background jobs&amp;#148; &lt;/P&gt;&lt;P&gt;section above).&lt;/P&gt;&lt;P&gt;d. Department - corresponds to spool Department in p. 3.e in &amp;#147;Scheduling &lt;/P&gt;&lt;P&gt;background jobs&amp;#148; section above).&lt;/P&gt;&lt;P&gt;4. Upon entering selection criteria, the user clicks the Execute button to &lt;/P&gt;&lt;P&gt;retrieve the list of matching spool requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. From the spool list the user can use several function such as view the &lt;/P&gt;&lt;P&gt;content of a spool request, print the spool request, view attributed of the spool &lt;/P&gt;&lt;P&gt;request, etc. (some functions may need special authorization, see p.3 in &lt;/P&gt;&lt;P&gt;Configuring user access)&lt;/P&gt;&lt;P&gt;a. Click the Print button to print the spool request with the default attributes &lt;/P&gt;&lt;P&gt;(usually defined with the job definition). It will print it on a printer that was &lt;/P&gt;&lt;P&gt;specified when a job was created.&lt;/P&gt;&lt;P&gt;b. Click the &amp;#147;Print with changed attributed&amp;#148; button to print the spool request &lt;/P&gt;&lt;P&gt;with the different attributes (e.g. changing the printer name).&lt;/P&gt;&lt;P&gt;c. Click the &amp;#147;Display contents&amp;#148; button to preview the spool request contents. A &lt;/P&gt;&lt;P&gt;Print and Download functions are available from the preview mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using JOB_OPEN,JOB_SUBMIT,JOB_CLOSE&lt;/P&gt;&lt;P&gt;REPORT YJob . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : v_jobhead LIKE tbtcjob.&lt;/P&gt;&lt;P&gt;DATA : v_jobcount LIKE tbtcjob-jobcount.&lt;/P&gt;&lt;P&gt;DATA : v_eventparm LIKE tbtcjob-eventparm.&lt;/P&gt;&lt;P&gt;DATA : v_flg_released TYPE c.&lt;/P&gt;&lt;P&gt;DATA: e_error.&lt;/P&gt;&lt;P&gt;DATA: running LIKE tbtcv-run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: esp1_boolean LIKE boole-boole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: esp1_false TYPE esp1_boolean VALUE ' ',&lt;/P&gt;&lt;P&gt;esp1_true TYPE esp1_boolean VALUE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: true TYPE boolean VALUE esp1_true,&lt;/P&gt;&lt;P&gt;false TYPE boolean VALUE esp1_false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: v_jobnam LIKE tbtcjob-jobname,&lt;/P&gt;&lt;P&gt;v_report LIKE sy-repid,&lt;/P&gt;&lt;P&gt;v_varian LIKE raldb-variant,&lt;/P&gt;&lt;P&gt;v_uname LIKE sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add the new job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;delanfrep = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;jobname = v_jobnam&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;jobcount = v_jobcount&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;cant_create_job = 1&lt;/P&gt;&lt;P&gt;invalid_job_data = 2&lt;/P&gt;&lt;P&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;e_error = true.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_SUBMIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;authcknam = v_uname&lt;/P&gt;&lt;P&gt;jobcount = v_jobcount&lt;/P&gt;&lt;P&gt;jobname = v_jobnam&lt;/P&gt;&lt;P&gt;report = v_report&lt;/P&gt;&lt;P&gt;variant = v_varian&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;bad_priparams = 1&lt;/P&gt;&lt;P&gt;bad_xpgflags = 2&lt;/P&gt;&lt;P&gt;invalid_jobdata = 3&lt;/P&gt;&lt;P&gt;jobname_missing = 4&lt;/P&gt;&lt;P&gt;job_notex = 5&lt;/P&gt;&lt;P&gt;job_submit_failed = 6&lt;/P&gt;&lt;P&gt;lock_failed = 7&lt;/P&gt;&lt;P&gt;program_missing = 8&lt;/P&gt;&lt;P&gt;prog_abap_and_extpg_set = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;e_error = true.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_ID = IC_WWI_WORKPROCESS_EVENT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_PARAM = V_EVENTPARM&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EVENT_PERIODIC = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;jobcount = v_jobcount&lt;/P&gt;&lt;P&gt;jobname = v_jobnam&lt;/P&gt;&lt;P&gt;strtimmed = 'X'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;job_was_released = v_flg_released&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;invalid_startdate = 2&lt;/P&gt;&lt;P&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;job_close_failed = 4&lt;/P&gt;&lt;P&gt;job_nosteps = 5&lt;/P&gt;&lt;P&gt;job_notex = 6&lt;/P&gt;&lt;P&gt;lock_failed = 7&lt;/P&gt;&lt;P&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;e_error = true.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SHOW_JOBSTATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;jobcount = v_jobcount&lt;/P&gt;&lt;P&gt;jobname = v_jobnam&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ABORTED =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FINISHED =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PRELIMINARY =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READY =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;running =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SCHEDULED =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;jobcount_missing = 1&lt;/P&gt;&lt;P&gt;jobname_missing = 2&lt;/P&gt;&lt;P&gt;job_notex = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;e_error = true.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF running = space.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;We all might have seen the code "IF 1=2. ....do this...EndIF" and we also know that this code never turns true. The main purpose of such code is for "Maintainability" of the program. Confused?? Read the following:&lt;/P&gt;&lt;P&gt;Depending upon the scenario, we would either issue the messages in the program using MESSAGE statement or sometimes might have to call the standard function module MESSAGE_PREPARE to prepare the whole message and use it wherever required.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_PREPARE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;msg_id = msg_id&lt;/P&gt;&lt;P&gt;msg_no = msg_no&lt;/P&gt;&lt;P&gt;MSG_VAR1 = sy-msgv1&lt;/P&gt;&lt;P&gt;MSG_VAR2 = sy-msgv2&lt;/P&gt;&lt;P&gt;MSG_VAR3 = sy-msgv3&lt;/P&gt;&lt;P&gt;MSG_VAR4 = sy-msgv4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG_TEXT = tdoc-text&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FUNCTION_NOT_COMPLETED = 1&lt;/P&gt;&lt;P&gt;MESSAGE_NOT_FOUND = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;Assume that we have defined custom message class for issuing the messages. If we have to modify certain message in this message class, we first need to check for the where-used list of the message to study the impact of the message change. If the message is issued using the MESSAGE statement in any program, then that program would appear in the where-used list. But if the message is used in the program using the FM MESSAGE_PREPARE or any similar function module, then this program would not appear in the where-used list. So in order to have this program include in the where-used list, we would code the following after the call to the function module MESSAGE_PREPARE.&lt;/P&gt;&lt;P&gt;IF 1=2.&lt;/P&gt;&lt;P&gt;Message E003(xx).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Since the check "IF 1=2" never gets true, the message would never trigger in the program and this program would appear in the where-used list of that message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 07:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551838#M581155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T07:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551839#M581156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MArk,&lt;/P&gt;&lt;P&gt;Through SM36 -&amp;gt; Press F6 -&amp;gt; Give name of your program -&amp;gt; Save it &lt;/P&gt;&lt;P&gt;Then Press F5 -&amp;gt; Click on Date/Time , Give parameters and&lt;/P&gt;&lt;P&gt;Save it .&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 07:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scheduling/m-p/2551839#M581156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T07:44:55Z</dc:date>
    </item>
  </channel>
</rss>

