<?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: Problem in Perform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400314#M534608</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;Try something like this. You can not using same routine with different change parameters of different types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab occurs 0,
data(200),
END OF itab.

DATA: BEGIN OF itabtxt,
f01(4),
f02(10),
f03(18),
f04(3),
f05(3),
f06(6),
f07(25),
f08(10),
f09(20),
f10(8),
f11(50),
f12(10),
f13(12), "+§sr01
END OF itabtxt.

perform load_excel_file using z_x changing itab itabtxt.

form load_excel_file using p_z_x changing p_itab type table
                                                              p_itabtxt type table.

data: lzc_filename type string.
lzc_filename = pdatei.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lzc_filename
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = p_z_x
IMPORTING
FILELENGTH = bytes
tables
data_tab = p_itab
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 16:22:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T16:22:25Z</dc:date>
    <item>
      <title>Problem in Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400312#M534606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Perform to upload two files to two internal table of diffrent structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;         data(200),&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itabtxt OCCURS 0,&lt;/P&gt;&lt;P&gt;         f01(4),&lt;/P&gt;&lt;P&gt;         f02(10),&lt;/P&gt;&lt;P&gt;         f03(18),&lt;/P&gt;&lt;P&gt;         f04(3),&lt;/P&gt;&lt;P&gt;         f05(3),&lt;/P&gt;&lt;P&gt;         f06(6),&lt;/P&gt;&lt;P&gt;         f07(25),&lt;/P&gt;&lt;P&gt;         f08(10),&lt;/P&gt;&lt;P&gt;         f09(20),&lt;/P&gt;&lt;P&gt;         f10(8),&lt;/P&gt;&lt;P&gt;         f11(50),&lt;/P&gt;&lt;P&gt;         f12(10),&lt;/P&gt;&lt;P&gt;         f13(12),                                           "+§sr01&lt;/P&gt;&lt;P&gt;      END OF itabtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform load_excel_file using z_x changing itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     perform load_excel_file  using z_x changing itabtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form load_excel_file  using    p_z_x changing p_itab type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lzc_filename type string.&lt;/P&gt;&lt;P&gt;lzc_filename = pdatei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = lzc_filename&lt;/P&gt;&lt;P&gt;    FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;    HAS_FIELD_SEPARATOR           = p_z_x&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FILELENGTH                     = bytes&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = p_itab&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error  "Actual Parameter ITAB and Formal Parameters P_ITAB are incompatible". Please try to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400312#M534606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400313#M534607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in PERFORM statement you should have TABLES parameter to get an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you can use the same PERFORM to upload data into 2 diff internal tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because you need declare TABLES TYPE &amp;lt;Struct&amp;gt;...where &amp;lt;struct&amp;gt; will eb different for both internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use macro for this...give like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data_tab = &amp;amp;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you call macro you can pass itab as parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Aarun Sailyendran Murugesan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400313#M534607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400314#M534608</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;Try something like this. You can not using same routine with different change parameters of different types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab occurs 0,
data(200),
END OF itab.

DATA: BEGIN OF itabtxt,
f01(4),
f02(10),
f03(18),
f04(3),
f05(3),
f06(6),
f07(25),
f08(10),
f09(20),
f10(8),
f11(50),
f12(10),
f13(12), "+§sr01
END OF itabtxt.

perform load_excel_file using z_x changing itab itabtxt.

form load_excel_file using p_z_x changing p_itab type table
                                                              p_itabtxt type table.

data: lzc_filename type string.
lzc_filename = pdatei.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = lzc_filename
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = p_z_x
IMPORTING
FILELENGTH = bytes
tables
data_tab = p_itab
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400314#M534608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400315#M534609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itabtxt OCCURS 0,&lt;/P&gt;&lt;P&gt;f01(4),&lt;/P&gt;&lt;P&gt;f02(10),&lt;/P&gt;&lt;P&gt;f03(18),&lt;/P&gt;&lt;P&gt;f04(3),&lt;/P&gt;&lt;P&gt;f05(3),&lt;/P&gt;&lt;P&gt;f06(6),&lt;/P&gt;&lt;P&gt;f07(25),&lt;/P&gt;&lt;P&gt;f08(10),&lt;/P&gt;&lt;P&gt;f09(20),&lt;/P&gt;&lt;P&gt;f10(8),&lt;/P&gt;&lt;P&gt;f11(50),&lt;/P&gt;&lt;P&gt;f12(10),&lt;/P&gt;&lt;P&gt;f13(12),                                                    "+§sr01&lt;/P&gt;&lt;P&gt;END OF itabtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;perform load_excel_file tables itab using z_x.&lt;BR /&gt;&lt;BR /&gt;perform load_excel_file tables itabtxt using z_x.&lt;BR /&gt;&lt;BR /&gt;form load_excel_file tables p_itab using p_z_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: lzc_filename type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  filename = lzc_filename&lt;/P&gt;&lt;P&gt;  FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;  HAS_FIELD_SEPARATOR = p_z_x&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;  data_tab = p_itab.&lt;/P&gt;&lt;P&gt;  endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400315#M534609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400316#M534610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mahesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use Tables command in subroutine ,it is performance issue,so call diffrent perform statement that what you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done trace for this type scenario &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:29:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-perform/m-p/2400316#M534610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:29:18Z</dc:date>
    </item>
  </channel>
</rss>

