You can do this by two way:
1. Make a help by using SE11 & attach it to your field like this
'parameters abc like zstudent-name matchcode object id = search help name'
&
2. Use Function module to make help on your field by using this coding.
********************************************************************************
DATA: lc_vbeln LIKE vbrk-vbeln, ltab_fields LIKE help_value OCCURS 0 WITH HEADER LINE, BEGIN OF ltab_values OCCURS 0, feld(40) TYPE c, END OF ltab_values. **&--------------------------------------------------------------------* **& Form HELP_CHECK **&--------------------------------------------------------------------* ** text **---------------------------------------------------------------------* FORM help_check. *-- Set up fields to retrieve data ltab_fields-tabname = 'VBRK'. ltab_fields-fieldname = 'VBELN'. ltab_fields-selectflag = 'X'. APPEND ltab_fields. ltab_fields-tabname = 'VBRK'. ltab_fields-fieldname = 'FKDAT'. ltab_fields-selectflag = space. APPEND ltab_fields. *-- Fill values SELECT * FROM vbrk WHERE kunag = 'RICO0US'. ltab_values-feld = vbrk-vbeln. APPEND ltab_values. ltab_values-feld = vbrk-fkdat. APPEND ltab_values. ENDSELECT. CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'VBELN' tabname = 'VBRK' title_in_values_list = 'Select a value' IMPORTING select_value = pr_vbeln TABLES fields = ltab_fields valuetab = ltab_values EXCEPTIONS field_not_in_ddic = 01 more_then_one_selectfield = 02 no_selectfield = 03. ENDFORM. "fiscal_year ************************************************************************ End of Coding ************************************************************************Make this coding according to your program.
Tips by: Anil
Back to ABAP Menu:
ABAP Example Hints and Tips
Return to :-
SAP Hints and Tips on Configuration
and ABAP/4 Programming
(c) www.sap-basis-abap.com All material on this site is
Copyright.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
All product names are trademarks of their respective
companies. The site www.sap-basis-abap.com is in no way affiliated
with SAP AG.
Any unauthorised copying or mirroring is prohibited.