<?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: Adding data into a custom table through a report transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857543#M927228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving an unswer to your question ... yes, it's possible to update a table in a custom report.&lt;/P&gt;&lt;P&gt;For that, you should:&lt;/P&gt;&lt;P&gt;.enqueue your ztable (or try to), and if you can, &lt;/P&gt;&lt;P&gt;.update it using comands:&lt;/P&gt;&lt;P&gt;UPDATE ztable&lt;/P&gt;&lt;P&gt;SET field1 = 'abc' ... fieldn = 'nbc'&lt;/P&gt;&lt;P&gt;WHERE key = 'xpto'.&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;INSERT ztable FROM wa_ztable.&lt;/P&gt;&lt;P&gt;.dequeue the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 22:00:49 GMT</pubDate>
    <dc:creator>valter_oliveira</dc:creator>
    <dc:date>2008-05-21T22:00:49Z</dc:date>
    <item>
      <title>Adding data into a custom table through a report transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857542#M927227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add data into a table through a report transaction. I have been asked to create a report in which when we add certain data in the selkection screen it updates thoses particular fields and the rest of the records can be fille dout in the output. Basically I have a customised allocation table called zalloc. I have to create a report with selection screen having receiving plant, material document of the original transfer psoting , issuning plant , line item number , batch, receiving and issuning storage location. I need to validate this against the mseg table and whatever entry I make in teh selection screen should update my zalloc table from here. &lt;/P&gt;&lt;P&gt;Can anyone help me with this please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 21:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857542#M927227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding data into a custom table through a report transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857543#M927228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving an unswer to your question ... yes, it's possible to update a table in a custom report.&lt;/P&gt;&lt;P&gt;For that, you should:&lt;/P&gt;&lt;P&gt;.enqueue your ztable (or try to), and if you can, &lt;/P&gt;&lt;P&gt;.update it using comands:&lt;/P&gt;&lt;P&gt;UPDATE ztable&lt;/P&gt;&lt;P&gt;SET field1 = 'abc' ... fieldn = 'nbc'&lt;/P&gt;&lt;P&gt;WHERE key = 'xpto'.&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;INSERT ztable FROM wa_ztable.&lt;/P&gt;&lt;P&gt;.dequeue the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 22:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857543#M927228</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-21T22:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding data into a custom table through a report transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857544#M927229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aarav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, It is possible to add records to a table using a report transaction. You can use Update or Modify to insert records in a table.Convert the data fetched from the ZALLOC and convert it into an internal table of the same format as that of the ZALLOC table and simply do an&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab_zalloc into wa_zalloc.
 *INSERT INTO ZALLOC FROM WA_zalloc*.
endloop.

OR

INSERT ZALLOC FROM TABLE ITAB_ZALLOC 

OR

UPDATE ZALLOC FROM TABLE ITAB__ZALLOC .
  Update will modify if that record exist and returns sy-subrc as non zero if entry does not exist.

OR

MODIFY updates an existing DB entry or, in no matching entry exists, inserts a new entry into the DB table&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 22:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-data-into-a-custom-table-through-a-report-transaction/m-p/3857544#M927229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T22:09:26Z</dc:date>
    </item>
  </channel>
</rss>

