<?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 INTERACTIVE ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997954#M708140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;how we call interactive alv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the main problem coming to call event user command?&lt;/P&gt;&lt;P&gt;how we call this event?&lt;/P&gt;&lt;P&gt;as i call it buts its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;form user_command r_ucomm like sy-ucomm&lt;/P&gt;&lt;P&gt;                              rs_selfield type slis_t_selfield_alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case r_ucomm&lt;/P&gt;&lt;P&gt;when 'IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewiseiknow each n everything thing bout tht &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but problem arise tht my simple alv i s running but user_command events doed not fire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please give me appropriate ALV example so tht i can overcome my problem fot INTERACTIVI ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Nov 2007 15:46:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-14T15:46:29Z</dc:date>
    <item>
      <title>INTERACTIVE ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997954#M708140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;how we call interactive alv?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the main problem coming to call event user command?&lt;/P&gt;&lt;P&gt;how we call this event?&lt;/P&gt;&lt;P&gt;as i call it buts its not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;form user_command r_ucomm like sy-ucomm&lt;/P&gt;&lt;P&gt;                              rs_selfield type slis_t_selfield_alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case r_ucomm&lt;/P&gt;&lt;P&gt;when 'IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewiseiknow each n everything thing bout tht &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but problem arise tht my simple alv i s running but user_command events doed not fire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so please give me appropriate ALV example so tht i can overcome my problem fot INTERACTIVI ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997954#M708140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: INTERACTIVE ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997955#M708141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see this sample code&lt;/P&gt;&lt;P&gt;report yh645_secndry_alv.&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: fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;fieldcat_ln like line of fieldcat,&lt;/P&gt;&lt;P&gt;fs_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;t_layoout like standard table&lt;/P&gt;&lt;P&gt;of fs_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of fs_spfli,&lt;/P&gt;&lt;P&gt;carrid type spfli-carrid,&lt;/P&gt;&lt;P&gt;connid type spfli-connid,&lt;/P&gt;&lt;P&gt;countryfr type spfli-countryfr,&lt;/P&gt;&lt;P&gt;cityfrom type spfli-cityfrom,&lt;/P&gt;&lt;P&gt;airpfrom type spfli-airpfrom,&lt;/P&gt;&lt;P&gt;countryto type spfli-countryto,&lt;/P&gt;&lt;P&gt;cityto type spfli-cityto,&lt;/P&gt;&lt;P&gt;airpto type spfli-airpto,&lt;/P&gt;&lt;P&gt;fltime type spfli-fltime,&lt;/P&gt;&lt;P&gt;deptime type spfli-deptime,&lt;/P&gt;&lt;P&gt;arrtime type spfli-arrtime,&lt;/P&gt;&lt;P&gt;distance type spfli-distance,&lt;/P&gt;&lt;P&gt;distid type spfli-distid,&lt;/P&gt;&lt;P&gt;fltype type spfli-fltype,&lt;/P&gt;&lt;P&gt;period type spfli-period,&lt;/P&gt;&lt;P&gt;checkbox,&lt;/P&gt;&lt;P&gt;color(3),&lt;/P&gt;&lt;P&gt;end of fs_spfli.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of fs_table,&lt;/P&gt;&lt;P&gt;carrid type spfli-carrid,&lt;/P&gt;&lt;P&gt;connid type spfli-connid,&lt;/P&gt;&lt;P&gt;end of fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of fs_sflight,&lt;/P&gt;&lt;P&gt;check,&lt;/P&gt;&lt;P&gt;color(3).&lt;/P&gt;&lt;P&gt;include type sflight.&lt;/P&gt;&lt;P&gt;data:end of fs_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;begin of fs_table1,&lt;/P&gt;&lt;P&gt;carrid type sflight-carrid,&lt;/P&gt;&lt;P&gt;connid type sflight-connid,&lt;/P&gt;&lt;P&gt;fldate type sflight-fldate,&lt;/P&gt;&lt;P&gt;end of fs_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;t_spfli like standard table&lt;/P&gt;&lt;P&gt;of fs_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;t_table like standard table&lt;/P&gt;&lt;P&gt;of fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;t_table1 like standard table&lt;/P&gt;&lt;P&gt;of fs_table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;t_sflight like standard table&lt;/P&gt;&lt;P&gt;of fs_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;t_sbook like standard table&lt;/P&gt;&lt;P&gt;of sbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t_layout type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_spfli&lt;/P&gt;&lt;P&gt;from spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform start_list_viewer.&lt;/P&gt;&lt;P&gt;perform get_spfli_details.&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 SUB1&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;RT_EXTAB 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;&lt;/P&gt;&lt;P&gt;form sub1 using rt_extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: flight type slis_extab.&lt;/P&gt;&lt;P&gt;flight-fcode = 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;append flight to rt_extab.&lt;/P&gt;&lt;P&gt;set pf-status 'SFLIGHT'. " EXCLUDING RT_EXTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "SUB1&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 START_LIST_VIEWER&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; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 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;&lt;/P&gt;&lt;P&gt;form start_list_viewer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: pgm like sy-repid.&lt;/P&gt;&lt;P&gt;pgm = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs_layout-box_fieldname = 'CHECKBOX'.&lt;/P&gt;&lt;P&gt;fs_layout-info_fieldname = 'COLOR'.&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;i_callback_program = pgm&lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'SUB1'&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;i_structure_name = 'SPFLI'&lt;/P&gt;&lt;P&gt;is_layout = fs_layout&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = t_spfli&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " START_LIST_VIEWER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******&lt;STRONG&gt;Process Call Back Events (Begin)&lt;/STRONG&gt;**************************&lt;/P&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;case ucomm.&lt;/P&gt;&lt;P&gt;when 'SFLIGHT'.&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;perform get_spfli_details.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from sflight&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_sflight&lt;/P&gt;&lt;P&gt;for all entries in t_table&lt;/P&gt;&lt;P&gt;where carrid eq t_table-carrid&lt;/P&gt;&lt;P&gt;and connid eq t_table-connid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform display_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SBOOK'.&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;perform get_sflight_details.&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from sbook&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_sbook&lt;/P&gt;&lt;P&gt;for all entries in t_table1&lt;/P&gt;&lt;P&gt;where carrid eq t_table1-carrid&lt;/P&gt;&lt;P&gt;and connid eq t_table1-connid&lt;/P&gt;&lt;P&gt;and fldate eq t_table1-fldate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform display_sbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;endform. "USER_COMMAND&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 SUB2&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;RT_EXTAB 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;&lt;/P&gt;&lt;P&gt;form sub2 using rt_extab type slis_t_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: flight type slis_extab.&lt;/P&gt;&lt;P&gt;flight-fcode = 'SBOOK'.&lt;/P&gt;&lt;P&gt;append flight to rt_extab.&lt;/P&gt;&lt;P&gt;set pf-status 'SBOOK'. " EXCLUDING RT_EXTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "SUB2&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 DISPLAY_SFLIGHT&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; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 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;&lt;/P&gt;&lt;P&gt;form display_sflight .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: pgm like sy-repid.&lt;/P&gt;&lt;P&gt;pgm = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_layout.&lt;/P&gt;&lt;P&gt;fs_layout-box_fieldname = 'CHECK'.&lt;/P&gt;&lt;P&gt;fs_layout-info_fieldname = 'COLOR'.&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;i_callback_program = pgm&lt;/P&gt;&lt;P&gt;i_callback_pf_status_set = 'SUB2'&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;i_structure_name = 'SFLIGHT'&lt;/P&gt;&lt;P&gt;is_layout = fs_layout&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = t_sflight&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endform. " DISPLAY_SFLIGHT&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 GET_SPFLI_DETAILS&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; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 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;&lt;/P&gt;&lt;P&gt;form get_spfli_details .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_spfli into fs_spfli.&lt;/P&gt;&lt;P&gt;if fs_spfli-checkbox = 'X'.&lt;/P&gt;&lt;P&gt;fs_spfli-color = 'C51'.&lt;/P&gt;&lt;P&gt;fs_spfli-checkbox = '1'.&lt;/P&gt;&lt;P&gt;fs_table-carrid = fs_spfli-carrid.&lt;/P&gt;&lt;P&gt;fs_table-connid = fs_spfli-connid.&lt;/P&gt;&lt;P&gt;append fs_table to t_table.&lt;/P&gt;&lt;P&gt;modify t_spfli from fs_spfli.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. " GET_SFLIGHT_DETAILS&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 GET_SFLIGHT_DETAILS&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; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 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;&lt;/P&gt;&lt;P&gt;form get_sflight_details .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_sflight into fs_sflight.&lt;/P&gt;&lt;P&gt;if fs_sflight-check = 'X'.&lt;/P&gt;&lt;P&gt;fs_sflight-color = 'C71'.&lt;/P&gt;&lt;P&gt;fs_sflight-check = '1'.&lt;/P&gt;&lt;P&gt;fs_table1-carrid = fs_sflight-carrid.&lt;/P&gt;&lt;P&gt;fs_table1-connid = fs_sflight-connid.&lt;/P&gt;&lt;P&gt;fs_table1-fldate = fs_sflight-fldate.&lt;/P&gt;&lt;P&gt;append fs_table1 to t_table1.&lt;/P&gt;&lt;P&gt;modify t_sflight from fs_sflight.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " GET_SFLIGHT_DETAILS&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 DISPLAY_SBOOK&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; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 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;&lt;/P&gt;&lt;P&gt;form display_sbook .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: pgm like sy-repid.&lt;/P&gt;&lt;P&gt;pgm = sy-repid.&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;i_callback_program = pgm&lt;/P&gt;&lt;P&gt;i_structure_name = 'SBOOK'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = t_sbook&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " DISPLAY_SBOOK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also see the links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=11601" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=11601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=23010" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=23010&lt;/A&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997955#M708141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: INTERACTIVE ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997956#M708142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you please post your code? It will help to find out the problem.&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;Bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 15:50:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997956#M708142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: INTERACTIVE ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997957#M708143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;just change  this WHEN 'IC1'.  TO  WHEN '&amp;amp;IC1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this is the problem.if u want i wl gv an example code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 04:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997957#M708143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T04:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: INTERACTIVE ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997958#M708144</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;you can refer this link &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alvhome.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alvhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer code below&lt;/P&gt;&lt;P&gt;u will have to make use of 'USER_COMMAND'.....&lt;/P&gt;&lt;P&gt;refer form user_cmd using cmd like sy-ucomm&lt;/P&gt;&lt;P&gt;self type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  z_purchase_req_alv no standard page heading message-id z_assg3.
 
