09-22-2008 2:03 PM
Hi abapers i have one clasical report in that selection screen field crhd-arbpl(work center) d't have serch help.
i wrote a program for it in that i used 'F4IF_INT_TABLE_VALUE_REQUEST' function module.
but it is displaying output directly.
when i press f4 it should be display first selection screen in popup window
Note:s run transaction CR06 and press f4 in WORK CENTER
I want same result in my program.
and i wnat to display display four fields in box not in selection screen.
09-22-2008 2:09 PM
Hi Keshava,
You can create search help for this in the event AT SELECTION SCREEN ON VALUE REQUEST FOR S_NAME1-low.
Use the function module F4IF_INT_TABLE_VALUE_REQUEST for this.
Check this sample code...
data: begin of itab occurs 0,
name like kunnr-name1,
end of itab.
refresh: itab.
AT SELECTION SCREEN ON VALUE REQUEST FOR S_NAME1.
<write select query to fill this internal tabel with required data or append this internal table with req: entries>
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
DDIC_STRUCTURE = 'ZSPECIALTY_DESC'
retfield = 'S_NAME1'
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'CCODE'
STEPL = 0
window_title = 'Specialties'
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
display = 'F'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = itab_ccode[]
FIELD_TAB = fieldtab[]
return_tab = ret_tab
DYNPFLD_MAPPING =
exceptions
parameter_error = 1
no_values_found = 2
others = 3
.
if sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call this FM in subroutine and call that subroutine for S_NAME1-HIGH in the same event, to get search help for both lower and upper limits
Thanks
Sudharshan
09-22-2008 2:16 PM
Debug CR06 and you will FM's which you need to use in your program for getting F4 help of such popup windows...
09-22-2008 2:18 PM