<?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 Background Processing, Selection Screens and Variants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-selection-screens-and-variants/m-p/3152024#M749585</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 am having a little trouble Background Processing with Selection Screens and Variants. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM START_BACKGROUND_PROCESSING.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TITLE_NAME            = 'End Customer Report '&lt;/P&gt;&lt;P&gt;      JOB_NAME              = 'customer_report'&lt;/P&gt;&lt;P&gt;      PROG_NAME             = 'ZSE_SD_SALES'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NO_SUCH_PROGRAM       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;ENDFORM.                    "START_BACKGROUND_PROCESSING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the background process is started, all teh data is collated then written to the app server. this is the order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM INITIALIZE_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM SELECT_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM PROCESS_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM GET_END_CUSTOMER_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM WRITE_TO_APP_SERVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Points given to those who are helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2007 13:43:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-06T13:43:38Z</dc:date>
    <item>
      <title>Background Processing, Selection Screens and Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-selection-screens-and-variants/m-p/3152024#M749585</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 am having a little trouble Background Processing with Selection Screens and Variants. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM START_BACKGROUND_PROCESSING.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      TITLE_NAME            = 'End Customer Report '&lt;/P&gt;&lt;P&gt;      JOB_NAME              = 'customer_report'&lt;/P&gt;&lt;P&gt;      PROG_NAME             = 'ZSE_SD_SALES'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    NO_SUCH_PROGRAM       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&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;ENDFORM.                    "START_BACKGROUND_PROCESSING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the background process is started, all teh data is collated then written to the app server. this is the order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM INITIALIZE_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM SELECT_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM PROCESS_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM GET_END_CUSTOMER_DATA.&lt;/P&gt;&lt;P&gt;    PERFORM WRITE_TO_APP_SERVER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Points given to those who are helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2007 13:43:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-selection-screens-and-variants/m-p/3152024#M749585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-06T13:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Background Processing, Selection Screens and Variants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-selection-screens-and-variants/m-p/3152025#M749586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done myeslf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 15:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-processing-selection-screens-and-variants/m-p/3152025#M749586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T15:37:26Z</dc:date>
    </item>
  </channel>
</rss>

