<?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 with export/import in back ground in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508635#M1259777</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;you have written the loop..endloop statement(write) in the second program,&lt;/P&gt;&lt;P&gt;thats you are not able to see the output.. insted it should be in the first report which you are executing..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: krishna kishore on Apr 17, 2009 7:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2009 14:23:43 GMT</pubDate>
    <dc:creator>KK07</dc:creator>
    <dc:date>2009-04-17T14:23:43Z</dc:date>
    <item>
      <title>Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508628#M1259770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a requirement in which i am exporting an internal table to memory from one program and importing that in another program. in foreground it is working fine. But in background it is not working. Is there any work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Program1:

types:
  begin of tab_type,
    para type string,
    dobj type string,
  end of tab_type.

data:
  id    type c length 10 value 'TEXTS',
  text1 type string value `IKE`,
  text2 type string value `TINA`,
  line  type tab_type,
  itab  type standard table of tab_type,
    itab1  type standard table of tab_type.

line-para = 'P1'.
line-dobj = 'TEXT1'.
append line to itab.

line-para = 'P2'.
line-dobj = 'TEXT2'.
append line to itab.
free memory id 'TD'.
export itab to memory id 'TD'.


Program2:
types:
  begin of tab_type,
    para type string,
    dobj type string,
  end of tab_type.

data:
  id    type c length 10 value 'TEXTS',
  text1 type string value `IKE`,
  text2 type string value `TINA`,
  line  type tab_type,
  itab  type standard table of tab_type,
    itab1  type standard table of tab_type.
