Adding Input Help to a Field in WebClient
Thanks Tanja for the input but I need to add input help to the u201CValueu201D field in conditions for alert rules to facilitate the input of Sold-To Party values. For example, the user can click the input help icon and that select the desired Sold-To Party from the list.
I inadvertently deleted my original posting so I am reposting again.
Thanks,
bam
Hi Corwin,
You can have Process on Value-Request on your screen where the field exist. You can use SE80 to edit the screen of the function group that table maintenance generator created.
1. Edit the screen using SE80.
2. Place a 'process on value-request' at the bottom of the flow logic.
3. Below that, put this line
field fieldname module get_help.
4. Double click on GET_HELP and create an input module pool program.
5. In this module pool, pass the values of the other fields in your screen to the function module that can provide you the list of values
6. Use function module F4IF_INT_TABLE_VALUE_REQUEST within this module pool to popup the values.
However, please keep in mind that the values from other fields on the screen are not populated in its field unless you hit enter.
Similar Messages
-
Data no getting populated from input help to target field
Hi ,
I have made a input help for a field.
and have used the following code to populte the data into the input help.I am having the data displayed but the data doesnot get populated on selection.
CASE cs_dropdownlb_data-fieldname.
WHEN 'ZZSALSPOS'.
assign cs_dropdownlb_data to <extended_data>.
lv_display = is_screen_structure-zzdisplay.
clear ls_fieldcat.
ls_fieldcat-fieldname = 'ZZSALSPOS'.
ls_fieldcat-headertitle = 'Broker Id'.
append ls_fieldcat to et_field_catalog.
ls_fieldcat-fieldname = 'ZZBROKER'.
ls_fieldcat-headertitle = 'Broker House Description'.
append ls_fieldcat to et_field_catalog.
CALL FUNCTION 'Z_SEARCH_HELP_SALES_ID'
EXPORTING
IV_DISPLAYALL = lv_display
IV_DIS_CHANNEL = '11'
IV_DIVISION = '00'
TABLES
T_COST_CAT_F4 = lt_posid
fldcat_add 'ZZSALSPOS'.
fldcat_add 'ZZBROKER'.
fldcat_add 'ZZREGION'.
fldcat_add 'ZZDIVISION'.
fldcat_add 'ZZSUBTEAM'.
fldcat_add 'ZZTEAM'.
SORT lt_posid BY zzsalspos zzbroker zzregion zzdivision zzsubteam zzteam.
CREATE DATA <extended_data>-data TYPE zcrmt_mkt_broker_tab.
ASSIGN <extended_data>-data->* TO <table>.
<table> = lt_posid.
I would sincerely appreciate and rewad if any solution could be suggested ....Thanking in advance...
NarsinghThe problem has been resolved
-
Adding Search help to a field of standard transction
hi experts,
i m new to abap.
my pp consultant wants that in transaction MM03, for the field on selection screen (Material) one more search help should be added. and on pressing f4 it should be displayed there with other search options.
The search field is "(Document)-Number of the drawing that exists for this object".
Note: To see this field run transaction MM03, enter a material and press enter then we get a screen to choose a view. choose basic data2. In the block "design drawing" there is a field for "Document".
is it possible? if yes how much time it would take and to do it.
how should i go about it.
plz help.Hi ANNIE,
Go through the following Procedure to add a Search help to a field of standard Transaction
The Matchcode is replaced by search help from the version 4.6C.
I will tell u how create the search help.
Name of a search help
A search help is an object of the ABAP Dictionary with which input helps
(F4 helps) can be defined.
There are the following types of search helps:
o Elementary search helps implement a search path for determining the
possible entries.
o Collective search helps contain several elementary search helps. A
collective search help therefore provides several alternative search
paths for possible entries.
o Append search helps can be used to enhance collective search helps
delivered by SAP with customer-specific search paths without
requiring a modification.
The three components of the input help process described by a search
help are the outer interface, the online behavior and the method of data
Go to Tcode SE11. Select the search help radio button.
Give name as ztest and click create
There are two types of search help.
Once is elementary search help
& collective search help
Choose one.
Add the data element.
MatchCode is replaced by search helps.
To attach a search help to a field.
Use this code.
at selection-screen on value-request for source.
progname = sy-repid.
dynnum = sy-dynnr.
clear value_tab.
refresh value_tab.
Filling the Value_tab internal table by itab2 internal table.
loop at itab_desc.
write itab_desc-description to value_tab.
append value_tab.
endloop.
prog = sy-repid.
no = 1000.
clear tab.
refresh tab.
Building the Structure of the Seach Help.
tab-tabname = 'FMFCTRT'.
tab-fieldname = 'BESCHR'.
collect tab.
Function Used to provide Search Help.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BESCHR'
dynpprog = prog
dynpnr = no
dynprofield = 'SOURCE'
window_title = 'Function'
TABLES
value_tab = value_tab
field_tab = tab.
Regards
Sreeni -
Dropdown lists or F4 (input help) on custom field
I created a custom field and would like to either add a dropdown or an F4 input help. I know how to do the input help or the dropdown, but I would like the user to type in their own data on the field if they don't want to select from the list provided.
Does anyone know how to do this.Check out this code.... This module does F4 help for a screen field called P_TRFAR. It gets its values from the data base, you could easily build this internal table in your program without going to the database.
MODULE HELP_ON_TRFAR.
data: begin of help_trfar occurs 0,
trfar type t510a-trfar,
tartx type t510a-tartx,
end of help_trfar.
select * into corresponding fields of table help_trfar
from t510a
where molga = '10'.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'TRFAR'
dynprofield = 'P_TRFAR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_trfar.
ENDMODULE.
In you flow logic, you need the following line to trigger the help when the user presses F4.
PROCESS ON VALUE-REQUEST.
FIELD P_TRFAR MODULE HELP_TRFAR.
That should be all you need.
Please don't forget to award points accordingly for helpful answers. Thanks.
Regards,
Rich Heilman
Message was edited by: Rich Heilman -
hi all,
i have two problems.
1) When i change input attiribute of input/output field is required , any user command (like exit or back command etc.) doesn't work.
2) i have two different field in my screen lifnr and belnr. but i can't use f4 search help for that fields. i have defined search help in my ztable (SE11) and element list-references (SE51) and fm F4IF_FIELD_VALUE_REQUEST and fm F4IF_INT_TABLE_VALUE_REQUEST. i have put process on valeu-request in flow logic. But when program run , skip this event.
all of them it doesn't work.
what should i do?
thaks for your helps.
Regards.Hi,
try the following code...and change the <.....> according to your program..Do the same thing for the second screen field also.
If you face same problem then please let me know.
module display_f4help input.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = '<tablename>'
fieldname = '<fieldname>'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = '<screen-field name>'
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 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc <> 0.
endmodule. " DISPLAY_F4HELP INPUT -
Input help for AUART field on the selection screen
Hi,
I need to create a Z search help for the Field AUART ( sales document type ) .
The search help should be created in this way :
i need to group these Document types under one name ( say SALO) ZCM1, ZCM2,ZDM1,ZDM2,ZRE1,ZRE2,ZS01,ZS02,ZS04.
Then i need to group these document types under another name ( say PRJO) ZCM3,ZDM3,ZS03.
Then i need to group both SALO and PRJO under one name 'BOTH'.
So my new search help will be SALO
PRJO
BOTH
If i select SALO , it should pull data from the Table for all the document types specified. Similarly for PRJO and BOTH .
Can anyone please advice me in this regard at the earliest
With Best Regards
Mamatha.Hi Mamtha,
Your Scenario can be achieved be defining Search help Exit available in the search Help creation Screen
Regards,
Kasi S -
Adding search help to existing fields
hi
i have created a ZTABLE(structure), i need to add search help to one of the field name1 which is the standard sap field from table lfb1. can i add it into the table which i have created, if yes how can i add a search help to the field.Hi,
TYPES: BEGIN OF t_reques,
lgnum TYPE lgnum,
END OF t_reques.
DATA:i_reques TYPE STANDARD TABLE OF t_reques.
SELECTION-SCREEN: BEGIN OF BLOCK b1.
PARAMETER: p_ware TYPE lgnum OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ware.
SELECT lgnum
FROM T301
INTO TABLE i_reques.
PERFORM f4_help USING i_reques CHANGING p_ware. "SUBROUTINE FOR F4 HELP.
SUBROUTINE FOR F4 HELP. *
-->P_I_REQUES text
<--P_P_WARE text
FORM f4_help USING p_i_reques
CHANGING p_p_ware.
CALLING FM F4IF_INT_TABLE_VALUE_REQUEST FOR F4 HELP. *
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ddic_structure = 'LINK'
retfield = 'LGNUM'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_P_WARE'
callback_program = 'ZAR_F4HELP' "Your Program Name
TABLES
value_tab = i_reques
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE i006(zmm_ab).
ENDIF.
ENDFORM.
Thanks,
Arunprasad.P
Reward if useful. -
Adding F4 help to a field in a table maintenance dialog
I have used SE54 to create a maintenance dialog for my table. I need to be able to use F4 in a field in the maintenance dialog that will read several values that have been entered into the table (in the same row) but not yet saved and then execute an SAP delivered function module that will present the user with valid selections based on the data input.
I am somewhat familiar with events and modifications in SE54 but I am struggling with how to implement this.
Thanks for your help
Corwin SlackHi Corwin,
You can have Process on Value-Request on your screen where the field exist. You can use SE80 to edit the screen of the function group that table maintenance generator created.
1. Edit the screen using SE80.
2. Place a 'process on value-request' at the bottom of the flow logic.
3. Below that, put this line
field fieldname module get_help.
4. Double click on GET_HELP and create an input module pool program.
5. In this module pool, pass the values of the other fields in your screen to the function module that can provide you the list of values
6. Use function module F4IF_INT_TABLE_VALUE_REQUEST within this module pool to popup the values.
However, please keep in mind that the values from other fields on the screen are not populated in its field unless you hit enter. -
Hi,
i need a posible values for a field of ztable in a report. here i used for AT SELECTION-SCREEN ON VALUE-REQUEST FOR z table field and FM ie F4IF_INT_TABLE_VALUE_REQUEST used to retrive the value. but that is not getting. c this code.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR parameter1.
select zfield from ztable into table int_tab_ztable.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'zfield'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = int_tab_ztable
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.
when i press F4 that is displaing all fields of Ztable and when i select one value that is not returning back to parameter.
regards,
vijayHi vijay,
1. U have not given proper parameters
while calling the FM.
2. have a look at this (just copy paste)
3.
REPORT ABC.
DATA : BEGIN OF ITAB OCCURS 0,
UNAME LIKE USR01-BNAME,
END OF ITAB.
data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
data : RETURN_wa LIKE DDSHRETVAL .
PARAMETERS : A(12) TYPE C.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR A.
ITAB-UNAME = 'U01'. APPEND ITAB.
ITAB-UNAME = 'U02'. APPEND ITAB.
ITAB-UNAME = 'U03'. APPEND ITAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ITAB-UNAME'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'A'
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 = FTAB
RETURN_TAB = return_tab
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
break-point.
regards,
amit m. -
UI: Popup content (input helps, ...) not shown
We're running the CRM 2007 web UI. We've got problems with the content of popups. The behaviour is different on several hosts calling the UI internally (intranet) and using the same browser (IE6).
Here's a description on how we're able to reproduce the problem:
1. Open CRM UI url
2. Open any search view that contains a field with input help (e.g. business partner ID)
3. Call the input help of this field
--- This is what we already found out in debugging mode:
4. A server cookie is stored in table SSCOOKIE for the given session ID
5. In BSP application BSP_WD_BASE, page "popup_buffered_frame.htm", the server cookie is selected. For any reason, on some hosts the session ID that is given and used for the selection of the server-side cookie is not the same as the one used for storing the cookie. Thus, the cookie cannot be read and the popup remains empty.
Until yet we've found no differences in the configuration of the hosts / browser.
I searched for SAP notes dealing with such an issue, however, didn't find any hits. We tested with IE6.
Thanks for any hints & kind regards
WolfgangI found the solution by calling the URL using "?sap-syscmd=nocookie"
-
Input Help from Internal table.
Hi All,
I have created a screen with fields from an internal table and I can't access the Input help calendar for dates. I would also like to access the domain values that are linked to the original transparent table for two other fields on the screen (both from the internal table in the program) when I click on the input help in the field or press F4.
Relevant assistance will be rewarded.
Thanx in advance.HI
try like this
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
***********SELECTION SCREEN DESIGN***********************
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
**********END OF SELECTION SCREEN DESIGN*****************
*****INITIALIZATION VENT TO ASIGN DEFAULT VALUES TO OTYPE
*INITIALIZATION.
S_OTYPE-LOW = 'D'.
S_OTYPE-SIGN = 'I'.
S_OTYPE-OPTION = 'EQ'.
APPEND S_OTYPE.
CLEAR S_OTYPE.
*************END OF EVENT INITIALIZATION*****************
*********VALIDATION FOR SCREEN FIELDS********************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_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.
ENDIF. -
Hi how to attach search help to a field
hi all,
how to attach search help to a field.hi
<b>Attaching a search help to a field</b>
A search help can influence the behavior of a field when the input help is called. The search help must be assigned to the field in order to do this. You have the following options for this assignment:
Attach search help to a data element / table or structure field / screen field / check table.
Conventionally search helps are attached to table fields or data elements. We shall see the same.
<b>Attaching a search help to a table field</b>
Choose the field name, click on search help tab and
provide the name of the search help.
A search help is attached to a field of a table or structure in the maintenance transaction for this table/structure, analogously to attaching to a table. You must assign the interface parameters of the search help to any fields of the table/structure. The search field must be assigned to an EXPORT parameter of the search help at this time.
Attach the search help to the table field
The search help ZSTRAVELAG_NAME is therefore directly attached to the field AGENCYNUM of table ZSTRAVELAG.
<b>Attaching a search help to a data element</b>
Provide the search help name and the parameter name
under the further characteristics tab of the data element.
If the input help of a field is defined by its data element, no further screen fields can be used in the input help.
Also note that the input F4 help would be available wherever the data element is used.
<b>Attaching a search help to a screen element</b>
A search help can be directly assigned to a screen field in two ways.
The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
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 MATCHCODE OBJECT.
However, input help is only available for this particular screen.
In this case, the search help is only available for this screen.
<b>IF YOU WANT TO ATTCH A SERACH HELP TO THE SCREEN FILED THIS IS THE CODE</b>
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
************SELECTION SCREEN DESIGN************************
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
***********END OF SELECTION SCREEN DESIGN******************
**********VALIDATION FOR SCREEN FIELDS*********************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
* IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
* SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
* PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
VALUE_ORG = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
* FIELD_TAB =
* RETURN_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.
ENDIF.
<b>REWARD IF USEFULL</b> -
Static input help for DATS type
Hello,
I'd like to link static input help for screen field of DATS type. If I click on help linked to this screen field I get CONVT_NO_NUMBER error: 'Unable to interpret "=2" as a number.'
My steps:
- In Screen Painter I selected desired screen field and selected DATS type and "1 Show at selection" in its details.
- I defined global variable with same name as desired screen field
What's the problem?
Best regards,
Josef MotlHi,
do this way.....
first declare the variable in program as
1. data: date type sy-datum.
2. now go to your screen,(click on F6) use get from Program
now choose date form it , and say ok, now save it and activate it.
delete the old one..
now you will be able to get all the things which you want.
automatical validation also possible, and F4 also possible.
Regards
vijay -
How to change sales organization input help search view in trade promotion?
Hi,
We are creating trade promotions. While creation, we have to select sales organization. We press the input help button of field sales organization, and we are facing sales organization search list. Here in search list, there are four columns, sales organization id, sales organization text, distribution channel and division. I want to add columns the texts of distribution channel and division but I can't find the component name for this screen. What is the component name of sales organization input value screen?Hi Astron,
They are basically DDIC search helps., They dont have a UI component.
Check the code in method GET_V_SALES_ORG_DESC of Trade Context Node.
More details on https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0646247-efe2-2b10-3b99-c1a12ef2d752
Regards,
Masood Imrani S. -
A question about search help and input help,PLZ take a look at it.
hi everyone,
i want to know the difference between search hlep and inpu help
can anyone tell me about that?
thanksHI
BOTH ARE SAME
you can define F4 help in 2 ways
in SE11 or in the report program
IN SE11
Attaching a search help to a table field
Choose the field name, click on search help tab and
provide the name of the search help.
A search help is attached to a field of a table or structure in the maintenance transaction for this table/structure, analogously to attaching to a table. You must assign the interface parameters of the search help to any fields of the table/structure. The search field must be assigned to an EXPORT parameter of the search help at this time.
Attach the search help to the table field
The search help ZSTRAVELAG_NAME is therefore directly attached to the field AGENCYNUM of table ZSTRAVELAG.
Attaching a search help to a data element
Provide the search help name and the parameter name
under the further characteristics tab of the data element.
If the input help of a field is defined by its data element, no further screen fields can be used in the input help.
Also note that the input F4 help would be available wherever the data element is used.
Attaching a search help to a screen element
A search help can be directly assigned to a screen field in two ways.
The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
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 MATCHCODE OBJECT.
However, input help is only available for this particular screen.
in REPORT PROGRAM
in this way we declare in report program
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_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.
ENDIF.
Check this out
http://www.sap-img.com/abap/value-request-for-parameter.htm
******************************8
sample program
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.
one more program....
REPORT ZHELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
Create it from SE11.
enter search help
and create elementary
enter description and below Table name
and the fields
see the doc
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.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Maybe you are looking for
-
Can't reinstall/uninstall Spotify on Windows 7 64-bit
Because of the problem reported in this topic http://community.spotify.com/t5/Desktop-Windows/Freeze-when-changing-tracks/m-p/4285 I'm trying to uninstall and reinstall Spotify. First problem: uninstalling through Control Panel, Programs and Features
-
How to clear the table data at the time of leaving fromt the page
Hi all, I have requirement to clear all the table data on the page. For that i have written code like public void clearRunCalcPage(){ System.out.println("Inside clearRunCalcPage"); this.getCmProcessView().executeEmptyRowSet(); this.getCmProcessFiveRe
-
Stock quantity vs sales order confirmed quantity
when creating a sales order for a particular item, the system confirms quantity 100 whereas when i check the stock status of the material using any inventory report( e.g.. mmbe, mb52), the system shows 200 of the stock in unrestricted use. When I sim
-
HtmlSelectOneRadio with multiple rows
I have 4 radio buttons that are displayed by an HtmlSelectOneRadio tag. I would like to change the layout of my selectItems for the HtmlSelectOneRadio from a table with four columns to a table with two columns and two rows. What is the best way to do
-
Naming clips so that events are sorted by clip dates
I have some dv-avi clips that I've imported using my old PC. I now import those clips in iM. To get the events sorted correctly by date/time I change the name to a format that iM interprets as date/time stamp (e.g. clip-2007-12-24 12;00;00.dv). iM th