‎2008 Sep 02 7:57 AM
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
‎2008 Sep 02 8:02 AM
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
‎2008 Sep 02 7:59 AM
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.
‎2008 Sep 02 8:00 AM
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
‎2008 Sep 02 8:01 AM
‎2008 Sep 02 8:02 AM
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