<?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 Re: Can a transaction be called in background dynamically using ABAP program?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154567#M993395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot schedule the program in background since the program name wil change depending on the input from user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it possible to call a program in background dynamically ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 04:39:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T04:39:46Z</dc:date>
    <item>
      <title>Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154564#M993392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can a transaction be called in background dynamically using ABAP program without BDC???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mansi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 10:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154564#M993392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154565#M993393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SAPUSER,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  yh_sample.
PARAMETERS TCODE TYPE TCODE.
sy-batch = 'X'.
call transaction TCODE .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;schedule this program in background using SM36 and give the variants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 11:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154565#M993393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T11:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154566#M993394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mansi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it helps, I do that with SUBMIT statement (if applyable). But there, I don't call the transaction, but instead I call the program behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bruno Garcia on Jul 14, 2008 11:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 11:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154566#M993394</guid>
      <dc:creator>BGarcia</dc:creator>
      <dc:date>2008-07-14T11:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154567#M993395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot schedule the program in background since the program name wil change depending on the input from user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it possible to call a program in background dynamically ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 04:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154567#M993395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T04:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154568#M993396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can create job dynamically through programming..Try this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: jobname like tbtcjob-jobname value&lt;/P&gt;&lt;P&gt;                             ' TRANSFER TRANSLATION'.&lt;/P&gt;&lt;P&gt;data: jobcount like tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;      host like msxxlist-host.&lt;/P&gt;&lt;P&gt;data: begin of starttime.&lt;/P&gt;&lt;P&gt;        include structure tbtcstrt.&lt;/P&gt;&lt;P&gt;data: end of starttime.&lt;/P&gt;&lt;P&gt;data: starttimeimmediate like btch0000-char1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Job open&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;P&gt;            delanfrep        = ' '&lt;/P&gt;&lt;P&gt;            jobgroup         = ' '&lt;/P&gt;&lt;P&gt;            jobname          = jobname&lt;/P&gt;&lt;P&gt;            sdlstrtdt        = sy-datum&lt;/P&gt;&lt;P&gt;            sdlstrttm        = sy-uzeit&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            jobcount         = jobcount&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            cant_create_job  = 01&lt;/P&gt;&lt;P&gt;            invalid_job_data = 02&lt;/P&gt;&lt;P&gt;            jobname_missing  = 03.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;                                       "error processing&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert process into job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;STRONG&gt;SUBMIT zreport and return&lt;/STRONG&gt;               &amp;lt;&amp;lt; Here it is a static call but u can make it dynamic&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;with p_param1 = 'value'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;with p_param2 = 'value'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;user sy-uname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;via job jobname&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                &lt;STRONG&gt;number jobcount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;gt; 0.&lt;/P&gt;&lt;P&gt;                                       "error processing&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Close job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  starttime-sdlstrtdt = sy-datum + 1.&lt;/P&gt;&lt;P&gt;  starttime-sdlstrttm = '220000'.&lt;/P&gt;&lt;P&gt;  call function 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            event_id             = starttime-eventid&lt;/P&gt;&lt;P&gt;            event_param          = starttime-eventparm&lt;/P&gt;&lt;P&gt;            event_periodic       = starttime-periodic&lt;/P&gt;&lt;P&gt;            jobcount             = jobcount&lt;/P&gt;&lt;P&gt;            jobname              = jobname&lt;/P&gt;&lt;P&gt;            laststrtdt           = starttime-laststrtdt&lt;/P&gt;&lt;P&gt;            laststrttm           = starttime-laststrttm&lt;/P&gt;&lt;P&gt;            prddays              = 1&lt;/P&gt;&lt;P&gt;            prdhours             = 0&lt;/P&gt;&lt;P&gt;            prdmins              = 0&lt;/P&gt;&lt;P&gt;            prdmonths            = 0&lt;/P&gt;&lt;P&gt;            prdweeks             = 0&lt;/P&gt;&lt;P&gt;            sdlstrtdt            = starttime-sdlstrtdt&lt;/P&gt;&lt;P&gt;            sdlstrttm            = starttime-sdlstrttm&lt;/P&gt;&lt;P&gt;            strtimmed            = starttimeimmediate&lt;/P&gt;&lt;P&gt;            targetsystem         = host&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            cant_start_immediate = 01&lt;/P&gt;&lt;P&gt;            invalid_startdate    = 02&lt;/P&gt;&lt;P&gt;            jobname_missing      = 03&lt;/P&gt;&lt;P&gt;            job_close_failed     = 04&lt;/P&gt;&lt;P&gt;            job_nosteps          = 05&lt;/P&gt;&lt;P&gt;            job_notex            = 06&lt;/P&gt;&lt;P&gt;            lock_failed          = 07&lt;/P&gt;&lt;P&gt;            others               = 99.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;                                       "error processing&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;JOy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 04:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154568#M993396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T04:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154569#M993397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello sapuser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can try this for your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the CALL FUNCTION &amp;lt;funct&amp;gt; IN BACKGROUND TASK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This flags the function module funct to be run asynchronously. That is, it is not executed at once. Instead, the data passed using EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 04:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154569#M993397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T04:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can a transaction be called in background dynamically using ABAP program??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154570#M993398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you can call a Transaction Code in background without using the BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 04:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-a-transaction-be-called-in-background-dynamically-using-abap-program/m-p/4154570#M993398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T04:55:43Z</dc:date>
    </item>
  </channel>
</rss>

