Skip to Content
avatar image
Former Member

get cursor field

hi friends,

i am using this code and also using hotspot on in loop.

but its not working it can not go to next screen.can any body help me out of this situation.

at line-selection.

case sy-lsind.

when '1'.

get cursor field f.

if f = ' w_ftab-mp '.

loop at t_ftab into w_ftab.

write : 'kkkkkkkk'.

endloop.

elseif f = 'w_ftab-dp'.

write : 'Bhupinder Singh'.

elseif f = 'w_ftab-cp'.

write : 'lkadlfj'.

endif.

when '2'.

write : 'as'.

endcase.

thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 31, 2008 at 01:28 PM

    You need to use capital letters when you are checking the fieldnames. so the mistake is from small case.

    at line-selection.
    case sy-lsind.
    when '1'.
    get cursor field f.
    if f = ' W_FTAB-MP '.  "<======CAPS
    loop at t_ftab into w_ftab.
    write : 'kkkkkkkk'.
    endloop.
    elseif f = 'W_FTAB-DP'.    "<========CAPS
    write : 'Bhupinder Singh'.
    elseif f = 'W_FTAB-CP'.    "<========CAPS
    write : 'lkadlfj'.
    endif.
    
    when '2'.
    write : 'as'.
    endcase.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 31, 2008 at 10:00 AM

    Post your whole program.

    You want us to expect your remaining program there must be some sense if you post anything

    Add comment
    10|10000 characters needed characters exceeded