<?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 ...Logic required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107482#M105205</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;MAT and BES are the parameter id linked with the fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can see that like goto table mara example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on the dataelement &amp;gt; Goto Further Characteristics tab &amp;gt; in that u can seee the parameter id linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r using a transaction just do an F1 on the fieldname ex material no:  then press technical information button, u can see the parameter id at the bottom of the pop up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rss selfield name is the name that u r defining in the final internal table ex: i_output has matnr like mara-matnr, then that matnr is the selfield name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u specify as material like mara-matnr then material is the selfield name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u got clarified, else get back.&lt;/P&gt;&lt;P&gt;Reward ponts for those who helped to clarify u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can reward for the answers which ever helped u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2005 05:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-07T05:51:33Z</dc:date>
    <item>
      <title>ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107460#M105183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every body,&lt;/P&gt;&lt;P&gt;   I have one requirement like an alv report will display&lt;/P&gt;&lt;P&gt;output which contains a material number.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If i click On the material number it shud go to MM03...Accounting view&lt;/P&gt;&lt;P&gt;Logic required for this.&amp;lt;/b&amp;gt;I am a beginner ...Plz help me...&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: raja gurrala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107460#M105183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107461#M105184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when wver you double click on the material,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-ucomm will be &amp;amp;IC1.&lt;/P&gt;&lt;P&gt;so select the record from the ouput internal table .&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;call transaction 'MM03' and skip first screen.&lt;/P&gt;&lt;P&gt;tO select the record from the internal atble by using the RSSELFIELD.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107461#M105184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107462#M105185</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;See the code sample,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INCLUDE &amp;lt;icon&amp;gt;.
* Predefine a local class for event handling to allow the
* declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.

DATA : o_alvgrid          TYPE REF TO cl_gui_alv_grid ,
       o_dockingcontainer TYPE REF TO cl_gui_docking_container ,
       o_eventreceiver    TYPE REF TO lcl_event_receiver,
       wa_layout TYPE lvc_s_layo ,
       wa_variant TYPE disvariant.

CONSTANTS : c_a(1) TYPE c VALUE 'A' ,                     " All Layouts
            c_x(1) TYPE c VALUE 'X'.
CLASS lcl_event_receiver DEFINITION.

  PUBLIC SECTION.
    CLASS-METHODS:
* Hot Spot Click
       handle_hotspot
         FOR EVENT hotspot_click OF cl_gui_alv_grid
            IMPORTING e_row_id
                      e_column_id
                      es_row_no,
* Double Click
 handle_double_click
      FOR EVENT double_click OF cl_gui_alv_grid
          IMPORTING e_row
                    e_column
                    es_row_no,
ENDCLASS.                    "lcl_event_receiver DEFINITION
* Implementation
CLASS lcl_event_receiver IMPLEMENTATION.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Method handle_hotspot
*&amp;amp;---------------------------------------------------------------------*
* This method is called when the user clicks on a hotspot to drill down.
* The following types are exported from the ALV
* LVC_S_ROW
* LVC_S_COL
* LVC_S_ROID
*&amp;amp;---------------------------------------------------------------------*
  METHOD handle_hotspot.
* The hotspot processing coded in the form below.
    PERFORM f9900_handle_hotspot USING e_row_id
                                       e_column_id
                                       es_row_no.

  ENDMETHOD.                    "handle_hotspot
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Method handle_double_click
*&amp;amp;---------------------------------------------------------------------*
  METHOD handle_double_click.
* The double click processing should be coded in the form below.
    PERFORM f9901_handle_double_click USING e_row
                                            e_column
                                            es_row_no.

  ENDMETHOD.                    "HANDLE_DOUBLE_CLICK
FORM f9900_handle_hotspot  USING    p_row_id
                                    p_column_id
                                    p_row_no.

*Read internal table for proper value.
  READ TABLE  i_output
              INDEX p_row_id
              INTO wa_output.
