Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding at line-selection

Former Member
0 Likes
1,818

could plz give me detailed description regarding AT LINE-SELECTION,

MY QUESTION IS : CAN WE CALL ANY TRANSACTION BY USING : AT LINE-SELECION

COULD U EXPLINE IT

7 REPLIES 7
Read only

Former Member
0 Likes
1,001

hai

at line-selection is the list event.

if u want to navigate from basic list(i.e initial list 1) to secondary list(20).

u will be using this.

Read only

Former Member
0 Likes
1,001

This event is processed whenever the user chooses a valid line in the list (i.e. a line generated by statements such as WRITE,ULINE, or SKIP) with the cursor and presses the function key which has the function PICK in the interface definition. This should normally be the function key F2, because it has the same effect as double-clicking the mouse, or clicking once in the case of a hotspot.

The processing for the event AT LINE-SELECTION usually generates further list output (the details list) which completely covers the current list display. If you want the current list display to remain visible (to aid user orientation), you can do this with the key word WINDOW.

Read only

Former Member
0 Likes
1,001

Yes u can cal a transaction at line selection event.

run this code and see for more information.

START-OF-SELECTION.

WRITE 'Basic List'.

AT LINE-SELECTION.

WRITE 'Secondary List'.

TOP-OF-PAGE DURING LINE-SELECTION.

CASE sy-lsind.

WHEN 1.

call transaction 'SE16'.

WHEN 2.

call transaction 'SE11'.

WHEN OTHERS.

WRITE: 'Secondary List, Level:', sy-lsind.

ENDCASE.

ULINE.

Read only

0 Likes
1,001

yes got answer

Read only

Former Member
0 Likes
1,001

Hi,

You acn use ant number of transactions or call any number of screens,

U see the following example:

IF FIELDNAME = 'MAT_MRP-PAST3'.

CALL SCREEN 1001 STARTING AT 6 15

ENDING AT 60 24.

***********Open Tran. MD04(Mat. Requirements)******

ELSEIF FIELDNAME = 'MAT_MRP-OMENG'.

PERFORM OPEN_MD04 USING MAT_MRP-MATNR.

ELSEIF FIELDNAME = 'MAT_MRP-OMENG1'.

PERFORM OPEN1_MD04 USING MAT_MRP-MATNR.

***********Open Tran. MMBE(Mat. Stock)*************

ELSEIF FIELDNAME = 'MAT_MRP-CLABS'.

PERFORM OPEN_MMBE USING MAT_MRP-CLABS.

***********Open Tran. MM03(Mat. Master)************

ELSEIF FIELDNAME = 'MAT_MRP-MAKTX'.

PERFORM OPEN_MM03 USING MAT_MRP-MATNR.

ELSEIF FIELDNAME = 'MAT_MRP-CUSNO3'.

CALL SCREEN 1003 STARTING AT 6 15

ENDING AT 63 28.

ELSEIF FIELDNAME = 'MAT_MRP-CUSNO6'.

CALL SCREEN 1003 STARTING AT 6 15

ENDING AT 63 28.

ELSEIF FIELDNAME = 'MAT_MRP-CUSNO12'.

CALL SCREEN 1003 STARTING AT 6 15

ENDING AT 63 28.

******Open latest purchase order********************************

ELSEIF FIELDNAME = 'MAT_MRP-EINDT' OR FIELDNAME = 'MAT_MRP-MENGE1' OR

FIELDNAME = 'MAT_MRP-NETWR'.

PERFORM OPEN_ME23N USING MAT_MRP-EBELN1.

ELSEIF FIELDNAME = 'MAT_MRP-INCOM'.

PERFORM OPEN2_MD04 USING MAT_MRP-MATNR.

ENDIF.

Rgds,

Rajesh.

Read only

Former Member
0 Likes
1,001

Hi Rajesh,

use this logic,

AT LINE-SELECTION.

GET cursor position.....

set parameter id <SO or PO> to PID.

CALL Tranasction <Tname> and skip first screen.

Hope thsi works out.

Thanks,

Prashanth

Read only

Former Member
0 Likes
1,001

Hi rajeshreddy,

1. The program will display

SE11

SE38

SE37

2. DOUBLE-CLICK on any of the above line.

3. It will OPEN UP THE TRANSACTION.

4. Just copy paste.

5.

report abc.

DATA : TCD(35) TYPE C.

*----


Main List

WRITE 😕 'SE11'.

WRITE 😕 'SE38'.

WRITE 😕 'SE37'.

*----


AT LINE-SELECTION.

TCD = SY-LISEL.

CALL TRANSACTION TCD.

regards,

amit m.