2007 Nov 02 4:16 AM
Hi,
I ned to develop a search help exit to restrict 'Setname' field of SETLEAF table.
so I copied F4IF_SHLP_EXIT_EXAMPLE as zfm.
I used below coding in that.
IF CALLCONTROL-STEP = 'SELECT'.
DATA: BEGIN OF MY_DATA,
DATA RC TYPE SY-SUBRC.
select setname from setleaf into record_tab where setname = 'zset' and lineid = '2'.
IF RC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
fort this condition I got one record in record_tab but when I press f4 its giving empty dialog with single line. I am not getting value.
How handle that?
ASAP
thanks,
sudha
Hi,
I ned to develop a search help exit to restrict 'Setname' field of SETLEAF table.
so I copied F4IF_SHLP_EXIT_EXAMPLE as zfm.
I used below coding in that.
IF CALLCONTROL-STEP = 'SELECT'.
DATA: BEGIN OF MY_DATA,
DATA RC TYPE SY-SUBRC.
select setname from setleaf into record_tab where setname = 'zset' and lineid = '2'.
IF RC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
fort this condition I got one record in record_tab but when I press f4 its giving empty dialog with single line. I am not getting value.
How handle that?
ASAP
thanks,
sudha
2007 Nov 02 4:19 AM
Hi,
RECORD_TAB is an internal table..
Did you append the values to the internal table??
select setname from setleaf <b>into table record_tab</b>
where setname = 'zset' and lineid = '2'.
Thanks
Naren
2007 Nov 02 4:22 AM
Hi,
I did like that only.
I used below select statement
select setname from seleaf into tbale record_tab where setname = 'zset' and linid = '2'.
2007 Nov 02 4:39 AM
Hi,
Try this..
IF CALLCONTROL-STEP = 'SELECT'.
DATA: BEGIN OF MY_DATA,
DATA RC TYPE SY-SUBRC.
select setname from setleaf into corresponding fields of table record_tab
where setname = 'zset' and lineid = '2'.
IF SY-SUBRC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
If the above is not still working..
Then this link for a sample code
http://www.erpgenie.com/sapgenie/docs/search%20help%20to%20java.doc
Thanks
naren
2007 Nov 05 4:29 AM
2007 Nov 05 4:30 AM
Hi,
Please make sure to reward points for helpful answers
Thanks
Naren