<?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: problem with check_changed_data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803477#M1467803</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you have a data statement something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:        my_container type ref to cl_gui_custom_container.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 19:27:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-21T19:27:58Z</dc:date>
    <item>
      <title>problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803468#M1467794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added a checkbox and a button to a ALV Grid report. When the checkbox is ckecked and the button is pushed, the record with the checkbox used for further processing. I have been searching thru the SDN and it looks like I need to use the "CHECK_CHANGED_DATA" statement. I have coded it like it mentions in the various threads and my process is short dumping. I have this coded in my program, not in the PAI screen. I have seen this coded at both places but when I try to code it in the PAI section of the screen, I get error on the DATA statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_valid type c.&lt;/P&gt;&lt;P&gt;data:   g_grid  type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;call method g_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;              importing&lt;/P&gt;&lt;P&gt;                 e_valid = l_valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coded it in the program in the user-command section an when I run the program in debug at display the g_grid , i get the following &lt;SPAN __default_attr="initial" __jive_macro_name="O"&gt;&lt;/SPAN&gt; and the program short dumps with  Access via 'NULL' object reference not possible."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what I am doing wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know what is causing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803468#M1467794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T18:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803469#M1467795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CALL METHOD g_alvgrid-&amp;gt;check_changed_data
    IMPORTING
      e_valid = l_valid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this provides the internal table on the check box being selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803469#M1467795</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2010-04-21T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803470#M1467796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this looks like the same as what I have coded othre that the different g_alvgrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803470#M1467796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T18:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803471#M1467797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you instantiated g_grid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803471#M1467797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803472#M1467798</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;Did you create the object reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After declaration,You have to create object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_valid type c.&lt;/P&gt;&lt;P&gt;data: g_grid type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;create object g_grid.&lt;/P&gt;&lt;P&gt;call method g_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;e_valid = l_valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803472#M1467798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T18:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803473#M1467799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ramya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the create object g_grid in the program and did the check and recieved the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the obligatory parameter "I_PARENT" had no value assigned to it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 18:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803473#M1467799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T18:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803474#M1467800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - you have to pass that parameter to it when you instantiate it. I believe it is your custom container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 21, 2010 3:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803474#M1467800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803475#M1467801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_valid type c.&lt;/P&gt;&lt;P&gt;data: g_grid type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;data:v_custom_container type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;create object g_grid exporting i_parent = v_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create object v_custom_container&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      container_name              = &amp;lt;custom Container name&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     style                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     lifetime                    = lifetime_default&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     repid                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     dynnr                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     no_autodef_progid_dynnr     =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      cntl_error                  = 1&lt;/P&gt;&lt;P&gt;      cntl_system_error           = 2&lt;/P&gt;&lt;P&gt;      create_error                = 3&lt;/P&gt;&lt;P&gt;      lifetime_error              = 4&lt;/P&gt;&lt;P&gt;      lifetime_dynpro_dynpro_link = 5&lt;/P&gt;&lt;P&gt;      others                      = 6&lt;/P&gt;&lt;P&gt;      .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            CALL METHOD g_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               e_valid   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;             CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;               c_refresh = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803475#M1467801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803476#M1467802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you tell me where I would find the cutom container name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the program that i am working on does not have any references to any of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the program BCALV_EDIT_05 for examples of the create objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_container type scrfname value 'BCALV_GRID_DEMO_0100_CONT1',&lt;/P&gt;&lt;P&gt;      g_grid  type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object g_custom_container&lt;/P&gt;&lt;P&gt;         exporting container_name = g_container.&lt;/P&gt;&lt;P&gt;  create object g_grid&lt;/P&gt;&lt;P&gt;         exporting i_parent = g_custom_container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:21:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803476#M1467802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803477#M1467803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you have a data statement something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:        my_container type ref to cl_gui_custom_container.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803477#M1467803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803478#M1467804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data:v_custom_container type ref to cl_gui_custom_container.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am not sure what goes in the value &amp;lt;custome container name&amp;gt; in this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;container_name = &lt;STRONG&gt;&amp;lt;custom Container name&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803478#M1467804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803479#M1467805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should spend some time trying to see how the BCALV* programs work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 19:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803479#M1467805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with check_changed_data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803480#M1467806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Timothy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have placed a custom container on the dynpro where you want to display the ALV list then the name of this container is what you are looking for. &lt;/P&gt;&lt;P&gt;If the ALV list is the only displayed elements on your dynpro then I prefer to use a docking container instead of a custom container. Sample coding lookes like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within routine MAIN the instances are created (see method INIT_CONTROLS). After that I just link the docking container instance to my dynpro '0100' which is empty.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; START-OF-SELECTION                                                  *
*&amp;amp;---------------------------------------------------------------------*
START-OF-SELECTION.

  PERFORM main.

  gd_repid = syst-repid.
  CALL METHOD zcl_material_gdsn=&amp;gt;mo_docking-&amp;gt;link
    EXPORTING
      repid                       = gd_repid
      dynnr                       = '0100'
*      CONTAINER                   =
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      lifetime_dynpro_dynpro_link = 3
      OTHERS                      = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CALL SCREEN '0100'.



END-OF-SELECTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
method INIT_CONTROLS.

* Create docking container
  CREATE OBJECT mo_docking
    EXPORTING
      parent                      = cl_gui_container=&amp;gt;screen0
      ratio                       = 90
    EXCEPTIONS
      others                      = 6.
  IF sy-subrc NE 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  CALL METHOD mo_docking-&amp;gt;set_extension
    EXPORTING
      extension  = 99999
    EXCEPTIONS
      cntl_error = 1
      OTHERS     = 2.


* Create ALV grids
  CREATE OBJECT mo_grid
    EXPORTING
      i_parent          = mo_docking
    EXCEPTIONS
      others            = 5.
  IF sy-subrc NE 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  CALL METHOD set_handler( ).

endmethod.
&lt;/CODE&gt;&lt;/PRE&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, 22 Apr 2010 08:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-check-changed-data/m-p/6803480#M1467806</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-04-22T08:22:51Z</dc:date>
    </item>
  </channel>
</rss>

