cancel
Showing results for 
Search instead for 
Did you mean: 

At line Selection event, failed

Former Member
0 Kudos

I have created my own pf-status, and assigned 'PICK' to the F2 key in the pf-status.

When i am double clicking on a field in the report output, it is coming to the event 'AT LINE-SELECTION'.

in that event i am writing the statement.

read line sy-lilli field value <fieldname>.

the <fieldname> is holding a value in which all digits are zeroes, eventhough i am double clicking on a field which is non-zero.

please help me by solving the problem.

Thanks in advance for your faster response.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

you need to add the HIDE statement when you writing your detail lines to the report. You will need to HIDE the field you are trying to read in AT LINE-SELECTION.

Let me know if this works.

Cheers

Colin.:)

Former Member
0 Kudos

Use of Hide statement is not required.

When you use Hide statement the value is automatically filled into the program variable that was written on that line.

But you can always use the READ LINE or READ CURRENT LINE to fetch the value.

Check if you are providing the right variable names.

Else go for the simple approach and use HIDE, now if the variable was V1 which you have written with a write statement, now if the user double clicks on the line V1 will automatically have that value.

Hope this helps,

Pavan

Former Member
0 Kudos

Thanks Pavan.

My question has been solved.

Former Member
0 Kudos

Thanks Colin.

My question has been answered.

Former Member
0 Kudos

Hi Raghavendra,

Did any of the answers provided here were the solution to your question, or did you solve it by your own method ? Can you provide some details , in case, when required, we can always refer back to this forum and get our solution.

Thanks.

Regards,

Subramanian V.

athavanraja
Active Contributor
0 Kudos

Alternate menthod to read field value / line value .

<i><b>get cursor line wf_line value wf_lvalue .</b></i>

wf_line will return the line no. clicked

wf_lvalue will reutrn the contents of the line.

<i><b> get cursor field wf_fnam value wf_fvalue .</b></i>

wf_fnam will return the filed name clicked.

wf_fvalue will return the field value.

REgards

Raja

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

try READ CURRENT LINE ... .

Should work as sy-lilli.

To find out what's wrong, write a test program to analyze the contents of your list:

AT LINE-SELECTION.

DO.

READ LINE sy-index FIELD ...

IF sy-subrc <> 0.

EXIT.

ELSE.

WRITE: sy-lilli, ...

ENDIF.

ENDDO.

Former Member
0 Kudos

Can you post the code ?

Regards,

Subramanian V.

Former Member
0 Kudos

Thanks for your early response.

my code.

-


AT LINE-SELECTION.

READ LINE sy-lilli FIELD VALUE gf_stud-stuid .

  • gf_stud-stuid is of numc type length 5.

-


it is holding '00000' even when i am clicking '00101'.

respond to me immediately please.

i have to display his details in next screen.

Former Member
0 Kudos

Check out this program: <b>DEMO_LIST_SY_LISEL</b> and for more help check out for all programs with <b>demolist</b> in <b>SE38</b>.

The code you have posted is insufficient(for me) to find out where the real problem is.

Regards,

Subramanian V.