<?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: Drill down in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810029#M347343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After ALV print...write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form handle_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;  case r_ucomm.&lt;/P&gt;&lt;P&gt;    when '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;  case rs_selfield-FIELDNAME.&lt;/P&gt;&lt;P&gt;     when 'MATNR'.&lt;/P&gt;&lt;P&gt;       set parameter id 'MAT' field rs_selfield-value.&lt;/P&gt;&lt;P&gt;       call transaction 'MD04' and skip first screen.&lt;/P&gt;&lt;P&gt;   endcase.&lt;/P&gt;&lt;P&gt;   endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Dec 2006 15:08:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-20T15:08:34Z</dc:date>
    <item>
      <title>Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810026#M347340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I made a simple alv-grid from an internat table.&lt;/P&gt;&lt;P&gt;In one of the columns I have the number of the order (ekpo-ebeln).&lt;/P&gt;&lt;P&gt;What I have to do in order to open the transaction ME5A with a double-click on the field od the number of the order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810026#M347340</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-12-20T15:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810027#M347341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


* Global ALV Data Declarations
type-pools: slis.

* Internal Tables
data: begin of itab occurs 0,
      matnr type mara-matnr,
      maktx type makt-maktx,
      end of itab.

start-of-selection.

  perform get_data.
  perform call_alv.

*********************************************************************
*      Form  GET_DATA
*********************************************************************
form get_data.

  select mara~matnr makt~maktx
          into corresponding fields of table itab
               from mara
                 inner join makt
                  on mara~matnr = makt~matnr
                             up to 20 rows.

endform.

************************************************************************
*  CALL_ALV
************************************************************************
form call_alv.

  data: ifc type slis_t_fieldcat_alv.
  data: xfc type slis_fieldcat_alv.
  data: repid type sy-repid.

  repid = sy-repid.

  clear xfc. refresh ifc.

  clear xfc.
  xfc-reptext_ddic = 'Material Number'.
  xfc-fieldname    = 'MATNR'.
  xfc-tabname      = 'ITAB'.
  xfc-outputlen    = '18'.
  append xfc to ifc.

  clear xfc.
  xfc-reptext_ddic = 'Material Description'.
  xfc-fieldname    = 'MAKTX'.
  xfc-tabname      = 'ITAB'.
  xfc-outputlen    = '40'.
  append xfc to ifc.

* Call ABAP List Viewer (ALV)
  call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
            i_callback_program      = repid
            i_callback_user_command = 'HANDLE_USER_COMMAND'
            it_fieldcat             = ifc
       tables
            t_outtab                = itab.

endform.

***********************************************************************
*       FORM handle_User_Command                                      *
***********************************************************************
form handle_user_command using r_ucomm     like sy-ucomm
                               rs_selfield type slis_selfield.

  case r_ucomm.
    when '&amp;amp;IC1'.

    case rs_selfield-FIELDNAME.
      when 'MATNR'.
         set parameter id 'MAT' field rs_selfield-value.
         call transaction 'MD04' and skip first screen.


      endcase.


  endcase.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810027#M347341</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-20T15:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810028#M347342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;1. Function module to display the ALV report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
    I_CALLBACK_PROGRAM                = W_REPID
    I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
    I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'


2.. In the USER_COMMAND subroutine FM of ur ALV GRID Display 

      FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
                      DATA : L_REP_MODE.                "report mode
                       CASE P_UCOMM.
                   *when double clicked on ALV grid , report id is passed to transaction
                       WHEN '&amp;amp;IC1'.    "Double click
                            CALL TRANSACRION 'ME5A'.

                      ENDCASE.
        ENDFORM&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810028#M347342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T15:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810029#M347343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After ALV print...write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form handle_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;  case r_ucomm.&lt;/P&gt;&lt;P&gt;    when '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;  case rs_selfield-FIELDNAME.&lt;/P&gt;&lt;P&gt;     when 'MATNR'.&lt;/P&gt;&lt;P&gt;       set parameter id 'MAT' field rs_selfield-value.&lt;/P&gt;&lt;P&gt;       call transaction 'MD04' and skip first screen.&lt;/P&gt;&lt;P&gt;   endcase.&lt;/P&gt;&lt;P&gt;   endcase.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810029#M347343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810030#M347344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how i can pass the paramenter banfn in order to view immediately the details?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810030#M347344</guid>
      <dc:creator>former_member579227</dc:creator>
      <dc:date>2006-12-20T15:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810031#M347345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;befor using the CALL TRANSACTION statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID 'BAN' field &amp;lt;ur field value here&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810031#M347345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-20T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810032#M347346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is a report program, you can use the SUBMIT statement and simply pass the BANFN value to the select-option like so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
submit RM06BA00
          with BA_BANFN-LOW = VALUE
                   and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810032#M347346</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-20T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drill down</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810033#M347347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it would look something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


  case r_ucomm.
    when '&amp;amp;IC1'.
 
    case rs_selfield-FIELDNAME.
      when 'BANFN'.

 submit RM06BA00
          with BA_BANFN-LOW = rs_selfield-value
                   and return.

 
      endcase.
 
 
  endcase.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2006 15:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drill-down/m-p/1810033#M347347</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-20T15:32:54Z</dc:date>
    </item>
  </channel>
</rss>

