<?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: Pasting data in Modulepool screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542044#M1428151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; Thanks for your answers,&lt;/P&gt;&lt;P&gt;I dont want to download the data from excel into internal table and display.&lt;/P&gt;&lt;P&gt;I just want to copy data from excel and paste into those 5 fields.&lt;/P&gt;&lt;P&gt;Apart from fields i have table controls in the screen, for which i can directly copy the data from excel sheet and paste in screen, but for individual fields if i want to copy and paste data from excel sheet... how to proceed, is it possible or not.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 06:27:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T06:27:35Z</dc:date>
    <item>
      <title>Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542037#M1428144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement where in i have to cut and paste the data from excel sheet to screen in SAP.  I have developed modulepool screen for this. In the screen i have 5 differnt fields and i want to copy data from excel sheet for these 5 fields and paste in the screen. As the fields are different i am unable to paste the data. Pls let me know how to solve this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542037#M1428144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542038#M1428145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to download excel sheet values in different variables or inernal table and then pass these values to screen fields.&lt;/P&gt;&lt;P&gt;I think thiis will resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Khushboo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542038#M1428145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542039#M1428146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and that your fields in excel are not same as in module pool table, process the data in internal tab after you have imported it from excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542039#M1428146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542040#M1428147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as my understanding y copy and paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use to download the data from excel to internal table and than populate that that wer ervr u need in modulepool&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;Thanks&lt;/P&gt;&lt;P&gt;Surendra P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 05:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542040#M1428147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T05:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542041#M1428148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can upload the Excel file into an Internal table using &lt;STRONG&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/STRONG&gt;, this internal table can be same as the one you are using on Table control. or Transfer this data to the internal table which you are using in Table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: l_file TYPE rlgrap-filename OBLIGATORY .
SELECTION-SCREEN : END OF BLOCK b1.

data :  ist_excel        TYPE STANDARD TABLE OF alsmex_tabline,


AT SELECTION-SCREEN ON VALUE-REQUEST FOR l_file.
  CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      file_name = l_file.
 REFRESH:ist_excel[].
  CLEAR  :ist_excel[].
*********** Get data from Excel File to Internal Table **********
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename                = l_file
      i_begin_col             = 1
      i_begin_row             = 2
      i_end_col               = 8
      i_end_row               = 9999
    TABLES
      intern                  = ist_excel
    EXCEPTIONS
      inconsistent_parameters = 1
      upload_ole              = 2
      OTHERS                  = 3.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

*********** Set the Records of Internal table in Tabular Format **********
  trow = 1.
  LOOP AT ist_excel INTO wa_excel WHERE value NE ' '.
    IF trow NE wa_excel-row.
      trow = trow + 1.
    ENDIF.
  ENDLOOP.
  row = 1.
  WHILE row &amp;lt;= trow.
    LOOP AT ist_excel INTO wa_excel WHERE row = row.
      CASE wa_excel-col.
        WHEN '0001'.
          wa_emp_details-empnumber = wa_excel-value.
        WHEN '0002'.
          wa_emp_details-empaddr   = wa_excel-value.
        WHEN '0003'.
          wa_emp_details-empphone  = wa_excel-value.
        WHEN '0004'.
          wa_emp_details-empcity   = wa_excel-value.
        WHEN '0005'.
          wa_emp_details-empfax    = wa_excel-value.
        WHEN '0006'.
          wa_emp_details-empregio  = wa_excel-value.
        WHEN '0007'.
          wa_emp_details-emphouseno = wa_excel-value.
      ENDCASE.
    ENDLOOP.
    APPEND wa_emp_details TO ist_emp_details.
" Now pass this data back to the Internal Table you are using in Table Control
    CLEAR:wa_emp_details.
    row = row + 1.
  ENDWHILE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542041#M1428148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542042#M1428149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is now way to copy fields at one go.You can either copy one by one or write a Program to upload from excel to module pool screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542042#M1428149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542043#M1428150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the fields are not selection screen fields and you want to paste the whole excel data into the screen , try using table control in the screen having same field names as in excel file. Just a suggestion , if i got ur requirement correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542043#M1428150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542044#M1428151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; Thanks for your answers,&lt;/P&gt;&lt;P&gt;I dont want to download the data from excel into internal table and display.&lt;/P&gt;&lt;P&gt;I just want to copy data from excel and paste into those 5 fields.&lt;/P&gt;&lt;P&gt;Apart from fields i have table controls in the screen, for which i can directly copy the data from excel sheet and paste in screen, but for individual fields if i want to copy and paste data from excel sheet... how to proceed, is it possible or not.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 06:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542044#M1428151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T06:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542045#M1428152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This requirement cannot be met.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 08:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542045#M1428152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pasting data in Modulepool screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542046#M1428153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using clipboard feature and get the data into an internal table in PAI, thereafter add this data to the table and display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code below. You need to write another code snippet to split the values for col 1 and col 2 etc. after you have copied the data into the file_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_clipboard_data OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;modification for clipboard paste&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of ty_tab,&lt;/P&gt;&lt;P&gt;       locnr type locnr,&lt;/P&gt;&lt;P&gt;       end of ty_tab.&lt;/P&gt;&lt;P&gt;data: lwa_tab type ty_tab.&lt;/P&gt;&lt;P&gt;data: li_tab type standard table of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: li_tab_clip type filetable.&lt;/P&gt;&lt;P&gt;data: lwa_tab_clip type file_table.&lt;/P&gt;&lt;P&gt;data:lwa_klastab type rmclk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data: begin of li_klastab occurs 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       include structure rmclk.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*data: end of li_klastab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols:&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_klastab&amp;gt; type rmclk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'CLIP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh: li_tab, li_tab_clip. "li_klastab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;CLIPBOARD_IMPORT&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    DATA                 =  li_tab_clip&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LENGTH               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CNTL_ERROR           = 1&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI         = 2&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI = 3&lt;/P&gt;&lt;P&gt;    others               = 4&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;li_tab[] = li_tab_clip[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*li_klastab[] = klastab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at li_tab into lwa_tab.&lt;/P&gt;&lt;P&gt;loop at klastab assigning &amp;lt;lfs_klastab&amp;gt;.&lt;/P&gt;&lt;P&gt;if &amp;lt;lfs_klastab&amp;gt;-objek is initial.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_klastab&amp;gt;-objek = lwa_tab-locnr.&lt;/P&gt;&lt;P&gt;&amp;lt;lfs_klastab&amp;gt;-index_tab = '1'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;lwa_klastab-objek = lwa_tab-locnr.&lt;/P&gt;&lt;P&gt;lwa_klastab-index_tab = '1'.&lt;/P&gt;&lt;P&gt;append lwa_klastab to klastab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;*klastab[] = li_klastab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " get_clipboard_data  OUTPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 10:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pasting-data-in-modulepool-screen/m-p/6542046#M1428153</guid>
      <dc:creator>gaurab_banerji</dc:creator>
      <dc:date>2010-03-22T10:17:41Z</dc:date>
    </item>
  </channel>
</rss>