* Call the transaction MMBE
  SET PARAMETER ID 'MAT' FIELD wa_output-matnr.
  CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
ENDFORM.                    " f9900_handle_hotspot
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  f9901_handle_double_click
*&amp;amp;---------------------------------------------------------------------*
*       Double Click
*----------------------------------------------------------------------*
FORM f9901_handle_double_click  USING    p_row
                                         p_column
                                         p_row_no.

  READ TABLE i_output INDEX p_row INTO wa_output.

  CASE p_column.
    WHEN 'MATNR'.
      IF NOT wa_output-matnr IS INITIAL.
        SET PARAMETER ID 'MAT' FIELD wa_output-matnr.
        CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
      ENDIF.
  ENDCASE.
ENDFORM.                    " f9901_handle_double_click
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use either hot spot or double click event.&lt;/P&gt;&lt;P&gt;If u r using hotspot set the hotspot = 'X' in fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR another method without oops concept&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.
data:lv_matnr    LIKE v_mmim_lc-matnr,   "Material
read table i_output into w_output index rs_selfield-tabindex.
lv_matnr = w_output-matnr.
SET PARAMETER ID 'MAT' FIELD lv_matnr.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
Clear:     lv_matnr.
ENDFORM.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
*   I_INTERFACE_CHECK                 = ' '
*   I_BYPASSING_BUFFER                =
*   I_BUFFER_ACTIVE                   = ' '
     i_callback_program                = v_repid
     i_callback_pf_status_set          = 'SET_PF_STATUS'
&amp;lt;b&amp;gt;     i_callback_user_command           = 'USER_COMMAND'&amp;lt;/b&amp;gt;
     i_background_id        = 'ALV_BACKGROUND'
    IS_LAYOUT               = I_LAYOUT
    it_fieldcat             = i_fieldcat "field catalog
   I_SAVE                   = 'A'
   IS_VARIANT               = G_VARIANT
    TABLES
        t_outtab                       = i_output "output table
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if this helps u, revert back with queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107462#M105185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107463#M105186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MCG thanks for ur reply.&lt;/P&gt;&lt;P&gt;what is &amp;amp;1C1?&lt;/P&gt;&lt;P&gt;I am not aware of this RSSSelf field..?&lt;/P&gt;&lt;P&gt;can u just write this 4 lines of code for me..&lt;/P&gt;&lt;P&gt;I am using Fmodules..no class methods...&lt;/P&gt;&lt;P&gt;Plz explain in detail...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107463#M105186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107464#M105187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      IF SELFIELD-FIELDNAME = 'MATNR'.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107464#M105187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107465#M105188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM  "#EC *&lt;/P&gt;&lt;P&gt;                   SELFIELD TYPE SLIS_SELFIELD.             "#EC *&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      IF SELFIELD-FIELDNAME = 'MATNR'.&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;  endcase.&lt;/P&gt;&lt;P&gt;endform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107465#M105188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107466#M105189</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 u want to place a button in ur application toolbar and then by selecting a row fron ur grid and if u press that button it will call a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what MCG has explained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case u have to create a button by going to Screen Painter then give MAT or like &amp;amp;1C1 as he told for the button function code.&lt;/P&gt;&lt;P&gt;Then give a description by double clicking that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the PAI of ur screen&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE user_command_9001 INPUT.

* For getting the row selected
  REFRESH i_fieldrows.
  CALL METHOD o_alvgrid-&amp;gt;get_selected_rows
    IMPORTING
      et_index_rows = i_fieldrows.

  LOOP AT i_fieldrows INTO wa_fieldrows.
    READ TABLE i_output INTO wa_output INDEX wa_fieldrows-index.
  ENDLOOP.

  CASE sy-ucomm.
    WHEN 'MAT'.
      IF NOT wa_output-matnr IS INITIAL.
        SET PARAMETER ID 'MAT' FIELD wa_output-matnr.
        CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
      ENDIF.
    WHEN OTHERS.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9001  INPUT

