Search Help - logic for getting output.
Hi,
I am trying to create search help for Vendor number field. And input selection has a fields from various Vendor related tables ( LFA1,ADRC,LFB1,LFBK,LFBW,LFM1,LFZA).
If user enters any of the input field values (from the above table selected fields)then need to get corresponding vendor number details from all of the above tables(selected fields from the above tables).
can any one let me know how to compose the logic for this?
1. I created search help and trying to put the logic in EXIT for the search help to get the values.
Thanks in advance.
Rajesh.
rajesh,
check tis out,
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm
http://fuller.mit.edu/tech/search_helps.ppt#260,5,Simple
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/frameset.htm
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_basic.htm
http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
http://www.sap-img.com/abap/attach-a-search-help-to-the-screen-field.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm
Similar Messages
-
Search help (PREM) for personal no. is not coming in ALV grid table control
hi experts,
Search help (PREM) for personal no. is not coming in ALV grid table control.
i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
but in output it is now showing the help.
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
ls_fcat-ref_field = 'EMP_ID'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
Then i tried to solve it using the PA0002 . ie.,
ls_fcat-fieldname = 'EMPLOYEE CODE'.
ls_fcat-ref_table = 'PA0002'.
ls_fcat-ref_field = 'PERNR'.
ls_fcat-outputlen = '10'.
ls_fcat-key = 'X'.
ls_fcat-edit = 'X'.
ls_fcat-coltext = 'EMPLOYEE CODE'.
ls_fcat-seltext = 'EMPLOYEE CODE'.
append ls_fcat to pt_fieldcat.
clear ls_fcat.
with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
plz help me.
thanks.Hi
In the layout give layout-sel_mode = 'A'. and
pass 'A' to i_save exporting parameter to method set_table_for_first_display.
The same thing if you are working with function module
reuse_alv_grid_display.
Reward points for useful answer.
Venkat -
Steps for creation of search help exit for a search help
Hi,
I have created a search help. I need to create a search help exit for this search help.
Please let me know how to create a search help exit as well as how to link it to my search help.1)Copy the FM F4IF_SHLP_EXIT_EXAMPLE to write your own FM. (check the documentation and coding of FM F4IF_SHLP_EXIT_EXAMPLE).
2)write your code depending upon the functionality you want.
3)attach the FM in search help through SE11 in "search help exit" field.
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.
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.
For more detailed information please refer to the documentation describing the concept of the search help exit.
The module must react with an immediate EXIT to all steps that it does not know or does not want to handle. -
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. -
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 -
Search help problem in ALV output for field TD24A-DISMM
Hi Abap-Experts,
I have one issue regarding simple ALV report.
I need to display search-help for field DISMM. I have used below code in ALV fieldcatalog.
ts_fieldcat - tabname = 'TD24A'.
ts_fieldcat - tabname = 'DISMM'.
I have attached search-help for fields such as MATNR and WERKS too.
The search-helps are getting displayed for MATNR as well as WERKS.
But, the search-help is not gettting displayed for field DISMM(RP-TYPE) .
The output displayed is done using Simple ALV.
Could anyone please help me and correct my code or logic i have used.Hi,
I have changed code a bit...and used T438A table.
CLEAR ts_fieldcat.
ts_fieldcat-col_pos = '5'.
ts_fieldcat-fieldname = 'DISMM'.
ts_fieldcat-seltext_l = text-014.
ts_fieldcat-outputlen = 2.
ts_fieldcat-reptext_ddic = ''.
ts_fieldcat-ref_tabname = 'T438A'.
ts_fieldcat-ref_fieldname = 'DISMM'.
ts_fieldcat-ddic_outputlen = '2'.
ts_fieldcat-input = 'X'.
APPEND ts_fieldcat TO gt_fieldcat.
still it is not showing me the F4 help in simplae ALV output..
kindly help me -
Search help Enhancement for the Material Number (MAT1 - Search help name)
Hi ,
In my Requirement if the user clicks on the Material Number Search help(eg in ME51N - T.code: Material )
It will shown a additional Search help along with the existing one.
That search help would have input parameter fields as Material Number , Material Group , Material description , Plant and storage location.
The output screen has to display the Available Quantity for the input material, plant and storage location.
The available quantity has to calculated from various Tables like mard , mssq etc.
My question is how to display the available quantity in the search help screen, i tried with search help exit but not successful.
I am displaying the remaining fields(except available quantity) using database view from different tables like Mara , Mard ,Makt.
where to write the Logic for the Available Quantity to display it in search help.
Thanks and Regards,
Prakash KHello,
if this search help is collective then you could delete standard single (SAP allows maintain collective search help with out object key registration) one and insert custom search help which has the same structure plus additional field.
best regards, -
Problem in including search help exit for MM03 transaction.
Hi,
i am trying to include search help for MM03 trasaction based on MATKL(material group) WGBEZ (description) in the form of alv tree display.
Fuctionality i want to achive is :
1. after pressing F4 on MM03, it prompts to select material group screen, on pressing F4 on material group, now i am able to get the ALV tree display of all the materials and description based on the selection screen criterion.
2. now, after selecting one material group from ALV screen, i am able to map the corresponding value on the material group on the previous(intermediate) screen, but after pressing enter on this screen, i need to get the corresponding material to be mapped on the MM03 transaction, which i am unable to get.
when i press enter, it is again going to ALV tree display only and values arent getting refreshed.
Please help me in solving this.Hi joydeep mazumder ,
This is the work of the ABAPer, pls ask them to do it.
Anyway here is the way ...
You can use append search help to add a new search help to an existing standard sap search help..
Pls have a look at this....
http://help.sap.com/saphelp_nw70/helpdata/en/4c/ab0d79e5ce11d295f900a0c929b3c3/content.htm
Regards,
Vvieks -
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. -
Search Help addition for Incoterm (Part 2) in sales order
Hello,
I am having one requirement in which I have to add search help for Incoterm (Part 2) I tried to do it in USEREXIT_FIELD_MODIFICATION in the MV45AFZZ but it is not getting triggered.
Please help me where to write the code for the search help.
Thanks/Regards,
Abhijit.Hi,
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
SDAPO001 Activating Sourcing Subitem Quantity Propagation
<b>Reward points</b>
Regarsd -
Standard search help need for application directories
Hi All,
I have a created ztable.I want to assign a search help to this Z table field.
I need a search help which contains the apllication directories.
Is there any standarda serch help avliable to assign the application directories to the Z field of ztable.
Thanks,I don't think there is a standard search help available, but there is a function which provides a F4 dialog box to search app server directories... You can try creating your own search help with it.
PARAMETERS p_file TYPE dxfile-filename.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
EXPORTING
dynpfield_filename = 'P_FILE'
dyname = sy-repid
dynumb = sy-dynnr
filetype = 'P'
location = 'A'
server = ' '.
filetype: 'P' represents Physical file name; 'L' represents Logical file name.
location: 'A' represents Application Server; 'P' represents Presentation server.
P_FILE is parameter name (in your case it can be scree field name)
dyname = report name
dynumb = scree number -
F4 search help is not getting displayed in WAD
Hi all,
For a certain InfoObject we want to add an attribute in the F4-search help. The additional attribute does appear when executing the query in the Bex Analyzer but not on the Web. Can anyone tell me how to achieve this in WAD?
Thanks in AdvanceHi all,
For a certain InfoObject we want to add an attribute in the F4-search help. The additional attribute does appear when executing the query in the Bex Analyzer but not on the Web. Can anyone tell me how to achieve this in WAD?
Thanks in Advance -
Custom search help tab for "Material" in ME21N...
Experts,
I have a requirement to create a separate tab in the standard collective search help that is triggered in F4 at the Material field in PO items for ME21N to add an additional search criterion for Materials by Material Group, there by reducing the number of material groups displayed.
Ex: ME21N -> F4 on Material -> Just like the tab "Material by Mat Group" on the collective search help, there has to be an extra tab for "Materials by non-taxable Material Groups".
Please advice on how I go about it. Using Exits/BADIs?
Thanks in advance
NWHi,
GO TO SE11. Under Search help radio button enter the standard search help name MAT1.
From menu clicke on "Append Search Help (F5)" and enter a name ZAMAT1 (Match Code by Material and Material Group)
Enter field names as follows:
Srch Help parameter Data element Def.value
MATNR MATNR
WERKS WERKS_D WRK
MATNR_B MATNR
PLNTY PLNTY
PLNNR PLNNR
PLNAL PLNAL
MATNR_HTN EMATN
VKORG VKORG VKO
VTWEG VTWEG VTW
Regards,
Subramanian -
Search help exit for CSH_T003 not working in FB60
Hi. We need to restrict document types per transaction code.
I know we can use authorisations but it would look nicer to actually restrict the list available, so the user can only choose a valid one, rather than choose any but then be told of authorisation problems.
I put a user exit on the collective search help CSH_T003 and also on the individual H_T003 and set a break point right at the start of the user exit, but it does not break in transaction FB60.
Does anyone know if it is possible to use a search help exit in transaction FB60? If it is possible what am I doing wrong?
Thanks a lot for your help.
Regards,
Dave.Hi ,
If you are looking to retrict a specific document type for FB60. You can do so, by customizinng "a/c payable & receivable> Busi Trans > Outgoing invoices/Credit memo>Outgoing invoices/Credit memo enjoy.
Then in Fb60, go to "editing option" and hide the doc type under "Document type option". This will only work if you want to use a specific doc type for FB60.
Thanks
Ron
Edited by: Ron on Dec 2, 2009 8:45 PM -
Search Help Exit for ECC 6.0
Greetings,
I'm working in ECC 6.0. I'm trying to create a Help screen exit using F4IF_SHLP_EXIT_EXAMPLE as a model. The problem is that it will not compile due to the fact that a 'LIKE' parameter type is used in the function definition tables tab. This is not allowed in 6.0.
I've tried several work arounds without success. I have search for a 6.0 version of this function without success.
Does anyone have a solution?
rvHi Richard,
We too are running ECC 6.0 (release 701) and the LIKE definition doesn't cause a problem in our system. Maybe it has to do with a particular support pack level. Anyway, since you have presumably copied F4IF_SHLP_EXIT_EXAMPLE to a custom function module, you can manually change the typing of the Changing parameter. I tried this below and the search help exit executes as expected.
If this doesn't resolve the issue for you, you may want to repost your question to the ABAP Development community.
Cheers,
Amy
Maybe you are looking for
-
HR Infotype : Viewing multiple entry at once?
Hi everyone, I need to create a new infotype and in its screen, I want a grid or table control that displays every entry of this infotype for the current employee. My guess is to create the new infotype via txn PM01 and then modify the screen and the
-
Trying to install cs5.5 onto new pc, have old serial number...
trying to install cs5.5 onto new pc, have old serial number... but can not find how I even start process. Yes, it is installed on a MAC, where I still want access.
-
HT3255 How to re-download iLife after reformat?
I bought a 2nd hand macbook air, the set is still under warranty, the register owner has been changed to me. Previous owner has downloaded iLife with his apple id. After i reformatted the macbook air. Now I can't download iLife. Any solution?
-
Waves 5.9 enabler on Final Cut startup crashes final cut on startup
When launching FCP 5.1.4 the waves 5.9 enabler pops up I choose quit since I dont have any licenses for waves plugs this causes FCP to crash
-
We need to assign content to more than one LDAP groups. We cannot use LDAP integration becoz this is for External users and not content contriubtors. Can collboration management component be used for this. Will it allow to assign multiple LDAP groups