Search Help functionality for Custom Field in CRM 6.0
Hi,
We have added custom field PRODUCT_ID into component BT120H_CPL. For this field, I need to provide search help in WebUI. Can you please give some suggestion on the same.
Regards,
Ramki.
Hi Ram,
Here is the sample code.
Outbound plug:
Global attribute : GR_CITYCODE_F4 Instance Attribute Private Type Ref To IF_BSP_WD_POPUP
data declaration
DATA: LT_COL_DEF TYPE TABLEVIEWCONTROLTAB,
LS_COL_DEF TYPE LINE OF TABLEVIEWCONTROLTAB,
LV_REGION TYPE REGIO,
LV_COUNTRY TYPE LAND1,
LR_ENTITY_HEADER TYPE REF TO CL_CRM_BOL_ENTITY,
LR_ENTITY_ADDR TYPE REF TO CL_CRM_BOL_ENTITY.
TRY.
LR_ENTITY_HEADER ?= TYPED_CONTEXT->header->COLLECTION_WRAPPER->GET_CURRENT( ).
CATCH CX_SY_MOVE_CAST_ERROR.
ENDTRY.
CHECK LR_ENTITY_HEADER IS BOUND.
LR_ENTITY_ADDR ?= LR_ENTITY_HEADER->GET_RELATED_ENTITY( IV_RELATION_NAME = 'BuilStandardAddressRel' ).
CHECK LR_ENTITY_ADDR IS BOUND.
getting region and country
CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
EXPORTING
IV_ATTR_NAME = 'REGION'
IMPORTING
EV_RESULT = LV_REGION.
CALL METHOD LR_ENTITY_ADDR->GET_PROPERTY_AS_VALUE
EXPORTING
IV_ATTR_NAME = 'COUNTRY'
IMPORTING
EV_RESULT = LV_COUNTRY.
appending citycode and description to internal table
LS_COL_DEF-COLUMNNAME = 'ZZCITYCODE'.
LS_COL_DEF-TITLE = 'City Code'.
APPEND LS_COL_DEF TO LT_COL_DEF.
LS_COL_DEF-COLUMNNAME = 'TEXT'.
LS_COL_DEF-TITLE = 'Description'.
APPEND LS_COL_DEF TO LT_COL_DEF.
CLEAR: GT_CITYCODE[].
fill the internal table GT_CITYCODE whcih must appear in popup.
FREE GR_CITYCODE_F4.
GR_CITYCODE_F4 = COMP_CONTROLLER->WINDOW_MANAGER->CREATE_DECISION_POPUP( IV_TITLE = 'City Code'
IV_DESCRIPTION = 'City Code'
IV_VISIBLE_ROW_COUNT = 10
IV_DISPLAY_TABLE = GT_CITYCODE
IV_VISIBLE_COLUMNS = LT_COL_DEF ).
GR_CITYCODE_F4->SET_ON_CLOSE_EVENT( IV_EVENT_NAME = 'CITYCODE_F4_SELECTED'
IV_VIEW = ME ).
GR_CITYCODE_F4->OPEN( ).
on close event ****************************************************************
where you can set the value of the field *********************************
METHOD EH_ONCITYCODE_F4_SELECTED.
Added by wizard: Handler for event 'CITYCODE_F4_SELECTED'
data declaration
DATA: LR_OUTPUTNODE TYPE REF TO CL_BSPWDCMP_BSPWDCOMPONEN_CN01,
LR_ENTITY TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS,
LR_HEADER TYPE REF TO ZL_BP_HEAD_ACCOUNTDETAILS_CN00,
LV_ROW_INDEX TYPE STRING,
LV_EVENT_NAME TYPE STRING,
LV_VALUE TYPE STRING,
LS_CITYCODE TYPE ZTB0000A31PL2T .
LR_OUTPUTNODE ?= GR_CITYCODE_F4->GET_CONTEXT_NODE( 'OUTPUTNODE' ).
LV_ROW_INDEX = LR_OUTPUTNODE->GET_SELECTEDROWINDEX( ).
LV_EVENT_NAME = LR_OUTPUTNODE->GET_EVENT_NAME( ).
GR_CITYCODE_F4->CLOSE( ).
IF LV_EVENT_NAME = 'OK'.
LR_ENTITY ?= ME->TYPED_CONTEXT->HEADER->COLLECTION_WRAPPER->GET_CURRENT( ).
READ TABLE GT_CITYCODE INTO LS_CITYCODE INDEX LV_ROW_INDEX.
LR_HEADER ?= ME->TYPED_CONTEXT->HEADER.
LR_HEADER->GS_CITYCODE_F4 = LS_CITYCODE.
LV_VALUE = LS_CITYCODE-ZZCITYCODE.
setting city code
LR_ENTITY->SET_PROPERTY_AS_STRING( IV_ATTR_NAME = 'ZZCITYCODE'
IV_VALUE = LV_VALUE ).
ENDIF.
ENDMETHOD.
Hope this helps.
Regards,
Ruby.
Similar Messages
-
PCUI 4.0, Search Help Required for New field
Hi everyone
I am working in CRM 4.0 Sales Order application
We created a new field in CRM sales Order in Header level in SAP GUI through EEWB.
The search help for the new field is working fine in SAP GUI. We want to add the same field with F4 help functionaliity in PCUI as well.
The field has been added in structure CRMT_BSP_SLS_OD1_General. It also shows domain value for the field however Origin of input field ie empty
The field has been added in PCUI and is successfully showing data inputted in SAPGUI
However we need search help functionality for the field
i tried these two steps
1) i checked on domain value checkbox and changed the field from input to dropdown. However the dropdown is empty in PCUI. Whenever i check box domain values for some field then all the possible values in SPA GUI are displayed in PCUI, however this is not working here.
2) I put Value_table in F4 of the field
This is also throwing up empty values
Am i missing something in this case
Please let me know how to go about it
TIA
AsadHi Frederic
Thanks for your response
I am not sure what is meant by regenerating the field group in this case
I added the entries for my view in the field group and generated the layout of the field group (If this is what you mean)
The field is working fine. I am able to save values to the field and able to see values saved in GUI.
I haven't linked search help of the field in PCUI
I am not sure how to go about it.
I used the data element in the structure for the field.
The data element has Domain entry in <b>Entry Help/Check</b> of the structure
If i check the Domain Value checkbox in my field group then the domain values should be available in dropdown if the field is dropdown
However i am not able to see the possible values of the field (It is present in SAP GUI)
Does something else needs to be done in this case
TIA
Asad -
F4 Help Assignment For Custom Field
Hi All...
I'm trying to add F4 help to a custom field. I have created a field of type CRMT_PERSON_RESP_LIST and I want to assign a partner to the field.
I have assigned the F4 application 'CRMM_BUPA_SEARCH' to the field and I have setup the field in the 'Field assigment for transfering values' as follows:
view - field name - result field - F4 application - field in Hitlist
- ASSIGNED_TO - ASSIGNED_TO - CRMM_BUPA_SEARCH -
Where do I go to determine the 'hitlist' fields that I can choose from? Since the name of my field is different from the name of the field in the F4 application how do I determine the fields the F4 application will be returning so that I can choose the one I want?
Your help in this endeavor would be greatly appreciated...Hi Trevor,
Since the name of your field is different from the name of the field in the F4 application , you will have to do additional mapping . The mapping rules can be defined in
blueprint customizing in table CRMC_F4MAPREC.To map the fields go to transaction crmc_blueprint_c. Go to following path and map the fields --- Layout of user interface(PCUI)-Input Help - Field Assignment for Transferring Values.
You can also find the solution in cookbook in topic 5.1.3.3
Thanks,
Hetal -
F4 / Help Functionality for input field in custom java iView
Hi,
As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
Your help is really appreciated.
Thanks,
VijayHi Vijay,
the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
Regards,
Ulli -
Search help on the customer fields in quotation doesnt work
Hi ,
Added 4 custom fields to the BID and QUOT using the standard CI includes ( INCL_EEW_PD* ) provided by SAP. Enabled search helps with the value table for some fields and with fixed values at the domain level for some fields .
The fields contents get transferred properly from Shopping carts -> BID Invitation -> QUOT ( Bid response).
But while submitting the BID when I try to change the value of the custom fields using the search help or directly the original value doesn't change. It happens with all the other fields.
The search help or the value change works just fine with the BID INVITATION.
I couldnt find any issue with the doc change BADI implementation.
Thx,
Krishna.Hi Vinicius.
Which is the release of ITS?
Different error-code are present in searchelp file.
You can copy the "searchhelp.html" from the system folder to your internet template and customize it only for your internet service.
Gianluca -
Search help clubbed for 3 fields together
Hi friends,
I want to build search help for kunnr, lifnr and hkont in same field.
Is this possible??
For eg. if we want, we select customer, or vendor or g/l account.
Please help if anybody has any idea of the possibility.
Best regards, NeetuHi
First you have to ensure that all the values of these fields are in a single field and in a single table
then for that table you can build a elementary search nhelp
and can useuse the values for these 3 fields
in SAP all these fields will not be in single field and in a single table
you can't build and use the same search help for these fields
Already I hope there are std search helps for these 3 fields
see the KNA1,LFA1, and SKA1 tables for these fields
for customer -DEBI
Vendor -KRED_C
GL account - SAKO
are the std search helps
Regards
Anji -
Search help for custom field in SRM
Hi All,
Im new to abap. I want to add(enhancement) custom input field with search help function for organization unit. I hv added input field and its displaying in portal also.
Now i want to add f4 help. Can u please help me in this regard. Can u tell me the steps to do for adding f4 help.
Thanks,
Rani.add search help to input fields data type. or you could assign search help via structure there that field is defined. you could enhance standard code adding custom search help which is called via FM. Choose the way.
best regards,
dez_ -
F4 functionality for a field in structure
dear all
my problem is i need to provide f4 help functionality for the field 'name' in structure 'cdir' is it possible. if possible please suggest me how to proceed.
thanx in advanceHi,
If you want to provide F4 functionality on that field in your program then check this link
F4
But if u r thinking in standard structure then its of no use as structures dont hold any values.
Regards,
Amit
Reward all helpful replies. -
Search Help for Custom field in Sourcing Cockpit
Hi SRM Experts,
I added custom field "rush order" in the Structures as per requirement. I added code in MODIFY_SCREEN function module. Search help is working for "rush order" in Process Purchase Orders (to search PO) and Check Status (Searching Shopping Cart). But it is not working in sourcing cockpit. Please guide or suggest me is there any additional settings or programming is required to have search help for custom fields in Sourcing Cockpit.
Thanks a lot in advance.
Thanks,
KoyyaHi SRM Experts,
Please let me know any suggestion on this issue.
Thanks a lot in advance.
Thanks,
Koyya -
Custom Field in Account Assignment with search help functionality..
Hello friends,
I have added a custom field(Profit Center) in account assignment frame which is having search help also attached..
the data for search help read from R/3.. When i click the search help in WEB , I got an error message saying that 'No input help available ( Search help PRCTR_EMPTY is empty )
Any one have found this kind if issue?
please help out
Regards,
john.Hi
You can create a custom search help (simialar to R/3 srch help for profit center) and create a corresponding search help exit for this purpose.
You need to call the R/3 table from SRM to get the required data and then map the data in to the search help fields.
Hope this will solve ur problem.
Regards
- Atul -
Assigning search help (F4 functionality ) for recipient field in IW32
Hi,
my requirement is to assign search help (F4 functionality) for recipient field in components tab of IW32. anybody help me to assign search help for it. same way i need to assign that in MIGO, MB21, MB1A goods recipient field.hi,
refer to the following link:
http://www.saptechies.com/how-to-add-f4-help-to-a-field-on-screen-module-pool/
i hope it helps
regards -
Reg : F4 help for custom fields in ALV report
hi friends..
in my internal table i have fields including 1 custom field..
DATA : BEGIN OF i_final OCCURS 0,
pernr LIKE p0000-pernr,
begda LIKE p0000-begda,
plans LIKE ZPOSITION-plans, (custom)
werks LIKE pspar-werks,
end of i_final.
i want to display this i_final table in alv. for that i genetrate one fieldcatalog
PERFORM fcat USING:
'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
in custom table zposition, i maintain serch help for custom field "PLANS".
then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
i got f4 all std fields but for my custom i am not getting the f4 help
how can i get the F$ help for this custom fields Zposition-plans..
plz give some ideaHi
In that Ztable against the field
PLANS give the check table name as <b>T528B</b>
then it will automatically give the search help
or you can create your own search help(elementary) and add to that field
Reward if useful
regards
Anji -
How to do a Search help on SAP structure field listing custom table data?
i have a SAP screen (Trans KE52) that they want to have a drop down (search help on).
The drop down should list values from a custom table.
How do you do this?
The values to be displayed are NOT from a structure table but from a transparent table. i believe I will need a search FM to do this but not sure how it is to be done.
Any one have ideas?
Thanks!
ScottHi Scott,
You need to go to SE11 and look for a searh help that match your requirment or build one.
In case you are going to develop one, in the definition tab of the search help look for the selection method and put in the input field the name of your transparent table.
After that you must specify the fields that you need to appear at the list and the one that is going to be selected for your field. This step you have to do it on the search help parameter grid.
Regards,
Eric
PD. Reward points if this was helpful -
Issue Search Help Exit for Material Group
Dear Expertsl,
I developed a search help exit for material group for the search helps both H_T023 and H_2023_MEPO to restrict certain material groups from the actual display as follows
1) I developed custom table to hold the Invalid material groups
2) Developed search help as same as in the bellow link
link:[https://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterial+Group]
3) Before the statement
SELECT matkl wgbez wgbez60 FROM t023t INTO s_t023t
WHERE matkl IN t_matkl
i selected the Invalid materials from the custom table into an internal table
4) i am restricting the entries with the following code.
LOOP AT a_tab.
only move values that meet the requirements
after you convert to upper case.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
MOVE a_tab-wgbez TO a_tab-wgbez_test.
TRANSLATE a_tab-WGBEZ_test TO UPPER CASE.
MOVE a_tab-wgbez60 TO a_tab-wgbez60_test.
TRANSLATE a_tab-wgbez60_test TO UPPER CASE.
IF a_tab-wgbez60_test IN i_wgbez60 AND
a_tab-wgbez_test IN i_wgbez AND
a_tab-matkl IN i_matkl.
ADD 1 TO findex.
MOVE a_tab-matkl TO temp_tab-matkl.
MOVE a_tab-WGBEZ TO temp_tab-WGBEZ.
MOVE a_tab-wgbez60 TO temp_tab-wgbez60.
IF findex > callcontrol-maxrecords.
MOVE 'X' TO callcontrol-maxexceed.
EXIT.
ENDIF.
READ TABLE i_invalid INTO w_invalid
WITH KEY matkl = a_tab-matkl.
IF sy-subrc NE 0.
APPEND temp_tab.
ENDIF.
CLEAR temp_tab.
ENDIF.
ENDLOOP.
This is working fine when we press F4 in ME21N Transaction and give some description and then press enter the popup screen.
But my requirement is user will enter some description in ME21N material group field and press enter ( Not pressing the F4 here) at this moment this is not going through the search help exit and displaying all the entries including the Invalid materials.
Note: We can delete the Invalid material groups but the documents which are having the invalid material already will have an issue and need to be corrected all the documents. But our requirement is only to use the correct materials groups from now onwards.
I would appropriate if any one can helping this regard.
Thanks in advance.,
Regards,
VenkatHi Venkat,
You can call your ZSEARCH_HELP from the PAI , on the event SY-UCOMM = Enter using the function module F4IF_FIELD_VALUE_REQUEST.
For example, your screen field is MARA-ZXXXX, screen 0100 and search help : ZSEARCH_HELP
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'MARA'
fieldname = 'ZXXXX'
searchhelp = 'ZSEARCH_HELP '
dynpnr = '0100'
dynprofield = 'MARA-ZXXXX'
TABLES
return_tab = lt_returntab.
This F4IF_FIELD_VALUE_REQUEST will call your custom search help exit.
Regards
Deepa. -
Hello Folks,
I have an immediate requirement to assign a search help to a specific field in a Table.Requirement is as follows:
requirement:
I want the search help to be populated for the field HRP1000-SHORT when HRP1000-OTYPE='O'.
Values of search help are to be populated from another Custom table field1 where field2 = 'x'.
Please help me out in fixing this.*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
parameters: p_vbeln type vbak-vbeln,
p_posnr type vbap-posnr.
at selection-screen on value-request for p_posnr.
data: begin of help_item occurs 0,
posnr type vbap-posnr,
matnr type vbap-matnr,
arktx type vbap-arktx,
end of help_item.
data: dynfields type table of dynpread with header line.
dynfields-fieldname = 'P_VBELN'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
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.
read table dynfields with key fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = p_vbeln
importing
output = p_vbeln.
select posnr matnr arktx into table help_item
from vbap
where vbeln = p_vbeln.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_item.
Maybe you are looking for
-
I have a late 2011 MacBook Pro 13" and bought a brand new iMac 27" last week. I tried to transfer data (musdic & photos) via Thunderbolt, but i did not run, my system always tries to transfer data via WLAN, but that would last more than 80 hours. I t
-
Hi all, I am trying to draw my graphics off screen. To do this i created an image of the width and height of the component under consideration. But i got a null reference. But when i tried to create the image inside the overridden paint call , i was
-
Recommened export settings to youtube
What do you recommend as the best export settings from premiere pro cs6 to youtube? I'm finding that when I upload to youtube, the lightings is considerably lower and the sound is moved up 2-3 frames. Any advice would be appreciated. Thanks, Robert
-
WAD: show value and percentage inside bar
Hi! I've created a stacked columns chart and now I want to display the values in the bar. Problem: I can only show one value, e.g. 15.000$. But I would like to see 15000$ and the percentage of this value, e.g. 25% (both inside of the same bar). Is th
-
No Templates Found in Web Enrollment
Hi All, I have installed an Offline Standalone Root CA with Enterprise SubCA. I got success in publishing the CDP and AIA files manually but when I am trying to issue certificates through Web Enrollment I get the error "No Template Found". I added a