Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Tags:
Former Member
replied

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.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question