refresh itab.
import itab from memory id 'TD'.
free memory id 'TD'.
clear line.
loop at itab into line.
  write: / line-para, line-dobj.
  clear line.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jyothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508628#M1259770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508629#M1259771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which Program You Are Executing in Background,First one or second one?&lt;/P&gt;&lt;P&gt;For Better result use SUBMIT and return before import.&lt;/P&gt;&lt;P&gt;Ex:SUBMIT PROGRAM1 AND RETURN(IN SECOND PROGRAM).&lt;/P&gt;&lt;P&gt;this should work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: krishna kishore on Apr 17, 2009 6:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 13:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508629#M1259771</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2009-04-17T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508630#M1259772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks KK..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I missed some lines in the posted code. the issues is i am submitting a program in background, in that i am importing the eported data from memory. but the exported memory is not available inthe background running program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Is there any way to get the exported memory data in the background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program1:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;  begin of tab_type,&lt;/P&gt;&lt;P&gt;    para type string,&lt;/P&gt;&lt;P&gt;    dobj type string,&lt;/P&gt;&lt;P&gt;  end of tab_type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  id    type c length 10 value 'TEXTS',&lt;/P&gt;&lt;P&gt;  text1 type string value `IKE`,&lt;/P&gt;&lt;P&gt;  text2 type string value `TINA`,&lt;/P&gt;&lt;P&gt;  line  type tab_type,&lt;/P&gt;&lt;P&gt;  itab  type standard table of tab_type,&lt;/P&gt;&lt;P&gt;    itab1  type standard table of tab_type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;line-para = 'P1'.&lt;/P&gt;&lt;P&gt;line-dobj = 'TEXT1'.&lt;/P&gt;&lt;P&gt;append line to itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;line-para = 'P2'.&lt;/P&gt;&lt;P&gt;line-dobj = 'TEXT2'.&lt;/P&gt;&lt;P&gt;append line to itab.&lt;/P&gt;&lt;P&gt;free memory id 'TD'.&lt;/P&gt;&lt;P&gt;export itab to memory id 'TD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DATA: number           TYPE tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;              name             TYPE tbtcjob-jobname VALUE 'CRDR_ ',&lt;/P&gt;&lt;P&gt;              print_parameters TYPE pri_params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONCATENATE name&lt;/P&gt;&lt;P&gt;                sy-datum&lt;/P&gt;&lt;P&gt;                INTO name .&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            jobname          = name&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            jobcount         = number&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cant_create_job  = 1&lt;/P&gt;&lt;P&gt;            invalid_job_data = 2&lt;/P&gt;&lt;P&gt;            jobname_missing  = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          SUBMIT ZPROGRAM2_BACKGROUND&lt;/P&gt;&lt;P&gt;                  TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;                  SPOOL PARAMETERS print_parameters&lt;/P&gt;&lt;P&gt;                  WITHOUT SPOOL DYNPRO&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;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                jobcount             = number&lt;/P&gt;&lt;P&gt;                jobname              = name&lt;/P&gt;&lt;P&gt;                strtimmed            = 'X'&lt;/P&gt;&lt;P&gt;              EXCEPTIONS&lt;/P&gt;&lt;P&gt;                cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;                invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;                jobname_missing      = 3&lt;/P&gt;&lt;P&gt;                job_close_failed     = 4&lt;/P&gt;&lt;P&gt;                job_nosteps          = 5&lt;/P&gt;&lt;P&gt;                job_notex            = 6&lt;/P&gt;&lt;P&gt;                lock_failed          = 7&lt;/P&gt;&lt;P&gt;                OTHERS               = 8.&lt;/P&gt;&lt;P&gt;          ENDIF.&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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Program2: ZPROGRAM2_BACKGROUND&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;  begin of tab_type,&lt;/P&gt;&lt;P&gt;    para type string,&lt;/P&gt;&lt;P&gt;    dobj type string,&lt;/P&gt;&lt;P&gt;  end of tab_type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  id    type c length 10 value 'TEXTS',&lt;/P&gt;&lt;P&gt;  text1 type string value `IKE`,&lt;/P&gt;&lt;P&gt;  text2 type string value `TINA`,&lt;/P&gt;&lt;P&gt;  line  type tab_type,&lt;/P&gt;&lt;P&gt;  itab  type standard table of tab_type,&lt;/P&gt;&lt;P&gt;    itab1  type standard table of tab_type.&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;import itab from memory id 'TD'.&lt;/P&gt;&lt;P&gt;free memory id 'TD'.&lt;/P&gt;&lt;P&gt;clear line.&lt;/P&gt;&lt;P&gt;loop at itab into line.&lt;/P&gt;&lt;P&gt;  write: / line-para, line-dobj.&lt;/P&gt;&lt;P&gt;  clear line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jyothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 13:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508630#M1259772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508631#M1259773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jyothi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are not getting any values because, there will be no values.&lt;/P&gt;&lt;P&gt;This is because in the second report you are using import which can have values only when &lt;/P&gt;&lt;P&gt;export is done!!&lt;/P&gt;&lt;P&gt;What i mean to say is  submitting the second program(which has no output) in the first program&lt;/P&gt;&lt;P&gt;will not get any output.Insted try reverse that is call the first program in the second program like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  program2.&lt;/P&gt;&lt;P&gt;types:&lt;/P&gt;&lt;P&gt;  begin of tab_type,&lt;/P&gt;&lt;P&gt;    para type string,&lt;/P&gt;&lt;P&gt;    dobj type string,&lt;/P&gt;&lt;P&gt;  end of tab_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  id    type c length 10 value 'TEXTS',&lt;/P&gt;&lt;P&gt;  text1 type string value `IKE`,&lt;/P&gt;&lt;P&gt;  text2 type string value `TINA`,&lt;/P&gt;&lt;P&gt;  line  type tab_type,&lt;/P&gt;&lt;P&gt;  itab  type standard table of tab_type,&lt;/P&gt;&lt;P&gt;    itab1  type standard table of tab_type.&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;submit program1 and return.&lt;/P&gt;&lt;P&gt;import itab from memory id 'TD'.&lt;/P&gt;&lt;P&gt;free memory id 'TD'.&lt;/P&gt;&lt;P&gt;clear line.&lt;/P&gt;&lt;P&gt;loop at itab into line.&lt;/P&gt;&lt;P&gt;  write: / line-para, line-dobj.&lt;/P&gt;&lt;P&gt;  clear line.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 13:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508631#M1259773</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2009-04-17T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508632#M1259774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a simpler way P1 &amp;gt; exports P2 &amp;gt; imports &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are submitting P2 in Bckd. when P1 did not do its work, how can P2 import it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;solution:&lt;/STRONG&gt;&amp;gt;&amp;gt; &lt;STRONG&gt;submit P1 in P2 and then import&lt;/STRONG&gt; in P2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P2 progra should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit P1 with.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import memory...'TD'..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 13:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508632#M1259774</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-04-17T13:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508633#M1259775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program 1 fucntionality.&lt;/P&gt;&lt;P&gt;1. Export the values to Memory ID and submits the Program2 in Background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program2 functionalidy.&lt;/P&gt;&lt;P&gt;1. Import the valules from memory ID exported and do the process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the background job (program2) the values are not imported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jyothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 14:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508633#M1259775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508634#M1259776</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;In background Export/Import will not work ..Instead you can try with  Export/Import  to database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this link..&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4447973"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5235734"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 14:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508634#M1259776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T14:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508635#M1259777</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;you have written the loop..endloop statement(write) in the second program,&lt;/P&gt;&lt;P&gt;thats you are not able to see the output.. insted it should be in the first report which you are executing..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: krishna kishore on Apr 17, 2009 7:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 14:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508635#M1259777</guid>
      <dc:creator>KK07</dc:creator>
      <dc:date>2009-04-17T14:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508636#M1259778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi see this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="532067"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1972583"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 14:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508636#M1259778</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-04-17T14:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508637#M1259779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sol 1 ..try EXPORT a1 = b1 DATABASE dbtab(ar) [FROM wa] [CLIENT cl] ID id, (may not work in background)&lt;/P&gt;&lt;P&gt;sol 2...if the second program is a z program and a newly developed one, convert it into a FM so that we can use exporting and importing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 20:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508637#M1259779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with export/import in back ground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508638#M1259780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your links Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is solved by using the SHARED BUFFER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code i used inthe first program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        DATA: wa_invdata(10) TYPE c VALUE 'INVDATA'.&lt;/P&gt;&lt;P&gt;        DATA: wa_month(10) TYPE c VALUE 'MONTH'.&lt;/P&gt;&lt;P&gt;        DATA: wa_process(10) TYPE c VALUE 'PROCESS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EXPORT wa_month_end TO MEMORY ID 'MONTHEND'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EXPORT e_process = it_inv_data[]&lt;/P&gt;&lt;P&gt;        TO SHARED BUFFER indx(st) ID  wa_process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EXPORT e_month = wa_month_end&lt;/P&gt;&lt;P&gt;        TO SHARED BUFFER indx(st) ID  wa_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EXPORT e_invdata = it_tab[]&lt;/P&gt;&lt;P&gt;            TO SHARED BUFFER indx(st) ID wa_invdata.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXPORT it_inv_data TO MEMORY ID 'PROCESS'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DATA: number           TYPE tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;              name             TYPE tbtcjob-jobname VALUE 'CRDR_ ',&lt;/P&gt;&lt;P&gt;              print_parameters TYPE pri_params.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONCATENATE name&lt;/P&gt;&lt;P&gt;                sy-datum&lt;/P&gt;&lt;P&gt;                INTO name .&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   no_dailog              = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   archive_mode           = '3'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   out_parameters         = print_parameters&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   out_archive_parameters = archi_parameters&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   valid                  = valid_flag&lt;/P&gt;&lt;/LI&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;   invalid_print_params   = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OTHERS                 = 4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            jobname          = name&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            jobcount         = number&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cant_create_job  = 1&lt;/P&gt;&lt;P&gt;            invalid_job_data = 2&lt;/P&gt;&lt;P&gt;            jobname_missing  = 3&lt;/P&gt;&lt;P&gt;            OTHERS           = 4.&lt;/P&gt;&lt;P&gt;        IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          print_parameters-pdest = 'locl'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          SUBMIT zsd_crdr_monthend_back_process&lt;/P&gt;&lt;P&gt;                  TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;                  SPOOL PARAMETERS print_parameters&lt;/P&gt;&lt;P&gt;                  WITHOUT SPOOL DYNPRO&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;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;              EXPORTING&lt;/P&gt;&lt;P&gt;                jobcount             = number&lt;/P&gt;&lt;P&gt;                jobname              = name&lt;/P&gt;&lt;P&gt;                strtimmed            = 'X'&lt;/P&gt;&lt;P&gt;              EXCEPTIONS&lt;/P&gt;&lt;P&gt;                cant_start_immediate = 1&lt;/P&gt;&lt;P&gt;                invalid_startdate    = 2&lt;/P&gt;&lt;P&gt;                jobname_missing      = 3&lt;/P&gt;&lt;P&gt;                job_close_failed     = 4&lt;/P&gt;&lt;P&gt;                job_nosteps          = 5&lt;/P&gt;&lt;P&gt;                job_notex            = 6&lt;/P&gt;&lt;P&gt;                lock_failed          = 7&lt;/P&gt;&lt;P&gt;                OTHERS               = 8.&lt;/P&gt;&lt;P&gt;............................&lt;/P&gt;&lt;P&gt;Second Program&lt;/P&gt;&lt;P&gt;Program zsd_crdr_monthend_back_process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: wa_invdata(10) TYPE c VALUE 'INVDATA'.&lt;/P&gt;&lt;P&gt;  DATA: wa_month(10) TYPE c VALUE 'MONTH'.&lt;/P&gt;&lt;P&gt;  DATA: wa_process(10) TYPE c VALUE 'PROCESS'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  IMPORT e_invdata = it_tab[]&lt;/P&gt;&lt;P&gt;  FROM SHARED BUFFER indx(st) ID  wa_invdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0 OR it_tab[] IS INITIAL..&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   No data found for the Month end processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE s398(00)&lt;/P&gt;&lt;P&gt;       WITH 'No Data Found'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;found the data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IMPORT e_process = it_inv_data[]&lt;/P&gt;&lt;P&gt;    FROM SHARED BUFFER indx(st) ID  wa_process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IMPORT e_month = wa_month_end&lt;/P&gt;&lt;P&gt;    FROM SHARED BUFFER indx(st) ID  wa_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 15:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-export-import-in-back-ground/m-p/5508638#M1259780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-18T15:17:30Z</dc:date>
    </item>
  </channel>
</rss>

