Needs to modify entries in search help
Hello friends,
I need to modify some entries in the search help for materials (MATNR). I have found that search help MAT1 is used for materials, and when I go inside then I am not able to get the records in the internal table(RECORD_TAB) that displays in the output.
Also the search help exit is standard, so creating a 'Z' exit and replacing in the search may effect other functionality of standard SAP also. So i need to take care of that as well.
Can anyone help me for finding the entries and where i need to modify them.
Regards,
Grover
But I face a problem because RECORD_TAB doesn't fill and data gets in from some other standard program.
I don't understand 'other standard program' - the elementary search help you are referring to does not have an exit, just a view selection. If you add the exit, then you can stop at the 'DISP' callpoint and analyze the data.
Also in that program internal table that contains entries are in a form of string and not with different fields.
Of course, RECORD_TAB is converted at runtime based on the search help definition. This is why you need to used the F4UT_* helper functions to access the data. Better yet, if you overtake the data selection, you'll have your own internal table that you can analyze before mapping it back to RECORD_TAB.
Similar Messages
-
Choose an entry in Search help and not in its input field
Hi to all,
In my application I have a field with a search help.
I want that this field only can be modified using a search help and this field can't be modified directly writing in this field.
Is similar to transaction se63 - Translation - Abap objects - Short texts - OTR - Source language
I have created an example with the field SCARR-CARRID but this field can be modified with search help and directly, or this field can't be modified.
In my application I have done the following:
-> Screen painter (layout):
Name: SCARR-CARRID
Input Field: not marked
Output Field: marked
Possible entries: marked
Possible entries keys: 2
-> Flow logic:
PROCESS BEFORE OUTPUT.
MODULE IMPORT_DATA_0001.
PROCESS AFTER INPUT.
MODULE EXPORT_DATA_0001.
PROCESS ON VALUE-REQUEST.
FIELD SCARR-CARRID MODULE listbox.
PROCESS ON HELP-REQUEST.
MODULE listbox INPUT.
TYPES:
BEGIN OF VRM_VALUE,
KEY(40) TYPE C,
TEXT(80) TYPE C,
END OF VRM_VALUE,
VRM_VALUES TYPE VRM_VALUE OCCURS 0,
VRM_ID TYPE VRM_VALUE-TEXT,
VRM_IDS TYPE VRM_ID OCCURS 0.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
CHECK list[] IS INITIAL.
name = 'SCARR-CARRID'.
SELECT carrid CARRNAME FROM SCARR
INTO (value-key,value-text).
APPEND value TO list.
ENDSELECT.
SORT list BY text.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE. " LISTBOX INPUT
How can i solve this problem?
Thanks a lot.Hi Jey:
I have tried this:
MODULE listbox INPUT.
TYPES: BEGIN OF vrm_value,
key(40) TYPE c,
text(80) TYPE c,
END OF vrm_value,
vrm_values TYPE TABLE OF vrm_value,
vrm_id TYPE vrm_value-text,
vrm_ids TYPE TABLE OF vrm_id.
DATA: name TYPE vrm_id,
list TYPE TABLE OF vrm_value WITH HEADER LINE,
poplist TYPE TABLE OF spopli WITH HEADER LINE,
popanswer TYPE c,
popindex TYPE i,
value TYPE vrm_value,
lt_dyntab TYPE TABLE OF dynpread WITH HEADER LINE,
dynpprog TYPE syrepid VALUE 'SAPMZxxxx', "Enter your dynpro here
dynpnr TYPE sydynnr VALUE '0100', "Enter your screen number here
dynpfield TYPE help_info-dynprofld VALUE 'SCARR-CARRID'.
IF list[] IS INITIAL.
name = 'SCARR-CARRID'.
SELECT carrid carrname FROM scarr
INTO (value-key,value-text).
APPEND value TO list.
poplist-varoption = value-text.
APPEND poplist.
ENDSELECT.
ENDIF.
Use some method to display a list for selection
Here is a simplified way of doing it but there are
much more sofisiticated methods.
CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
EXPORTING
textline1 = 'Select an entry'
titel = 'Selection'
IMPORTING
answer = popanswer
TABLES
t_spopli = poplist
EXCEPTIONS
not_enough_answers = 1
too_much_answers = 2
too_much_marks = 3
OTHERS = 4.
CHECK sy-subrc = 0.
CHECK popanswer NE 'A'.
popindex = popanswer.
READ TABLE list INDEX popindex.
IF sy-subrc = 0.
lt_dyntab-fieldvalue = list-key.
ENDIF.
Update the screen field with the selected value
lt_dyntab-fieldname = dynpfield.
APPEND lt_dyntab.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = dynpprog
dynumb = dynpnr
TABLES
dynpfields = lt_dyntab
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
ENDMODULE. " LISTBOX INPUT
I think that there is a error that I have not seen because I put a breakpoint at the beginning of your code and the execution doesn`t stop.
Now I execute the dynpro and appears my field 'SCARR-CARRID' and I can't choose a value and I can write in input field.
Can you help me?
Thanks a lot. -
Note 1681589: Missing entry in search help of RPUTMSE0 report
Hola Buena tardes,
Estamos aplicando la Note 1681589: Missing entry in search help of RPUTMSE0 report; En la version 4.7 hace referencia a un valor que no existe.
Table: T52B5
TMS1 RPUTMSE004 TOA C111E0
Puede ser que el valor correcto es: sobra un número "1"
Table: T52B5
TMS1 RPUTMSE004 TOA C11E0
Saludos,
JorogapeHola,
En la vista V_T52B4 la encuentro como:
TOA C111E0 Modelo 111 - Impuesto sobre la renta PF
Saludos,
Carlos. -
Modify behavior of Search Help
Hello all,
I need to modify the behavior of the search help for ORDERED_PROD field
We want this ORDERED_PROD to be based on the service type, for instance, when SERVICE_TYPE = '01', the ORDERED_PROD must begin with '01.'
So, what I want is when the user press F4 for the ORDERED_PROD field, and the SERVICE_TYPE has a value of '01', then the search help for ORDERED_PROD should only show the values that matches '01.*'
Can anybody help me?
Thanks in advanceSorry, but I think that I shouldn't
The Search Help is standard, and also de search help exit.
Changing the standard is always possible, but I would like to avoid it.
What I would like is to do what you can do in step CALLCONTROL-STEP = 'PRESEL' of a search help, but I can not modify the search help exit...
Hope it clarifies our problem a little bit better...
Best Regards. -
How to delete entries from search help for a field
hi guys
how r u all doing.
i have some questions for u.
1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
any help in this regard,wud be appreciated.
thanksFollow this
What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support -
Need selection screen values in Search help user exit in same report
Hi Experts,
I am using Logical Data Base PNP.
Created a custom search help to validate the records for IT000 based on the selection screen dates.
Enter the DATEs for Data Selection Period and Person selection period in the selection screen.
When I for search help for PERNR field in the same report, I need the selectin screen DATE values to be in user-exit of search help.
This will help me in validating the records for specific employees within the date range of given DATE in selectin period.
As of now it's picking the employees based on the DATE selection of selection screen,
Regards,
PrasadHi,
Go Ahead as mentioned by Satyesh T - (Option two).
Reading Select Options from DYNP_VALUES_READ
reffer the above link for getting more clarity for using 'DYNP_VALUES_READ'
Regards.
Arun -
Help view to get two table entries in search help
Hi,
I have created the help view for join two tables and that help view was called in the selection method for creating search help of the custom table field. since it has show inthe selection screen , it is fetching only one table entries. and the shown entries are displaying but not passing.
Please provide the steps to get the two table entries and the displayed entries should pass.
Thanks in Advance,
sivaHi sivanag,
1. Try your view with SE16/SE16N to see if it really finds what you expect
2. Use the same data elements in help view as on selection screen
3. read documentation and F1 help on all fields you see in the search help definition - especially only field marked as EXPORT parameter will be put back on screen.
But, sincerely, I don't know what your selection-screen looks like.
Regards,
Clemens -
Enhancing F4 Search Help Issue - Standard Component
Hello All,
We have a requirement in SRM to customize couple of standard Search helps attached to the Webdynpro components. As such I know the concept of how we can handle this requirement but hitting an issue.
Standard Working scenario -
1) Standard Structure available with multiple fields. Two fields that are of our interest are SH_VALUE and SH_VALUE_LABEL.
2) Standard Search help for this being used has fields VALUE and VALUE_LABEL.
3) In the Structure the both the fields SH_VALUE and SH_VALUE_LABEL are mapped to the Search help VALUE and VALUE_LABEL.
4) In the WD component the node is mapped to the standard structure.
Running the application and the picking up the values from F4 on the SH_VALUE field will return its corresponding value and also map the SH_VALUE_LABEL field with the Label from the F4 since the structure and Search help mapping are there.
So far good when its standard.
Issue I am facing -
We need to modify this standard search help to customize our needs.
1) Did a Copy of the standard Search help and then modified to suit our needs. The output structure of the search is still the same as the standard one.
2) Did a Post Exit in the WD component to call our custom search help through the below code -
data lo_nd_attrib type ref to if_wd_context_node.
data lo_nd_attrib_info type ref to if_wd_context_node_info.
lo_nd_attrib = wd_context->path_get_node( path = `ATTRIBUTES_DATA.ATTR_DTLS_MULT` ).
lo_nd_attrib_info = lo_nd_attrib->get_node_info( ).
lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
lo_nd_attrib_info->set_attribute_value_help( name = 'SH_VALUE_LABEL' value_help_mode = '121' value_help = 'Z_ORG_ATTR' ).
Running the application just returns the SH_VALUE field but does not get the data for the SH_VALUE_LABEL.
Is there something wrong in the way I am calling the Custom Search help or should I need to approach this differently?
Thanks,
Nagarajan.Hi Nagarajan,
Well, you are trying to set the search help to both attributes ( sh_value, sh_value_label) individually and it is having no link between these two attributes
i.e. once you select a value from search help of SH_VALUE, its no where linked that the other details to be passed to SH_VALUE_LABEL.
We generally, do the linking of attributes to search help parameters at structure level as below
So, if you need the same behaviour, then you need to assign the Zsearch help at strucuture field SH_VALUE and link the parameters to both fields SH_VALUE & SH_VALUE_LABEL
In case, if find it not possible to to this way,
You need to populate the value of field SH_VALUE_LABEL upon selection of value from search help of SH_VALUE.
i.e. by registering the search help selection event to an OnEnter action and write the logic to populate the value to SH_VALUE_LABEL
Please refer the below link
Automatically Trigger onEnter event after selecting value from the Value Help(F4 Help)
Hope this helps you.
Regards,
Rama -
Hi,
We have modified a standard Search help by including our own custom search help by taking a object key. Now it is appearing in SPAU when we apply Suuport pack. But we dont want this to appear in the next Upgrade.
What is the ideal way to do the changes?
Should i Reset to original and append the Z structure to it or Should i modify it directly?
Regards,
Lijo Joseph
Message was edited by: Lijo Joseph VazhappillyHi again,
1. well, im not much aware about search help,
but regarding tables,
a) modifying structure of a table
b) using append structure in table.
2. The difference lies
in re-constructing the table
at the database level,
whenever there is any change
in future in the database table
3. when append strucute is there,
the table fields are
first constructred from the
normal fields (ie. without any append strcture,
containing .include etc)
4. Only then the fields of append strucutre
are added.
5. then old data fields are copied to the new data fields.
regards,
amit m. -
Hi All,
I have a requirement to modify the exisitng search Help 'PREM' ,which is a collective search help.
In this I have added my Serach help 'Z1PNAlT'.This z- search HELP HAS 'PNALT' as export parameter.
How ever when I include this Z search help in 'PREM' it gives me a warning at the time of activaion as :'No parameter assignment has been done for Z1PNAlT'.
Can anybody please help me with this?
ThanksHi,
You have done the parameter assignment at 'collective search help' level as well (check the 'Param Assignment' Button at collective search help change screen on the tab 'Included search help')?
cheers, -
How to add a search help on a screen field from screen painter
Hi,
I would like to add an existing Search Help on a screen field in Screen painter.
Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
Do you have an idea on how to do so?
Regards,
MorganDropdown Box:
In the screen painter for that field goto properties -> Dropdown ->select listbox.
Option 1:
Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
CHAIN.
FIELD addr1_data-country.
MODULE modify_screenfields1.
ENDCHAIN.
MODULE modify_screenfields1 INPUT.
CASE sy-ucomm.
WHEN 'ENTER' OR 'EXECUTE'.
IF NOT addr1_data-country IS INITIAL.
SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
land1 = addr1_data-country
AND spras = 'EN'.
IF sy-subrc <> 0.
MESSAGE e000(zo_spa) WITH text-022. " Invalid Country code
ELSE.
t005t-landx = lws_landx.
ENDIF.
ELSE.
CLEAR: t005t-landx.
ENDIF.
ENDCASE.
ENDMODULE. " modify_screenfields1 INPUT
Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
In the PROCESS ON VALUE-REQUEST.
FIELD addr1_data-region MODULE region_pov.
MODULE region_pov INPUT.
Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
also make that field input enabled.
ENDMODULE. " region_pov INPUT
I think this will solve ur problem.
Regards,
Prakash.
Message was edited by: Prakash Ramu -
Hello,
i want to add a telephonic search help to the customer search help(whenver we do F4 on the customer field, eg: xd01). what is the name of the customer's search help
Thanks,Search helps are defined in the data dictionary (txn SE11). I think you have two options....
You can MODIFY the DEBI search help. Modifications to standard SAP objects are not recommended.
SAP also provides a flexible process to change the search help for customers. This is usually done with help from the SD functional person.
First- check the documentation. In the IMG (txn SPRO), got to LOGISTICS GENERAL -> BUSINESS PARTNER -> CUSTOMERS -> CONTROL.
Select the "document" icon at the far left of the DEFINE CUSTOMER MATCHCODES icon. This is the documentation about the search help DEBI (formally called matchcode).
Second- Execute the icon above this entry labeled CHECK SEARCH FIELDS FOR DEBTORS. Here you can select the telephone number (TELF1) from the drop down list.
This needs to be coordinated with your functional team. Normally NAME2 or ORT01 (city) is replaced. This means that the replaced field will no longer be available in the search help. -
Enhancing standard (single select)search help for Multiple value selection
Hi,
Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
Is there a way to do it.
I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
Appreciate your help,
Thanks,
Sri
Edited by: Sri on Sep 9, 2010 8:50 PM
Edited by: Sri on Sep 9, 2010 8:52 PMAs far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me. -
How to create Search help exit, and then assign it to a collective search
hi gurus,
i have an intersting question for you, well my scenario is like i have to create a search help exit using some function module cause i didt found table for my search help but i can find the value through FM, i know we can create a search help exit and then assign it to collective search help,
my problem is what are the parameters i need to pass to this search help exit FM, and in the function module i want to use the value entered on the f4 selection screen to extract data through FM. i need to give a solution asap.
any reply will be highly appreciated
n rewards points for sure.
thanks mandyHi mandy,
Have a look at this code,
FUNCTION SHLP_SHOW_LIST.
""Local interface:
*" IMPORTING
*" VALUE(PLANT) TYPE WERKS_D OPTIONAL
*" VALUE(DISPLAY_ONLY) TYPE FLAG OPTIONAL
*" EXPORTING
*" REFERENCE(ITEM_SELECTED) TYPE CHAR20
*" EXCEPTIONS
*" POPUP_CANCELED
TYPE-POOLS SHLP .
CONSTANTS:
co_shlpname TYPE shlpname VALUE 'SHLP_CONTAINER',
co_shlpfield_itemalias TYPE ddshlpsfld VALUE 'CONTAINER'.
DATA: l_shlp TYPE shlp_descr_t,
l_subrc TYPE sysubrc,
l_return_tab TYPE STANDARD TABLE OF ddshretval,
l_return_wa TYPE ddshretval,
l_interface_wa TYPE ddshiface.
Get details for search help
CLEAR l_shlp.
l_shlp-shlpname = co_shlpname.
l_shlp-shlptype = 'SH'.
CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
CHANGING
shlp = l_shlp.
Assign virtual screen field
READ TABLE l_shlp-interface INTO l_interface_wa
WITH KEY shlpfield = co_shlpfield_itemalias.
l_interface_wa-value = space.
l_interface_wa-valtabname = 'X2'. "virtuel screen field
l_interface_wa-valfield = 'Y2'. "virtuel screen field
MODIFY l_shlp-interface FROM l_interface_wa INDEX sy-tabix.
Call F4 popup
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = l_shlp
disponly = display_only
IMPORTING
rc = l_subrc
TABLES
return_values = l_return_tab
EXCEPTIONS
OTHERS = 0.
IF sy-subrc = 0 AND l_subrc = 0.
Value selected
READ TABLE l_return_tab INDEX 1 INTO l_return_wa.
item_selected = l_return_wa-fieldval.
ELSE.
Popup canceled / no value selected
RAISE popup_canceled.
ENDIF.
ENDFUNCTION.
make sure to call these FMs and populate accordingly...
Thanks
Madhu -
Adding a new field to the search help exit
Hi friends,
adding a new field to the search help exit. How does it work ?
Thanks in advace
IlhanThe search help exit allows you to modify functionality of search help. If you add a new field to the
parameter list that is not contained on the selection method you can manually populate it within the search
help exit.
This would be performed within the u2018STEP DISPu2019 section. Once within this section all search help
data has been retrieved and is stored in table RECORD_TAB (record_tab-string) as one long string value.
Therefore you need to read table SHLP in-order to locate position of value within string.
Example:
To find position of personnel number (PERNR) within elemenory search
help M_PREMN you would use the following code:
Loop at record_tab.
read table shlp-fielddescr into wa_shlp
with key tabname = 'M_PREMN'
fieldname = 'PERNR'.
You could then use this information in the following way, for
example, to find a persons organisation unit:
select orgeh endda
up to 1 rows
from pa0001
into (ld_orgeh,ld_endda)
where pernr eq record_tab-string+wa_shlp-offset(8)
u201Cpernr length is 8
order by endda descending.
endselect.
select single orgtx
from t527x
into ld_orgtxt
where orgeh eq ld_orgeh and
sprsl eq sy-langu and
( endda ge sy-datum and
begda le sy-datum ).
If you have added a new field to the end of the parameters list
the next step is to populate it by adding this data to the end of
the record_tab string:
concatenate record_tab-string ld_orgtxt into record_tab-string.
modify record_tab.
endloop.
Maybe you are looking for
-
I've spent over a month and a half trying to fix my non-booting Satellite A215-S5818 running Vista. Sometime mid-March (ah, the Ides of March!) I think I downloaded an automatic update and I remember the next time it booted my desktop was black; ico
-
Group Level Data Level Security not working
I'm trying to test the data level security at the group level. Here's what I did 1. Went to the security -> Groups -> Permissions -> Filters 2. In Name added the Fact table on which I want to filter. 3. Selected "Enable" 4. In Filter Column I added a
-
Webcenter Spaces configuration
I want to configure the Wiki,Blogs and forum in my application .I have webcenter server ready with me with the following managed server . WC_Collaboration,WC_Portlet, WC_Spaces ,WC_Utilities , UCM_server1 , IPM_server1 , AdminServer(admin) . How can
-
How can I invite optional attendees to meetings from my iPad?
I launch meeting requests regularly, but some guests are optional. How do I differentiate them on the invite list when creating the event on my iPad?
-
in GL_Account having attribute Indicator: G/L Account (P&L) Indicator: G/L Account (Balance). and both are navigational attribute. now how to restrict values of both attribute in Query. let say Indicator: G/L Account (P&L) having values = X so in que