<?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 while executing ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062045#M970951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure dat constants which u r using to specify field names hold names in CAPS..i.e all field names should be in capital letters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if dis doesnt help, try replacing constants by actual field names in capital letters and enclosed in single quotes..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 05:54:10 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2008-07-03T05:54:10Z</dc:date>
    <item>
      <title>Runtime error while executing ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062041#M970947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented an ALV in OOPS concept and whenevr I am executing it I am getting a runtime error as GET WA NOT ASSIGNED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis:&lt;/P&gt;&lt;P&gt; You attempted to access an unassigned field symbol&lt;/P&gt;&lt;P&gt; (data segment 32821).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This error may occur if&lt;/P&gt;&lt;P&gt; - You address a typed field symbol before it has been set with&lt;/P&gt;&lt;P&gt;   ASSIGN&lt;/P&gt;&lt;P&gt; - You address a field symbol that pointed to the line of an&lt;/P&gt;&lt;P&gt;   internal table that was deleted&lt;/P&gt;&lt;P&gt; - You address a field symbol that was previously reset using&lt;/P&gt;&lt;P&gt;   UNASSIGN or that pointed to a local field that no&lt;/P&gt;&lt;P&gt;   longer exists&lt;/P&gt;&lt;P&gt; - You address a global function interface, although the&lt;/P&gt;&lt;P&gt;   respective function module is not active - that is, is&lt;/P&gt;&lt;P&gt;   not in the list of active calls. The list of active calls&lt;/P&gt;&lt;P&gt;   can be taken from this short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trigger Location of Runtime Error&lt;/P&gt;&lt;P&gt;    Program                                 SAPLSLVC&lt;/P&gt;&lt;P&gt;    Include                                 LSLVCF36&lt;/P&gt;&lt;P&gt;    Row                                     3.231&lt;/P&gt;&lt;P&gt;    Module type                             (FORM)&lt;/P&gt;&lt;P&gt;    Module Name                             FILL_DATA_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3201                               alv_style_align_center_top.&lt;/P&gt;&lt;P&gt;3202         endif.&lt;/P&gt;&lt;P&gt;3203&lt;/P&gt;&lt;P&gt;3204         append ls_lvc_data to ct_lvc_data.&lt;/P&gt;&lt;P&gt;3205       endif.&lt;/P&gt;&lt;P&gt;3206&lt;/P&gt;&lt;P&gt;3207 ************************************&lt;/P&gt;&lt;P&gt;3208 * Column per Fieldcat Entry&lt;/P&gt;&lt;P&gt;3209 ************************************&lt;/P&gt;&lt;P&gt;3210       loop at it_fcat_local assigning &amp;lt;ls_fcat&amp;gt;.&lt;/P&gt;&lt;P&gt;3211         clear: ls_lvc_data-href_hndl,&lt;/P&gt;&lt;P&gt;3212                ls_lvc_data-drdn_hndl,&lt;/P&gt;&lt;P&gt;3213                ls_lvc_data-style,&lt;/P&gt;&lt;P&gt;3214                ls_lvc_data-style2,&lt;/P&gt;&lt;P&gt;3215                ls_lvc_data-style3,&lt;/P&gt;&lt;P&gt;3216                ls_lvc_data-style4,&lt;/P&gt;&lt;P&gt;3217                ls_lvc_data-maxlen.&lt;/P&gt;&lt;P&gt;3218&lt;/P&gt;&lt;P&gt;3219         clear: lt_color_lvc, lt_color_slis.&lt;/P&gt;&lt;P&gt;3220&lt;/P&gt;&lt;P&gt;3221         add 1 to ls_lvc_data-col_pos.&lt;/P&gt;&lt;P&gt;3222&lt;/P&gt;&lt;P&gt;3223         if not &amp;lt;ls_fcat&amp;gt;-indx_field is initial.&lt;/P&gt;&lt;P&gt;3224           assign component &amp;lt;ls_fcat&amp;gt;-indx_field&lt;/P&gt;&lt;P&gt;3225                            of structure &amp;lt;ls_data&amp;gt; to &amp;lt;l_field_value&amp;gt;.&lt;/P&gt;&lt;P&gt;3226         else.&lt;/P&gt;&lt;P&gt;3227           assign component &amp;lt;ls_fcat&amp;gt;-fieldname&lt;/P&gt;&lt;P&gt;3228                            of structure &amp;lt;ls_data&amp;gt; to &amp;lt;l_field_value&amp;gt;.&lt;/P&gt;&lt;P&gt;3229         endif.&lt;/P&gt;&lt;P&gt;3230&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;         macro_cell_data_get&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3232           &amp;lt;ls_fcat&amp;gt;&lt;/P&gt;&lt;P&gt;3233           &amp;lt;ls_data&amp;gt;&lt;/P&gt;&lt;P&gt;3234           &amp;lt;l_field_value&amp;gt;&lt;/P&gt;&lt;P&gt;3235           ls_lvc_data-value.&lt;/P&gt;&lt;P&gt;3236&lt;/P&gt;&lt;P&gt;3237 *&amp;gt;&amp;gt;&amp;gt; new API&lt;/P&gt;&lt;P&gt;3238         if ir_salv_adapter is bound.&lt;/P&gt;&lt;P&gt;3239           clear ls_lvc_data-style.&lt;/P&gt;&lt;P&gt;3240&lt;/P&gt;&lt;P&gt;3241 * color&lt;/P&gt;&lt;P&gt;3242           if g_gui_type ne 1.&lt;/P&gt;&lt;P&gt;3243             if &amp;lt;ls_fcat&amp;gt;-key eq abap_true.&lt;/P&gt;&lt;P&gt;3244               ls_lvc_data-style = alv_style_color_int_key.&lt;/P&gt;&lt;P&gt;3245             elseif l_style_color is initial&lt;/P&gt;&lt;P&gt;3246                   and ( &amp;lt;ls_fcat&amp;gt;-emphasize is initial or&lt;/P&gt;&lt;P&gt;3247                         &amp;lt;ls_fcat&amp;gt;-emphasize = '$' ).&lt;/P&gt;&lt;P&gt;3248               if &amp;lt;ls_stin&amp;gt;-counter is initial.&lt;/P&gt;&lt;P&gt;3249                 ls_lvc_data-style = alv_style_color_normal.&lt;/P&gt;&lt;P&gt;3250               else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to sort out this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062041#M970947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T05:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while executing ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062042#M970948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sharan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check you fieldcatalouge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;either you had declear fields in small letters it shoud be in caps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:36:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062042#M970948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T05:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while executing ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062043#M970949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please send your full code so that we can check . May be the problem is with ur field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062043#M970949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T05:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while executing ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062044#M970950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;FORM s_build_fldctlg .

  v_repid = sy-repid.
  DATA lw_fldctlg TYPE lvc_s_fcat.
  REFRESH i_fldctlg[].
  v_cpos = 0.

