Need Help in Crating SEARCH HELP
Dear All,
I want to create a search help for displayiing only srvice Purchase requisition along with date, name of requisitionar & mtext from table EBAN, which i want to use in my report.\
can anybody send me the detailed steps for this.
Help is appricited.
Appropriate points will be rewarded.
Regards
arun
Hi,
Please check this link.
http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm
Regards,
Ferry Lianto
Similar Messages
-
Need some help in creating Search Help for standard screen/field
I need some help in adding a search-help to a standard screen-field.
Transaction Code - PP01,
Plan Version - Current Plan (PLVAR = '01'),
Object Type - Position ( OTYPE = 'S'),
Click on Infotype Name - Object ( Infotype 1000) and Create.
I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
I specify again, I have to add a new search help to standard screen/field and not to enhance it.
This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
It's urgent.
Thanks in advace. Suitable answers will be rewardedHi Pradeep,
Please have a look into the below site which might be useful
Enhancing a Standard Search Help
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
edc983384237
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
A search help exit is called at certain timepoints in the input help process.
Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
timepoints
The following timepoints are defined:
1. SELONE
Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
2. PRESEL1
After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
3. PRESEL
Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
4. SELECT
Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
5. DISP
Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
6. RETURN (usually as return value for the next timepoint)
The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
7. RETTOP
You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
8. EXIT (only for return as next timepoint)
The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
9. CREATE
The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
10. APP1, APP2, APP3
If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
F4IF_SHLP_EXIT_EXAMPLE
This module has been created as an example for the interface and design of Search help exits in Search help.
All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
A search help exit is called repeatedly in connection with several
events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
Hope this info will help you.
***Reward points if found useful
Regards,
Naresh -
In my requirement I have a table for which a search help needs to be designed. The product hierarchy has 8 levels. To identify the correct product hierarchy, search help will be used by the user to select the level of product hierarchy and to navigate to next level of product hierarchy.
Please give me some idea to design this.Hi,
You have to use collective search help.
A collective search help describes an input help process in which the
user can choose one of several alternative search paths. Each
alternative search path corresponds to an elementary search help, i.e. a
collective search help contains several elementary search helps.
Both elementary search helps and other collective search helps can be
included in a collective search help. if a collective search help
contains other collective search helps, they are resolved down to the
level of the elementary search helps when the input help is called.
Like an elementary search help, a collective search help has an
interface of import and export parameters. The data is exchanged between
the screen template and the parameters of the elementary search helps
contained in it using this interface. The parameters of the search helps
included in a collective search help must be assigned to the parameters
of the collective search help.
During the input help process, the collective search help only controls
the user's selection of the required search path. The rest of the dialog
and data collection is controlled by the selected elementary search
help. If selection of the required elementary search help should be made
flexible (e.g. with context-specific definition of the set of available
search paths), the collective search help must be assigned a search help
exit.
Hope now you can design accordingly and i think this helps you.
Regards,
Rama Chary.Pammi. -
Dear Experts,
I have successfully created a Help View (ZKEYHELP) using SE11 and activated it. Then when I try create a Search Help using SE11 again and specify the Selection Method as (ZKEYHELP) it prompts me an error when activating saying: "View ZKEYHELP is of type C and therefore not suitable as selection method".
The Delivery Class of the Help View ZKEYHELP I created is C - Customizing table, maintenance only by cust.
Is there any way to solve this problem. Thanks.
Best Regards.*Creating Elementary Search Helps *
Procedure
In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
A dialog box appears in which you must select the type of search help.
Select Elementary search help and choose .
The maintenance screen for elementary search helps appears.
Enter an explanatory text in the field Short text.
You can for example find the search help at a later time using this short text.
In the Definition tab page enter the selection method of the search help.
You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.
Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.
If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.
The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.
You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.
This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.
Define the attributes of the search help parameters.
Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.
You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.
Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.
Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.
You can assign the parameter a default value in the Default value field.
Select the dialog type of the search help.
The dialog type defines how the hit list is displayed in the input help.
Save your entries.
A dialog box appears in which you have to assign the search help a development class.
Choose .
Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
Result
The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
Other Options
Assign a hot key: If the search help is to be accessed with a hot key, you must enter a one-place ID in the Hot key field. All the elementary search helps contained in a collective search help should have different short cuts.
Assign a search help exit: In exceptions, you might have to change the standard flow defined by the search help with a search help exit. In this case enter the name of the search help exit in the corresponding field.
Test the search help: You can test the flow of an input help defined by the elementary search help with . A dialog box appears in which you can simulate the behavior of the search help under different conditions. You can obtain information about the options provided in this window with -
Help needed with search help with ina search help
Hi all,
i have a field fld1 (non primary key )and to the dataelement of that field a search help is assigned in table ztable1.
That search help is referring to a table in which fld1 is primary key in ztable2.
I have created another search help with all the fileds in ztable1 and iam using this search help in a selection screen returning another field say fld2.
in this search help i have drill down for fld2, which in turn gives the fields of ztable2.
This is working fine.
i have created another search help with the fields of ztable1 but this time its its returning the value of fld1. for some reason in this search i am not able to see the drill downn for fld1 .
can anyone tell me how to get the drill down even the import parameteris fld1
Thankshi,
any suggestions on this
thanks -
Custom search help over standard search help
Hello all,
i made a selection screen with some standard fields and it is shoeing F4 as well, but now problem is that now i want to display customized search help, means wants to add our data in F4, can anyone please help me?
i m doing below code but it is showing nothing, neither standard one nor customized one.
code:
SELECT-OPTIONS: so_mesty FOR edidc-mestyp.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_mesty-low.
PERFORM f4_help.
FORM F4_HELP .
TYPES : BEGIN OF gst_stat,
ZZVALUE like ZCS_PARAM-ZZVALUE,
ZZPARADES like zcs_param-ZZPARADES,
END OF gst_stat.
data : lt_stat TYPE TABLE OF gst_stat.
CONSTANTS: gc_obj(7) type c value 'MMR0320',
gc_par(6) type c value 'MTYP*'.
refresh lt_stat.
select zzvalue ZZPARADES from ZCS_PARAm into table lt_stat where ZZOBJECT = gc_obj and ZZPARANAME = gc_par.
if lt_stat[] is not initial.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ZZVALUE'
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'SO_MESTY-LOW'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = lt_stat
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.
ENDFORM. " F4_HELP
Regards.Hi,
You can try doing like:
On At Selection Screen on value-request for Fieldname.
First select the data from your multiple table and populate
one final table then that final internal table needs to be passed
in FM:
For Eg:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CLASCN-LOW.
*F4 help for material classification data
PERFORM F4_HELP_CLASIFC USING S_CLASCN-LOW.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CLASCN-HIGH.
*F4 help for material classification data
PERFORM F4_HELP_CLASIFC USING S_CLASCN-HIGH.
*& Form F4_HELP_CLASIFC
* text
* -->P_S_CLASCN_LOW text
FORM F4_HELP_CLASIFC USING P_S_CLASCN_LOW.
*To fetch the classification data on the sel screen
SELECT CLINT CLASS FROM KLAH UP TO 500 ROWS
INTO TABLE IT_KLAH.
IF SY-SUBRC <> 0 .
MESSAGE TEXT-006 TYPE 'E'.
ELSE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'CLASS' "Field name on which custom F4 is required
* PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'p_s_clascn_low'
VALUE_ORG = 'S'
DISPLAY = ' '
TABLES
VALUE_TAB = IT_KLAH. "Final Internal table
ENDIF.
ENDFORM. " F4_HELP_CLASIFC
Hope it helps
Regards
Mansi -
Standard Search Help in Custom Search Help
I've created a Custom Search Help for Product Hierarchy. But when search help window appears, I want to put a standard search help of Product Hierarchy on Product Hierarchy field which is located on Resctricted section. Is that possible? Let me know if there's a way...
Thank youhello ibnu,
it is not possible i attach a standard search help mara
no such feature available . -
Hi Friends,
My requirement is that when user Clicks on pushbutton in module pool screen,popup window with 4 radio buttons to be displayed.Once user selects the push button and said ok...Then Search help has to be displayed with Selection Criteria for 4 fields..the selected radiobutton in the popup has to be passed on to the one of the search help input fields as a default value and the remaining input values will be entered by user manually as per the requirement. Finally result has to come for the user input.
Could any one suggest me how can i do this?
Thanks & Regards
RavindraHi,
Try this.
In the user command of the first screen( in which the push button is placed and its func code is PB) in the function code 'PB', do the following
1. Call a new screen with x and y coordinates so that it appears as a pop up window
ex: call screen 9000 starting at <x> <y> ending at <x> <y>
2. In the 2nd screen 9000, place 4 radiobuttons and create a gui status with ok and cancel buttons.
3. In the usercommand of the 2nd screen 9000, check for the ok code of 'OK' button and pass the value to the input fields in the 1st screen.
4. Then use the passed value and filter the search help value based on it and call the function module F4IF_INT_TABLE_VALUE_REQUEST for the search help of the required fields.
Hope this may be helpful.
Regards,
Sharin -
How to add the custom help exit to search help in SE11
Hi All,
I am trying to add the ZF4IF_SHLP_EXIT_EXAMPLE to search help exit in SE11 for search help LART . But system is asking for the access key.
Is there any way we can achieve this with out using access key?
Please suggest me.
Regards
SubhaskarHi,
To add a Search help exit goto SE11 -> in Search help option enter 'LART' -> click on display.
once you have entered in you will have to click on change button. This will give on information message first, then it will ask if you have to maintain in the original language itself(only if you have logged in with any language other than DE). You can select your option in that then you will be able to view the same in EDIT mode. now you can go ahead and add your search help exit.
Hope it helps.
Thanks & Regards,
Praveenkumar T. -
Search Help Exit - Dependent Search Help
Hello All
My question is related to Sarch Help in SE11.
I have created a Search Help and implemented a Search help Exit.In My search help i have PLANT and LGORT(storage loc.).
and i have taken the Search help of PLANT and LGORT from T001L table( H_T001W and H_T001L).
Now on the SELECTION SCREEN of SEARCH HELP ,based on PLANT selected, the Storage Location should come with filtered records based PLANT.
A kind of Dependent Seach help.
I have Checked that in TABLE T001L, when i do F4 on PLANT and then if i do F4 on LGORT it comes with the filtered records.
Kindly Help.
Points will be Awarded.*Below is the Code:-
IF callcontrol-step <> gc_selone AND "SELONE
callcontrol-step <> gc_select AND "SELECT
callcontrol-step <> gc_disp AND "DISP
callcontrol-step <> gc_presel. "PRESEL
EXIT.
ENDIF.
"Checking Call Control Step is "PRESEL" For doing Validation and
"changing the field Label before displaying the Scren.
IF callcontrol-step = gc_presel."'PRESEL'.
ASSIGN shlp TO <fs_shlp1> .
READ TABLE <fs_shlp1>-interface ASSIGNING <fs_shlp2> WITH KEY f4field = gc_x."X
IF sy-subrc = 0.
<fs_shlp2>-f4field = gc_space."' '.
ENDIF.
*Renaming Internal Characteristic to Characteristics Name
LOOP AT <fs_shlp1>-fielddescr ASSIGNING <fs_shlp3>.
IF <fs_shlp3>-fieldname = gc_flag."Renaming "FLAG" to "NO ZERO STOCK BATCH"
<fs_shlp3>-fieldtext = text-001.
<fs_shlp3>-reptext = text-001.
<fs_shlp3>-scrtext_s = text-002.
<fs_shlp3>-scrtext_m = text-001.
<fs_shlp3>-scrtext_l = text-001.
ELSEIF <fs_shlp3>-fieldname = gc_lgort."Renaming "STORAGE LOCATION".
<fs_shlp3>-fieldtext = text-005.
<fs_shlp3>-reptext = text-005.
<fs_shlp3>-scrtext_s = text-006.
<fs_shlp3>-scrtext_m = text-005.
<fs_shlp3>-scrtext_l = text-005.
ENDIF.
ENDLOOP.*Validation for PLANT
CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
EXPORTING
parameter_required = gc_werks "Field to be mandatory('WERKS')
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
ENDIF.
IF callcontrol-step = gc_select. "SELECT*Reading all the Values given at screen.
PERFORM read_shlp USING shlp.
IF ( r_atwrt IS NOT INITIAL OR r_atinn IS NOT INITIAL ).*If user has only given CHARACTERISTICS and VALUE as selection criteria.
PERFORM char_value_fetch.
ELSEIF r_matnr IS NOT INITIAL OR r_werks IS NOT INITIAL OR r_lgort IS NOT INITIAL.*If user has only given any value other than CHARACTERISTICS and VALUE as selection criteria.
PERFORM fetch_other_details.
IF gv_flag = gc_x. "'X'
DELETE gt_final WHERE clabs = gc_labst.
DELETE gt_final WHERE cinsm = gc_labst.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.*Prepare Final Table
ENDIF.
IF callcontrol-step = gc_disp. "DISP*Refreshing the RECORD_TAB and Populating it with values of GT_FINAL
REFRESH:record_tab.
callcontrol-maxexceed = gc_x. "X*This Method Fills the RECORD_TAB from GT_FINAL to display.
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = gt_final
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF sy-subrc <> 0.* Implement suitable error handling here
ENDIF.*Refreshing GT_FINAL
REFRESH: gt_final,r_matnr,r_atwrt,r_atinn,r_klart,r_werks,r_lgort,shlp_tab,gt_mchb,gt_mara,gt_makt,gt_ausp,gt_mcha.
CLEAR:gv_flag.
ENDIF. -
F4 help for Elementary Search Help in collective Search help
Hi Gurus,
I have created an elementary search help 'ZXXX' with fields Partner , KDGRP and KTEXT .For this searh help, I have created a database view for the selection method with tables BUT000 , KNVV and T151.Finally, added this elemenatry search help'ZXXX' to collective searh help BUPA.
When I press f4 on BP , I could very well see the newly created seach help 'ZXXX' in transaction BP.However, the F4 on field KDGRP is missing. I thought the SAP internally determines F4 for KDGRP based on the check table T151 in domain KDGRP but it is not happening. I did try to infulence the values in shlp-interface and shlp-fielddescr using search help exit but it does not work.
Could you help me how do I acheive the F4 help on field KDGRP which is used in an elementary search help and further more in collective search help BUPA on transaction BP.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
cheers,
Amber
Edited by: Alvaro Tejada Galindo on Jan 4, 2010 3:29 PMHi
There might be some reasons for not getting the F4 value. One reason could be the complete AUTHORISATION for shopadmin given to the user.
Please check the SHOPADMIN authorisations of the user.
Hope this will be helpful
Regards -
Help required with search help exit
Hi,
I have the following code in my search help exit function module.
FUNCTION ZTRAC_SH_OBJ_TYPE.
""Local Interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" REFERENCE(SHLP) TYPE SHLP_DESCR_T
*" REFERENCE(CALLCONTROL) TYPE DDSHF4CTRL
Data lt_program TYPE TABLE OF zpr_program.
DATA ls_program LIKE LINE OF lt_program.
DATA id_obj_type TYPE zobj_type.
CALL FUNCTION 'ZTRAC_GET_OBJ_TYPE_ACTUAL'
IMPORTING
ED_OBJ_TYPE = id_obj_type.
CASE callcontrol-step.
*.SELONE step
WHEN 'SELONE'.
IF ID_OBJ_TYPE = 'PROGRAM'.
CALL FUNCTION 'Z_PR_GET_PROGRAMS'
EXPORTING
IV_BSUITE_ID =
IV_PTU_ORG_ID =
IV_AUTHOR_ID =
IV_CALLING_APPLICATION =
IT_INCLUDE_PHASE_IDS =
IT_EXCLUDE_PHASE_IDS =
IMPORTING
ET_PROGRAMS = lt_program
ET_PROGRAM_HEADER =
EXCEPTIONS
BSUITE_FOR_PRG_NOT_EXISTING = 1
PTU_ID_FOR_PRG_NOT_EXISTING = 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.
LOOP AT lt_program INTO ls_program.
APPEND lt_program-INT_PRG_NAME TO shlp.
APPEND lt_program-INT_PRG_NAME TO shlp_tab.
Below i am appending the result to the record_tab.
APPEND ls_program-INT_PRG_NAME TO record_tab.
ENDLOOP.
ELSEIF ID_OBJ_TYPE = 'PROJECT_CLUSTER'.
ENDIF.
WHEN 'DISP'.
ENDCASE.
When DISP -> I want the values in the record_tab to be filled in my F4 help. What will the code in WHEN DISP be?
Also i have appended the result only to record_tab. Do i have to append it to SHLP_TAB also?hi,
In DISP , you have to filter the records according to search criteria if there is any and finally move the records to Record_tab.
It would be something like this :
LOOP AT gt_select_list INTO gw_select_list WHERE carrid IN r_carrid.
MOVE gw_select_list TO record_tab-string.
CLEAR gw_select_list.
ENDLOOP.
the values in Record_tab will be displayed to the user. -
Help me on Search Help :D
Hello Frnds,
I have two fields on screen. Fld1 and Fld2. Fld2 has a Search Help assigned to it.
Problem is...
I want search help to work only if Fld1 is blank, else only values associated to Fld1 shd show on F4 in Fld2.
For second option Iam using function module F4IF_INT_TABLE_VALUE_REQUEST
BUT how can I make it work for both conditions. Is there any function module where I can assign search help to field at run time.
Waiting for your replies.
Regards,
ArpitHi Arpit,
I am assuming you have a database field defined for this field. I don't think you can switch between SEARCH HELP and your own search help using PROCESS ON VALUE-REQUEST. What you have to do is, have just the PROCESS ON VALUE REQUEST and have something like this in there.
IF fld1 is initial.
*-- use search help, for that, call
F4IF_FIELD_VALUE_REQUEST, giving table name and
fieldname and may be your search help name also.
ELSE.
*-- your current logic using
F4IF_INT_TABLE_VALUE_REQUEST
ENDIF. -
Change Default choice of Elimentary search help in Collective Search Help
Hi All,
This might be very odd one but i am faced with such a requirement.
In collective search help for eg in MM02 for material we click on a F4 for material master and it gives the list of various search help. By default the last selected elimentary search help will be selected.
My requirement is that by default only the first search help has to be displayed.
Any idea on how this can be achieved.
Regards,
GHi NabheetMadan,
I am aware of the concept of search help exit. What i am looking for is how to influence the choice of default search help in the exit.
Regards,
Shankar -
Need to create search help for parameter 2 based on values in parameter1
hi Specialists,
I need to create a search help for parameters field 2 ( Country ) based on the values the user inputs in parameters field 1 ( Currency ). The values of field Currency & Country will come from T001 table.
The logic is : Based on a unique currency value ( fetched from T001 table ) user needs to get/see all Countries on his selection -screen.
Can you guys let me know which FM can I use for above & how to pass various values i.e. parameters into that FM. EXplanation with an example/code is highly appreciable.
Thanks
Abhinav.Hi Abhinav,
Use this demo code, its working:-
This code selects sale document item based on the user entry for sales document on the screen field.
REPORT ztg_f1f4.
CALL SCREEN 1010.
*& Module GET_F4_HELP INPUT
* text
MODULE get_f4_help INPUT.
TYPES : BEGIN OF it,
posnr TYPE zvbap-posnr,
END OF it.
DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
vbeln TYPE zvbap-vbeln.
CLEAR: tb_dynpfields.
REFRESH: tb_dynpfields.
MOVE 'ZVBAP-VBELN' TO tb_dynpfields-fieldname. "screen field name
APPEND tb_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'ZTG_F1F4'
dynumb = '1010'
* TRANSLATE_TO_UPPER = ' '
* REQUEST = ' '
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
* DETERMINE_LOOP_INDEX = ' '
* START_SEARCH_IN_CURRENT_SCREEN = ' '
* START_SEARCH_IN_MAIN_SCREEN = ' '
* START_SEARCH_IN_STACKED_SCREEN = ' '
* START_SEARCH_ON_SCR_STACKPOS = ' '
* SEARCH_OWN_SUBSCREENS_FIRST = ' '
* SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = tb_dynpfields
* EXCEPTIONS
* INVALID_ABAPWORKAREA = 1
* INVALID_DYNPROFIELD = 2
* INVALID_DYNPRONAME = 3
* INVALID_DYNPRONUMMER = 4
* INVALID_REQUEST = 5
* NO_FIELDDESCRIPTION = 6
* INVALID_PARAMETER = 7
* UNDEFIND_ERROR = 8
* DOUBLE_CONVERSION = 9
* STEPL_NOT_FOUND = 10
* OTHERS = 11
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE tb_dynpfields INDEX 1.
IF sy-subrc EQ 0.
vbeln = tb_dynpfields-fieldvalue.
ENDIF.
SELECT posnr FROM zvbap
INTO TABLE itab
WHERE
vbeln = vbeln.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'POSNR'
* PVALKEY = ' '
dynpprog = 'ZTG_F1F4'
dynpnr = '1010'
dynprofield = 'POSNR'
* 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.
ENDMODULE. " GET_F4_HELP INPUT
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir
Maybe you are looking for
-
Hi. I am new to using an iPad. I have set up an icloud email address for use by all the family.. I want to set up my own as my pop email does not seem to work well on this apple platform. I have tried to self help but I'm being asked to access the ic
-
The application dies when I try to play a sound
Hello, I'm trying to add sounds in my app. The application dies when I try to play a sound y somes devices. Logcat throw this error in Motorola Defy: 6:40.960 20812 20812 D dalvikvm: GC_FOR_MALLOC freed 7757 objects / 547472 bytes in 43ms 6:42.030 20
-
SAP CRM 7.0 Service Transaction type.
Hi Experts, Please explain the senario of servies in CRM. as i am new to this module. Please explain the transaction type related to services. Please let me know any futher links & documentation for the same. Thanks & Regards Prajith P
-
How to turn of HTML tags in Email Messages?
My BB8830 World Edition on Verizon continues to show full html tags - e.g. <http://www.oracle.com/dm/global/opn.gif> - instead of just the link, which makes any email with links extremely difficult to read as the full html tags display in the middle
-
How to set a default reminder for ICal to-dos
I would love to be able to set a default reminder for all my Event to-do's in ICal. Right now, I have to choose a reminder, and it's always preset at 11:45 PM. I don't want my phone to remind me in the middle of the night.