The Previous Search help value
PARAMETERS:LOTNUM TYPE QPLOS OBLIGATORY,
STARTDAT TYPE QALS-PASTRTERM OBLIGATORY.
SELECT-OPTIONS: FTEST FOR QAMV-VERWMERKM Matchcode Object ZLOT_HELP.
Please answer accroding and using the above parameters and select-options.
My Requirement is that the when user selects the LOTNUM value by pressing F4.
then he wants to select the value of FTEST when he press the F4 button on FTEST then
the manual search help ZLOT_HELP will popups I need the Previous Selected LOTNUM value
to be displayed or selected in the manul Search Help F4 of FTEST.
Please If possible send me the CODE using the abov parameters and select option.
and guide me except the option AT SELECTION-SCREEN ON VALUE-REQUEST FOR FTEST.
cos this option gives me error due to I m using manual search help and this option can be used only wiht
standard helps.
Regards.
try FM DYNP_VALUES_READ to get entered values of LOTNUM-->check its documentation for its usage.
F4IF_START_VALUE_REQUEST-->u can use this FM to get values frm ur custom search help .
regards
Prabhu
Similar Messages
-
Filtering the search help values
Hi all
I need some help regarding search help that for a normal search help for a field we will get all the possible values for that but here i need to filter the field values based on the previous field entered value.
for example :
two fields are there
plant and work center,
for a normal search help work center may get 100 values from a defined table.
if we enter some value in plant field and then if we press search help for the work center field then the values of the work center should be filtered based on the above entered value.
Please help me in this issue..tell me whether it is possible or not
Thanks in advance.
siva.IF not <plant field> is initial
1. Copy F4IF_SHLP_EXIT_EXAMPLE to Z, call it from your programpass the plant data to it
2. Use the changing parameters SHLP and CALLCONTROL of that FM
3. Append your plant values into shlp-selopt[] table () like shown below
data begin of s_hselopt occurs 0.
include structure ddshselopt.
data end of s_hselopt.
CASE callcontrol-step.
WHEN 'SELECT'.
LOOP AT <plant table>
s_hselopt-shlpname = <SHelp Name>
s_hselopt-shlpfield = <Field Name - Wrk Ctr>
s_hselopt-sign = <Constant ('I')>
s_hselopt-option = <Constant ('EQ')>
s_hselopt-low = <plant table-plant>
APPEND s_hselopt.
CLEAR s_hselopt.
ENDLOOP.
shlp-selopt[] = s_hselopt[].
ENDCASE. -
Transferring Search Help values from ECC 6.0 to SRM 7.0
Hi SAP experts,
I have a requirement to display the search help values for a data element in ECC 6.0 into the custom data element that I created on SRM 7.0.
Is there a BAPI that I can use to retrieve the values for a search help element (for example SH_ANLKA) from the the ECC into SRM?
Your advise would be greatly appreciated!
Regards,
AndrewHi Andrew,
I have got a similar requirement to fetch the PO details from ECC search help to a new SRM search help. Please help me with the procedure you used for the above scenario.
Thanks,
Santosh. -
How to enhance the Opportunities search help in UI
Hi all
I have a requirement wherein I need to enhance the Standard Search help of Opportunities in UI.
The requirement is, we have few custom fields and few fields from 'Milestone' tab .These fields needs to show it in the initial screen of 'Opportunities' to search the different opportunities.
Ex:1.We have a custome field called 'Direct Margin%' and this should appear in the drop down of Opportunity search help in UI
and if the user enters a value against this then system should filter all the opportunities and should display the oportunities which are having the value entered by the user for ''Direct Margin%' (similar to standard search).
2. We have a field called Contract Start Date*' and this should appear in the drop down of Opportunity search help in UI
and if the user enters a date against this then system should filter all the opportunities and should display the oportunities
with the date entered.
Hope!! the requirement is clear to all.
Can you please let me know the detailed steps to acheive this requirement.
Regards
AnilHi,
Put the break point and check in GET_DYNAMIC_QUERY_RESULT of CL_CRM_QOPP_RUN_BTIL at line no 133, inside the get_result_values method at line 4 get_result_guids will be called, within this method the above mentioned Enhancement spot will be called.
following is the sample code:
**********Reading the Values from the Fields in the UI************************************
READ TABLE IT_MULTIVALUES INTO LW_MULTI_VAL
WITH KEY FIELDNAME = 'ZXXX'.
LT_BSP_RANGE = LW_MULTI_VAL-SEARCHVALUES.
READ TABLE LT_BSP_RANGE INTO LW_BSP_RANGE INDEX 1.
LV_PART = LW_BSP_RANGE-LOW.
************Calling standard search for all fields except ZXXX partner function********************
CALL FUNCTION 'CRM_BSP_OIC_1O_SEARCH_FROM_RF'
EXPORTING
IT_SEARCH_TAB = IT_SEARCH_TAB
IT_MULTIVALUES = IT_MULTIVALUES
IV_NUMBER = IV_NUMBER
IV_EXTERN_CALL = 'X'
IV_SELECT_FOR_HEADERLEVEL = 'X'
IMPORTING
ET_GUIDLIST = ET_GUIDLIST
ET_RETURN = ET_RETURN
EXCEPTIONS
DATE_NOT_CORRECT = 1
NO_CARD_TYPE = 2
NO_CARD_NO = 3
NO_PROGRAM_ID = 4.
LV_MAXHITS = IV_NUMBER.
******Function called to change partner number in the required format *********
CALL FUNCTION 'BUPA_SEARCH_2'
EXPORTING
IV_PARTNER = LV_PART
TABLES
ET_SEARCH_RESULT = RESULT
ET_RETURN = RETURN.
CLEAR LV_PARTNER.
READ TABLE RESULT INTO WA_RESULT INDEX 1.
IF SY-SUBRC EQ 0.
LV_PARTNER = WA_RESULT-PARTNER.
ENDIF.
IF LV_PARTNER IS NOT INITIAL.
************Calling Search for field ZXXX partner function**********************************
SELECT HEADER FROM CRMD_ORDER_INDEX
INTO TABLE LI_GUID
WHERE PARTNER_NO EQ LV_PARTNER
AND OBJECT_TYPE EQ 'BUS2000111'.
********LOOP will filter the guids according to the partner function **********************
LOOP AT LI_GUID INTO WA_GUID.
SELECT SINGLE GUID_HI FROM CRMV_LINKPARTNER
INTO LV_GUID
WHERE GUID_HI EQ WA_GUID-LV_GUID
AND PARTNER_FCT = C_PFT .
IF SY-SUBRC EQ 0.
LV_OBJECT_KEY = LV_GUID.
APPEND LV_OBJECT_KEY TO ET_GUIDLIST_PFT.
ENDIF.
ENDLOOP.
********Search guids by standard search function called ***************************
LI_GUID_KEY = ET_GUIDLIST.
*******Guids on partner number search******************************************************
LI_GUID_KEY2 = ET_GUIDLIST_PFT.
**Comparison of the results from the standard field search and the results got from Z field search**
LOOP AT LI_GUID_KEY INTO WA_GUID_KEY.
READ TABLE LI_GUID_KEY2 INTO WA_GUID_KEY2
WITH KEY LV_KEY2 = WA_GUID_KEY-LV_KEY.
IF SY-SUBRC EQ 0.
LV_COUNT = LV_COUNT + 1.
IF LV_COUNT LE LV_MAXHITS.
APPEND WA_GUID_KEY2 TO LI_RESULT_ETGUID.
ENDIF.
ENDIF.
ENDLOOP.
IF LV_COUNT GT LV_MAXHITS.
WA_RETURN-TYPE = C_MESSGTYPE.
WA_RETURN-ID = C_MESSGCLASS .
WA_RETURN-NUMBER = C_NUM.
WA_RETURN-MESSAGE_V1 = LV_MAXHITS.
APPEND WA_RETURN TO LT_RETURN.
ET_RETURN = LT_RETURN.
ENDIF.
CLEAR ET_GUIDLIST.
ET_GUIDLIST = LI_RESULT_ETGUID.
*****************Partner Number Entered in ZXXX not Found*******************************************
ELSE.
CLEAR ET_GUIDLIST.
ENDIF.
ENDMETHOD.
Regards,
S Reddy -
Search Help values to Internal table
Dear Friends,
Is it possible to export Search Help values to Internal table?
On screen, when user click on Search button, the SAP standard search help will call (Customer Search). After entering values, some result get displayed and this result need to export to the internal table.
Thanks in stack
NileshHi:
try this:
DATA : wa_shlp TYPE shlp_descr,
it_records LIKE ddshretval OCCURS 0 WITH HEADER LINE.
wa_shlp-SHLPNAME = 'MAT0M'. "one of elementary search help name from mara-matnr.
wa_shlp-SHLPTYPE = 'SH'.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = wa_shlp
MAXROWS = 0
SORT = ' '
CALL_SHLP_EXIT = ' '
IMPORTING
MAXROWS_EXCEEDED =
TABLES
RECORD_TAB =
RECDESCR_TAB =
return_tab = it_records
LOOP AT it_records.
WRITE:/ it_records.
ENDLOOP.
Follows is how to get the search help name:
CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
EXPORTING
tabname = 'MARA'
fieldname = 'MATNR'
langu = sy-langu
NO_CHKTAB_MAPPING =
GET_ENTITYTAB = ' '
CHANGING
shlp = wa_shlp
callcontrol = callcontrol
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
OTHERS = 3
CALL FUNCTION 'F4IF_EXPAND_SEARCHHELP'
EXPORTING
shlp_top = wa_shlp
IMPORTING
shlp_tab = shlps.
好运,
启明星 -
Search help value restriction fields
Hi experts,
I have modified the existing search help by using "SEARCH HELP EXIT".
Here is the situation:
As soon as I press F4 button on particular field, it will display search help restrictions window with 4 fields.
suppose if I enter material number on material number field, it should display only particular material not all materials.
Normally it was working fine before I written search help exit.
In search help exit I am selecting values directly from database table with out consider restrictions window parameters.
How to findout the restrictions window parameter names ( I mean screen field name). So that I can add those fields in my select statement where condfition.
Pls help me.
Thanks in advance
RaghuI got the solution. Any how Thanks.
-
Elementry search help (value of import parameter)
hi friends..
In my search help...when i pass value in WERKS as CV01 ..then no result is coming..as only CV0 value is passed to import parameter..
and if put CV* then list is coming..
Any IDEA to solve this problem...
Message was edited by:
Madan Gopal SharmaHi
Have you created the search help properly
create by going through the doc and attach to the field werks and see,
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
Reward points if useful
Regards
Anji -
Search Help values are transferred only on first use
Hello,
I've an alv grid from which when I select a record and clicks a button, a second window with another alv grid is launched. In this second alv, 3 fields are attached to the same Search Help so that when I select a valuefor one of the fields, the two other fields are populated with the corresponding values from the selected record. All three values are in the search help selection. This works just fine.
The problem is, when I close the second window and select another or even same record from the first grid, the two other fields do not get populated anymore in the second alv grid using the same search help.
How may this issue be resolve?
Thanks,
ReyleeneHi,
I have a search help for the field.
Where i have written Search Help Exit for the that field.
Where for the 1st field company code is considered for selecting the values.
But for the 2nd field Company code is not considered for selecting the values.
Hence it is defaultly selecting the values. -
Automatic population of search help value to another field in module pool
Hello there,
I am developing a module pool screen, in which i have a table control field with fields PERNR and ARBPL along with other fields.
I have to give a search help for Pernr first field for which i have given a search help with the use of PM02 search help, given in the screen field level, in the same search help there is another field ARBPL, when the pernr is selected i have to get the corresponding Arbpl field value in the search help hit list and pass it to my field arbpl in my table control.
I tried with POV event as well with FM f4if_field_value_request but the return structure always filling one value only PERNR.
Is there any chance to get the both field values from the search help.
Thank you in advance.
Regards,
Kumar.Try the following logic in your table control, in table control you have get the selected index using function DYNP_GET_STEPL.
TYPE-POOLS: shlp.
PARAMETERS:p_matnr TYPE marc-matnr,
p_werks TYPE marc-werks,
p_ekgrp type marc-ekgrp.
TYPES:BEGIN OF ty_marc,
matnr TYPE marc-matnr,
werks TYPE marc-werks,
ekgrp TYPE marc-ekgrp,
END OF ty_marc.
DATA:i_marc TYPE TABLE OF ty_marc,
i_val TYPE TABLE OF ddshretval,
wa_val TYPE ddshretval.
DATA:wa_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
SELECT matnr werks ekgrp FROM marc INTO TABLE i_marc UP TO 100 ROWS.
CHECK i_marc[] IS NOT INITIAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
value_org = 'S'
callback_program = sy-repid
callback_form = 'CALLBACK_ROUTINE'
dynpnr = sy-dynnr
TABLES
value_tab = i_marc
return_tab = i_val
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_val INTO wa_val.
IF sy-tabix = 1.
wa_dynpfields-fieldname = 'P_MATNR'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ELSEIF sy-tabix = 2.
wa_dynpfields-fieldname = 'P_WERKS'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ELSEIF sy-tabix = 3.
wa_dynpfields-fieldname = 'P_EKGRP'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ENDIF.
APPEND wa_dynpfields TO i_dynpfields.
ENDLOOP.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields.
FORM callback_routine TABLES i_val TYPE ddshreslts
CHANGING wa_shlp TYPE shlp_descr
wa_callcontrol LIKE ddshf4ctrl.
DATA:
wa_intf LIKE LINE OF wa_shlp-interface.
wa_intf-shlpfield = 'F0002'.
wa_intf-valfield = 'X'.
wa_intf-f4field = 'X'.
wa_intf-value = '~'.
APPEND wa_intf TO wa_shlp-interface.
wa_intf-shlpfield = 'F0003'.
wa_intf-valfield = 'X'.
wa_intf-f4field = 'X'.
wa_intf-value = '~'.
APPEND wa_intf TO wa_shlp-interface.
ENDFORM. " CALLBACK_F4 -
Search help for Web Dynpro using the SAP-search help
Hi,
Im trying to create a generic search help for Web Dynpro using the SAP-search help. It should working so, that I construct a Web Dynpro-component, that gets the data of the search help from the SAP-system, interpreted it and creates the ui-elements and the needed context generic.
The mapping between the Input field of the customerview and the right search help is to be made with an xml-file, which contains the information: name of the view, the input field, the search-help-name and the name of the field that will be returned.
The xml-file is reading from a helper-class. That helper-class contains any information, witch need the search help-component as well as the customer-component.
The initialization takes place in the method wdDoModify of the customer. The call of the search help from the customer should be implement with an Action, witch is bound to a Button(create dynamic in the helper-class behind the input field).
In a second foot should be create a plugin for eclipse, witch insert the used files (search help component, helper class, ) in the project. In addition it should create the call in the customer generic.
It would be great if someone can give me a feedback!Hi Mike,
The BlanketAgreement.exe is a reference to the executable that will be created when you compile the solution you created in Part II - Part III. I think there is a mistake in the tutorial because it asks you to name the project 'Blanket' which means that by default the executable will be called Blanket.exe and not BlanketAgreement.exe. The tutorial also misses the step asking you to compile the Blanket project before you go on to create an installer. You should compile your Blanket project in Release mode before creating an installer. By compiling the project you'll get a Blanket.exe file in the bin folder of your Blanket project which you then need to add to the installer per the instructions.
SAP do offer development courses in some areas and there is training material here on the SDN and on the SAP partner portal (and maybe the customer portal as well). Try searching this forum for 'training' or 'tutorial' and you should get a few links. There's also a development certification.
Personally I'd recommend you give yourself a little project to work on and just get stuck in
Kind Regards,
Owen -
How to use the created search helps in the program?
Hi Everyone,
I know how to create Search help elementary / collective search help through SE 11. I have a question, how can I make use of the created search help in the program.
How to use the Search help in the programs, which is created through SE11
Subbu.Hi,
In case if you want to use in parameters statement, then we can use the suffix MATCHCODE OBJECT syntax.
Eg.
report abc.
parameters : a(10) type c matchcode object ZBELNR.
Hope this helps.
regards,
amit m. -
Calling the advance search help using f4 help
Hi
I have a question.In Items assignemnt blcok of the opportunity page for product ID field there is an f4 help associated with it. When we click on f4 help it will open the standard product serach in a popup where we can serarch for the products. and select the product from results.
But my requirment is to call the advance search help of the products instead of standard serch help in the popup when we click f4 help and should beable to save the searches and retrive the saved sercahes.
Can any one help me out with this problem
Thanks,
SreekarHi,
If you do a search on this forum for the terms "search help exit" you will get a few threads that provide details on how you can achieve this. -
Can't find the Collective Search help for Customer in VD02/VD03
Hi
I ave (I hope ) an easy question for you -
I need to extent the Collective search help for Customer in VD02/VD03 with an additional elementary search help, but I can't find the name of the Collective Search Help (F1 -> Technical Information only gives Search help '=')
So, where do I find it ?
Regards
Morten NielsenOK I Found it - Called DEBI
Regards
Morten Nielsen -
(Urgent) Sorting search help values in Web Report
Hello Friends,
We have a web report which uses a variable made on 0CALMONTH. The order of display of values for this variable search help is 02/2004, 03/2004, 01/2005, 07/2006, 08/2006, 05/2007. In this order we have the latest date (05/2007) displayed at the end of the list. What we want is that the values in the search help of 0CALMONTH should be displayed in the reverse order i.e. latest date first (05/2007, 08/2006, 07/2006... etc).
Thanks in advance for your assistance.
Regards,
Prem.Hi Premanand,
If u display the report in Internet Explorer there you can see differnet buttons like
Save View, Book mark, Variable Screen etc...There click Save View give tech name and descryption. After Sorting use this in WAD instead selecting query , select this view and execute.
Assign Points Pls...
Best Regards,
SG -
How-to map multiple explicit search help values to context attributes?
Hi,
I have a custom explicit Search Help with multiple attributes set as export and uses search help exit for data retrieval. I have set this Search Help for one of the context attribute that is binded to one of the input fields on view.
Now, is it possible to dynamically map other export attributes from this Search Help to other Context attributes?
I know this works for Input helps that are directly derived from check tables but not sure how to do it for explicit Search Helps.
Can anyone please confirm and let me if this is possible? If yes, then can you please share an example or describe how to do it?
Thanks and Regards,Hi Srinivas,
Check this ..Search help can be dynamically assigned to a field.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131
Also refer this..
Re: How to put dynamic search help in web dynpro ABAP.
Cheers,
Kris.
Maybe you are looking for
-
Dear All, When we try to publish a Web Service using Service Registry, following error appears, even though my user has the roles UDDI_Admin and SERVICE_REGISTRY_READ_WRITE com.sap.esi.uddi.sr.api.exceptions.SRExceptionerror code: null detail message
-
Help on integrating 3rd party search engine
Hi we are on EP6 SP2. I have downloaded com.customer.search by Thilo Brandt, and uploaded it into our system, restart the portal, created a web repository. created a virtual index based on this customer search global service, and used that web reposi
-
class file for pick.ShapeList not found for(int i = 0; i < gooi.shapeInfo.size(); i++)Hi Above is the error thats popping up when I compile. This happens when I edit other classes and try compiling. For some strange and intriguing reason this
-
Standard text display in sap script
Hi Experts, The standard text will be stored in Name = ORDCONF_TEXT_(sales org)_(distributionchannel)_(division) Text ID = ZSD Examples: ORDCONF_TEXT_4000_01_01 , ORDCONF_TEXT_4000_01_80 , ORDCONF_TEXT_1000_01_01. Requirement : The print program /for
-
Autogenerating SQL command to create CSV
Hello, I created an apllication in ASP, where userer define with buttons and listBoxes data, which he needs to download. For example, application will generate string SELECT ID117, COS(ID95), SIN(ID229) FROM PROBE WHERE TIME> 1528330200 AND TIME < 15