‎2007 Jul 27 12:03 PM
Hi all,
Can any one tell me how i can implement F4 help for table name at selection screen?
‎2007 Jul 27 12:15 PM
‎2007 Jul 27 12:06 PM
declare it like dd02l-tabname
parameters: p_table like dd02l-tabname. Message was edited by:
Kris Donald
‎2007 Jul 27 12:08 PM
Hi
Create a New search Help(elementary) using the table DD02L and create with some 2 to 3 fields and add to that selection screen field
see the doc to create search help
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Search Help Exits:
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 27 12:08 PM
Create an internal table, populate it with the list of table name(if u need fetch from
TADIR table) and use the following Function Module,
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJECTTYPE'
PVALKEY = ' '
DYNPPROG = '/1BCDWB/'
DYNPNR = '1000'
DYNPROFIELD = 'OBJECTTYPE'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = itab
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.
Where ITAB is the internal table u need to pass.
‎2007 Jul 27 12:10 PM
User search help DD_DBTB_16. try using match code. or better give reference to str RSRD1-TBMA_VAL
Cheers!!
Anuj Sethi
‎2007 Jul 27 12:11 PM
Hi Jharna,
Here's a sample code on how you can have a F4-help for Table name at selection screen.
SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
PARAMETERS: iv_tbl TYPE tabname16 OBLIGATORY.
SELECTION-SCREEN END OF BLOCK a.
Hope this helps.
Regards,
Pavithra
**PS: Please reward points if this helps
‎2007 Jul 27 12:15 PM
‎2007 Jul 27 12:16 PM