<?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: getting runtime error in ALV ... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110714#M106096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you should aware that the runtime you wrote in your topic is inconsistent with the code you offer.&lt;/P&gt;&lt;P&gt;If runtime error is GETWA_NOT_ASSIGNED, please check the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_cat ASSIGNING &amp;lt;fs_cat&amp;gt;.
CLEAR &amp;lt;fs_cat&amp;gt;-key.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but according to your code, you problem is due to the field name you fill in fieldcategory.  They must be &amp;lt;b&amp;gt;Upper Case&amp;lt;/b&amp;gt;. Because ALV read them in runtime, and runtime only recognize the Upper Case letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2005 03:03:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-30T03:03:44Z</dc:date>
    <item>
      <title>getting runtime error in ALV ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110710#M106092</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 am calling function REUSE_ALV_GRID_DISPLAY to display my data in an ALV grid... this code was working fine and so I used it for a different set of data but now it is throwing a runtime error saying ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GETWA_NOT_ASSIGNED&lt;/P&gt;&lt;P&gt;Field symbol has not yet been assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont understand why I am getting this and how to resolve this...my sample code is pasted below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZFB12TEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:     BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS: slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bkpf_rec OCCURS 0,&lt;/P&gt;&lt;P&gt;                bukrs LIKE BKPF-BUKRS,&lt;/P&gt;&lt;P&gt;                blart LIKE BKPF-BLART,&lt;/P&gt;&lt;P&gt;                cpudt LIKE BKPF-CPUDT,&lt;/P&gt;&lt;P&gt;                budat LIKE BKPF-budat,&lt;/P&gt;&lt;P&gt;                belnr LIKE BKPF-BELNR,&lt;/P&gt;&lt;P&gt;                gjahr LIKE BKPF-GJAHR,&lt;/P&gt;&lt;P&gt;      END OF bkpf_rec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA migo_data LIKE bkpf_rec occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_cat TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;      wa_lay TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_cat&amp;gt; LIKE LINE OF it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: so_bukrs FOR BKPF-BUKRS,&lt;/P&gt;&lt;P&gt;                so_blart FOR BKPF-BLART,&lt;/P&gt;&lt;P&gt;                so_cpudt FOR BKPF-CPUDT,&lt;/P&gt;&lt;P&gt;                so_budat FOR BKPF-budat,&lt;/P&gt;&lt;P&gt;                so_belnr FOR BKPF-BELNR,&lt;/P&gt;&lt;P&gt;                so_gjahr FOR BKPF-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*include bdcrecx1.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs blart cpudt budat belnr gjahr into table bkpf_rec from bkpf&lt;/P&gt;&lt;P&gt; where bukrs IN&lt;/P&gt;&lt;P&gt;so_bukrs and blart in so_blart and cpudt in so_cpudt and budat in&lt;/P&gt;&lt;P&gt;so_budat and belnr in so_belnr and gjahr in so_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at bkpf_rec.&lt;/P&gt;&lt;P&gt; move-corresponding bkpf_rec to migo_data.&lt;/P&gt;&lt;P&gt; append migo_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_sortcat   type slis_sortinfo_alv occurs 1,&lt;/P&gt;&lt;P&gt;wa_sort like line of it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-spos      = 1.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'bukrs'.&lt;/P&gt;&lt;P&gt;wa_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;wa_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_sort-spos      = 2.&lt;/P&gt;&lt;P&gt;wa_sort-fieldname = 'belnr'.&lt;/P&gt;&lt;P&gt;wa_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;wa_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;APPEND wa_sort TO it_sortcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_lay-zebra = 'X'.&lt;/P&gt;&lt;P&gt;data: tmp_fc type slis_fieldcat_alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'CC'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'bukrs'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 10.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'Document number'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'belnr'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 20.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'Entry date'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'cpudt'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 20.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'Posting date'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'budat'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 20.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'Doc type'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'blart'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 10.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      tmp_fc-reptext_ddic = 'Fiscal year'.&lt;/P&gt;&lt;P&gt;      tmp_fc-fieldname    = 'gjahr'.&lt;/P&gt;&lt;P&gt;      tmp_fc-tabname      = 'migo_data'.&lt;/P&gt;&lt;P&gt;      tmp_fc-outputlen    = 10.&lt;/P&gt;&lt;P&gt;      tmp_fc-do_sum      = space.&lt;/P&gt;&lt;P&gt;      append tmp_fc to it_cat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_cat ASSIGNING &amp;lt;fs_cat&amp;gt;.&lt;/P&gt;&lt;P&gt;    CLEAR &amp;lt;fs_cat&amp;gt;-key.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_grid_title  = 'Invoice selected'&lt;/P&gt;&lt;P&gt;      is_layout     = wa_lay&lt;/P&gt;&lt;P&gt;      it_fieldcat   = it_cat&lt;/P&gt;&lt;P&gt;      it_sort       = it_sortcat&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab      = MIGO_DATA&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error = 1&lt;/P&gt;&lt;P&gt;      OTHERS        = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 20:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110710#M106092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: getting runtime error in ALV ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110711#M106093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please capitalize all of your fields when building the field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

You have this....

*
*
tmp_fc-reptext_ddic = 'Fiscal year'.
tmp_fc-fieldname = 'gjahr'.
tmp_fc-tabname = 'migo_data'.
tmp_fc-outputlen = 10.
tmp_fc-do_sum = space.
append tmp_fc to it_cat.
*
*
It should be this....

*
*

tmp_fc-reptext_ddic = 'Fiscal year'.
&amp;lt;b&amp;gt;tmp_fc-fieldname = 'GJAHR'.
tmp_fc-tabname = 'MIGO_DATA'.&amp;lt;/b&amp;gt;
tmp_fc-outputlen = 10.
tmp_fc-do_sum = space.
append tmp_fc to it_cat.





&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 20:12:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110711#M106093</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-29T20:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: getting runtime error in ALV ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110712#M106094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="165830"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 20:13:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110712#M106094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T20:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: getting runtime error in ALV ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110713#M106095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When building your sort catalog,  make sure to include the tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  wa_sort-spos = 1.
  wa_sort-fieldname = 'BUKRS'.
&amp;lt;b&amp;gt;  wa_sort-tabname = 'MIGO_DATA'.&amp;lt;/b&amp;gt;
  wa_sort-subtot = 'X'.
  wa_sort-up = 'X'.
  append wa_sort to it_sortcat.

  wa_sort-spos = 2.
  wa_sort-fieldname = 'BELNR'.
&amp;lt;b&amp;gt;  wa_sort-tabname = 'MIGO_DATA'.&amp;lt;/b&amp;gt;
  wa_sort-subtot = 'X'.
  wa_sort-up = 'X'.
  append wa_sort to it_sortcat.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure to award points and mark your post as solved.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 20:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110713#M106095</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-29T20:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: getting runtime error in ALV ...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110714#M106096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you should aware that the runtime you wrote in your topic is inconsistent with the code you offer.&lt;/P&gt;&lt;P&gt;If runtime error is GETWA_NOT_ASSIGNED, please check the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT it_cat ASSIGNING &amp;lt;fs_cat&amp;gt;.
CLEAR &amp;lt;fs_cat&amp;gt;-key.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but according to your code, you problem is due to the field name you fill in fieldcategory.  They must be &amp;lt;b&amp;gt;Upper Case&amp;lt;/b&amp;gt;. Because ALV read them in runtime, and runtime only recognize the Upper Case letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 03:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-runtime-error-in-alv/m-p/1110714#M106096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T03:03:44Z</dc:date>
    </item>
  </channel>
</rss>