include &amp;lt;icon&amp;gt;.
type-pools: slis.
 
tables : eban .
 
type-pools: slis .
 
types : begin of ty_pr                           ,
          icon(9)  type c                        ,
          banfn    like eban-banfn               ,   " Purachase Requisition Number
          txz01    like eban-txz01               ,   " Short Text
          ernam    like eban-ernam               ,   " CREATED BY
       end of ty_pr.
 
data : it_pr type standard table of  ty_pr,
       wa_it_pr like line of it_pr.
 
 
 
select-options s_pr for eban-banfn  no-extension obligatory .
 
data: l_report_id  like sy-repid                                       ,
      l_ws_title   type lvc_title value 'PURCHASE REQUISITION DETAILS' ,
      l_i_layout   type slis_layout_alv                                ,
      l_i_fieldcat type slis_t_fieldcat_alv                            ,
      l_it_events  type slis_t_event with header line                  ,
      l_it_header  type slis_t_listheader with header line             ,
      p_banfn      like eban-banfn                                     ,
      g_formname   type tdsfname value 'ZFM0001'                       ,
      g_fm_name    type rs38l_fnam                                     .
 
 
start-of-selection.
 
  l_report_id = sy-repid.
 
  perform sub_fetch_data   .   "  s_pr
 
  perform f1000_layout_init changing l_i_layout.
 
  perform f2000_fieldcat_init changing l_i_fieldcat.
 
  perform sub_events.
 
  call function 'REUSE_ALV_GRID_DISPLAY'
   exporting
