<?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: Runtime Error: GETWA_NOT_ASSIGNED in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627560#M2013091</link>
    <description>&lt;P&gt;Don't use REUSE_ALV_GRID_DISPLAY. It's error prone and is deprecated.&lt;/P&gt;&lt;P&gt;Instead, use CL_SALV_TABLE.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 07:06:51 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2022-06-23T07:06:51Z</dc:date>
    <item>
      <title>Runtime Error: GETWA_NOT_ASSIGNED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627557#M2013088</link>
      <description>&lt;P&gt;I was trying to select from table SCARR, SPFLI using specific parameters. When something is selected, it should be transferred from internal table to ALV.&lt;/P&gt;
  &lt;P&gt;Here's my code:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT ABC MESSAGE-ID MSG_TEST.&lt;BR /&gt;*TABLES&lt;BR /&gt;TABLES: SPFLI,&lt;BR /&gt;        SCARR.&lt;BR /&gt;*PARAMETER DECLARATION&lt;BR /&gt;SELECTION-SCREEN BEGIN OF BLOCK b1.&lt;BR /&gt;PARAMETERS: p_carrid TYPE scarr-carrid DEFAULT 'AA',&lt;BR /&gt;            p_connid TYPE spfli-connid DEFAULT '0017'.&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;TYPES: BEGIN OF i_tab,&lt;BR /&gt;       carrid TYPE spfli-carrid,&lt;BR /&gt;       connid TYPE spfli-connid,&lt;BR /&gt;       countryfr TYPE spfli-countryfr,&lt;BR /&gt;       countryto TYPE spfli-countryto,&lt;BR /&gt;       END OF i_tab.&lt;BR /&gt;DATA:  lv_carrid TYPE scarr-carrid,&lt;BR /&gt;       lv_connid TYPE spfli-connid,&lt;BR /&gt;       i_spfli TYPE STANDARD TABLE OF i_tab,&lt;BR /&gt;       i_fieldcat TYPE slis_t_fieldcat_alv.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT SINGLE CARRID&lt;BR /&gt;         FROM SCARR&lt;BR /&gt;         INTO @lv_carrid&lt;BR /&gt;        WHERE carrid = @p_carrid.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    MESSAGE E001.&lt;BR /&gt;    STOP.&lt;BR /&gt;ENDIF.&lt;BR /&gt;END-OF-SELECTION.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT CARRID,&lt;BR /&gt;       CONNID,&lt;BR /&gt;       COUNTRYFR,&lt;BR /&gt;       COUNTRYTO&lt;BR /&gt;  FROM SPFLI&lt;BR /&gt;  INTO TABLE @i_spfli&lt;BR /&gt;  WHERE carrid = @p_carrid&lt;BR /&gt;    AND connid = @p_connid.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    MESSAGE I001.&lt;BR /&gt;    STOP.&lt;BR /&gt;ENDIF.&lt;BR /&gt;*PASSING OF SELECTED VALUES INTO ALV&lt;BR /&gt;i_fieldcat = VALUE #( ( fieldname = 'p_carrid'        seltext_l = 'Airline Code')&lt;BR /&gt;                      ( fieldname = 'p_connid'        seltext_l = 'Flight Connection')&lt;BR /&gt;                      ( fieldname = 'spfli_countryfr' seltext_l = 'Country From' )&lt;BR /&gt;                      ( fieldname = 'spfli_countryto' seltext_l = 'Country To')&lt;BR /&gt;                    ).&lt;BR /&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;        it_fieldcat = i_fieldcat&lt;BR /&gt;    TABLES&lt;BR /&gt;        t_outtab    = i_spfli&lt;BR /&gt;    EXCEPTIONS&lt;BR /&gt;        program_error = 1&lt;BR /&gt;        others        = 2.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    MESSAGE |An Error Occured!| TYPE 'E'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jun 2022 05:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627557#M2013088</guid>
      <dc:creator>walkerist79</dc:creator>
      <dc:date>2022-06-23T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error: GETWA_NOT_ASSIGNED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627558#M2013089</link>
      <description>&lt;P&gt;Hi Wane,&lt;/P&gt;&lt;P&gt;Please try below code. It's working. I changed field names in fieldcatelog. You need to pass same field name which you have used in structure. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: SPFLI,&lt;BR /&gt;        SCARR.&lt;BR /&gt;*PARAMETER DECLARATION&lt;BR /&gt;SELECTION-SCREEN BEGIN OF BLOCK b1.&lt;BR /&gt;PARAMETERS: p_carrid TYPE scarr-carrid DEFAULT 'AA',&lt;BR /&gt;            p_connid TYPE spfli-connid DEFAULT '0017'.&lt;BR /&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;TYPES: BEGIN OF i_tab,&lt;BR /&gt;       carrid TYPE spfli-carrid,&lt;BR /&gt;       connid TYPE spfli-connid,&lt;BR /&gt;       countryfr TYPE spfli-countryfr,&lt;BR /&gt;       countryto TYPE spfli-countryto,&lt;BR /&gt;       END OF i_tab.&lt;BR /&gt;DATA:  lv_carrid TYPE scarr-carrid,&lt;BR /&gt;       lv_connid TYPE spfli-connid,&lt;BR /&gt;       i_spfli TYPE STANDARD TABLE OF i_tab,&lt;BR /&gt;       i_fieldcat TYPE slis_t_fieldcat_alv.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT SINGLE CARRID&lt;BR /&gt;         FROM SCARR&lt;BR /&gt;         INTO @lv_carrid&lt;BR /&gt;        WHERE carrid = @p_carrid.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;*    MESSAGE E001.&lt;BR /&gt;    STOP.&lt;BR /&gt;ENDIF.&lt;BR /&gt;END-OF-SELECTION.&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;SELECT CARRID,&lt;BR /&gt;       CONNID,&lt;BR /&gt;       COUNTRYFR,&lt;BR /&gt;       COUNTRYTO&lt;BR /&gt;  FROM SPFLI&lt;BR /&gt;  INTO TABLE @i_spfli&lt;BR /&gt;  WHERE carrid = @p_carrid&lt;BR /&gt;    AND connid = @p_connid.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;*    MESSAGE I001.&lt;BR /&gt;    STOP.&lt;BR /&gt;ENDIF.&lt;BR /&gt;*PASSING OF SELECTED VALUES INTO ALV&lt;BR /&gt;i_fieldcat = VALUE #( ( fieldname = 'CARRID'        seltext_l = 'Airline Code')&lt;BR /&gt;                      ( fieldname = 'CONNID'        seltext_l = 'Flight Connection')&lt;BR /&gt;                      ( fieldname = 'COUNTRYFR' seltext_l = 'Country From' )&lt;BR /&gt;                      ( fieldname = 'COUNTRYTO' seltext_l = 'Country To')&lt;BR /&gt;                    ).&lt;BR /&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;BR /&gt;    EXPORTING&lt;BR /&gt;       I_INTERFACE_CHECK                 = 'X'&lt;BR /&gt;        it_fieldcat = i_fieldcat&lt;BR /&gt;    TABLES&lt;BR /&gt;        t_outtab    = i_spfli&lt;BR /&gt;    EXCEPTIONS&lt;BR /&gt;        program_error = 1&lt;BR /&gt;        others        = 2.&lt;BR /&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;    MESSAGE |An Error Occured!| TYPE 'E'.&lt;BR /&gt;ENDIF.&lt;BR /&gt;END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuja Kawadiwale&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 05:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627558#M2013089</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-06-23T05:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error: GETWA_NOT_ASSIGNED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627559#M2013090</link>
      <description>&lt;P&gt;Hi Wane,&lt;/P&gt;&lt;P&gt;In above code I have added I_INTERFACE_CHECK = 'X' in REUSE_AV_GRID_DISPLAY FM to check the error you can comment it once code is working. Also I comment message also in my code you can uncomment it. &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 05:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627559#M2013090</guid>
      <dc:creator>anujawani242683</dc:creator>
      <dc:date>2022-06-23T05:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime Error: GETWA_NOT_ASSIGNED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627560#M2013091</link>
      <description>&lt;P&gt;Don't use REUSE_ALV_GRID_DISPLAY. It's error prone and is deprecated.&lt;/P&gt;&lt;P&gt;Instead, use CL_SALV_TABLE.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-getwa-not-assigned/m-p/12627560#M2013091</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-06-23T07:06:51Z</dc:date>
    </item>
  </channel>
</rss>

