<?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: alv grid (automatic) message error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266683#M149223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field catalog declaration:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'  
   EXPORTING                             
     i_structure_name = 'ZST_ZMODEL_PARM'
   CHANGING                              
     ct_fieldcat      = pt_fieldcat.     

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROD_NUM in structure 'ZST_MODEL_PARM':&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROD_NUM	ZLAUNCH_MTH_START	NUMC	2	0	Month of Launch Start
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay, I think I've played around with this data type to realize that this is probably not where the problem is. Could it be something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Mar 2006 13:27:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-06T13:27:36Z</dc:date>
    <item>
      <title>alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266674#M149214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written a table maintenance program with an editable alv grid as per SAP example (BCALV_EDIT_04). &lt;/P&gt;&lt;P&gt;It works like a charm except for the NON desired message error log on a specific field/column (&amp;lt;b&amp;gt;PROD_NUM&amp;lt;/b&amp;gt;) for appended rows. That is, when I click 'ENTER' (or 'check entries' button) a message error log is raised somehow, which I didn't cater for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling my grid as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*...initialize alv grid
    CALL METHOD g_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        is_layout            = ps_layout
        it_toolbar_excluding = lt_exclude
      CHANGING
        it_fieldcatalog      = pt_fieldcat
        it_outtab            = pt_outtab[].
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also cater for changed data event as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET HANDLER g_event_receiver-&amp;gt;handle_data_changed FOR g_grid.
*---register ENTER to raise event DATA_CHANGED.
    CALL METHOD g_grid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As said before, I don't handle any checks for data (or existance) integrity or anything of the sort in my handle_data_changed method. This error seems to be raised almost automatically.&lt;/P&gt;&lt;P&gt;My field catalog is derived from the structure. In the structure, PROD_NUM is defined as Built-in type CHAR 02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to deactivate this error checking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nhlanhla Ndlovu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 11:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266674#M149214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266675#M149215</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;what is the error you are getting. is it related to PROD_NUM. can you specify what is that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 11:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266675#M149215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T11:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266676#M149216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use following sy-subrc check after you call the display method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 11:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266676#M149216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T11:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266677#M149217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The message says:&lt;/P&gt;&lt;P&gt;'Enter a valid value'.&lt;/P&gt;&lt;P&gt;See, I do want it to accept initial values as well for field PROD_NUM but it flags these as erroneous input on the alv message log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266677#M149217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266678#M149218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand, Shashank. Please re-iterate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266678#M149218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266679#M149219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try following code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*...initialize alv grid&lt;/P&gt;&lt;P&gt;    CALL METHOD g_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout            = ps_layout&lt;/P&gt;&lt;P&gt;        it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog      = pt_fieldcat&lt;/P&gt;&lt;P&gt;        it_outtab            = pt_outtab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET HANDLER g_event_receiver-&amp;gt;handle_data_changed FOR g_grid.&lt;/P&gt;&lt;P&gt;*---register ENTER to raise event DATA_CHANGED.&lt;/P&gt;&lt;P&gt;    CALL METHOD g_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&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;Shashank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266679#M149219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266680#M149220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you show the data declaration of internal table and fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:29:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266680#M149220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266681#M149221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shashank,&lt;/P&gt;&lt;P&gt;I've tried this, Sir. Nothing happens, i.e. when I run the program, change edit values on the grid and click the 'check entries' button or 'ENTER' it just displays the alv grid message 'error log' with 'Enter a valid value' (this is for column PROD_NUM'.&lt;/P&gt;&lt;P&gt;sy-subrc is 0 in all cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nhlanhla Ndlovu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266681#M149221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266682#M149222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show the declaration part of PROD_NUM .&lt;/P&gt;&lt;P&gt;if you enter invalid obviously you get error from alv.&lt;/P&gt;&lt;P&gt;that is the reason i was asking you to show the declaration ,you need to change the data type then only it will stop throwing the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 12:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266682#M149222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266683#M149223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field catalog declaration:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'  
   EXPORTING                             
     i_structure_name = 'ZST_ZMODEL_PARM'
   CHANGING                              
     ct_fieldcat      = pt_fieldcat.     

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROD_NUM in structure 'ZST_MODEL_PARM':&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROD_NUM	ZLAUNCH_MTH_START	NUMC	2	0	Month of Launch Start
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay, I think I've played around with this data type to realize that this is probably not where the problem is. Could it be something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 13:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266683#M149223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid (automatic) message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266684#M149224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are you entering.&lt;/P&gt;&lt;P&gt;(when you got the message what value you entered).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2006 13:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-automatic-message-error/m-p/1266684#M149224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-06T13:36:56Z</dc:date>
    </item>
  </channel>
</rss>

