Thread: Predefined Search Help for WERKS doesn't work properly
Hi
I read the above thread which partially helped solve my problem.
I would like to include werks-low and werks-high on the input screen both with search help and also allow user to input multiple selection if needed.
All help welcome
Torben
Hi
Many thanks for your help. This is my first dialog program so still learning.
I choose method 1 from you link but still can't get it to work.
My code in top program.
SELECTION-SCREEN BEGIN OF SCREEN 0110 AS SUBSCREEN.
select-options s_werks for t001w-werks.
SELECTION-SCREEN END OF SCREEN 0110.
my screen 0100 flow logic.
process before output.
module status_0100.
CALL subscreen sub1 INCLUDING SAPMZINFO2 0110.
process after input.
module okcode.
module user_command_0100 at exit-command.
field : m_lifnr module m_check_0100.
CALL subscreen sub1.
module read_data.
module user_command_0100.
All activates ok.
But when I execute program I don't see the subscreen and get the following error.
Call Subscreen: SAPMZINFO2 0100 NO DYNPRO NAME
What am I doing wrong?
Regards
Torben
Similar Messages
-
Predefined Search Help for WERKS doesn't work properly
Hi Experts,
in my dynprofield I have a field called 'gf_werks'.
In Screen painter I manually added predefined search help H_T001W_T.
If I push F4 on gf_werks search help pops up.
But if I select one entry it transports the name of selected werks. But I need werks itself not its name...
What I'm doing wrong?
Regards,
ZayaGood morning,
Sriniras, thank you very much!
I tried ur suggestion and it solved my problem. Now I'm getting werks not its name
Best Regards,
Zaya -
Problem creating a hybrid collective search help for werks,bukrs and ekorg
Hi All,
I have to create a collective search help for Org_key field of a custom table.
This org_key field is a char4 field and can hold the value for plant , bukrs and ekorg.
I need to create a collective search help which includes
C_T001 Collective Search Help for BUKRS (Company Code)
H_T001W_NEW Possible Entries for Plants
H_T024E Input Help for Purchasing Organization
I have added org_key field in the field description , how can i do the parameter assigment ( or declare the field description ) so that if the user press F4 for org_key field ,he is able to see all the search paths corresponding to C_T001,H_T001W_NEW, and H_T024E simultaneously, and corresponding to value chosen ( for plant , werks or ekorg ) the value is passed back to the org_key field.
Thanks in Advance
Regards
AnuragProblem resolved. You can hard code values, like the domain name within the search help.
Although I have found that if you don't use a search help and you have domain values then your drop-down list values will be automatically populated from the domain values for the field. At least in my dynpro it does.
Jas -
Search help for Acct Assignment not working
Hi,
When I create a PO and go into the account assignment tab at the item level and try to bring up the search help by clicking on the Binoculars , nothing happens. The backend has been upgraded to ERP2005. We are on SRM 5.0
Any thoughts on why this could happen?
Can you shed some light on how I could investigate this issue.
Your help is appreciated.
JoeHi
This is a bug in the System. Are you talking of customer fields / standard fields - search help ?
You need to raise an OSS message with SAP on this.
Meanwhile, try these SAP OSS notes.
<u>Note 739509 BBPPO01: SEARCH FOR ACCOUNT ASSIGNMENT CATEGORY DOESN'T WORK
Note 746788 - Back-end system search help for cost center
Note 656633 - Search help requires dialog users
Note 907016 - Error when you select search help</u>
Also ensure, proper authorization objects are provided by BASIS team.
Let me know incase you need any assistance.
Regards
- Atul -
Search help for Plant in Ztable
Hi,
I need to create the search help for werks(Plant) in Ztable,
Rewards will be sure for usefull answers
Thanks and Regards,
Jatender NarangHi
Good
Check the below SDN link which will give you clear idea on creation of a Search Help.
Create Search Help
Thanks
mrutyun^ -
One search help for multiple select-options in webdynpro abap
Hi,
I need a way to use one search help for multiple select-options fields. My scenario is :
I have a table for keeping different organizational units' values of different systems. I have pasted some sample data from this table at the end of this mail. On the screen I want to have 1 select-options filed for werks, and 1 select-options filed for vkorg. (In fact I will have more org. unit fields...) In the beginning of my application the user will select sid.
If the user selects ADS as SID, when he opens search-help for the first org. unit (werks), he will see the records with SID: ADS, VARBL = $WERKS, LANGU = SY-LANGU.
If the user selects AGT as SID, when he opens search-help for the second org. unit (vkorg), he will see the records with SID: AGT, VARBL = $VKORG, LANGU = SY-LANGU.
I have created a search-help taking SIDD, VARBL and LANGU as import parameters; used field mapping and bound this search help to my table. I have created 2 context nodes : org1 and org2 having attributes SID, VARBL, VALUE, LANGU .
I have assigned related SID, VARBL and Langu values to these attributes at runtime as I needed. That way, if I use input field and reference to the related context attributes org1-value and org2-value2 accordingly, search help works well as I want.
However, when I use select-options field , I can not bind the field to the context data. I can give reference only to ddic structure. Is there any way to reference to a context attribute? I searched for this in SDN, but could find nothing.
I think I won't be able to use this way. What do you say?
As I read from forums maybe using OVS help will be suitable for me. But I have to use one search-help for all select-options fields. Do you know how I can determine the active select-options field and pass its name (for instance "werks" ) as parameter to this OVS search help. (Also I'll pass SID and LANGU.)
MY TABLE (ZBYYT080) CONTENTS:
SID VARBL VALUE LANGU VTEXT
ADS $WERKS 1 T Werk 0001
ADS $WERKS 11 T OZYAS GIDA URETIM YERI
ADS $WERKS 5501 T BOYA GEBZE FABRİKASI
ADS $WERKS 5502 T BOYA CIGLI FABRİKASI
AGT $WERKS 2301 T KAMLI DAMIZLIK
AGT $WERKS 9601 T PANAR DENIZ URETIM YERI
ADS $VKORG 22 T AA KİMYASALLAR
ADS $VKORG 8001 T İINSAAT BOYALARI
AGT $VKORG 6500 T DAMk St.Org
AGT $VKORG 5400 T PANAR St.Org.
I wish I'm clear enough..
I will be gald if someone answers me as soon as possible...
Thanks İn advance..
MERALHi,
Your ques is how to refer to a DDIC search help to refer to selection screen parameter ?
Am I right ?
If Yes, then in the interface IF_WD_SELECT_OPTIONS
method ADD_SELECTION_FIELD, ADD_PARAMETER_FIELD etc
have importing param like I_VALUE_HELP_TYPE and I_VALUE_HELP_ID, I_VALUE_HELP_MODE, I_VALUE_HELP_STRUCTURE
etc which may help you to link your create DDIC Search help to selection screen params.
this is just a clue from my side. I haven't tried it myself.
You can go to the where used list of this method and find some sample implementations which use these params.
Hope this helps.
Regards
Manas Dua -
Need some help in creating Search Help for standard screen/field
I need some help in adding a search-help to a standard screen-field.
Transaction Code - PP01,
Plan Version - Current Plan (PLVAR = '01'),
Object Type - Position ( OTYPE = 'S'),
Click on Infotype Name - Object ( Infotype 1000) and Create.
I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
I specify again, I have to add a new search help to standard screen/field and not to enhance it.
This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
It's urgent.
Thanks in advace. Suitable answers will be rewardedHi Pradeep,
Please have a look into the below site which might be useful
Enhancing a Standard Search Help
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
edc983384237
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
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.
During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
timepoints
The following timepoints are defined:
1. SELONE
Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
2. PRESEL1
After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
3. PRESEL
Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
4. SELECT
Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
5. DISP
Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
6. RETURN (usually as return value for the next timepoint)
The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
7. RETTOP
You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
8. EXIT (only for return as next timepoint)
The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
9. CREATE
The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
10. APP1, APP2, APP3
If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
F4IF_SHLP_EXIT_EXAMPLE
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.
The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
Hope this info will help you.
***Reward points if found useful
Regards,
Naresh -
Custom search help for a custom field in SRM 7
EDIT: I'm gonna clarify on this thread since my first post wasn't explicative enough... thanks for the patience
Hi all gurus,
the question is about a search help in SRM7 but since the task is about abap development, I guess this is the right section to ask for.
Shortly; every purchase doc in our SRM7 has a custom header table which contains data which are retrieved from the connected backends. In this custom table, the user has the opportunity to add manually a line, and for a specific input field in table, we have to define a search help which should retrieve the appropriate possible values w.r.t. the "target" backend for the document.
A bit of technical data: say the field is called ZZ_R3_ROLE; it's included in a custom structure ZR7_HEADER_CST_GEN which is itself an append for BBP_PDHCF.
I defined a Search Help for that field and the corresponding exit FM to manage our task.
Unfortunately, to retrieve the possible values for the specific backend I need some informations like:
- the backend on which the document will be distributed;
- the process type of the document.
This means that my search help should take into account additional informations that comes from the document I'm processing; I don't know what's the "clean" solution to do this.
I've seen on an old system (a SAP SRM 3.0) a workaround based on IMPORT/EXPORT ... TO MEMORY ID has been used. Actually, I'd like to find a more elegant solution, if any.
So... as you can see, I'm absolutely a newbie on the argument, but since I can trigger the search help only from a purchase document (PO, contract) process, I should need at least the GUID of the document to retrieve, for example, what's the target backend for that document in order to provide proper values.
Any hint/suggestion and in particular, a sketch of code as example is welcome.
Edited by: Matteo Montalto on Oct 22, 2010 3:01 PMHi,
into your modify view,
extract data you need in your search help in an itab (do it into a class do not perform select directly into modify view) and then bind it as value help to your WD element.
Regards,
Ivan -
Attaching Search Help for screen field in standard transaction
Dear All,
I want to attach my own custom search help for field 'Requiremenr Tracking Number (BEDNR) in PO (ME21n).
How can i do this?
Pls gv the stps.
Thanks a lot.
Kind Regards.Prasad, you know, when I search forum for answers, I'm really disappointed when I see people have found a solution but don't share, and as the thread was maybe one year old or later, I don't feel to ask because the guy probably don't remember what he did. So giving a little explanation immediately is always a very good idea.
-
Creating a search help for a field in selection screen
Hi All,
There are 3 fields in the selection screen. They are
WERKS
DATE
MATNR
Enter a value WERKS = 2465.
When I press the drop down menu for MATNR, it should only give the material number available for 2465.
I think, I should create a search help for it.
Kindly help me to create a search help for the material number based on the above condition.
Thanks in advance.Hi
i am sending you a sample code where i had implemented a search help
for my req you can understand very easyly and write for ur req
<b>reward if usefull for ur req</b>
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
FIELD_TAB =
RETURN_TAB = RETURN_TAB
DYNPFLD_MAPPING =
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.
ENDIF. -
Assign search help for a screen field in standard program?
Hi All,
Is there any other way to assign search help to a standard SAP screen field? (to be precise i want to assign search help to Recipient field in table control of components tab in transaction IW32/IW31)
I know we can do this by assigning search help through screen painter (by changing standard program, which is my last option).
Any advice/help will be greatly appreciated.Hi,
I think you will find solution in below <b>threads</b>:
Re: Search Help for standard field
How to assign a search help
Search help for Standard SAP field
<b>Reward if helpful</b>
Rgds, -
How to create Search help for the field /SAPSLL/PRGEN-ATTR20V
Hi ,
I need to add a search help for the field /SAPSLL/PRGEN-ATTR20V and their is a chk table used for this field is /SAPSLL/TCOATV20.
In this table /SAPSLL/TCOATV20-ATTRV20V is a Primary key field.
How can I add search help for this field?
Any suggestions will be appreciated!
Regards,
KittuHI,
Fixed on my own..
I am closing this thread!
Thank you!
Kittu -
Search Help for selection screen select-option
Hi Friends,
I want have search help for KSCHL with only the condition types starting with Z. I need your help to do that.
Thanks in Advance.hi,
chek a sample code, for restricting the serach help.
REPORT Z_CONECT_A.
Include type pool SSCR
TYPE-POOLS sscr.
TABLES : marc.
defining the selection-screen
select-options :
s_matnr for marc-matnr,
s_werks for marc-werks.
Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.
Auxiliary objects for filling RESTRICT
DATA : optlist TYPE sscr_opt_list,
*** type sscr_***.
INITIALIZATION.
Restricting the MATNR selection to only EQ and 'BT'.
optlist-name = 'OBJECTKEY1'.
optlist-options-eq = 'X'.
optlist-options-bt = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_MATNR'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY1'.
APPEND *** TO restrict-***_tab.
Restricting the WERKS selection to CP, GE, LT, NE.
optlist-name = 'OBJECTKEY2'.
optlist-options-cp = 'X'.
optlist-options-ge = 'X'.
optlist-options-lt = 'X'.
optlist-options-ne = 'X'.
APPEND optlist TO restrict-opt_list_tab.
***-kind = 'S'.
***-name = 'S_WERKS'.
***-sg_main = 'I'.
***-sg_addy = space.
***-op_main = 'OBJECTKEY2'.
APPEND *** TO restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
EXCEPTIONS
TOO_LATE = 1
REPEATED = 2
SELOPT_WITHOUT_OPTIONS = 3
SELOPT_WITHOUT_SIGNS = 4
INVALID_SIGN = 5
EMPTY_OPTION_LIST = 6
INVALID_KIND = 7
REPEATED_KIND_A = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards
anver
<b><i>if helped pls mark points</i></b> -
Search help for field in Standard Transaction
Hi Experts,
We have a requirement to have an F4 search help for a standard field .
( Plant, werks, Tx AS01 ). This field is not associated with any standard search help, but it throws F4 values programmatically .
We need to associate a standard search help ( BETR_BUKRS ) with this Plant field.
1. How to proceed abt it ( As it is a part of module program , can we straight away associate with the search help in the property ) ,it is a field of standard Transaction .
2. If we include search help above, what will happen to the already existing F4 functionality ? Can we have both in tabs ?
Thanks a lot,
~Abap LoverHi Seshatal,
Thanks for the input, but this field does NOT have any ON VALUE REQUEST event associated with it ....
as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
I think including a standard search help will help....how to achieve this ?
Thanks, -
Search help for VA01 Header Data Partners
Hello Team,
I have a requirement in va01/02/03 , where i will need to create/enhance a search help for one of the partner functions under SO header data.
and values will need to be extracted from a customer Z-Table., taking into consideration the sales area of the SO
Right now, I am not sure, but it looks like it has a search help attached to it, but when i press F4, nothing comes up.
Is there a way i can check if there is any standard search help associated with those screen field?thankyou suresh.
As i have created this search help and in the view i have given the join conditions as
MARA-MATNR = MARC-MATNR
MARA-MATNR = MAKT-MATNR
MARA-MATNR=MVKE-MATNR
and in search help parameters :
VKORG
MATNR
BISMT
MAKTX
MTART
WERKS
PRODH
I took the Hotkey as 1.
Please guide me what are selection conditions that i need to give in my VIEW.
Here iam using 4 tables.
MARA
MAKT
MVKE
Edited by: vinay raj on Jun 12, 2009 6:42 AM
Edited by: vinay raj on Jun 12, 2009 7:18 AM
Maybe you are looking for
-
I have recently got a Time Capsule with my Macbook pro retina 15". I am trying to setup my time capsule as a wifi station at my home. But the thing is I can only access wifi from my lap only. How can I share my network from timecapsule to other devic
-
10g Client crash on Windows XP Pro 64bit
Wenn connecting to an Oracle 9.2 Server, the Client crash with Coredump. ncluded to Dumps with deliverd Java 1.5.04 and new installed Java 1.5.0.13 # An unexpected error has been detected by HotSpot Virtual Machine: # EXCEPTION_ACCESS_VIOLATION (0xc0
-
RFFOGB_T Payment Program ref nr for Direct Debits
Hi all We are implementing Direct Debits, and I am currently testing RFFOGB_T. We have a separate DD per contract and the contract nr is populated through to the assignment field in the FI doc (Field ZUONR). It is our intention to group the incomin
-
Query spatial data out of PLSQL Developer
I tried to select all columns (on of them SdoGeom type) of a table using PLSQL Developer and got the message "unconsistent datatypes". When I use a the same select statement in SQL*Plus anything works right. What is there to do to use Developer?
-
FI Substitution Routine (OBBH) - error in formula
Hello FI Experts, I am an ABAPer. My requirement is to write a Subst routine(OBBH) using call point 3 which checks for a given range of co codes (BUKRS) and reason codes(BSEG-RSTGR) NOT equal to ' ' (space) at <b>document item level.</b> But i am