<?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: Background Job - Access memory variables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609184#M1569148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you declared that parameter in the second program ?&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_VAL TYPE STRING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have declared your parameter, you can pass the value to the program and use P_VAL in you program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SUBMIT "Stand Report"
USING SELECTION-SCREEN 1000
WITH SELECTION-TABLE t_rspar_tab
WITH P_VAL = "your value"
VIA JOB name NUMBER number
AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jan 2011 23:38:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-19T23:38:19Z</dc:date>
    <item>
      <title>Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609181#M1569145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a custom program to call another program in a background job. Due to some due reason, I don't call the transaction using submit, instead I submit the program using a job. &lt;/P&gt;&lt;P&gt;My requirement is to pass the memory variable from first program to another program using a memory variable. I used EXPORT / IMPORT memory and it didn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this without file access, custom table? Please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nagarajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609181#M1569145</guid>
      <dc:creator>nagarajan_ramudu</dc:creator>
      <dc:date>2011-01-19T23:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609182#M1569146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nagarajan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Export / Import works only when used within the same session, so it won't work in your scenario, instead you can pass the value directly to the program you are submitting through background job, just create a parameter eg. P_VAL in the target program and the pass the value when you submit the job...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    SUBMIT  [Program Name ]
            WITH P_VAL = [ your value ]...VIA JOB...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:25:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609182#M1569146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-19T23:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609183#M1569147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much for your reply. &lt;/P&gt;&lt;P&gt;I use below statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT "Stand Report"&lt;/P&gt;&lt;P&gt;    USING SELECTION-SCREEN 1000&lt;/P&gt;&lt;P&gt;    WITH SELECTION-TABLE t_rspar_tab&lt;/P&gt;&lt;P&gt;    VIA JOB name NUMBER number&lt;/P&gt;&lt;P&gt;    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add addtional parameter, giving an error. Called program is standard program. &lt;/P&gt;&lt;P&gt;I would like to pass the "value" from first program to called program BADI that is executed in Background Job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nagarajan Ramudu on Jan 20, 2011 12:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609183#M1569147</guid>
      <dc:creator>nagarajan_ramudu</dc:creator>
      <dc:date>2011-01-19T23:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609184#M1569148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you declared that parameter in the second program ?&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: P_VAL TYPE STRING.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have declared your parameter, you can pass the value to the program and use P_VAL in you program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SUBMIT "Stand Report"
USING SELECTION-SCREEN 1000
WITH SELECTION-TABLE t_rspar_tab
WITH P_VAL = "your value"
VIA JOB name NUMBER number
AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609184#M1569148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-19T23:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609185#M1569149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I forgot to update you. &lt;/P&gt;&lt;P&gt;Second program is a standard SAP program and I access BADI for change the content. So I need to pass the value from first program to second program's BADI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609185#M1569149</guid>
      <dc:creator>nagarajan_ramudu</dc:creator>
      <dc:date>2011-01-19T23:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609186#M1569150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me which standard program you are using ? Unless someone suggests a better solution, you can simply create an entry in TVARVC table (Table of Variant Variables) and read in your Badi to use instead of creating a Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 23:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609186#M1569150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-19T23:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609187#M1569151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using a SET/GET Parameter ID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 00:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609187#M1569151</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2011-01-20T00:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609188#M1569152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parameter ID is not working. &lt;/P&gt;&lt;P&gt;TVARC is an option but looking for alternative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thinking to use DATASET. What is the default file location and where do I find? Is it a suggested way to use dataset for this? Please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 00:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609188#M1569152</guid>
      <dc:creator>nagarajan_ramudu</dc:creator>
      <dc:date>2011-01-20T00:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Background Job - Access memory variables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609189#M1569153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parameter ID's are user specific, you should use the same user id for both SET / GET. DATASET option is to write a file to the app. server and read it again from the same location which involves a file location, read/write access, a bit complex way of doing for just storing a value, anyway the default location would be DIR_HOME (check TCode Al11 to see where it is mapped)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Trikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2011 00:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-access-memory-variables/m-p/7609189#M1569153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-20T00:28:10Z</dc:date>
    </item>
  </channel>
</rss>

