Search help call in FM ?
Hi,
Can we call a search help from a function module ?
thanks,
Navneeth.K
hi
<b>Please check the following documentation, taken from help.sap.com;</b>
Calling Help Texts from Dialog Modules
If data element supplement documentation is insufficient for your requirements, or you want to display help for program fields that you have not copied from the ABAP Dictionary, you can call dialog modules in the POH event:
<b>PROCESS ON HELP-REQUEST.</b>
FIELD <f> MODULE <mod>.
After the PROCESS ON HELP-REQUEST statement, you can only use the MODULE statement together with the FIELD statement. When the user chooses F1 for a field <f>, the system calls the module <mod> belonging to the FIELD <f> statement. If there is more than one FIELD statement for the same field <f>, only the first is executed. However, the contents of the screen field <f> are not available in the module <mod>, since it is not transported by the FIELD statement during the PROCESS ON HELP-REQUEST event. The field help should not be dependent on the user input.
The module <mod> is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document:
HELP_OBJECT_SHOW_FOR_FIELD
This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
HELP_OBJECT_SHOW
Use this function module to display any SAPscript document. You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME. For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.
For further information about how to create SAPscript documents, refer to the Documentation of System Objects documentation.
Field help on screens.
REPORT DEMO_DYNPRO_F1_HELP.
DATA: TEXT(30),
VAR(4),
INT TYPE I,
LINKS TYPE TABLE OF TLINE,
FIELD3, FIELD4.
TABLES DEMOF1HELP.
TEXT = TEXT-001.
CALL SCREEN 100.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE F1_HELP_FIELD2 INPUT.
INT = INT + 1.
CASE INT.
WHEN 1.
VAR = '0100'.
WHEN 2.
VAR = '0200'.
INT = 0.
ENDCASE.
ENDMODULE.
MODULE F1_HELP_FIELD3 INPUT.
CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
EXPORTING
DOKLANGU = SY-LANGU
DOKTITLE = TEXT-002
CALLED_FOR_TAB = 'DEMOF1HELP'
CALLED_FOR_FIELD = 'FIELD1'.
ENDMODULE.
MODULE F1_HELP_FIELD4 INPUT.
CALL FUNCTION 'HELP_OBJECT_SHOW'
EXPORTING
DOKCLASS = 'TX'
DOKLANGU = SY-LANGU
DOKNAME = 'DEMO_FOR_F1_HELP'
DOKTITLE = TEXT-003
TABLES
LINKS = LINKS.
ENDMODULE.
The next screen (statically defined) for screen 100 is 100. It has the following layout:
The screen fields DEMOf1HELP-FIELD1 and DEMOF1HELP-FIELD2 from the ABAP Dictionary and the program fields FIELD3 and FIELD4 are assigned to the input fields. The pushbutton has the function code CANCEL with function type E.
The screen flow logic is as follows:
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
PROCESS ON HELP-REQUEST.
FIELD DEMOF1HELP-FIELD2 MODULE F1_HELP_FIELD2 WITH VAR.
FIELD FIELD3 MODULE F1_HELP_FIELD3.
FIELD FIELD4 MODULE F1_HELP_FIELD4.
The components FIELD1 and FIELD2 of structure DEMOF1HELP both refer to the data element DEMOF1TYPE. This data element is documented, and also has two supplements with numbers 0100 and 0200.
regards
ravish
<b>plz reward popints if helpful</b>
Similar Messages
-
Hi Guys,
please.. How can a Search Help call a SCREEN ?
I have a problem in a ABAP WebDynpro app, apparently because the search help is calling a SCREEN from the program SAPLSZA1.
This is the error message:
"Sending of dynpro SAPLSZA1 0201 not possible: No window system type specified"
The search help is KRED.
Any idea??
Thanks!Hi,
it can call screen using search help exit. KRED is a collective search and for example it contains search help KREDY. This search help uses exit F4IF_SHLP_EXIT_VENDOR_FUZZY. It is just a function module.
Cheers -
Read webdynpro screen value before Search Help call
Hi Experts,
For a webdynpro screen I have added a custom field to the layout and mapped to a custom attribute which has a a standard search help determined from the dictionary attribute.
There are multiple input field in the layout and there is this custom input field with search help in the layout. During runtime is it possible to read the other inputfield in the layout before F4 is clicked? I want to read one of the inputfield whenever the f4 search help is called. None of the methods WDDOAFTERACTION, WDDOBEFOREACTION, WDDOMODIFYVIEW are triggered before the F4 search help call.
Please let me know if anyone has any idea.Hi,
As suggested you have to use OVS or freely programmed value help. OVS is easy to use , check the below article for OVS Reference : [OVS in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?QuickLink=index&overridelayout=true] Also [Dynamic F4 in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?QuickLink=index&overridelayout=true]
In the event handler method of OVS read the first input value using get attribute method and select the corresponding value.
Hope this helps u.,
Thanks & regards,
Kiran. -
Search help call without display
Hi
Can I call a search help within a program but not send the output to the screen? I wish to validate an entry against the logic but not display anything.
Cheers
Ianohh I dont think we can stop display of the search help screen...
the max u can do is display the values directly, without any seleciton screen kind of .. to display...
Reward points if u think usefull
jackandjay.
or u can write some validations code in the At selection screen event..
Message was edited by:
jackandjay -
Hi Guys,
please.. How can a Search Help implement a "CALL SCREEN" command?
I have a problem in a ABAP WebDynpro app, apparently because the search help is calling a SCREEN from the program SAPLSZA1, and I have to undo this. It shouldn't call.
This is the error message:
"Sending of dynpro SAPLSZA1 0201 not possible: No window system type specified"
The search help is KRED.
Any idea??
Thanks!I have tried both. Same problem..
But the real problem is that I can not reproduce this in DEV. It only happens in QAS, and i can not find what is different. All the objects that I have checked so far (Search Help, Program, etc.) have no differences.
Tks -
Custom Search Help for the field Equipment number
Hi,
I have enchanced sales order transaction and included a field Equipment number(EQUI-EQUNR).
Here after pressing F4(Search help) standard search help is display.
I have a requirement wherein, the standard search help should not appear and a customised search where a specific Equipment category type values should appear in the search help.
Ex. Field equipment category (EQTYP).EQUNR(Equipment Number).
Please let me know how to work for the customised search help.Hi,
You need to create a customized search help.
[Elementary Search Help - Structure|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee38446011d189700000e8322d00/content.htm]
[Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee5f446011d189700000e8322d00/content.htm]
Then you need to attach the search help to the screen field..
[Assigning Search Helps to Screen Fields|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee93446011d189700000e8322d00/content.htm]
[Hierarchy of Search Help Call|http://help.sap.com/saphelp_nw04/helpdata/EN/0b/32e9b798da11d295b800a0c929b3c3/content.htm]
regards
Nitesh -
Problem in Search help in Table control
Dear ABAPers,
I am using the Table control.In that i am using F4 help.the F4 Value should be based o the
another field in the Table control.how to do this.
Thanks & Regards,
Ashok.I had a similar requirement. In this table control the values for the F4 help for the shipping conditions depend on the vendor the user selects in the first column.
Here is my code:
PROCESS ON VALUE-REQUEST.
FIELD gs_pod_screen-ship_cond
MODULE f4_ship_cond.
MODULE f4_ship_cond INPUT.
PERFORM f4_pod_shipping_conditions.
ENDMODULE. " f4_ship_cond INPUT
FORM f4_pod_shipping_conditions .
DATA: lt_return TYPE TABLE OF ddshretval,
ls_return TYPE ddshretval,
lv_line TYPE i,
lv_vendor TYPE bu_partner,
ls_shlp TYPE shlp_descr,
ls_selopt TYPE ddshselopt,
ls_if TYPE ddshiface,
lv_c(132) TYPE c.
* where on the table control did we hit F4?
GET CURSOR LINE lv_line.
READ TABLE gt_pod_sales
INTO gs_pod_screen
INDEX lv_line
TRANSPORTING vendor.
CHECK NOT gs_pod_screen-vendor IS INITIAL.
* the possible values always depend on the vendor => build it every time
* get the search help parameters first
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = gc_shlp_shipcon
IMPORTING
shlp = ls_shlp.
* now we have to set restrictions based on the vendor
CLEAR ls_selopt.
ls_selopt-shlpname = gc_shlp_shipcon.
ls_selopt-shlpfield = gc_name_vendor.
ls_selopt-sign = gc_i.
ls_selopt-option = gc_eq.
ls_selopt-low = gs_pod_screen-vendor.
APPEND ls_selopt TO ls_shlp-selopt.
* set the field for the output
READ TABLE ls_shlp-interface INTO ls_if
WITH KEY shlpfield = gc_name_ship_cond.
IF sy-subrc EQ 0.
ls_if-valfield = gc_field_shipcon.
MODIFY ls_shlp-interface FROM ls_if
INDEX sy-tabix TRANSPORTING valfield.
ENDIF.
* pass in the base date and call the search help
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = ls_shlp
TABLES
return_values = lt_return.
READ TABLE lt_return INTO ls_return INDEX 1.
IF sy-subrc EQ 0.
gs_pod_screen-ship_cond = ls_return-fieldval.
ELSE.
CLEAR gs_pod_screen-ship_cond.
ENDIF.
* transfer the value
MODIFY gt_pod_sales
FROM gs_pod_screen
INDEX lv_line
TRANSPORTING ship_cond.
ENDFORM. " f4_shipping_conditions
Hope that helps,
Michael -
How to display our own selected data in a search help using a exit
Hello,
I had created a Search Help Exit to restrict the values to be displayed in the search help. This code was written under the event 'DISP' in the exit. But it is not giving the desired result. So I want to replace the RECORD_TAB of the exit with my own selected data. For this I had written code for selection under the event 'SELECT'. But when I try to overwrite RECORD_TAB with this, this create errors.
What should I do to overwrite the values of the RECORD_TAB field with my own values?
Regards,
AbijithHi,
This is how we implemented the code modify the values in search help exit.
Check if display process button is pressed
IF callcontrol-step = 'DISP'.
Read the parameter ID for company code.
GET PARAMETER ID 'BUK' FIELD lv_bukrs.
IF sy-subrc EQ 0.
lwa_bukrs-sign = 'I'.
lwa_bukrs-option = 'EQ'.
lwa_bukrs-low = lv_bukrs.
APPEND lwa_bukrs TO lr_bukrs.
ENDIF.
Check if any entry is made in Test account/Testity account name
LOOP AT shlp-selopt INTO lwa_selopt.
CASE lwa_selopt-shlpfield.
WHEN 'ZZTEST'.
lwa_roy-sign = lwa_selopt-sign.
lwa_roy-option = lwa_selopt-option.
lwa_roy-low = lwa_selopt-low.
APPEND lwa_roy TO lr_roy.
WHEN 'ZZTEST_NAME'.
lwa_roy_name-sign = lwa_selopt-sign.
lwa_roy_name-option = lwa_selopt-option.
lwa_roy_name-low = lwa_selopt-low.
APPEND lwa_roy_name TO lr_roy_name.
ENDCASE.
ENDLOOP.
Get customer in entered for a company code
SELECT kunnr
bukrs
FROM knb1
INTO TABLE lt_knb1
WHERE kunnr IN lr_roy
AND bukrs IN lr_bukrs.
IF sy-subrc EQ 0.
SORT lt_knb1 BY kunnr.
Get customer name for the customer.
SELECT kunnr
name1
FROM kna1
INTO TABLE lt_kna1
FOR ALL ENTRIES IN lt_knb1
WHERE kunnr EQ lt_knb1-kunnr
AND mcod1 IN lr_roy_name.
IF sy-subrc EQ 0.
SORT lt_kna1 BY kunnr.
ENDIF.
ENDIF.
Get Values for Testty account selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest'
fieldname = 'Ztest' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_test_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Get Values for Testty account Name selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest1'
fieldname = 'Ztest1' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
LOOP AT lt_knb1 INTO lwa_knb1.
CLEAR lwa_kna1.
READ TABLE lt_kna1
INTO lwa_kna1
WITH KEY kunnr = lwa_knb1-kunnr
BINARY SEARCH.
IF sy-subrc EQ 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lwa_kna1-kunnr
IMPORTING
output = lv_kunnr.
lwa_roy_help-ztest1 = lv_kunnr.
lwa_roy_help-ztest = lwa_kna1-name1.
APPEND lwa_roy_help TO lt_roy_help .
ENDIF.
ENDLOOP.
SORT lt_ztest_help.
DELETE ADJACENT DUPLICATES FROM lt_roy_help COMPARING ZTEST1.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST1'
fieldname = 'ZTEST1'" Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST''
fieldname = 'ZTEST'' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
ENDIF.
Nabheet -
Problem with Dictionary Search Help
very good morning!!
we have a z-search help called 'ZIH_TIPOIDENTIFICACION', and we want to select a line from the help search, and put the values in two fields. This is easy if the two fields are in the same context, but the fields are in different contexts. Field 1 is in the context BTADMINH and field 2 is in the context BTACTIVITYH and is a field of type 'attribute value'. Only works Field 1 . I do not fill the Field 2, the value for 'field-context_attr ls_field ='
our code is:
data ls_field type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping.
data: lt_input type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_output type if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_field-context_attr = 'EXT.ZZAFLD00003H'.
ls_field-f4_attr = 'ZTAXTYPE'.
append ls_field to lt_output.
ls_field-context_attr = 'BTACTIVITYH/Z_TIPO_IDENT_TEXT'.
ls_field-f4_attr = 'TEXT'.
append ls_field to lt_output.
create object rv_valuehelp_descriptor type cl_bsp_wd_valuehelp_f4descr
exporting
iv_help_id = 'ZIH_TIPOIDENTIFICACION'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping = lt_input
iv_output_mapping = lt_output.
Any ideas?
many thanksHi Victor,
You can access the BTACTIVITYH field from the BT ADMINH context node using the relationships.
entity ?= current.
* Method 1
current = entity->get_related_entity(
iv_relation_name = 'BTHeaderActivityExt' ). "#EC NOTEXT
IF current IS NOT BOUND.
RETURN.
ENDIF.
Here the Current referne will have your new attribute to display in system. Use the same relation code in both set and get methods.
So that both attributes will be part of BTAdminH context node then your above code will work correctly.
Best Regards,
Dharmakasi. -
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 -
Search help F4IF_SHLP_EXIT_EXAMPLE
I have a requirement regarding F4 help. When I click on the zoom button for vendor code, the list of values according to the coding given in serach help exit should get displayed with only company code as input.
The list of vendors is picked from LFa1 table as per the foll. code:
SELECT LIFNR BUKRS FROM LFB1 CLIENT SPECIFIED
INTO TABLE IT_LFB1
WHERE MANDT = SY-MANDT
AND BUKRS = M_BUKRS.
SELECT LIFNR NAME1 FROM LFA1 CLIENT SPECIFIED
INTO TABLE IT_LFA1 FOR ALL ENTRIES IN IT_LFB1
WHERE MANDT = SY-MANDT
AND LIFNR = IT_LFB1-LIFNR
AND ( KTOKK LIKE '%07' OR KTOKK LIKE '%06' )
AND SPRAS = 'E'
AND LZONE = '0000000002'.
How do I put this coding in the search help exit program ?
Please help.
Regards,
Tom Jerry.Hi,
No you can't get import parameters from screen while you are using search help exit,
Because everything is limited to parameters of exit function.
There is another way to limit the range of search help hit list
you should use on the VALUE-REQUEST event of your screen.
Check this code :
DATA: lv_shelp_name TYPE shlpname,
ls_shelp TYPE shlp_descr,
ls_selopt TYPE ddshselopt,
ls_rc LIKE sy-subrc,
lt_return_values TYPE TABLE OF ddshretval,
ls_return_values TYPE ddshretval,
ls_interface LIKE LINE OF ls_shelp-interface,
lw_field_ranges LIKE LINE OF ip_field_ranges.
lv_shelp_name = f4help_name.
* get description for search help
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = lv_shelp_name
IMPORTING
shlp = ls_shelp.
* set range for search help field :
ls_selopt-shlpname = lv_shelp_name.
ls_selopt-shlpfield = 'BUKRS'.
ls_selopt-sign = 'I'.
ls_selopt-option = 'BT'.
ls_selopt-low = lv_company_code
COLLECT ls_selopt INTO ls_shelp-selopt.
ls_interface-valfield = 'X'.
ls_interface-valtabname = 'X'.
MODIFY ls_shelp-interface FROM ls_interface
TRANSPORTING valtabname valfield
WHERE shlpfield = ip_ret_fieldname.
* call F4 dialog
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = ls_shelp
IMPORTING
rc = ls_rc
TABLES
return_values = lt_return_values.
I hope it can be useful for u -
SVS, EVS, and OVS, Value Help and Search Help
what and how to use SVS, EVS, and OVS, Value Help and Search Help in abap webdynpro...Can anyone please give example link or document...As i am able to get on ovs but unable to get rest of other
SVS and EVS are Web Dynpro Java specific types of value help. They do not exist in Web Dynpro ABAP. In Web Dynpro ABAP we have Data Dictionary based Search Help, OVS, and Freely Programmed Value Help. In WDA 7.02 we have the slight variant on DDic Search Help called Suggest Values. It doesn't change the development model, just the runtime user experience.
You can read more about each of the types of WDA based value help in the online help:
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/47/9b298c66eb3376e10000000a421937/frameset.htm -
Matchcodes/Search Helps/Personal Lists
I want to limit the list of values in the Unit of Measure field (MEINS in table MEREQ3211GRID) a user sees when the are Creating a Purchase requisition (ME51N). I know how to do with with a personal list but I don't want to have every user have to create their own personal llist. I would like to have a default for all users.
I have hear about matchcodes and done some searching but I don't seem to find anything about how to actually create one and how to assign it to all users. My searching also indicated matchcodes have been replaced with searchhellps which has added to my confusion.
Help. Thanks.Hi Kathryn,
it was match codes in the good old times, now called search help since decades or do.
If you can identify which search help is called (check the logic for[ Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]), you can create a [search help exit|http://help.sap.com/saphelp_47x200/helpdata/EN/cf/21ee52446011d189700000e8322d00/frameset.htm].
Not done in ten minutes, but pretty good documentation available with function module F4IF_SHLP_EXIT_EXAMPLE.
Regards
Clemens -
Hi All.
I have Customize Database table like Zdbt .i have attached one search help for a field (emp no) (its not key field) like zsearch1.i got all value from database table ,but i want avoid duplicate entries.
example :
value for "emp no" field
101
102
102
103
102
but i need output from search help like
101
102
103
please help me
regards.
Jay.Serch help exit need to be created for this thing.
You need to write the following code there.
In se11 you need to create search help and write a code in the FM z_46638_unique_skil1.
FUNCTION z_46638_unique_skil1.
""Local interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
TYPES : BEGIN OF t_z46638skil,
empid LIKE z46638skil-empid,
posnr LIKE z46638skil-posnr,
skill LIKE z46638skil-skill,
knowldge LIKE z46638skil-knowledge,
END OF t_z46638skil.
DATA : i_z46638skil TYPE STANDARD TABLE OF t_z46638skil,
wa_z46638skil TYPE t_z46638skil,
l_skill TYPE z46638skil-skill.
Basically CALLCONTROL-STEP contains the values of the different stages
of the database operations in the particular flow as follows
1) SELONE
2) PRESEL1
3) SELECT
4) DISP
5) RETURN
The search help exit will be called in all the five steps
so we need to restrict this values of steps based on the user requirements
Else the search help exit can be time consuming
IF callcontrol-step = 'DISP'.
SELECT empid
posnr
skill
knowledge
FROM z46638skil
INTO TABLE i_z46638skil.
SORT i_z46638skil BY skill.
DELETE ADJACENT DUPLICATES FROM i_z46638skil COMPARING skill.
CLEAR record_tab.
REFRESH record_tab.
passing the values of the internal table to the record_tab
that containes the possible values of the field when
search help exit is not being specified
LOOP AT i_z46638skil INTO wa_z46638skil.
record_tab-string+11(20) = wa_z46638skil-skill.
APPEND record_tab.
CLEAR wa_z46638skil.
ENDLOOP.
Passing this FM values, it will return with the optimized
set of values being overwritten to the search help
CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
ENDIF.
ENDFUNCTION.
Please REWARD points for this answer.
Regards,
Brijesh Patel -
Name of collective search help.
Hi,
How can we find the name of collective search help of any field in a transaction?
Say if we need to find the name of the collective search help of BATCH in VL02N transaction.
Please suggest.
Thanks,
Suchi.Hello Sucharita,
There is a hierarchy in which the Searh help is accessed.
For example, you have assigned search help to a screen field with both the options below
1. in Process on Value Request for the field.
2. direct assignement of search help to the screen field (you can see this in screen layout)
Even if both are defined, only 1st option is given priority (i.e. Process on value request).
If that is not defined, then the search that is directly assigned to the screen field provides the values (i.e. when you press F4).
All the options are completely explained in the below link in a picture. This diagram is very clear. I explained some steps below. go through them by paralelly looking at the picture. in the picture, notice that there is difference in dotted line and normal line.
[[http://help.sap.com/saphelp_nw70/helpdata/en/cf/21ea0b446011d189700000e8322d00/frameset.htm]
REFER TO HIERARCHY OF SEARCH HELP CALL SECTION
So, do the following..
1. Find if any Process on Value request is defined in the screen for Cost center. If yes, you need to modify the code here. if no, go to 2nd point.
2. Find if any search help is assigned to the screen field in the screen layout. If yes, modify the search help specified there. If no, go to point 3. (Check this search help in SE11 using Test Button, if it is same as what you get normally on the screen).
3. Go to F1. Go to Table field specified there. Then put the cursor on table field and press Search Help button. If you get any search help there, use that. If no, go to point 4.
4. Similarly, you should continue all the steps as specified in the diagram. If I explain this, it will be too long.
If you did not find until last stage, it will be available in the data element.
This way you can find the correct search help that is used.
hope this helped at leasta little.
rgds, manjunadh.
Maybe you are looking for
-
When I set iTunes to automatically download all new episodes and only keep unplayed episodes, it downloads every episode in every one of my podcasts feeds. This means thousands of files, as not every XML feed hosts only a few files. Some host hundred
-
How to share a common calendar
I have stbeehive working with no issues, but I can't seem to find a solution to one of the things that I need a calendar for. I need to be able to view/add/edit entries across a wide group of people (all internal to Oracle) - and others need the same
-
Path in itune \settings\extended correct but titles not found ( ! symbol )
Hi to everybody I made probably a mistake somewhere trying to find a place for my 10 GB "iTunes Music" directory. To make it short the situation is as follows: Finally I moved back the "itunes music" dir to its original place in \ownfiles\ownmusic an
-
Inbound 820 Error after migrating 11.1.1.6 to 11.1.1.7
Hi All, I am getting an error HIPAA in Inbound 820, which used to work fine with 11.1.1.6. We recently upgraded to 11.1.1.7 for TA1 acknowledgement and seeing the following errors in the Logs. Outbound direction is working fine, but not able to see m
-
OID-Integrated Label Security with HTMLDB?
Hi, I've followed the how-to document to integrate Oracle Label Security with Oracle Internet Directory.(http://www.oracle.com/technology/deploy/security/database-security/howtos/ols_oid-how-to.html). I've successfully created a label security policy