2006 Jul 26 5:46 AM
Hi All,
How to apply customized search help into the report selection screen ? I have already created a search help.
Thank you all..
satyam
2006 Jul 26 5:57 AM
Hi
Use the custom search help as follows: ZV_BSTNK is custom search help in this case.
s_bstnk for vbak-bstnk no-extension
matchcode object zv_bstnk
hope it will help u
If problem solved, mark the points.
with regards
chetan vishnoi
Hi All,
How to apply customized search help into the report selection screen ? I have already created a search help.
Thank you all..
satyam
2006 Jul 26 5:49 AM
2006 Jul 26 5:50 AM
Hi satyam,
Assign the Search help you have created to the DataBase Table field and use the DB Table Field for the Parameter in the Selection Screen. It will work.
Regards,
Prashanth
2006 Jul 26 5:51 AM
Use the custom search help as follows: ZV_BSTNK is custom search help in this case.
s_bstnk for vbak-bstnk no-extension
matchcode object zv_bstnk
If problem solved, mark the points.
Thanks,
Mukesh Kumar
2006 Jul 26 5:51 AM
Hi Satyam,
Please check this sample code from other thread.
report zrich_0001 .
data: begin of ihelp occurs 0,
field type char10,
ftext type char50,
end of ihelp.
data: a_field(20) type c.
select-options s_field for a_field.
initialization.
ihelp-field = 'A'.
ihelp-ftext = 'Description A'.
append ihelp.
ihelp-field = 'B'.
ihelp-ftext = 'Description B'.
append ihelp.
ihelp-field = 'C'.
ihelp-ftext = 'Description C'.
append ihelp.
at selection-screen on value-request for s_field-low.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FIELD'
dynprofield = 'S_FIELD'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = ihelp.
start-of-selection.
.....
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
2006 Jul 26 5:55 AM
2006 Jul 26 5:57 AM
Hi
Use the custom search help as follows: ZV_BSTNK is custom search help in this case.
s_bstnk for vbak-bstnk no-extension
matchcode object zv_bstnk
hope it will help u
If problem solved, mark the points.
with regards
chetan vishnoi
2006 Jul 26 6:00 AM
Hi,
Please look at the code below:
----
Selection screen *
----
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_bukrs(4) TYPE c OBLIGATORY,
p_budat TYPE bsik-budat OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
*at selection-screen on p_bukrs
AT SELECTION-SCREEN ON p_bukrs.
IF p_bukrs <> 'GLOB' AND
p_bukrs <> 'INOV' AND
p_bukrs <> 'GXCH'.
MESSAGE e008 WITH 'Invalid Company Code!'.
ENDIF.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
TYPES: BEGIN OF t_search_help,
bukrs LIKE t001-bukrs,
butxt LIKE t001-butxt,
END OF t_search_help.
DATA: it_search_help TYPE STANDARD TABLE OF t_search_help
WITH HEADER LINE.
get only the valid company code from T001
SELECT bukrs butxt FROM t001
INTO TABLE it_search_help
WHERE bukrs IN ('GLOB', 'GXCH', 'INOV').
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'BUKRS'
PVALKEY = ' '
dynpprog = g_repid
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
value_tab = it_search_help
FIELD_TAB =
RETURN_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.
Hope this helps...
P.S. Please award points for useful answers.
2006 Jul 26 6:06 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |