<?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: Z* tables update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157673#M456050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Record BDC for SM30 for particular Z table. Then upload the fle which you want and replace the field value with uploaded information. You need to define dynamic internal table with Z table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh Shete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 15:46:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T15:46:41Z</dc:date>
    <item>
      <title>Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157672#M456049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to update any Z&lt;STRONG&gt;table,  the user inputs in the selection screen and the file corresponding to Z&lt;/STRONG&gt;table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, User will input any Z*table name and select the file present in desktop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file data has to be uploaded into Ztable entered in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest or tell how we can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 15:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157672#M456049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157673#M456050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Record BDC for SM30 for particular Z table. Then upload the fle which you want and replace the field value with uploaded information. You need to define dynamic internal table with Z table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh Shete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 15:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157673#M456050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157674#M456051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Write a simple program&lt;/P&gt;&lt;P&gt;Decalre 2 paramters on selection screen one for Ztable and other for file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the GUI_DOWNLOAD to download the file to Internal table which is similar to the Entered z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert the data into the ZTABLE with the entries from Internal table. Update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 16:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157674#M456051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T16:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157675#M456052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No No, it's not for a particular Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say first time user enters ZTABLE1 and file1, it has to update ZTABLE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next time user enters ZTABLE2 and file2, it has to update ZTABLE2 and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 18:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157675#M456052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T18:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157676#M456053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to create the Dynamic internal table. That internal table has to be created based on the table structure which you have entered in the selection screen. Then pass the data from presentation server to that internal table and then insert data into data base table based on that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For creating dynamic internal table find the help from below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&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;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 19:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157676#M456053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T19:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157677#M456054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u have to select the fields of the table from dd03l. then create an internal table for that. see sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_fldcat TYPE LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;DATA: it_fldcat TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;*parameters : p_week type kweek.&lt;/P&gt;&lt;P&gt;parameters : p_tabnm type TABNAME16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_table&amp;gt; TYPE TABLE.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_temp&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_dd03 like dd03l occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from dd03l into corresponding fields of table t_dd03&lt;/P&gt;&lt;P&gt;where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_dd03.&lt;/P&gt;&lt;P&gt;wa_fldcat-fieldname = t_dd03-fieldname.&lt;/P&gt;&lt;P&gt;wa_fldcat-tabname = 'IT'.&lt;/P&gt;&lt;P&gt;wa_fldcat-datatype = t_dd03-rollname.&lt;/P&gt;&lt;P&gt;append wa_fldcat to it_fldcat.&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;*CREATE THE DYNAMIC INTERNAL TABLE&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_fieldcatalog = it_fldcat[]&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;EP_TABLE = it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN it-&amp;gt;* TO &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u have an internal table ( field symbol) with structure of your table mentioned on selection screen. now play with this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 20:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157677#M456054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T20:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157678#M456055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sujamol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dymamic internal table is created with the given Ztable in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is when I try to upload this table &amp;lt;fs_table&amp;gt; using function module 'UPLOAD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first column of flat file is getting updated in Mandt of &amp;lt;fs_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to update Sy-mandt in MANDT of &amp;lt;fs_table&amp;gt; and the rest of the fields with flat file data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat file data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100 white&lt;/P&gt;&lt;P&gt;101 black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fs_table&amp;gt; structure is getting uploaded as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mandt zcode zdesc&lt;/P&gt;&lt;P&gt;100     white&lt;/P&gt;&lt;P&gt;101     black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the clint is 700&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it has to be uploaded as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mandt zcode zdesc&lt;/P&gt;&lt;P&gt;700     100     white&lt;/P&gt;&lt;P&gt;700     101     black&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest me how to go about this or anyone who has any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 21:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157678#M456055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T21:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157679#M456056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The blunt way of doing it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. declare an internal table which has only one field which holds the entire record with tab delimiters.(itab)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       record type string,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. dynamic internal table(itab1)&lt;/P&gt;&lt;P&gt;3. upload ur file to itab&lt;/P&gt;&lt;P&gt;4. process itab splitting the record at the tab delimit and populate itab1.&lt;/P&gt;&lt;P&gt;5. now that you have your itab1 as that of ztable, update ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 21:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157679#M456056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157680#M456057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu caould do the way Vinni suggested, or if the MANDT field can be removed from the Z table. However it needs to be removed from all the Z tables since it can be used for any Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there could be some tables without the mandt field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALso noth that the method Vinni has suggested might give errors of the table dosent have the MANDT field.&lt;/P&gt;&lt;P&gt;I think sooo, so please check that sceniaro as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 21:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157680#M456057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T21:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Z* tables update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157681#M456058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you also explain on how can we transfer internal table contents itab to &amp;lt;fs_tab&amp;gt;. Like spliting and transfering to &amp;lt;fs_tab&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 23:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/z-tables-update/m-p/2157681#M456058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T23:21:22Z</dc:date>
    </item>
  </channel>
</rss>

