<?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: Adding Text objects to ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714498#M312364</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 the class CL_GUI_TEXTEDIT and using container in module pool you can have a running text into it. there are GET_SELECTED_TEXT_AS_R3TABLE and SET_SELECTED_TEXT_AS_R3TABLE methods, by which you can send the contents of internal table to Text area and read the contents from text area and place it in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manohar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2006 16:02:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-20T16:02:30Z</dc:date>
    <item>
      <title>Adding Text objects to ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714496#M312362</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;  My another requirement is need to add 3 bottons(Material, Asset, Equipment) in the menu and user will select a row in the alv and click a button to enter text. A pop up screen should appear to user input. User should allow to enter test for each row. If text already exists to a row should show up the text in the popup screen text area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to do this but I saw this on some SAP Plant maintanance screens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 20:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714496#M312362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T20:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text objects to ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714497#M312363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say text for each row, I am assuming that you want to maintain some long text for each row and this long text is different for Material, Asset and Equipment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, here is my design for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You will have a table with some data that you are showing in the ALV, right?&lt;/P&gt;&lt;P&gt;2. This ALV will also have a Key field.&lt;/P&gt;&lt;P&gt;3. Now, create another internal table with the following structure to store the texts. This will be a nested internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key field of the ALV&lt;/P&gt;&lt;P&gt;Text table for Material&lt;/P&gt;&lt;P&gt;Text table for Asset&lt;/P&gt;&lt;P&gt;Text table for Equipment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This text table, will be usually of type T_LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now, that this is done, when the buttons are clicked, you would know which row has been selected ( I am assuming that you are handling the User Command event). So, that means you know the key field of the row selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Use the key field value to read the TEXT table to see if the column (based on which button has been clicked) has the data or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Design a popup screen, with a TEXT EDIT control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Use the text retrieved and populate the text edit control, while calling the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. If the user changes the data, you can capture that and update the text table with the new text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Finally when the user presses save, all the changed data should be saved to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not dealing with long text, it will be just a additional column in the ALV, and I dont think a popup will be required to enter the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 03:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714497#M312363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T03:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Text objects to ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714498#M312364</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 the class CL_GUI_TEXTEDIT and using container in module pool you can have a running text into it. there are GET_SELECTED_TEXT_AS_R3TABLE and SET_SELECTED_TEXT_AS_R3TABLE methods, by which you can send the contents of internal table to Text area and read the contents from text area and place it in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manohar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 16:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-text-objects-to-alv/m-p/1714498#M312364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T16:02:30Z</dc:date>
    </item>
  </channel>
</rss>

