<?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 CONTROL_INTERNAL_ERROR in method I_OI_PIVOT~SET_SOURCE_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718786#M33433</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;
  &lt;P&gt;I am trying to adapt the program SAPRDEMO_PIVOTINTERFACE in order to create a dynamic pivot table (in embed sheet) with data from a database table.&lt;/P&gt;
  &lt;P&gt;When I use the table SFLIGHT, or other tables (also Z* tables) that have few fields, it works fine, but my requirement is to use a large table (100 fields). With my table, the method SET_SOURCE_TABLE of class I_OI_PIVOT is giving error 7, with Retcode 'CONTROL_INTERNAL_ERROR'.&lt;/P&gt;
  &lt;P&gt;My code is exact the same for SFLIGHT as it is for my Z* large table, and it works for the first but not for the other. Does anyone know what might be happening? I think the problem is the width of the table, as with other Z* table with 55 it does not work either.&lt;/P&gt;
  &lt;P&gt;Any solution??&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;My code below:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;//// SCREEN 100 ////&lt;/P&gt;
  &lt;P&gt;PROCESS BEFORE OUTPUT.&lt;BR /&gt; MODULE STATUS_0100. "Copied from SAPRDEMO_PIVOTINTERFACE &lt;/P&gt;
  &lt;P&gt; MODULE CREATE_BASIC_OBJECTS. "Copied from SAPRDEMO_PIVOTINTERFACE&lt;/P&gt;
  &lt;P&gt; &lt;BR /&gt; PROCESS AFTER INPUT.&lt;BR /&gt; MODULE EXIT AT EXIT-COMMAND. "Copied from SAPRDEMO_PIVOTINTERFACE&lt;/P&gt;
  &lt;P&gt; MODULE USER_COMMAND_0100. "Edited (below)&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Module USER_COMMAND_0100 INPUT&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; * text&lt;BR /&gt; *----------------------------------------------------------------------*&lt;BR /&gt; MODULE user_command_0100 INPUT.&lt;/P&gt;
  &lt;P&gt; CASE okcode.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;WHEN 'SFL'. "button for SFLIGHT&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;SELECT * FROM sflight INTO TABLE tempsflight.&lt;BR /&gt;&lt;BR /&gt; CLEAR itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;columnfield.&lt;BR /&gt; wa_name-col = 1.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 2.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 7.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 8.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 9.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD handle2-&amp;gt;set_source_table&lt;BR /&gt; EXPORTING&lt;BR /&gt; name = 'pivot1'&lt;BR /&gt; ddic_name = 'SFLIGHT'&lt;BR /&gt; data_table = tempsflight&lt;BR /&gt; length = 'L'&lt;BR /&gt; itemsnr = itemsnr&lt;BR /&gt; IMPORTING&lt;BR /&gt; error = error&lt;BR /&gt; retcode = retcode.&lt;/P&gt;
  &lt;P&gt; MESSAGE retcode TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;WHEN 'MYTAB'. "Button for my table with 101 fields&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; SELECT * FROM zmt_smartmex INTO TABLE gi_smartmex.&lt;BR /&gt; &lt;BR /&gt; CLEAR itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;columnfield.&lt;BR /&gt; wa_name-col = 1.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 2.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 7.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 8.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 9.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD handle2-&amp;gt;set_source_table&lt;BR /&gt; EXPORTING&lt;BR /&gt; name = 'pivot1'&lt;BR /&gt; ddic_name = 'ZMT_SMARTMEX'&lt;BR /&gt; data_table = gi_smartmex&lt;BR /&gt; length = 'L'&lt;BR /&gt; itemsnr = itemsnr&lt;BR /&gt; IMPORTING&lt;BR /&gt; error = error&lt;BR /&gt; retcode = retcode.&lt;BR /&gt; &lt;BR /&gt; MESSAGE retcode TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;
  &lt;P&gt;ENDCASE.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 07:30:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-07-25T07:30:29Z</dc:date>
    <item>
      <title>CONTROL_INTERNAL_ERROR in method I_OI_PIVOT~SET_SOURCE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718786#M33433</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
  &lt;P&gt;I am trying to adapt the program SAPRDEMO_PIVOTINTERFACE in order to create a dynamic pivot table (in embed sheet) with data from a database table.&lt;/P&gt;
  &lt;P&gt;When I use the table SFLIGHT, or other tables (also Z* tables) that have few fields, it works fine, but my requirement is to use a large table (100 fields). With my table, the method SET_SOURCE_TABLE of class I_OI_PIVOT is giving error 7, with Retcode 'CONTROL_INTERNAL_ERROR'.&lt;/P&gt;
  &lt;P&gt;My code is exact the same for SFLIGHT as it is for my Z* large table, and it works for the first but not for the other. Does anyone know what might be happening? I think the problem is the width of the table, as with other Z* table with 55 it does not work either.&lt;/P&gt;
  &lt;P&gt;Any solution??&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;My code below:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;//// SCREEN 100 ////&lt;/P&gt;
  &lt;P&gt;PROCESS BEFORE OUTPUT.&lt;BR /&gt; MODULE STATUS_0100. "Copied from SAPRDEMO_PIVOTINTERFACE &lt;/P&gt;
  &lt;P&gt; MODULE CREATE_BASIC_OBJECTS. "Copied from SAPRDEMO_PIVOTINTERFACE&lt;/P&gt;
  &lt;P&gt; &lt;BR /&gt; PROCESS AFTER INPUT.&lt;BR /&gt; MODULE EXIT AT EXIT-COMMAND. "Copied from SAPRDEMO_PIVOTINTERFACE&lt;/P&gt;
  &lt;P&gt; MODULE USER_COMMAND_0100. "Edited (below)&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;*&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; *&amp;amp; Module USER_COMMAND_0100 INPUT&lt;BR /&gt; *&amp;amp;---------------------------------------------------------------------*&lt;BR /&gt; * text&lt;BR /&gt; *----------------------------------------------------------------------*&lt;BR /&gt; MODULE user_command_0100 INPUT.&lt;/P&gt;
  &lt;P&gt; CASE okcode.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;WHEN 'SFL'. "button for SFLIGHT&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;SELECT * FROM sflight INTO TABLE tempsflight.&lt;BR /&gt;&lt;BR /&gt; CLEAR itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;columnfield.&lt;BR /&gt; wa_name-col = 1.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 2.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 7.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 8.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 9.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD handle2-&amp;gt;set_source_table&lt;BR /&gt; EXPORTING&lt;BR /&gt; name = 'pivot1'&lt;BR /&gt; ddic_name = 'SFLIGHT'&lt;BR /&gt; data_table = tempsflight&lt;BR /&gt; length = 'L'&lt;BR /&gt; itemsnr = itemsnr&lt;BR /&gt; IMPORTING&lt;BR /&gt; error = error&lt;BR /&gt; retcode = retcode.&lt;/P&gt;
  &lt;P&gt; MESSAGE retcode TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;WHEN 'MYTAB'. "Button for my table with 101 fields&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; SELECT * FROM zmt_smartmex INTO TABLE gi_smartmex.&lt;BR /&gt; &lt;BR /&gt; CLEAR itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;columnfield.&lt;BR /&gt; wa_name-col = 1.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 2.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;rowfield.&lt;BR /&gt; wa_name-col = 7.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 8.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; wa_name-type = i_oi_pivot=&amp;gt;datafield.&lt;BR /&gt; wa_name-col = 9.&lt;BR /&gt; APPEND wa_name TO itemsnr.&lt;BR /&gt; &lt;BR /&gt; CALL METHOD handle2-&amp;gt;set_source_table&lt;BR /&gt; EXPORTING&lt;BR /&gt; name = 'pivot1'&lt;BR /&gt; ddic_name = 'ZMT_SMARTMEX'&lt;BR /&gt; data_table = gi_smartmex&lt;BR /&gt; length = 'L'&lt;BR /&gt; itemsnr = itemsnr&lt;BR /&gt; IMPORTING&lt;BR /&gt; error = error&lt;BR /&gt; retcode = retcode.&lt;BR /&gt; &lt;BR /&gt; MESSAGE retcode TYPE 'S' DISPLAY LIKE 'E'.&lt;/P&gt;
  &lt;P&gt;ENDCASE.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718786#M33433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-25T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: CONTROL_INTERNAL_ERROR in method I_OI_PIVOT~SET_SOURCE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718787#M33434</link>
      <description>&lt;P&gt;I would debug the standard code to figure out where that error is being thrown and why. Have you tried that? &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 10:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718787#M33434</guid>
      <dc:creator>joao_sousa2</dc:creator>
      <dc:date>2018-07-25T10:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: CONTROL_INTERNAL_ERROR in method I_OI_PIVOT~SET_SOURCE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718788#M33435</link>
      <description>&lt;P&gt;When you post code please do so using the "code" button in the editor. For copy paste, right click and choose "paste as plain text".&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718788#M33435</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-07-25T11:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: CONTROL_INTERNAL_ERROR in method I_OI_PIVOT~SET_SOURCE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718789#M33436</link>
      <description>&lt;P&gt;Yes, I did debug it before posting this.&lt;/P&gt;
  &lt;P&gt;Inside of the method SET_SOURCE_TABLE of class I_OI_PIVOT seems to be fine until the call to method CALL_OBJECT_METHOD. This returns the code '999999-', same as it does for the successful examples I've tried, and then it does a FLUSH, where it changes the error code to '7' (CONTROL_INTERNAL_ERROR), while for success examples, the FLUSH returns a '0'.&lt;/P&gt;
  &lt;P&gt;I am not being able to know or debug what happens inside the flush or where it takes the error code from.&lt;/P&gt;
  &lt;P&gt;Any idea?&lt;/P&gt;
  &lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 11:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-internal-error-in-method-i-oi-pivot-set-source-table/m-p/718789#M33436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-08-06T11:51:25Z</dc:date>
    </item>
  </channel>
</rss>