* Column 1
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_unlpt.
  lw_fldctlg-coltext = 'Unloading Point'.         "Unloading Point
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

* Column 2
  v_cpos = v_cpos + 1.
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_vdrloc.       "Vendor Location
  lw_fldctlg-coltext = text-003.
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

* Column 3
  v_cpos = v_cpos + 1.
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_nopkgs.       "No of packages
  lw_fldctlg-coltext = text-004.
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

* Column 4
  v_cpos = v_cpos + 1.
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_delnote.     "Delivery Note
  lw_fldctlg-coltext = text-005.
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

* Column 5
  v_cpos = v_cpos + 1.
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_reason.      "Reason
  lw_fldctlg-coltext = text-006.
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

* Column 6
  v_cpos = v_cpos + 1.
  lw_fldctlg-col_pos = v_cpos.
  lw_fldctlg-row_pos = c_1.
  lw_fldctlg-ref_table = 'I_OUTPUT'.
  lw_fldctlg-fieldname = c_status.
  lw_fldctlg-coltext = text-007.
  APPEND lw_fldctlg TO i_fldctlg.
  CLEAR  lw_fldctlg.

ENDFORM.                    " S_BUILD_FLDCTLG&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;When i execute it without any values in my final table the ALV is getting displayed.&lt;/P&gt;&lt;P&gt;But when I put some data in the final table I am getting this error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062044#M970950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T05:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error while executing ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062045#M970951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure dat constants which u r using to specify field names hold names in CAPS..i.e all field names should be in capital letters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if dis doesnt help, try replacing constants by actual field names in capital letters and enclosed in single quotes..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 05:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-while-executing-alv/m-p/4062045#M970951</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2008-07-03T05:54:10Z</dc:date>
    </item>
  </channel>
</rss>

