<?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: at user command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462156#M552520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Using the excel file first upload the records into an Internal table&lt;/P&gt;&lt;P&gt;In PF status keep a Button on Application tool bar&lt;/P&gt;&lt;P&gt;then at user-command&lt;/P&gt;&lt;P&gt;when button is pressed just count the no of lines in internal table using DESCRIBE statement and display the no of lines/records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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, 26 Jun 2007 10:14:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T10:14:46Z</dc:date>
    <item>
      <title>at user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462155#M552519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection-screen which uploads an excel file, when i uploads an excel file i want to display no. of rows. That no. of rows should be displayed in the paramter field when i press a push button on the same selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Paramete type for excel upload.&lt;/P&gt;&lt;P&gt;2. Parameter type to get the no. of records in excel file (number of rows in that file).&lt;/P&gt;&lt;P&gt;3. one push button to display the no. of records in excel file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462155#M552519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: at user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462156#M552520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Using the excel file first upload the records into an Internal table&lt;/P&gt;&lt;P&gt;In PF status keep a Button on Application tool bar&lt;/P&gt;&lt;P&gt;then at user-command&lt;/P&gt;&lt;P&gt;when button is pressed just count the no of lines in internal table using DESCRIBE statement and display the no of lines/records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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, 26 Jun 2007 10:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462156#M552520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T10:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: at user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462157#M552521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:v_dt(2),filename TYPE string,&lt;/P&gt;&lt;P&gt; i_temp TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:BEGIN OF it_eket OCCURS 0,&lt;/P&gt;&lt;P&gt;ebeln LIKE eket-ebeln,&lt;/P&gt;&lt;P&gt;ebelp LIKE eket-ebelp,&lt;/P&gt;&lt;P&gt;menge LIKE eket-menge,&lt;/P&gt;&lt;P&gt;ameng LIKE eket-ameng,&lt;/P&gt;&lt;P&gt;END OF it_eket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_path TYPE rlgrap-filename.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN :  PUSHBUTTON /2(10) pb_but1  USER-COMMAND get.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_no TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  pb_but1 = 'GET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-ucomm = 'GET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    filename = p_path.&lt;/P&gt;&lt;P&gt;    IF filename IS NOT  INITIAL .&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;           filename            = filename&lt;/P&gt;&lt;P&gt;           filetype            = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     has_field_separator = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;           data_tab            =  i_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_field_seperator    = 'X'&lt;/P&gt;&lt;P&gt;          i_tab_raw_data       = i_temp&lt;/P&gt;&lt;P&gt;          i_filename           = p_path&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          i_tab_converted_data = it_eket&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          conversion_failed    = 1&lt;/P&gt;&lt;P&gt;          OTHERS               = 2.&lt;/P&gt;&lt;P&gt;      DESCRIBE TABLE it_eket.&lt;/P&gt;&lt;P&gt;      p_no = sy-tfill.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*************Search help  for the Path to download&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;     program_name        = sy-cprog&lt;/P&gt;&lt;P&gt;     dynpro_number       = sy-dynnr&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     file_name           =  p_path   .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 10:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462157#M552521</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-26T10:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: at user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462158#M552522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but my function module is ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 12:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462158#M552522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: at user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462159#M552523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sathu,&lt;/P&gt;&lt;P&gt;  That is just an example.You can use any FM to upload according to your requirement.This FM "TEXT_CONVERT_XLS_TO_SAP" can also be used to upload an Excel file.I recommend this FM because it is easier than "ALSM_EXCEL_TO_INTERNAL_TABLE"  FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 13:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-user-command/m-p/2462159#M552523</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-06-26T13:48:37Z</dc:date>
    </item>
  </channel>
</rss>

