<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996038#M707717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to impelement one USER_COMMAND perfomr which can handel this &lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in FM &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REUSE_ALV_LIST_DISPLAY

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form user_command should be like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
             RS_SELFIELD TYPE SLIS_SELFIELD.

  SET PARAMETER ID 'MAT' FIELD RS_SELFIELD-value.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 15:09:49 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-14T15:09:49Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996035#M707714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed an alv report and my problem is a pretty simple one. When the output is being displayed, what needs to be done is when I click on the material number, it should go to MM03.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CLEAR fieldcat.
  fieldcat-fieldname     = 'MATNR'.
  fieldcat-tabname       = 'HEADER'.
  fieldcat-ref_tabname   = 'MARA'.
  fieldcat-hotspot = 'X'.
  APPEND fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this, but nothing is happening. Can you suggest me what needs to be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996035#M707714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996036#M707715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show your whole code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996036#M707715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996037#M707716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE itab INDEX selfield-tabindex&lt;/P&gt;&lt;P&gt;INTO wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;Set parameter id 'MAT' field selfield-value.&lt;/P&gt;&lt;P&gt;Call transaction 'MM03' and skip first screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for helpful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Satish Panakala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996037#M707716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996038#M707717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to impelement one USER_COMMAND perfomr which can handel this &lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in FM &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REUSE_ALV_LIST_DISPLAY

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form user_command should be like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
             RS_SELFIELD TYPE SLIS_SELFIELD.

  SET PARAMETER ID 'MAT' FIELD RS_SELFIELD-value.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.

ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996038#M707717</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-14T15:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996039#M707718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar, you will need to create an 'AT LINE-SELECTION' statement.  All statements under this statement will be executed upon double clicking the line in question.  I usually put the 'AT LINE-SELECTION' statement just before the 'END-OF-SELECTION' statement.  You can also use the 'HOTSPOT ON' option with your write statement for the material number.  This will allow the user to single click the material which will invoke the 'AT LINE-SELECTION'  event.  Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996039#M707718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996040#M707719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Atish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant paste my whole code here. Its 3900 lines, so i dont think it will be of much help to paste my code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All others,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am actually confused as to how to implement each of your suggestions. Can you give me an example which i can look into and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your answers&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996040#M707719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996041#M707720</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;In that case I think you should look at the sample code of Naimesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:20:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996041#M707720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996042#M707721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks man, it works. But the problem is if I double click on any line, say I click on plant(001) it still goes to MM03 and says material 001 doesnt exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we restrict our selection only to the material number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996042#M707721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996043#M707722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put one condition in USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
             RS_SELFIELD TYPE SLIS_SELFIELD.

* case r_ucomm.
*  when '&amp;amp;IC1'.   " &amp;lt;&amp;lt; code for double click
 IF RS_SELFIELD-fieldname = 'ITAB-MATNR' .   "&amp;lt;&amp;lt; your field name for material
  SET PARAMETER ID 'MAT' FIELD RS_SELFIELD-value.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
 endif.
*endcase.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996043#M707722</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-14T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996044#M707723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2996044#M707723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:41:34Z</dc:date>
    </item>
  </channel>
</rss>

