‎2008 Jul 17 11:33 AM
hi Experts,
I want to add search help to SAP standard screen field.
how i can do this.
Pls Reply ASAP.
Thanx & Rgds
‎2008 Jul 17 11:37 AM
‎2008 Jul 17 11:43 AM
Hi ,
first create internal table for that field .
and call the functional module F4IF_INT_TABLE_VALUE_REQUEST
pass these fields .
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'fiedl name
PVALKEY = ' '
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'field name'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ''
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = table name.
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3 .
then u will get search help for that field.
if help full reward me.
thanks.
satish
‎2008 Jul 17 11:46 AM
Hi Rohan kumar,
A search help can be directly assigned to a screen field. In this case, the search help is only available for this screen. If the same field is used on several screens, the search help should generally be attached to the referenced table field or structure field (see Attaching to Table Fields).
You can attach a search help directly to a screen in the following ways.
u2022 The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
u2022 The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement AS SEARCH PATTERN.
In both cases this assigns the first parameter of the search help to the screen field. As a result, only a value from the hit list can be returned to the screen template.
Hope this helps you
Regards,
T.Durai murugan.
‎2008 Jul 17 11:50 AM
hi,
i want to add search help to sap standard screen not to selection screen.
Thanx
‎2008 Jul 17 11:46 AM
Hi Rohan,
To add search help to SAP standard screen field, you have to define a matchcode object.
Matchcode Object is the predecessor of search helps in the ABAP Dictionary.
like that:
> MATCHCODE OBJECT <search_help>.
effect: This addition links the input field of the parameter to a search help <search_help> from the ABAP Dictionary. The name of the search help must be entered directly. For the input field of the parameter on the selection screen, the input help key is displayed. When the input help (F4) is requested, the user is displayed the hit list from the search help. When an entry is selected, the respective value is placed into the input field. If no search help for the specified name exists in the ABAP Dictionary, a message is displayed in the status line when the input help is requested.
Best Regards,
Sayak...
"Giving points for helpful answer is always appreciating"
‎2008 Jul 17 11:51 AM
thanx roy ,
how we can define matchcode and how we assign to sap standard screen
Thanx & Rgds