<?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: Uploading Data Through Excel File. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459863#M1742498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not a Standard table ,its a Ztable.&lt;/P&gt;&lt;P&gt;The main question is i want to add a aditional field and the values are filled by uploading an excel document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2013 08:47:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-13T08:47:45Z</dc:date>
    <item>
      <title>Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459858#M1742493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Had a situation where for a given value in the key field i should add some extra fields to the existing fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should design a custom upload process&amp;nbsp; to update additional fields for a given value in the key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the upload document is a excel file .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;existing table has product_no as a key field and product_name as the other field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to add the field product_price for every product_no present in the table through uploading a excel sheet containing product_no and product_price&lt;/P&gt;&lt;P&gt;as columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the process will not create new product_no ,but updates/ creates value for product_price for already existing product_no&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Upload process will log error when a product_no listed in data file is not found in already existing table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Moderator message:&lt;/SPAN&gt;&lt;SPAN style="padding: 0in; border: 1pt windowtext; font-family: &amp;amp;quot;Tahoma&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt; mso-border-alt: none windowtext 0in;"&gt;The SCN is not a forum for ordering free technical consulting. It is a collaborative community where people voluntarily help you to understand things better in the SAP world. As you obviously need some more understanding of this,I recommend to read the useful Blog&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background: white; color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt;"&gt; "&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/community/getting-started/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers"&gt;&lt;SPAN style="background: white; padding: 0in; border: 1pt windowtext; color: #3778c7; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt; mso-border-alt: none windowtext 0in;"&gt;Asking Good Questions in the SCN Discussion Spaces will helpyou get Good Answers"&lt;/SPAN&gt;&lt;/A&gt; &lt;SPAN style="color: #ff0000;"&gt; &lt;SPAN style="padding: 0in; border: 1pt windowtext; font-family: &amp;amp;quot;Tahoma&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt; mso-border-alt: none windowtext 0in;"&gt;to avoid the impression of"spec dumping and &lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="padding: 0in; border: 1pt windowtext; font-family: &amp;amp;quot;Tahoma&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 9pt; mso-border-alt: none windowtext 0in;"&gt;learnthe principles of this before asking any more questions.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459858#M1742493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459859#M1742494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get all the excel data in the interanl table using FM &lt;STRONG&gt;ALSM_EXCEl_TO_INTERNAL_TABLE. &lt;/STRONG&gt;Then using this product_no get the data from SAP Table Eg: Mara, If exists then update the data to the exiting record or else if not found then append it to other internal table which you can display at the end of the upload as errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shakeel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459859#M1742494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459860#M1742495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shakeel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply&amp;nbsp; ...... but intially the field product_price will not be present at the table &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459860#M1742495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459861#M1742496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should not update the Standard tables of SAP via direct statement. Use the standard transaction and create a recording via SHDB. &lt;/P&gt;&lt;P&gt;Modify the program according to your need.&lt;/P&gt;&lt;P&gt;You need to run the same via session method and you can have the message log for the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:42:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459861#M1742496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459862#M1742497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create another table having all the fields of existing table and the additional two fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at current table&lt;/P&gt;&lt;P&gt;&amp;nbsp; move correspoding values. &lt;/P&gt;&lt;P&gt;&amp;nbsp; assign values for the new fields (Price )&lt;/P&gt;&lt;P&gt;&amp;nbsp; append to the new tablae. &lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload this new table as excel file using the following FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;CALL &lt;SPAN class="L1S52"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'SAP_CONVERT_TO_XLS_FORMAT'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_file "Destination path in local PC. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i_tab_sap_data = table_name.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459862#M1742497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459863#M1742498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not a Standard table ,its a Ztable.&lt;/P&gt;&lt;P&gt;The main question is i want to add a aditional field and the values are filled by uploading an excel document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 08:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459863#M1742498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-13T08:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading Data Through Excel File.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459864#M1742499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create table with three fields product_no , product name , product price&lt;BR /&gt;First upload the data from excel to a temporary table....&lt;BR /&gt;Now loop at your temporary table&lt;BR /&gt;READ the internal table((which contains the main product no. and name till now)&lt;/P&gt;&lt;P&gt;if value exist copy the price and modify&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;Append it to error log file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now depending on your requirement if you want to replace the file with the error file then do that...&lt;BR /&gt;or if you have a field status , you can modify its status it to error and then download it to the same path &amp;amp; name you have uploaded it from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 09:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-through-excel-file/m-p/9459864#M1742499</guid>
      <dc:creator>former_member193464</dc:creator>
      <dc:date>2013-05-13T09:02:26Z</dc:date>
    </item>
  </channel>
</rss>

