<?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: At Line Selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745020#M901090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At line selection event is triggered when you are clicking on a line in your classical report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical report means a report build on only write statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that output, if you click on a line, At Line selection event will be executed. Based on the selection you can do further actions in that event. For example, your display has PO number as a column. When you click on a PO number, you want to display ME23n with that PO number. You can do that using this event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can set a break-point in the code written after that event. It will get executed when you are selecting a line in your report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 11:07:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T11:07:14Z</dc:date>
    <item>
      <title>At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745016#M901086</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;Can anyone tell me the use of 'AT Line Selection' event?Is it possible to set a break point in the code after 'At line selection ' event?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745016#M901086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745017#M901087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this event is used during Interactive reports.&lt;/P&gt;&lt;P&gt;whenever u double click on the line in basic list, AT LINE-SELECTION event is trigetted. &lt;/P&gt;&lt;P&gt;Yes, it is possible to use breakpoint .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745017#M901087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745018#M901088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using AT LINE-SELECTION event u can create one more list and after double clicking it u can get to the second list.&lt;/P&gt;&lt;P&gt;See the Example Program,Just Observe how to use AT LINE-SELECTION  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZB13FA_REP_EVENTS MESSAGE-ID ZHNC LINE-COUNT 12(2).


INCLUDE ZB13FA_REP_EVENTS_TOP. " GLOBAL DATA

INCLUDE ZB13FA_REP_EVENTS_SEL. " SELECTION SCREEN

INCLUDE ZB13FA_REP_EVENTS_SUB. " SUBROUTINES

*EVENTS

INITIALIZATION.

P_VEND = 3730.

AT SELECTION-SCREEN.

PERFORM F_VAL_VEND USING P_VEND
                   changing SY-DBCNT.

IF SY-DBCNT = 0.

MESSAGE E000 WITH TEXT-E01.

ENDIF.


START-OF-SELECTION.

PERFORM F_PORDER USING P_VEND
                 CHANGING IT_VEND.

END-OF-SELECTION.


IF SY-SUBRC = 0.
ELSE.
MESSAGE I000 WITH TEXT-I01.

ENDIF.

PERFORM F_DISP USING IT_VEND
               CHANGING WA_VEND.

WRITE : / ' LIST NO', SY-LSIND.

TOP-OF-PAGE.

WRITE : /  TEXT-H01 , 12 TEXT-H02 .

TOP-OF-PAGE DURING LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
WRITE : / TEXT-H01, 12 TEXT-H05, 19 TEXT-H06, 41 TEXT-H07.
WHEN 2.
WRITE : / TEXT-H06,21 TEXT-H08, 35 TEXT-HO9,44 TEXT-HO4.
ENDCASE.


END-OF-PAGE.

WRITE :/ TEXT-H03, SY-PAGNO.

AT LINE-SELECTION.

SET PF-STATUS 'ZNEW'.

PERFORM F_GET_EKPO USING WA_VEND-EBELN
                   CHANGING IT_EKPO.

PERFORM F_DISPL_DL1 USING IT_EKPO

                  CHANGING WA_EKPO.

AT USER-COMMAND.

GET CURSOR FIELD W_FIELD .

CASE SY-UCOMM.

WHEN 'DISP'.

IF W_FIELD = 'WA_EKPO-EBELN'.

SET PARAMETER ID 'BES' FIELD WA_EKPO-EBELN.

CALL TRANSACTION 'ME23N'.

ELSE.

MESSAGE E000(ZHNC) WITH 'INVALID FIELD,PLZ SELECT CORRECT FIELD'.

ENDIF.

ENDCASE.

CASE SY-UCOMM.

WHEN 'MDIS'.

IF W_FIELD = 'WA_EKPO-MATNR'.

SET PARAMETER ID 'MAT' FIELD WA_EKPO-MATNR.

CALL TRANSACTION 'MM03'.

ELSE.

MESSAGE E000(ZHNC) WITH 'INVALID FIELD,PLZ SELECT CORRECT FIELD'.

ENDIF.

ENDCASE.

CASE SY-UCOMM.

WHEN 'SUM'.

SY-LSIND = SY-LSIND - 1.

PERFORM P_DISP_SUM USING IT_EKPO
                 CHANGING WA_EKPO.

SET PF-STATUS 'ZNEW' EXCLUDING 'SUM'.

ENDCASE.

CASE SY-UCOMM.

WHEN 'NEWV'.

LEAVE SCREEN.

WHEN 'EXIT1'.

LEAVE PROGRAM.

ENDCASE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes you can use Break Point in this event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745018#M901088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745019#M901089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the user triggers the function code PICK, AT LINE-SELECTION is always triggered if the cursor is positioned on a list line. The function code PICK is, by default, always linked with function key F2 and hence with the mouse double-click. Consequently, if you have a simple program that does not react to any further user actions, you only need to write this event block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  &amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As described in the section Dialog Status for Lists, the function code PICK is always added to the standard list status when you have an AT LINE-SELECTION event in your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you assign PICK to other function keys or menu entries, AT LINE-SELECTION is also triggered when the user chooses then. You should avoid this for the sake of the semantics. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at below link.&lt;/P&gt;&lt;P&gt;[List Events in an ABAP Program |http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba3ae35c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please mark all the useful answers&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745019#M901089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745020#M901090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At line selection event is triggered when you are clicking on a line in your classical report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical report means a report build on only write statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that output, if you click on a line, At Line selection event will be executed. Based on the selection you can do further actions in that event. For example, your display has PO number as a column. When you click on a PO number, you want to display ME23n with that PO number. You can do that using this event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can set a break-point in the code written after that event. It will get executed when you are selecting a line in your report output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745020#M901090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745021#M901091</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;AT LINESELECTION : this event is generally used for interactive reports.&lt;/P&gt;&lt;P&gt;whenever you put cursor on a line and use this event Function PICK gets activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_at_line_selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  WRITE 'Click me!' COLOR = 5 HOTSPOT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION. &lt;/P&gt;&lt;P&gt;  WRITE: / 'You clicked list', sy-listi, &lt;/P&gt;&lt;P&gt;         / 'You are on list',  sy-lsind. &lt;/P&gt;&lt;P&gt;  IF sy-lsind &amp;lt; 20. &lt;/P&gt;&lt;P&gt;    SKIP. &lt;/P&gt;&lt;P&gt;    WRITE: 'More ...' COLOR = 5 HOTSPOT. &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;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745021#M901091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: At Line Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745022#M901092</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;AT LINE-SELECTION is a event  for Interactive Reports events &lt;/P&gt;&lt;P&gt;This event works as when you select a line in Basic list depending on that line it will generates a another reports i.e. Interactive Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION event selects a line and as per your requirement you can write logic to generate a report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ganesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 11:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/at-line-selection/m-p/3745022#M901092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T11:09:32Z</dc:date>
    </item>
  </channel>
</rss>