*   I_INTERFACE_CHECK                 = ' '
*   I_BYPASSING_BUFFER                =
*   I_BUFFER_ACTIVE                   = ' '
      i_callback_program                = l_report_id
      i_callback_pf_status_set          = 'STATUS1'
      i_callback_user_command           = 'USER_CMD'
     it_fieldcat                        = l_i_fieldcat
     i_save                            = 'A'
     it_events                         = l_it_events[]
    tables
      t_outtab                          = it_pr
   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.
 
form status1 using rt_extab type slis_t_extab.
 
  set pf-status 'SCREEN_SMRT_FRM' excluding rt_extab .
 
endform.                              "STATUS
 
form user_cmd using cmd  like sy-ucomm
                    self type slis_selfield.
 
  case cmd.
    when 'PRINT' .
*      PERFORM CALL_SMARTFORM .
      message i022 .
      clear cmd .
    when '&amp;amp;IC1' .    
      read table it_pr into wa_it_pr index self-tabindex.
      if sy-subrc = 0.
        p_banfn = wa_it_pr-banfn .
        message i023 with p_banfn.
      endif.
    when 'EXIT'.
        leave to transaction 'z_man'.
    when 'CANCLE'.
        submit z_purchase_req_alv.
 
*      CLEAR cmd .
    when others .
      clear cmd .
  endcase.