Also u can create button by double clicking the YSTATUS.
MODULE  status_9001 OUTPUT.

  IF o_dockingcontainer IS INITIAL.
    SET PF-STATUS &amp;lt;b&amp;gt;'YSTATUS'.&amp;lt;/b&amp;gt;
    SET TITLEBAR  'YTITLE'.
*   Creating Object
    PERFORM f9000_objects_create.
*   Building the field catalog
    PERFORM f9001_build_field_cat TABLES i_fieldcat
                            USING 'MARC'.
*   Modifying the field catalog
    PERFORM f9002_modify_field_cat TABLES i_fieldcat.
*   For Layout
    PERFORM f9003_layout USING sy-title 'X' 'B' 'X' .
*   To display output
    PERFORM f9004_display_data TABLES i_output
                                      i_fieldcat.
  ENDIF.

ENDMODULE.                 " STATUS_9001  OUTPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u dont want Class then &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.
data:lv_matnr    LIKE v_mmim_lc-matnr,   "Material
read table i_output into w_output index rs_selfield-tabindex.
lv_matnr = w_output-matnr.
SET PARAMETER ID 'MAT' FIELD lv_matnr.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .
Clear:     lv_matnr.
ENDFORM.
 
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
*   I_INTERFACE_CHECK                 = ' '
*   I_BYPASSING_BUFFER                =
*   I_BUFFER_ACTIVE                   = ' '
     i_callback_program                = v_repid
