<?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: Pass parameter to program (with LDB) submitted in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589791#M1274325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the submit with variant(by creating a variant for the program).&lt;/P&gt;&lt;P&gt;I think it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 17:47:05 GMT</pubDate>
    <dc:creator>KK07</dc:creator>
    <dc:date>2009-05-15T17:47:05Z</dc:date>
    <item>
      <title>Pass parameter to program (with LDB) submitted in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589787#M1274321</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;For a particular requirement, I need to submit the program RPLPAY00 in background. &lt;/P&gt;&lt;P&gt;I need to extract data for the 'Current Year' which appears as a radiobutton on screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it comes from the logical database PNP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZRUN_RPLPAY00
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Author  : Kris Donald
*&amp;amp; Date    : 15-05-2009
*&amp;amp; Purpose :
*&amp;amp;---------------------------------------------------------------------*

REPORT  ZRUN_RPLPAY00.

DATA: LV_JOB_NAME         LIKE TBTCO-JOBNAME,
LV_JOB_NR           LIKE TBTCO-JOBCOUNT,
LV_JOB_RELEASED     TYPE C,
LV_JOB_START_SOFORT TYPE C,
LV_PRINT_PARAMETERS TYPE PRI_PARAMS.
LV_JOB_NAME = 'RPLPAY00'.

CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      JOBNAME          = LV_JOB_NAME
    IMPORTING
      JOBCOUNT         = LV_JOB_NR
    EXCEPTIONS
      CANT_CREATE_JOB  = 1
      INVALID_JOB_DATA = 2
      JOBNAME_MISSING  = 3
      OTHERS           = 4.
  IF SYST-SUBRC = 0.
*submit job with all the selection screen params...
    SUBMIT (LV_JOB_NAME)
        WITH PNPTIMR1 = ''
        WITH PNPTIMR3 = 'X'
        with PNPBEGDA = ''
        with PNPBEGPS = ''
        with ALV_LIST = 'X'
        USER sy-uname
       VIA JOB LV_JOB_NAME NUMBER LV_JOB_NR AND RETURN.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          JOBCOUNT             = LV_JOB_NR
          JOBNAME              = LV_JOB_NAME
          STRTIMMED            = 'X'
        IMPORTING
          JOB_WAS_RELEASED     = LV_JOB_RELEASED
        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 SYST-SUBRC &amp;lt;&amp;gt; 0.
        MESSAGE I162(00) WITH
        'An error occured while closing the background job.'.
        STOP.
      ENDIF.
    ENDIF.
  ENDIF.
  SKIP 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589787#M1274321</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2009-05-15T10:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to program (with LDB) submitted in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589788#M1274322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;However when I check the output log it shows the following message&lt;/P&gt;&lt;P&gt;'Pay scale grpg for allowances for 00040011 is not defined on 20040728'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If 'Current year' was selected properly, it would have read as &lt;/P&gt;&lt;P&gt;'Pay scale grpg for allowances for 00040011 is not defined on 20090101'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how I can pass the parameters properly to the program in background ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589788#M1274322</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2009-05-15T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to program (with LDB) submitted in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589789#M1274323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it is not the problem with program but related to HR configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:33:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589789#M1274323</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-05-15T10:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to program (with LDB) submitted in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589790#M1274324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried scheduling the program  RPLPAY00 in background from SE38 directly (Program -&amp;gt; Execute in Background) and that works fine. So I don't think it could be config related&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 10:37:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589790#M1274324</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2009-05-15T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pass parameter to program (with LDB) submitted in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589791#M1274325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the submit with variant(by creating a variant for the program).&lt;/P&gt;&lt;P&gt;I think it helps you..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 17:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-parameter-to-program-with-ldb-submitted-in-background/m-p/5589791#M1274325</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2009-05-15T17:47:05Z</dc:date>
    </item>
  </channel>
</rss>

