<?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: using 'export to database' in background processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155791#M1194387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalaxy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the statement commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might be the reason, &lt;/P&gt;&lt;P&gt;if you just use commit work it updates database asynchronously which means the database gets updated, and simulataneously your program proceeds further,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use commit work and wait then until the database is not updated the program waits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 13:42:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T13:42:01Z</dc:date>
    <item>
      <title>using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155781#M1194377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i call a Function Module in Background will i be able to  Export values to Database ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'func_name' IN BACKGROUND TASK TABLES table = table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in FM:&lt;/P&gt;&lt;P&gt; EXPORT &amp;lt;one&amp;gt; FROM &amp;lt;two&amp;gt; TO DATABASE indx(some) ID 'some1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only able to export if i dont use the background processing.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shalaxy s on Feb 10, 2009 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 09:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155781#M1194377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T09:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155782#M1194378</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 should update Database directly, since it may violate the integrity policy of the tables. You need to write a BDC program for this and you can execute it to create a session, which in turn you can execute in background.&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;Shiny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 09:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155782#M1194378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155783#M1194379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;It depends on the situations, for maximum databases, either function module or class are available in SAP but in the case of exception, its better to go with BDC.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 09:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155783#M1194379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T09:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155784#M1194380</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;thing is i am executing an FM in background because i dont want to see its output. i just need the result itab from this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for fetching values from this itab , i am exporting it using reff. in INDX table (which is used for the purpose)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont want BDC, just want to retrieve the itab value from a FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155784#M1194380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155785#M1194381</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;Please post your question clearly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understand you can directly update data base through LSMW or BDC programs and this yuo can in foreground also.&lt;/P&gt;&lt;P&gt;&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;Md.MahaboobKhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155785#M1194381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155786#M1194382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,  here it goes .. .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is not related to BDC or any DB update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its simple ... there's an FM that executes and displays an output alv report.&lt;/P&gt;&lt;P&gt;I dont want to see the output , just need the itab that has data (which is finally displayed as output)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can export (and then import) this itab if i execute the FM in foreground &lt;/P&gt;&lt;P&gt;BUT, since i dont want to see the FM output i am executing this FM in background.&lt;/P&gt;&lt;P&gt;BUT when i execute it in background, values dont get exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using EXPORT ......... TO .......... DATABASE for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155786#M1194382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155787#M1194383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalaxy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling Function Module in Background/Update Task is normally used for bundling techniques where your requirement is to execute all the database updates in single database LUW (Logical Unit of Work) in order to maintain data integrity. All your database updates gets successfull or none of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you call FM in Background Task, it is not executed immediatly, it is registered with all its values and executed only when &lt;STRONG&gt;COMMIT WORK&lt;/STRONG&gt; statement is executed.&lt;/P&gt;&lt;P&gt;I think there is no explicit COMMIT WORK statement in your code and that is why you are not able to see effect of EXPORT TO DATABASE statement as LUW is not at all initiated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel, as your requirement is only to suppress the ALV output, you should handle it through some other alternative e.g. using parameter or something like that and If function module you are talking about is Z and you are willing to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155787#M1194383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155788#M1194384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am using a Commit statement right after i export the &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the FM is a standard one , so i cant change it either , and this one calls the ALV at the end !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what i wud really like to know if its possible that in background processing we cannot export anything ? Am i doing something else wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 15:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155788#M1194384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T15:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155789#M1194385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalaxy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think commit statement should be in the calling program not inside FM itself.&lt;/P&gt;&lt;P&gt;Please refer below link from sap help if it helps.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbae4135c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dbae4135c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 10:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155789#M1194385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T10:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155790#M1194386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes , the commit is inside calling prog. &lt;/P&gt;&lt;P&gt;once i have the internal table with values, i call commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, when i call FM in foreground , it commits but the prob comes only when i execute it in background .......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155790#M1194386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155791#M1194387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalaxy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the statement commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might be the reason, &lt;/P&gt;&lt;P&gt;if you just use commit work it updates database asynchronously which means the database gets updated, and simulataneously your program proceeds further,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use commit work and wait then until the database is not updated the program waits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 13:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155791#M1194387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T13:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155792#M1194388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shalaxy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I feel is, You try Siddharth's suggetion of synchronous update first.&lt;/P&gt;&lt;P&gt;If it aslo fails then as a last option you create a function module for testing purpose with normal open sql statement i.e. insert/update and your export to database statement and see if both the statements fails or only export statement.&lt;/P&gt;&lt;P&gt;If both are failing then something is wrong with the function call.&lt;/P&gt;&lt;P&gt;If open sql works and export fails then we may conclude that export to database can not be used in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you tried it, do let us know the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 03:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155792#M1194388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T03:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155793#M1194389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried &lt;/P&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT  .&lt;/P&gt;&lt;P&gt;WAIT UNTIL sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nothing's working. When i call this FM in background, it doesnt wait .&lt;/P&gt;&lt;P&gt;Infact i executed the code and checked after a couple of hours if table gets data. But it doesnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe     export ... to.. database        doesnt work in background processing.?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do we retrieve the values of an internal table that gets populated in background processing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 16:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155793#M1194389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T16:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155794#M1194390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can either debug the job after it is completed or enter into debug via SM50  and see if your itab is populated or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 16:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155794#M1194390</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2009-02-12T16:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155795#M1194391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i debug, and i come out of the FM call ( FM which populates the itab i require) , it doesnt recognize the internal table and following statement doesnt assign anything:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign ('(report)&amp;lt;itab&amp;gt;[]') to &amp;lt;itemp&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2009 02:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155795#M1194391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-13T02:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: using 'export to database' in background processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155796#M1194392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please paste the code so that i can help you out......&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Feb 2009 04:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-export-to-database-in-background-processing/m-p/5155796#M1194392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-14T04:51:33Z</dc:date>
    </item>
  </channel>
</rss>