endform.                    "USER_CMD
 
 
form sub_fetch_data      .   " s_pr
 
  clear wa_it_pr .
 
  select  banfn txz01 ernam
     into corresponding fields of wa_it_pr
  from eban
     where banfn in s_pr .
 
  wa_it_pr-icon = icon_paw_pu.
 
  append wa_it_pr to it_pr  .
 
  endselect.
 
  clear wa_it_pr .
 
  sort it_pr by banfn.
 
  delete adjacent duplicates from it_pr comparing banfn.
 
endform.                    " sub_fetch_data
 
 
 
form sub_events.
  call function 'REUSE_ALV_EVENTS_GET'
    exporting
      i_list_type     = 0
    importing
      et_events       = l_it_events[]
    exceptions
      list_type_wrong = 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.
  read table l_it_events with key name = 'TOP_OF_PAGE'.
  if sy-subrc = 0.
    l_it_events-form = 'HANDLE_TOP_OF_PAGE'.
    collect l_it_events.
  endif.
 
  l_it_header-typ  = 'H'.      " H = Header, S = Selection, A = Action
  l_it_header-info = 'LeNatures.'. " 60
  append l_it_header.
  clear  l_it_header.
 
endform.                    " sub_events
 
form f1000_layout_init using l_i_layout type slis_layout_alv.
 
  clear l_i_layout.
  l_i_layout-colwidth_optimize = 'X'.
  l_i_layout-edit = 'X'.
 
endform.                    " F1000_Layout_Init
 
form f2000_fieldcat_init changing l_i_fieldcat type slis_t_fieldcat_alv.
 
  data: l_line_fieldcat type slis_fieldcat_alv.
 
  clear l_line_fieldcat.
  l_line_fieldcat-fieldname    = 'ICON'.
  l_line_fieldcat-tabname      = 'IT_PR'.
  l_line_fieldcat-ddictxt      = 'M'.
  l_line_fieldcat-reptext_ddic = ' '.
  l_line_fieldcat-icon         = 'X'.
  l_line_fieldcat-hotspot      = 'X'.
  l_line_fieldcat-outputlen    =  2.
  append l_line_fieldcat to l_i_fieldcat.
 
 
  clear l_line_fieldcat.
  l_line_fieldcat-fieldname = 'BANFN'.
  l_line_fieldcat-tabname   = 'IT_PR'.
  l_line_fieldcat-seltext_m = 'PURCHASE REQUISITION NUMBER'.
  append l_line_fieldcat to l_i_fieldcat.
 
  clear l_line_fieldcat.
  l_line_fieldcat-fieldname = 'TXZ01'.
  l_line_fieldcat-tabname = 'IT_PR'.
  l_line_fieldcat-seltext_m = 'DESCRIPTION'.
  append l_line_fieldcat to l_i_fieldcat.
 
  clear l_line_fieldcat.
  l_line_fieldcat-fieldname = 'ERNAM'.
  l_line_fieldcat-tabname   = 'IT_PR'.
  l_line_fieldcat-seltext_m = 'CREATED BY'.
  append l_line_fieldcat to l_i_fieldcat.
 
 
endform.                    " f2000_fieldcat_init
 
form handle_top_of_page.
 
  call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
      i_logo             = ''
      it_list_commentary = l_it_header[].
 
endform.                    "handle_top_of_page
 
 
form call_smartform .
 
  call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname                 = g_formname
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
    importing
      fm_name                  = g_fm_name
   exceptions
     no_form                  = 1
     no_function_module       = 2
     others                   = 3
            .
  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.
 
  call function g_fm_name
    exporting
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
      i_eban                     = p_banfn
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
 
   exceptions
     formatting_error           = 1
     internal_error             = 2
     send_error                 = 3
     user_canceled              = 4
     others                     = 5
            .
  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.
 
endform.                    " CALL_SMARTFORM
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 04:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-alv/m-p/2997958#M708144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T04:36:56Z</dc:date>
    </item>
  </channel>
</rss>

