‎2006 Jun 20 3:02 PM
Hi,
I am writing the search helps for a customised table. My requirement is simple, i.e i have a table with fields and i wanted a simple help where on a screen i should have a drop down of vales for the screen field i.e the the values of help on the screen should be from the customised. Hope u understand guys... Pls help me in achiveing this.... I am trying to use search help for this.. Pls advice is this the one i have use or any other simple means...
Thanks in advance...
‎2006 Jun 20 3:07 PM
Hi,
You would need to develop a custom search help for the field in you custom table
A search help would be sufficient
Check out the following links for the same
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
‎2006 Jun 20 3:07 PM
Hi,
You would need to develop a custom search help for the field in you custom table
A search help would be sufficient
Check out the following links for the same
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
‎2006 Jun 20 3:08 PM
hello check out the demo program
DEMO_DROPDOWN_LIST_BOX
Hope this will solve your problem.
Thanks,
Krishna
‎2006 Jun 20 3:16 PM
Hi Sneha,
I think in this case , instead of going to se11 and creating a search help, you can make use of the FM F4IF_FIELD_VALUE_REQUEST for generating a search help option for the field and other FMs like DYNP_VALUES_READ and F4IF_INT_TABLE_VALUE_REQUEST
Just refer this link and go through the program.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Hope my point is clear.
Regards,
SP.
‎2006 Jun 20 4:06 PM
INITIALIZATION.
SELECT slstid INTO TABLE t_search FROM DBTABLE WHERE slstid LIKE 'SAP%'. ( shows the items starts with SAP)
AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'SLSTID'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'FIELD'
value_org = 'S'
TABLES
value_tab = t_search.
rewards if it helps
‎2006 Jun 20 4:10 PM
Hi,
Have a look at the following thread.
http://www.sapsuperusers.com/forums/showthread.php?t=4885
<b>Reward points if it helps and close the thread.</b>
‎2006 Jun 20 4:37 PM
Hi Sneha,
Please check this,
To avoid the standard F4 help to be shown and wants to add your own search help, insert the event
PROCESS ON-VALUE-REQUEST request in the program and
add a field statement for the field that should trigger the F4 help. In the module PROCESS ON-VALUE-REQUEST, call function module F4IF_FIELD_VALUE_REQUEST.
Example:
process before output.
.....
process after input.
.....
PROCESS ON VALUE-REQUEST.
FIELD sflight-carrid MODULE f4_help_for_carrid.
MODULE f4_help_for_carrid INPUT.
NOTE:
Tabname/fieldname is the name of the table and field
for which F4 should be shown.
*
Dynprog/Dynpnr/Dynprofield are the names of the Progran/Dynpro/Field
in which the f4 value should be returned.
*
Value: The value of the Dynpro field when calling the F4 help.
You can limit the values shown, by inseting a value in this parameter
e.g 'A*' to show only values beginning with A
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'SFLIGHT'
fieldname = 'CARRID'
SEARCHHELP = ' '
SHLPPARAM = ' '
dynpprog = 'ZDANY_F4_OWN_CALL'
dynpnr = '0100'
dynprofield = 'SFLIGHT-CARRID'
STEPL = 0
value = 'A*'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
TABLES
RETURN_TAB =
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " F4_help_for_carrid INPUT
To control F4 help in a selection screen use the
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field> event.
Note that for ranges both the low and high value of the field must have
their own ON VALUE-REQUEST
Example:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
PERFORM f4_help_carrid.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-high.
PERFORM f4_help_carrid.
In this perform, again u need to call the above mentioned FM.
If found helpful, please do reward.