<?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 problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420326#M201836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to handle this in ALV's using objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1 Handle double click&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;a) Set the grid to handle double click event.&lt;/P&gt;&lt;P&gt;b) This will give the selected record no.  Read the table with first internal table with this index.&lt;/P&gt;&lt;P&gt;c) Based on this perpare 2 internal table and finally display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2 Handle user_command&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;a) Set the grid to handle user command event.&lt;/P&gt;&lt;P&gt;b) Use method get_selected_rows, to get the selected records and then read the 1st internal table&lt;/P&gt;&lt;P&gt;c) Based on this perpare 2 internal table and finally display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 10:28:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-14T10:28:57Z</dc:date>
    <item>
      <title>alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420322#M201832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai any one please tell the logic for the alv interactive report.&lt;/P&gt;&lt;P&gt;i have created two internal tables and one for first list and another for secondary list so when i click on to the first list(alv) then go to secondary list(alv) give logic here ..&lt;/P&gt;&lt;P&gt;i checked some logics from internet they give some sy-ucomm in perform statment...and they can assign some trasaction why they r giving to the ABAP programing i don't know please give only that code which is entering in to scondary list... and detailes description also....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420322#M201832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420323#M201833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this code.&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      = IT_VARIANT-REPORT&lt;/P&gt;&lt;P&gt;            I_CALLBACK_TOP_OF_PAGE  = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;            I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;            IT_FIELDCAT             = IT_FIELDCAT&lt;/P&gt;&lt;P&gt;            I_SAVE                  = 'A'&lt;/P&gt;&lt;P&gt;            IS_VARIANT              = IT_VARIANT&lt;/P&gt;&lt;P&gt;            IT_SORT                 = IT_SORT&lt;/P&gt;&lt;P&gt;            IT_EVENTS               = IT_EVENTS&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            T_OUTTAB                = G_T_OUTTAB&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;----&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;      FORM user_command                                             *&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;      ........                                                      *&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;  DATA: REPORT LIKE SY-REPID,&lt;/P&gt;&lt;P&gt;        CODE LIKE SY-UCOMM.&lt;/P&gt;&lt;P&gt;  REPORT = SY-REPID.&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      = IT_VARIANT-REPORT&lt;/P&gt;&lt;P&gt;            I_CALLBACK_TOP_OF_PAGE  = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;            I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;            IT_FIELDCAT             = IT_FIELDCAT&lt;/P&gt;&lt;P&gt;            I_SAVE                  = 'A'&lt;/P&gt;&lt;P&gt;            IS_VARIANT              = IT_VARIANT&lt;/P&gt;&lt;P&gt;            IT_SORT                 = IT_SORT&lt;/P&gt;&lt;P&gt;            IT_EVENTS               = IT_EVENTS&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;            T_OUTTAB                = G_T_OUTTAB2&amp;lt;/b&amp;gt;&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;ENDFORM.&lt;/P&gt;&lt;P&gt;If usefule reward points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420323#M201833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420324#M201834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in case of ALV u have to use User_commands and Events.&lt;/P&gt;&lt;P&gt;  check r_ucomm = '&amp;amp;IC1'.             "User Double Clicked on Some field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check not rs_selfield-value is initial.&lt;/P&gt;&lt;P&gt;  sort itab by werks.&lt;/P&gt;&lt;P&gt;  case rs_selfield-fieldname.&lt;/P&gt;&lt;P&gt;    when 'AURNR'.&lt;/P&gt;&lt;P&gt;    read table  final index rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;    perform display_alv1 using ptab.&lt;/P&gt;&lt;P&gt;   endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420324#M201834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420325#M201835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi suganya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There are some parameters&lt;/P&gt;&lt;P&gt;in the FM which are passed,&lt;/P&gt;&lt;P&gt;and a new FORM has to be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just copy paste this code in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will display list of company.&lt;/P&gt;&lt;P&gt;On double-clicking on the alv,&lt;/P&gt;&lt;P&gt;it will again display the clicked company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important code has been marked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ITAB LIKE T001 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : PTAB LIKE T001 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Select Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------- Field Catalogue&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_program_name         = sy-repid&lt;/P&gt;&lt;P&gt;    i_internal_tabname     = 'ITAB'&lt;/P&gt;&lt;P&gt;    i_inclname             = sy-repid&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    ct_fieldcat            = alvfc&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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    it_fieldcat             = alvfc&lt;/P&gt;&lt;P&gt;    i_callback_program      = sy-repid "&amp;lt;-------Important&lt;/P&gt;&lt;P&gt;    i_callback_user_command = 'ITAB_USER_COMMAND' "&amp;lt;------ Important&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                = itab&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL BACK FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE&lt;/P&gt;&lt;P&gt;slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE itab INDEX whatrow-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM t001 INTO TABLE Ptab&lt;/P&gt;&lt;P&gt;  WHERE BUKRS = ITAB-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ALVFC.&lt;/P&gt;&lt;P&gt;  REFRESH ALVFC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------- Field Catalogue&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_program_name         = sy-repid&lt;/P&gt;&lt;P&gt;      i_internal_tabname     = 'PTAB'&lt;/P&gt;&lt;P&gt;      i_inclname             = sy-repid&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      ct_fieldcat            = alvfc&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;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_fieldcat   = alvfc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab      = Ptab&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "ITAB_user_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420325#M201835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420326#M201836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to handle this in ALV's using objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1 Handle double click&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;a) Set the grid to handle double click event.&lt;/P&gt;&lt;P&gt;b) This will give the selected record no.  Read the table with first internal table with this index.&lt;/P&gt;&lt;P&gt;c) Based on this perpare 2 internal table and finally display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2 Handle user_command&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;a) Set the grid to handle user command event.&lt;/P&gt;&lt;P&gt;b) Use method get_selected_rows, to get the selected records and then read the 1st internal table&lt;/P&gt;&lt;P&gt;c) Based on this perpare 2 internal table and finally display&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 10:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420326#M201836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T10:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: alv problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420327#M201837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THNK U VERU MUCH FOR ALLL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 13:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/1420327#M201837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T13:49:45Z</dc:date>
    </item>
  </channel>
</rss>

