<?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-SELFIELD in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720438#M1108395</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;Guys, my code is working fine. When I click on variables i printed on top_of_page, I'm able to catch fieldname and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when i select values in the list display (values from i_out used in ALV function module) i'm NOT getting field name. I'm getting value, tablename and index.&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;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2008 08:19:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-05T08:19:21Z</dc:date>
    <item>
      <title>ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720432#M1108389</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;I'm creating an interactive ALV list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on a column, I need to capture the filedname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form call_ucommand                    &lt;/P&gt;&lt;P&gt;     using ucomm     like sy-ucomm         &lt;/P&gt;&lt;P&gt;           selfield  type kkblo_selfield.  &lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;end from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i click on a column, i'm able to capture tablename, value and index (into selfield-tabname, selfield-value, selfield-tabindex), but i'm not getting field name. How come it's happening. Pls help me on this.&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;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 15:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720432#M1108389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T15:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720433#M1108390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rs_selfield-fieldname or rs_selfield-sel_tab_field should be the field name, look at rs_selfield-endsum and rs_selfield-sumindex if the cursor is on the total or a sub-total line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look for [samples at sdn|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=alv&lt;EM&gt;user_command&lt;/EM&gt;rs_selfield&amp;amp;cat=sdn_all].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 15:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720433#M1108390</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-11-04T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720434#M1108391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frn ,&lt;/P&gt;&lt;P&gt;  please follow this  code ,&lt;/P&gt;&lt;P&gt;  FORM DISPLAY_DOCUMENT USING R_UCOMM  LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;                            RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF RS_SELFIELD-FIELDNAME = 'VBELN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE T_ITAB INDEX  RS_SELFIELD-TABINDEX .&lt;/P&gt;&lt;P&gt; V_VBELN = T_ITAB-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_ITAB WHERE VBELN = V_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Move: T_ITAB-POSNR to T_ITAB1-POSNR  ,&lt;/P&gt;&lt;P&gt;         T_ITAB-MATNR to T_ITAB1-MATNR ,&lt;/P&gt;&lt;P&gt;         T_ITAB-MATKL to T_ITAB1-MATKL,&lt;/P&gt;&lt;P&gt;         T_ITAB-ARKTX to T_ITAB1-ARKTX  ,&lt;/P&gt;&lt;P&gt;         T_ITAB-PSTYV to T_ITAB1-PSTYV  ,&lt;/P&gt;&lt;P&gt;         T_ITAB-SPART to T_ITAB1-SPART ,&lt;/P&gt;&lt;P&gt;         T_ITAB-GSBER to T_ITAB1-GSBER ,&lt;/P&gt;&lt;P&gt;         T_ITAB-KWMENG to T_ITAB1-KWMENG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Append T_ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;  Priyank dixit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 17:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720434#M1108391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T17:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720435#M1108392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you have to write a subroutine lets its name be USER_COMMAND.&lt;/P&gt;&lt;P&gt;write the subroutine in the program.&lt;/P&gt;&lt;P&gt;like below given:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;...............&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and provide the subroutine name in the parameter USERCOMMAND of function module REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;So when user do some activity on ALV report then the program will come this subroutine.&lt;/P&gt;&lt;P&gt;And the structure RS_SELFIELD will have different information i.e. fieldname,index,and the selected field's value.&lt;/P&gt;&lt;P&gt;you can check it in debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 17:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720435#M1108392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T17:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720436#M1108393</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;If you still have the problem, share your Code.......FM call &amp;amp; the User_command Subroutine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 18:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720436#M1108393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T18:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720437#M1108394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;I guess the structure selfield-fieldname contains the fieldname  which the user has selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chidanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 18:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720437#M1108394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T18:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720438#M1108395</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;Guys, my code is working fine. When I click on variables i printed on top_of_page, I'm able to catch fieldname and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when i select values in the list display (values from i_out used in ALV function module) i'm NOT getting field name. I'm getting value, tablename and index.&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;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 08:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720438#M1108395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T08:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV-SELFIELD</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720439#M1108396</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;Finally I got the bug. I'm able to catch selfield-fieldname for varaiables i'm printing in top of page but couldn't when I double click on the rows of the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE SILLY REASON BEHIND THIS IS THE INTERNAL OUTPUT TABLE SHOULD BE DECLARED WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*I'm coding in SAP 3.1 version. This may be a drawback in that version. I don't think this would happen with SAP 4.7 and advanced versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 10:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-selfield/m-p/4720439#M1108396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-13T10:34:16Z</dc:date>
    </item>
  </channel>
</rss>

