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

F4 help

Former Member
0 Likes
536

Hi All,

I have a requirement where when I press the F4 help for a field in the screen one screen should come up where I need to select one check box so that some values will be filled in that screen.

Any input?

Regards,

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
512

Hi,

There is a option to add a search help to the field at the table level..

just do as follows...

first create one search help for your field like this,

go to se11,

select search help radio button,

provide name and create,

select elementary search help radio button,

provide description,

select search for database table at 'selection method' input,

provide your table(for which table field u want to create search help),

then come to the field level,

difine your field in the table ,

enable imp and exp check boxes,

define lpos and pos as 1,

save and activate.

now search help has created,

go to your ztable and select the field and press the search help push button (which is there just above to the fields and beside to forien key icon),

provide your difined search help here then save and activate....

then f4 help can work for your field.

I hope the following code will help to you,

data: begin of itab occurs 0,

pernr like pa0001-pernr,

ename like pa0001-ename,

end of itab.

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

at selection-screen on value request for P_PERNR.

select * from pa0001 into table itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'PERNR'

value_org = 'S'

TABLES

value_tab = iTAB

return_tab = t_return.

Regards,

Harish

4 REPLIES 4
Read only

Former Member
0 Likes
512

Hi,

Create a screen with type modal dialog and place a check box in it. Then call this screen from the POV of the mais screen.

Hope this helps.

Read only

Former Member
0 Likes
512

Hi

U need to create a search help by yourself in the event AT SELECTION-SCREEN ON VALUE-REQUEST if yuo're speaking about report, or in the event PROCESS ON VALUE-REQUEST for dialog program.

Max

Read only

Former Member
0 Likes
512

Hi,

check this link

Read only

Former Member
0 Likes
513

Hi,

There is a option to add a search help to the field at the table level..

just do as follows...

first create one search help for your field like this,

go to se11,

select search help radio button,

provide name and create,

select elementary search help radio button,

provide description,

select search for database table at 'selection method' input,

provide your table(for which table field u want to create search help),

then come to the field level,

difine your field in the table ,

enable imp and exp check boxes,

define lpos and pos as 1,

save and activate.

now search help has created,

go to your ztable and select the field and press the search help push button (which is there just above to the fields and beside to forien key icon),

provide your difined search help here then save and activate....

then f4 help can work for your field.

I hope the following code will help to you,

data: begin of itab occurs 0,

pernr like pa0001-pernr,

ename like pa0001-ename,

end of itab.

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

at selection-screen on value request for P_PERNR.

select * from pa0001 into table itab.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'PERNR'

value_org = 'S'

TABLES

value_tab = iTAB

return_tab = t_return.

Regards,

Harish