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

at line-selection

Former Member
0 Likes
1,399

Dear all

Please see this simple piece of code.

Report ztest.

start-of-selection.

write:/ 'list1'.

set pf-status 'ztest'.

at line-selection.

write:/ 'list2'.

But in this case at line-selection is not working. the cursor is not moving to the secondary list.. why its happening.. The pf-status is necessary for me here. Please give me a way to move to secondary list eith the pf-status..

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,375

hi check this...

start-of-selection.

write:/ 'this is test'.

at line-selection.

set pf-status 'ZTEST'.

write:/ 'list2'.

regards,

venkat

Dear all

Please see this simple piece of code.

Report ztest.

start-of-selection.

write:/ 'list1'.

set pf-status 'ztest'.

at line-selection.

write:/ 'list2'.

But in this case at line-selection is not working. the cursor is not moving to the secondary list.. why its happening.. The pf-status is necessary for me here. Please give me a way to move to secondary list eith the pf-status..

Thanks in advance

10 REPLIES 10
Read only

Former Member
0 Likes
1,375

Hi

Somebody plz tell me how to do this...plzzz

Read only

0 Likes
1,375

use hide statement to make hyperlink for your line. Then check for the value. eg:



REPORT ztest.

DATA text(20).
DATA text2(20).

text = 'list1'.
text2 = 'list2'.

START-OF-SELECTION.

WRITE:/ text.
HIDE text.

SET PF-STATUS 'ztest'.

AT LINE-SELECTION.
  CASE text.
    WHEN 'LIST1'.
      WRITE:/ text2.
  ENDCASE.

Read only

Former Member
0 Likes
1,376

hi check this...

start-of-selection.

write:/ 'this is test'.

at line-selection.

set pf-status 'ZTEST'.

write:/ 'list2'.

regards,

venkat

Read only

0 Likes
1,375

Hi Venkat

I need set pf-status 'ZTEST' before at line-selection.. Because i need to set it for my basic list.. Thats my problem plz help..

Read only

0 Likes
1,375

Hi

Still i didnt get a correct answer....

Read only

0 Likes
1,375

hi,

have u mentioned PICK for F2 fucntion code in the pf-status. Just check that.

this u can spot in the function keys section-> Recommended function keys setting.

regards,

madhu

Read only

Former Member
0 Likes
1,375

Hi,

Use HIDE <fld> stmt after the write stmt (basic list) or the field for which u want a detailed view.

after AT LINE-SELECTION......use SY-LSIND....Use GET CURSOR.....

i think u'll get it

Thanks.

Read only

Former Member
0 Likes
1,375

Hi

give that pf-status in caps...

start-of-selection.

write:/ 'list1'.

set pf-status 'ZTEST'.

at line-selection.

write:/ 'list2'.

it is working fine....

Read only

Former Member
0 Likes
1,375

Hi ,

at line-selection

case sy-lsind .

when '1' .

write :/'list2' .

endcase .

Read only

Former Member
0 Likes
1,375

use hide statement.it will stores data in memory temporarly.and use atline selection then use sy-lsind filed .