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

Search help exit

Former Member
0 Likes
712

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

5 REPLIES 5
Read only

Former Member
0 Likes
667

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

Read only

Former Member
0 Likes
667

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'.

Read only

Former Member
0 Likes
667

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

Read only

Former Member
0 Likes
667

I got it.

thanx for ur reply.

Read only

Former Member
0 Likes
667

Hi,

Please make sure to reward points for helpful answers

Thanks

Naren