<?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 oops raising error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138654#M1191015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_Field_catalog-NO_ZERO = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 12:59:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T12:59:30Z</dc:date>
    <item>
      <title>alv oops raising error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138650#M1191011</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;iam displaying output using alv oops.&lt;/P&gt;&lt;P&gt;one of the char field is editable i want to give only numeric values only.i cannot change datatype to numc for that field.if user enters char value(like abc) and click on any button in alv output i want to raise a error message and i want to stop the user in alv report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138650#M1191011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: alv oops raising error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138651#M1191012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i think u need to use the GET_CHANGED_DATA method in the CL_GUI_ALV_GRID class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will return the changed data.. Then u check the data and accordingly raise the error mess..&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ags&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 11:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138651#M1191012</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-02-05T11:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: alv oops raising error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138652#M1191013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that the editable field in your ALV list is defined as CHAR type in the underlying table (structure). In order to prevent non-numeric entries I would use the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define additional column for your ALV list, e.g.:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_s_outtab.
  INCLUDE type &amp;lt;name of z-table&amp;gt; AS data.
TYPES:  numfield(4)    TYPE n.  " Assumption: Your editable field is CHAR4, e.g. charfld
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab  TYPE STANDARD TABLE OF ty_s_outtab WITH DEFAULT KEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_outtab   TYPE ty_t_outtab.  " your itab for ALV list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build fieldcatalog automatically and add additional column for NUMFIELD:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Call fm LVC_FIELDCATALOG_MERGE with your z-table

  LOOP AT gt_fcat INTO ls_fcat
                            WHERE ( fieldname = &amp;lt;name of editable field&amp;gt; ).
     " Suppress this field
       ls_fcat-tech = 'X'.
       MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.


    " Modify LS_FCAT to reflect the additional NUMC4 field
      ls_fcat-fieldname = 'NUMFIELD'.
      ls_fcat-rolltype = ...  " change technical details from CHAR4 -&amp;gt; NUMC4

      ls_fcat-edit = 'X'.  " Now the NUMC4 field is editable

      INSERT ls_fcat INTO gt_fcat INDEX syst-tabix.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initial load of outtab: shuffle values from CHAR4 to NUMC4 field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REFRESH: gt_outtab.
  LOOP AT gt_data INTO ls_data.
    clear: ls_outtab.

    ls_outtab-data = ls_data.
    move ls_data-charfld TO ls_outtab-numfield.
    
    APPEND ls_outtab TO gt_outtab.
  ENDLOOP.&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;    Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138652#M1191013</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-02-05T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: alv oops raising error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138653#M1191014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help regarding the following issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam displaying report output using alvoops.&lt;/P&gt;&lt;P&gt;in the output list one of numc field is editable with length 4.&lt;/P&gt;&lt;P&gt;in field catalog i set lzero = 'X'. now output displaying with leading zeros.&lt;/P&gt;&lt;P&gt;now problem is if numc field doesnot contain any value out put displaying as '0000'.&lt;/P&gt;&lt;P&gt;i dont want '0000' and i want blank space in output list.&lt;/P&gt;&lt;P&gt;i want to edit alv grid for  the numc field values like '0010','0009',0001and blank. &lt;/P&gt;&lt;P&gt;if i edit alv grid with numc value '0010' it showing only '10' doesnot consider leading zeros.&lt;/P&gt;&lt;P&gt;i want to validate the entered values for numc field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138653#M1191014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T12:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: alv oops raising error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138654#M1191015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_Field_catalog-NO_ZERO = 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 12:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-oops-raising-error-message/m-p/5138654#M1191015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T12:59:30Z</dc:date>
    </item>
  </channel>
</rss>

