<?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: Problem while running program in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577302#M1433799</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;Actually U have to create a spool out of it and than u u have to converte in PDF and proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 06:25:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-28T06:25:53Z</dc:date>
    <item>
      <title>Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577290#M1433787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report created back in 2002 which is using write statement. till nw it was being run in foreground. Output screen of the report is very long.&lt;/P&gt;&lt;P&gt;while running in background the output width is not coming properly. spool gets cut.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me so that i can increase the output spool width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 10:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577290#M1433787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T10:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577291#M1433788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the value against LINE-SIZE param. The maximum value is 1023 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spool is getting truncated because the LINE-SIZE is less than the actual value of the list width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;SUhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 10:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577291#M1433788</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-01-27T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577292#M1433789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use Line-Size in your code????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 10:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577292#M1433789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577293#M1433790</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 have used line size and line count both.&lt;/P&gt;&lt;P&gt;Its running fine in foreground, but while doing so for background spools doesn't come properly.&lt;/P&gt;&lt;P&gt;need help .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577293#M1433790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T11:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577294#M1433791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the LINE-SIZE used in the program? I think you should also check the default page layout of the spool being generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is less than the report output, the output will be truncated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577294#M1433791</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-01-27T11:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577295#M1433792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Suhas Da,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the line size 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i check and change the default output spool width.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577295#M1433792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T11:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577296#M1433793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on the spool request number, you can find the "Format" under the spool attributes tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Try changing this to X_65_255 &amp;amp; check. (You can change this value in the print options)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577296#M1433793</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-01-27T11:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577297#M1433794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When you see the spool, there is one button "RAW".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press this button. Now you will be able to SCROLL to the right, and see the right-hand side data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 13:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577297#M1433794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577298#M1433795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SAP Note 409339&lt;/STRONG&gt;  probably describes what you're trying to do and how to do it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 13:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577298#M1433795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T13:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577299#M1433796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That note is not working as my system is 4.7&lt;/P&gt;&lt;P&gt;Please suggest some soln&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 05:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577299#M1433796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T05:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577300#M1433797</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;Same problem occurs with me also...&lt;/P&gt;&lt;P&gt;I have worked with the following solution....&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  PERFORM sub_get_print_params.

  PERFORM sub_submit_program.

  PERFORM sub_get_spool_no.

  PERFORM sub_spool_to_pdf.

  PERFORM sub_send_mail.

FORM sub_get_print_params .

  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      no_dialog              = c_false
      report                 = c_repid
      user                   = sy-uname
    IMPORTING
      out_parameters         = w_print_parms
      valid                  = w_valid
    EXCEPTIONS
      archive_info_not_found = 1
      invalid_print_params   = 2
      invalid_archive_params = 3
      OTHERS                 = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0 OR w_valid &amp;lt;&amp;gt; c_x.
    MESSAGE e000(ymfi) WITH 'Error in getting print parameters'(002).
  ENDIF.

  w_print_parms-pdest = 'FRON'(003).
  w_print_parms-paart = c_paart.
  w_print_parms-linct = '36'.
  w_print_parms-linsz = '140'.

ENDFORM.                    " SUB_GET_PRINT_PARAMS

FORM sub_submit_program .

  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname          = p_jobnm
    IMPORTING
      jobcount         = w_number
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 4.

  IF sy-subrc = 0.
    SUBMIT yrfdashboard TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                        SPOOL PARAMETERS w_print_parms
                        VIA JOB p_jobnm NUMBER w_number
                        AND RETURN.
    IF sy-subrc = 0.

      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = w_number
          jobname              = p_jobnm
          strtimmed            = c_x
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          OTHERS               = 8.
      IF sy-subrc &amp;lt;&amp;gt; 0.
        MESSAGE e000(ymfi) WITH 'Error in closing Job'(010).
      ENDIF.
    ENDIF.
  ENDIF.
ENDFORM.                    " SUB_SUBMIT_PROGRAM


Like that u have to proceed..
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for any more solutions.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 06:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577300#M1433797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T06:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577301#M1433798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using the 'Disply in max width' button. But im not sure whether this is available in 4.7 system. If this button is not there, try with those menus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 06:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577301#M1433798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while running program in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577302#M1433799</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;Actually U have to create a spool out of it and than u u have to converte in PDF and proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 06:25:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-running-program-in-background/m-p/6577302#M1433799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T06:25:53Z</dc:date>
    </item>
  </channel>
</rss>

