<?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: Executing the program in Background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474101#M556737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;First Check in the Foreground your program is working for the application server file or not&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you will Execute your program in Background internal table "ZPERNR" will be populated from the file that is there on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that what you want to do with the internal table.I think you have not sent the whole code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In background FM GUI_UPLOAD willl not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to debug your code put wait for 100 seconds at the place where you want to dubug your code.Go to transaction code SM50 your job will be running there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Your job&lt;/P&gt;&lt;P&gt;Go to  Menu Bar Program/Mode - &amp;gt; program - &amp;gt; Debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can debug your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Check in the Foreground your program is working for the application server file or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 10:14:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T10:14:42Z</dc:date>
    <item>
      <title>Executing the program in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474099#M556735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts i'm trying to Execute the Program in background. &lt;/P&gt;&lt;P&gt;Given the Input and output file locations and Press F9 for process the program in background from SE38. cause i want to run my program as a batch(Background) &lt;/P&gt;&lt;P&gt;but its not accepting. can you please help me how to resolve this issue.&lt;/P&gt;&lt;P&gt;i'm providing the code can you please verify that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&amp;amp;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SELECTION-SCREEN                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&amp;amp;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;*.. Filename&lt;/P&gt;&lt;P&gt;PARAMETERS: f_name TYPE char100,     "Upload filename&lt;/P&gt;&lt;P&gt;            d_name TYPE char100.     " Download filename&lt;/P&gt;&lt;P&gt;selection-screen end of block b1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_serv radiobutton group RAD1,&lt;/P&gt;&lt;P&gt;            p_frnt radiobutton group RAD1 default 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN: END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST  FOR f_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Data Declaration&lt;/P&gt;&lt;P&gt;  DATA: lt_file TYPE filetable,&lt;/P&gt;&lt;P&gt;        lv_file TYPE LINE OF filetable,&lt;/P&gt;&lt;P&gt;        rc_i TYPE i,&lt;/P&gt;&lt;P&gt;        cl_gui TYPE REF TO cl_gui_frontend_services,&lt;/P&gt;&lt;P&gt;        w_path  LIKE dxfields-longpath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Check if from server or frontend&lt;/P&gt;&lt;P&gt;  IF p_frnt = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Create objects for method&lt;/P&gt;&lt;P&gt;  CREATE OBJECT cl_gui.&lt;/P&gt;&lt;P&gt;*.. Clear the filename&lt;/P&gt;&lt;P&gt;  CLEAR f_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Call method to search for file&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      window_title = 'Choose Input File'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      file_table   = lt_file&lt;/P&gt;&lt;P&gt;      rc           = rc_i&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS       = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Check if file found&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*.. Check that file path not empty&lt;/P&gt;&lt;P&gt;    CHECK NOT lt_file[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    LOOP AT lt_file INTO lv_file.&lt;/P&gt;&lt;P&gt;*..   Set parameter to filename&lt;/P&gt;&lt;P&gt;      f_name = lv_file-filename.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Free object&lt;/P&gt;&lt;P&gt;  FREE cl_gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Upload from Server&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Retrieve filename&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_location_flag       = 'A'&lt;/P&gt;&lt;P&gt;        i_server              = ' '&lt;/P&gt;&lt;P&gt;        i_path                = '/sap_ftp/'&lt;/P&gt;&lt;P&gt;        filemask              = '**'&lt;/P&gt;&lt;P&gt;        fileoperation         = 'R'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  O_LOCATION_FLAG       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  O_SERVER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        o_path                = w_path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ABEND_FLAG            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;       rfc_error             = 1&lt;/P&gt;&lt;P&gt;       error_with_gui        = 2&lt;/P&gt;&lt;P&gt;       OTHERS                = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set file path&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    f_name = w_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. File selection for output file&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR d_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Only allow search for front-end&lt;/P&gt;&lt;P&gt;  IF p_frnt = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Data Declaration&lt;/P&gt;&lt;P&gt;    DATA: lt_file TYPE filetable,&lt;/P&gt;&lt;P&gt;          lv_file TYPE LINE OF filetable,&lt;/P&gt;&lt;P&gt;          rc_i TYPE i,&lt;/P&gt;&lt;P&gt;          cl_gui TYPE REF TO cl_gui_frontend_services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Create objects for method&lt;/P&gt;&lt;P&gt;    CREATE OBJECT cl_gui.&lt;/P&gt;&lt;P&gt;*.. Clear the filename&lt;/P&gt;&lt;P&gt;    CLEAR d_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Call method to search for file&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_frontend_services=&amp;gt;file_open_dialog&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        window_title = 'Choose Input File'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        file_table   = lt_file&lt;/P&gt;&lt;P&gt;        rc           = rc_i&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        OTHERS       = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Check if file found&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*.. Check that file path not empty&lt;/P&gt;&lt;P&gt;      CHECK NOT lt_file[] IS INITIAL.&lt;/P&gt;&lt;P&gt;      LOOP AT lt_file INTO lv_file.&lt;/P&gt;&lt;P&gt;*..   Set parameter to filename&lt;/P&gt;&lt;P&gt;        d_name = lv_file-filename.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Free object&lt;/P&gt;&lt;P&gt;    FREE cl_gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. General Checks for Selection screen&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Check if program run in batch mode and ping directory&lt;/P&gt;&lt;P&gt;  IF sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Move filename to file_name&lt;/P&gt;&lt;P&gt;    file_name = d_name.&lt;/P&gt;&lt;P&gt;*.. Check if path can be reached&lt;/P&gt;&lt;P&gt;    OPEN DATASET file_name FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e082(zsomerfield).&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;NITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. ALV Variables&lt;/P&gt;&lt;P&gt;  variant_save = 'A'.&lt;/P&gt;&lt;P&gt;  w_repid   = sy-repid.&lt;/P&gt;&lt;P&gt;  w_variant_handle = c_handl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&amp;amp;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START-OF-SELECTION                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&amp;amp;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Check if batch program running in batch mode or not&lt;/P&gt;&lt;P&gt;  IF sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;*.. Open file on application server for reading&lt;/P&gt;&lt;P&gt;  OPEN DATASET file_name FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;*.. Upload entries&lt;/P&gt;&lt;P&gt;    READ DATASET file_name INTO zpernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. IF end of file reached then exit DO statement&lt;/P&gt;&lt;P&gt;    IF sy-subrc = '4'.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;*.. IF entry found then add to employee table&lt;/P&gt;&lt;P&gt;      in_file-empnum = zpernr.&lt;/P&gt;&lt;P&gt;*..     Add entries to table&lt;/P&gt;&lt;P&gt;      APPEND: in_file.&lt;/P&gt;&lt;P&gt;*..     Clear header lines&lt;/P&gt;&lt;P&gt;      CLEAR: in_file, zpernr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;*.. Close dataset&lt;/P&gt;&lt;P&gt;  CLOSE DATASET file_name.&lt;/P&gt;&lt;P&gt;*.. Get file from frontend and run in foreground&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Upload from local machine.&lt;/P&gt;&lt;P&gt;DATA: file_name TYPE string.  "LIKE rlgrap-filename,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Set filename to filename from screen&lt;/P&gt;&lt;P&gt;  file_name = f_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.. Upload the information from the file into the table in_file&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            filename                = file_name&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab                = in_file&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error         = 1&lt;/P&gt;&lt;P&gt;            file_read_error         = 2&lt;/P&gt;&lt;P&gt;            no_batch                = 3&lt;/P&gt;&lt;P&gt;            gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;            invalid_type            = 5&lt;/P&gt;&lt;P&gt;            no_authority            = 6&lt;/P&gt;&lt;P&gt;            unknown_error           = 7&lt;/P&gt;&lt;P&gt;            bad_data_format         = 8&lt;/P&gt;&lt;P&gt;            header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;            separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;            header_too_long         = 11&lt;/P&gt;&lt;P&gt;            unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;            access_denied           = 13&lt;/P&gt;&lt;P&gt;            dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;            disk_full               = 15&lt;/P&gt;&lt;P&gt;            dp_timeout              = 16&lt;/P&gt;&lt;P&gt;            OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*..   Make sure file uploaded correctly&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   MESSAGE E018(ZHR_MESSAGES).&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE i017(ZHR_MESSAGES).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474099#M556735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Executing the program in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474100#M556736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Create a Variant for the Program and&lt;/P&gt;&lt;P&gt;Schedule JOB in background:&lt;/P&gt;&lt;P&gt;Go to SM36 create a Job&lt;/P&gt;&lt;P&gt;click on Start Condition&lt;/P&gt;&lt;P&gt;Click on DATE and TIME enter date scheduled Start and END times&lt;/P&gt;&lt;P&gt;click on Period Values&lt;/P&gt;&lt;P&gt;Click on HOURLY/WEEKLY etc&lt;/P&gt;&lt;P&gt;CLick on RESTRICTIONS also to use further criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your job will be scheduled and run as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in SM37 Transaction check the status of that JOB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for scheduling jobs..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474100#M556736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Executing the program in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474101#M556737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;First Check in the Foreground your program is working for the application server file or not&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you will Execute your program in Background internal table "ZPERNR" will be populated from the file that is there on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that what you want to do with the internal table.I think you have not sent the whole code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In background FM GUI_UPLOAD willl not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to debug your code put wait for 100 seconds at the place where you want to dubug your code.Go to transaction code SM50 your job will be running there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Your job&lt;/P&gt;&lt;P&gt;Go to  Menu Bar Program/Mode - &amp;gt; program - &amp;gt; Debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you can debug your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Check in the Foreground your program is working for the application server file or not&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474101#M556737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Executing the program in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474102#M556738</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;I could not make out what are you doing with the contents of in_file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, how do you conclude that this prg is not working in background.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474102#M556738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Executing the program in Background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474103#M556739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not use gui functionality in batch programs cause there is no gui.  You have to choose another place for your files and access them via open statement or with ftp functionality,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 10:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-the-program-in-background/m-p/2474103#M556739</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2007-06-22T10:20:37Z</dc:date>
    </item>
  </channel>
</rss>