&amp;lt;b&amp;gt;     i_callback_pf_status_set          = 'SET_PF_STATUS'
     i_callback_user_command           = 'USER_COMMAND'&amp;lt;/b&amp;gt;
     i_background_id        = 'ALV_BACKGROUND'
    IS_LAYOUT               = I_LAYOUT
    it_fieldcat             = i_fieldcat "field catalog
   I_SAVE                   = 'A'
   IS_VARIANT               = G_VARIANT
    TABLES
        t_outtab                       = i_output "output table
   EXCEPTIONS
     program_error                     = 1
     OTHERS                            = 2
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Judith Jessie Selvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107466#M105189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107467#M105190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   It is quite obvous that when you click the matnr field in alv diplay, MM03 will be called and probably you will want that Material Number to be set in that MM03 screen field..thats why you were told to track on User command &amp;amp;IC1 and get the value from RS_SELFFEILD-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r-ucomm = '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;    set parameter ID 'MAT' field RS_SELFIELD-value.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'MM03'.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must set the hotspot attribute of matnr field in alv display, while creating the field-catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write this code snippet to handle the hotspot click, in user_command module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107467#M105190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107468#M105191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Judith,&lt;/P&gt;&lt;P&gt;I think almost i got the solution.&lt;/P&gt;&lt;P&gt;How this Fmodule 'USER_COMMAND' gets called.&lt;/P&gt;&lt;P&gt;what we need to declare in the progtam?&lt;/P&gt;&lt;P&gt;what i_ouput meant for ?&lt;/P&gt;&lt;P&gt;Plz explain the procedure ...How the process goes..so that i can understand better..&lt;/P&gt;&lt;P&gt;My requirement starts from ...clicking on the material number...explain from that point..&lt;/P&gt;&lt;P&gt;your answer will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107468#M105191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107469#M105192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;all function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program      = w_repid2&lt;/P&gt;&lt;P&gt;      i_grid_title            = w_title&lt;/P&gt;&lt;P&gt;      i_bypassing_buffer      = c_xflag_alv_flg&lt;/P&gt;&lt;P&gt;      i_grid_settings         = st_settings&lt;/P&gt;&lt;P&gt;      is_layout               = st_layout&lt;/P&gt;&lt;P&gt;      it_sort                 = it_sort&lt;/P&gt;&lt;P&gt;      it_fieldcat             = it_fieldcat&lt;/P&gt;&lt;P&gt;      it_events               = it_events&lt;/P&gt;&lt;P&gt;      i_callback_user_command = 'user_comand'&lt;/P&gt;&lt;P&gt;      i_default               = c_xflag_alv_flg&lt;/P&gt;&lt;P&gt;      i_save                  = c_aflag_alv_flg&lt;/P&gt;&lt;P&gt;      is_variant              = w_variant2&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                = it_alv_data&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error           = 1&lt;/P&gt;&lt;P&gt;      others                  = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;When ever we call the alv list display function module the function module call the form user_command.&lt;/P&gt;&lt;P&gt;If the form user_command you write the code for calling the 'MM03'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107469#M105192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107470#M105193</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;The form user-command gets called explicitly when any action takes place, that is when u click on the material number this will automatically calls the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the reuse FM dont forget to call User_command.&lt;/P&gt;&lt;P&gt;This will call the form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_output is nothing but ur final internal table that is getting displayed in ur output grid.&lt;/P&gt;&lt;P&gt;U might be havibng some differnt name then u can use that where ever needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get back if any further queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107470#M105193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107471#M105194</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;Thanks to all of u.&lt;/P&gt;&lt;P&gt;Ucomm = &amp;amp;1C1 like that..know&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I had one more requirement like..&lt;/P&gt;&lt;P&gt;If i click on the PO number if shud goto ME23...&amp;lt;/b&amp;gt;what is the UCOMM code for this???&lt;/P&gt;&lt;P&gt;Your answers will be appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107471#M105194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107472#M105195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ucomm is nothing but the function code u r giving.Eg. In pf-status u r writing code to exit from the program then u will pass that to ucomm = 'EXIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same and note the mandatory fields for the transaction then find the parameter-id for the mandt fields and then call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have two fields mandt then &lt;/P&gt;&lt;P&gt;for eg: this will call MD04&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    WHEN 'MATNR'.
      IF NOT wa_output-matnr IS INITIAL.
        SET PARAMETER ID 'MAT' FIELD wa_output-matnr.
        SET PARAMETER ID 'WRK' FIELD wa_output-werks.
        CALL TRANSACTION 'MD04' AND SKIP FIRST SCREEN .
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly u can proceed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107472#M105195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107473#M105196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SELFIELD-SEL_TAB_FIELD = 'IT_PO_DATA-EBELN'.&lt;/P&gt;&lt;P&gt;        READ TABLE IT_PO_DATA INDEX SELFIELD-TABINDEX.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'BES' FIELD it_po_data-ebeln.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;  enidif&lt;/P&gt;&lt;P&gt;here also sy-ucomm is '&amp;amp;IC1'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107473#M105196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107474#M105197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USER_COMMAND is not a function module but it is a routine that you have to define in your program. When the ALV is displayed, any user action on the ALV grid will trigger this routine and the control comes to you to do whatever you want to do. In this routine you will write the logic that others have provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, your USER_COMMAND routine should look something like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form user_command using ucomm    like sy-ucomm
                        selfield type slis_selfield.

  data: l_line like myalvitab,
        l_matnr like mara-matnr.

  read table myalvitab index selfield-tabindex
                             into l_line.
  move myalvitab-matnr to l_matnr.
  case ucomm.
    when 'DSP_MAT'.
*-- Set the parameter ID for the material
    set parameter id 'MAT' field l_matnr.

    call transaction 'MM03' and skip first screen.

endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 04:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107474#M105197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T04:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107475#M105198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;srinivas,&lt;/P&gt;&lt;P&gt;Thanks for ur clarification.&lt;/P&gt;&lt;P&gt;I confused with Fcode...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Some body telling '&amp;amp;1c1' n u ...'DSP_MAT'&lt;/P&gt;&lt;P&gt;what is this where did i get this Fcode?&amp;lt;/b&amp;gt;I had one more requirement ...&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF i click on PO number ..which is shown in output ..it should display ME23 screen...what is the Fcode for this?&lt;/P&gt;&lt;P&gt;I am Novice..plz help me.&amp;lt;/b&amp;gt;Dont mind if this is simple issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107475#M105198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107476#M105199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, when you are calling the ALV grid function module, are you giving any PF-STATUS? You will do this by passing a routine name to this parameter of the function module I_CALLBACK_PF_STATUS_SET, In this routine, you will set your own PF-STATUS. You can define your own menu options and buttons in this case, but then you will not be able to use the standard ALV functions. In my example, I was talking about a scenario where I use my own function key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see '&amp;amp;1C1', that means they are assuming you are using standard ALV function code for double click. Assuming you are not setting your own menu, you should use this code for UCOMM not the custom one that I mentioned. For displaying a PO you will do exactly as you did in the material display case, but you will set the parameter BES instead of MAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know exactly which field the user double clicked, you will have that information in the field FIELDNAME of the parameter selfield(type slis_selfield).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107476#M105199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107477#M105200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is small code for you -&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;REPORT ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS SLIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA FLCAT TYPE SLIS_T_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;DATA WA LIKE LINE OF FLCAT .&lt;/P&gt;&lt;P&gt;TABLES MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA I_MARA LIKE MARA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *  UP TO 10 ROWS INTO TABLE I_MARA FROM MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_STRUCTURE_NAME             = 'MARA'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    CT_FIELDCAT                  = FLCAT&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   INCONSISTENT_INTERFACE       = 1&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                = 2&lt;/P&gt;&lt;P&gt;   OTHERS                       = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;LOOP AT FLCAT INTO WA WHERE FIELDNAME = 'MATNR'.&lt;/P&gt;&lt;P&gt;  WA-HOTSPOT = 'X'.&lt;/P&gt;&lt;P&gt;  MODIFY FLCAT FROM WA.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   I_CALLBACK_PROGRAM                = 'ZTEST34'&lt;/P&gt;&lt;P&gt;   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;   IT_FIELDCAT                       = FLCAT&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    T_OUTTAB                          = I_MARA&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   PROGRAM_ERROR                     = 1&lt;/P&gt;&lt;P&gt;   OTHERS                            = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;UCOMM      text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;SELFIELD   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM&lt;/P&gt;&lt;P&gt;SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;      IF SELFIELD-FIELDNAME = 'MATNR'.&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;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "USER_COMMAND&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is for material &amp;amp; MM03. Now if you want to have hotspot on your PO number field , you will have to modify your field catalog for the corresponding field i.e. EBELN. In your field catalog you should have EBELN.&lt;/P&gt;&lt;P&gt; Then in routine USER_COMMAND -&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;     IF SELFIELD-FIELDNAME = 'EBELN'.&lt;/P&gt;&lt;P&gt;        SET PARAMETER ID 'BES' FIELD SELFIELD-VALUE.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;      ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107477#M105200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107478#M105201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont confuse with fcode  &lt;/P&gt;&lt;P&gt;do simply as below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm LIKE sy-ucomm
                  rs_selfield TYPE slis_selfield.

read table i_output into w_output index rs_selfield-tabindex.
lv_matnr = w_output-matnr.
IF SELFIELD-FIELDNAME = 'MATNR'.
SET PARAMETER ID 'MAT' FIELD lv_matnr.
CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN .

lv_ebeln = w_output-ebeln.
ELSEIF SELFIELD-FIELDNAME = 'EBELN'.
SET PARAMETER ID 'BES' FIELD lv_ebeln.
CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.
ENDIF.

Clear:     lv_matnr, lv_ebeln.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107478#M105201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV ...Logic required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107479#M105202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks i got clarification about Fcode..&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Then what abt this 'MAT' for material number..and &lt;/P&gt;&lt;P&gt;'BES' for PO...How do u know abt this?&lt;/P&gt;&lt;P&gt;RSS selffield name is always matnr , EBEln...?&lt;/P&gt;&lt;P&gt;depends on final itab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: raja gurrala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2005 05:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-logic-required/m-p/1107479#M105202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-07T05:44:41Z</dc:date>
    </item>
  </channel>
</rss>

