<?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: Editable ALV. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212948#M1377976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhinav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain why do you need an ALV in first place to show the employee details for an employee?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a second thought, I think your requirement is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You execute the report. A screen comes up with a blank ALV. The user then adds a blank record to it using some ALV button. In this blank record, only emp_number field will be editable. In this record, the user enters the employee number and press enter and then the other two fields get filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? I would then tell you how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Oct 2009 05:53:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-17T05:53:44Z</dc:date>
    <item>
      <title>Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212947#M1377975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on editable alv using cl_gui_alv_grid. I have got a requirement which goes something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when we execute the report then in display nothing will shown, but when the user will enter something in the display,&lt;/P&gt;&lt;P&gt;then it will fetch the corresponding data and will show in the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example : &lt;/P&gt;&lt;P&gt;The alv has following fields :&lt;/P&gt;&lt;P&gt;emp number, emp name and emp_budget, when the user will enter the emp_number and press enter then it will get thr corresponding name and budget from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can you give me suggestion about how can I do it and what methods and events will be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any kind of help will be really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhnab Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 05:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212947#M1377975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212948#M1377976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhinav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain why do you need an ALV in first place to show the employee details for an employee?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a second thought, I think your requirement is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You execute the report. A screen comes up with a blank ALV. The user then adds a blank record to it using some ALV button. In this blank record, only emp_number field will be editable. In this record, the user enters the employee number and press enter and then the other two fields get filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that correct? I would then tell you how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 05:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212948#M1377976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T05:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212949#M1377977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALV is clients requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your interpretation of the requirement is absolutely correct.&lt;/P&gt;&lt;P&gt;Can you please tell me how to do it??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 05:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212949#M1377977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T05:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212950#M1377978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok. If this is the requirement, you need to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets assume, the output internal table associated with ALV is gt_outtab.&lt;/P&gt;&lt;P&gt;1. In the field catalog, set the emp_number field as editable.&lt;/P&gt;&lt;P&gt;2. Add a button, for adding an empty record to gt_outtab, in the ALV toolbar. You can handle the event raised when the user presses this button in the handler of event "user_command".&lt;/P&gt;&lt;P&gt;In this handler, simply ADD INITIAL LINE TO gt_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For adding the button, you would need event "toolbar".&lt;/P&gt;&lt;P&gt;3. Make the following call to make the ALV editable.&lt;/P&gt;&lt;P&gt;    CALL METHOD lo_grid-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_ready_for_input = 1.&lt;/P&gt;&lt;P&gt;4. To enable the ALV react on user pressing "Enter", make the following call.&lt;/P&gt;&lt;P&gt;  CALL METHOD lo_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;5. After the user presses "Enter" after entering the employee number in the newly created record, you can you the "data_changed" event to validate the user input, say employee number and then fill the other two fields in event "data_changed_finished" event. Both these events will be called one after the other when the user will press "Enter".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;P&gt;[How2SAP.com|http://www.how2sap.com/]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 06:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212950#M1377978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212951#M1377979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the useful information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can  please explain your POINT 5, it would be really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhinab Mishra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 06:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212951#M1377979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-17T06:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212952#M1377980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the demo programs with BCALV_EDIT* available in SAP which might be quite useful in understand programming with ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2009 13:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212952#M1377980</guid>
      <dc:creator>anusurbab</dc:creator>
      <dc:date>2009-10-17T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212953#M1377981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem Solved !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 20:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv/m-p/6212953#M1377981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T20:29:04Z</dc:date>
    </item>
  </channel>
</rss>

