<?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: Upload excel sheet in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217204#M1716949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be more specific on your question. You need to know which FM to be used to upload excel? Normally the flow of upload program for customized table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Read excel data into internal table.&lt;/P&gt;&lt;P&gt;2. Validate value of the fields. Like your example, check the period value.&lt;/P&gt;&lt;P&gt;3. Update table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2013 07:21:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-01-23T07:21:32Z</dc:date>
    <item>
      <title>Upload excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217203#M1716948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to upload excel sheet as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none; padding: 0 5.4pt 0 5.4pt;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; background: #CCCCFF; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P class="Copy"&gt;Excel Sheet&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-left: none; background: #CCCCFF; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P class="Copy"&gt;S910 table&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Month&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SPMON&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Sales Organization&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;VKORG&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Distribution Channel&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;VTWEG&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Area&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;VKBUR &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Territory&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;VKGRP&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Customer Group&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;KDGRP&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Route&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;PZONE&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Product Group&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;PRODH1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Package Group&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;PRODH2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid #ccccff 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="196"&gt;&lt;P style="text-align: justify;"&gt;Size Group&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid #CCCCFF 1.0pt; border-right: solid #CCCCFF 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="208"&gt;&lt;P style="text-align: justify;"&gt;PRODH3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the excel sheet read Area, Territory, Product Group, Package Group, UOM and refer the respective tables for values based on the description and map it to&amp;nbsp; table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Initially the upload should work on simulation mode where it should validate any mismatch in any of the data in excel with the data in their respective tables and should an error report with row and field details where there is mismatch.and also&amp;nbsp; program should not upload the file to&amp;nbsp; table. Program should check the excel sheet data with existing data in that period and should give an error report if the data already exists in&amp;nbsp; table for that period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;The program should not allow the data to be uploaded in the past periods and it should only take data in current and future periods. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;How can be able to achieve this. it ll be help full if u can provide with some piece of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator message:&amp;nbsp; &lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif; font-size: 12.222222328186035px; background-color: #ffffff;"&gt;We do not consider it good style to ask questions before trying to find the solution yourself.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #ff0000; font-family: tahoma, arial, helvetica, sans-serif; font-size: 12.222222328186035px;"&gt;Please refer in your text also to what you have done already to solve the problem and what resources you have searched or used. Please try &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 12.222222328186035px; background-color: #ffffff; font-family: tahoma, arial, helvetica, sans-serif;"&gt;to avoid the impression of spec dumping.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 06:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217203#M1716948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-23T06:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upload excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217204#M1716949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be more specific on your question. You need to know which FM to be used to upload excel? Normally the flow of upload program for customized table is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Read excel data into internal table.&lt;/P&gt;&lt;P&gt;2. Validate value of the fields. Like your example, check the period value.&lt;/P&gt;&lt;P&gt;3. Update table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 07:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217204#M1716949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-01-23T07:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Upload excel sheet</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217205#M1716950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lora,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data can be uploaded from excel file into internal tables using various FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;KCD_EXCEL_OLE_TO_INT_CONVERT&lt;/P&gt;&lt;P&gt;TEXT_CONVERT_XLS_TO_SAP etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding validations : After you have the values in internal tables, i think it is quite simple process to check the data against standard tables. And based on these validations, you can decide whether or not you need to update data in tables(simple if-else conditions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find any problem in that. Could you please me in getting to the problem?? &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1151/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 07:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-sheet/m-p/9217205#M1716950</guid>
      <dc:creator>former_member491621</dc:creator>
      <dc:date>2013-01-23T07:32:55Z</dc:date>
    </item>
  </channel>
</rss>

