<?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: Syntax error on reading internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740865#M1301591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement READ TABLE T_SALV_CELL INTO ME-&amp;gt;WA_SALV_CELL INDEX 1 is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 09:10:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-08T09:10:17Z</dc:date>
    <item>
      <title>Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740861#M1301587</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 am trying to read the column name and row number of the cell selected in the ALV output and call standard transaction based on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting syntax error for line READ TABLE T_SALV_CELL INTO ME-&amp;gt;WA_SALV_CELL INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Read dbtab is not supported in OOcontext. Use select single * from dbtab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, inspite of passing the correct parameter id it is not skipping the initial screen of transaction BP.&lt;/P&gt;&lt;P&gt;My code goes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------&amp;amp;
*&amp;amp; CLASS - DEFINITION
*&amp;amp;---------------------------------------------------------------------&amp;amp;
CLASS LCL_EVENT_HANDLER DEFINITION.
  PUBLIC SECTION.
    METHODS: ON_LINK_CLICK
               FOR EVENT LINK_CLICK
               OF  CL_SALV_EVENTS_TABLE
               IMPORTING ROW
                         COLUMN.  "#EC NEEDED

  PRIVATE SECTION.
     DATA: L_ROWNUM TYPE I,
           L_COLNAME TYPE LVC_FNAME,
           WA_SALV_CELL TYPE SALV_S_CELL.

ENDCLASS.  "LCL_EVENT_HANDLER



CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
*-- create hotspot on Partner Number column
    METHOD ON_LINK_CLICK.
     CLEAR: WA_FINAL, WA_SALV_CELL.

     CALL METHOD GR_SALV_TABLE-&amp;gt;GET_SELECTIONS
      RECEIVING
        VALUE  = GR_SALV_SELECTIONS.
        
     CALL METHOD GR_SALV_SELECTIONS-&amp;gt;GET_CURRENT_CELL
      RECEIVING
        VALUE  = T_SALV_CELL.
 
     READ TABLE T_SALV_CELL INTO ME-&amp;gt;WA_SALV_CELL INDEX 1.
     IF SY-SUBRC = 0.
*-- Read Row information
        READ TABLE T_FINAL INTO WA_FINAL INDEX WA_SALV_CELL-ROW.
        IF SY-SUBRC = 0.
         IF WA_SALV_CELL-COLUMNNAME = C_COLUMN_PARTNER AND WA_FINAL-PARTNER_NO IS NOT INITIAL.
            SET PARAMETER ID 'BPA' FIELD WA_FINAL-PARTNER_NO.
            CALL TRANSACTION C_BP AND SKIP FIRST SCREEN.
         ELSEIF  WA_SALV_CELL-COLUMNNAME = C_COLUMN_OBJ_ID AND WA_FINAL-OBJECT_ID IS NOT INITIAL.
           SET PARAMETER ID 'CRM_OBJECT_ID' FIELD WA_FINAL-OBJECT_ID.
            CALL TRANSACTION C_CRMD_BUS2000126 AND SKIP FIRST SCREEN.
         ENDIF.

        ENDIF.
     ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangeeta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Jun 8, 2009 10:27 AM - added  tags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 08:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740861#M1301587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740862#M1301588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ T_SALV_CELL INTO ME-&amp;gt;WA_SALV_CELL INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Don't use the TABLE keyword at this point!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 08:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740862#M1301588</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-08T08:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740863#M1301589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For your other question, it may be that you can't use "and skip first screen".  Tx BP calls screen 100,, which is a dummy screen that loads screen 3000, which contains subscreen 1510 which uses BPA, and a docking container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen 100 doesn't contain any fields other than OKCODE, so that's probably sufficient to disrupt "and skip first screen".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 08:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740863#M1301589</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-08T08:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740864#M1301590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt....Can you please tell then how to call standard transaction BP by passing the value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 09:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740864#M1301590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740865#M1301591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement READ TABLE T_SALV_CELL INTO ME-&amp;gt;WA_SALV_CELL INDEX 1 is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 09:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740865#M1301591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T09:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740866#M1301592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved myself....Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 10:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740866#M1301592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T10:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on reading internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740867#M1301593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what was the solution then?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 11:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-on-reading-internal-table/m-p/5740867#M1301593</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-06-08T11:51:16Z</dc:date>
    </item>
  </channel>
</rss>

