Serach help exit (vendor NAME1 field)
Hi friends,
I have developed a search for vendor number using a custom view.
In view I am parameter for name. In case vendor if I gives lower case details if I specifiy lowrcase value (e.g. test) and gives only uppercase value for in case uppercase values (TEST). I know it is happing becasue of lower option is ticked on domain of NAME1 field.
I want to get both uppercase and lowercase values irespective of input is uppercase or lowercase.
Is it possible to elminate the restriction using serach help exit?
Regards,
Amit R.
Hi,
I used MCOD1 field in Search help for field refernce to NAME1 field.
Thanks and regards,
Amit R.
Similar Messages
-
Adding search help to standard SAP field
Hi Experts,
I need to add search help to field ZUONR i.e assignment field in various tcode like fb70,fb60,f-02.etc which will select data from
Z tables . I have found out serach help exit F4IF_SHLP_EXIT_EXAMPLE but as per my knowledge that is to change existing standard search help.But to field ZUONR there is no search help attached.How can new Z search help be added to field ZUONR without use of access key.
Please suggest.
Regards,
Kaustubh Kabre.Hi,
I don't know how to change "Value table" field on domain without access key, but if nothing else work, you can add new fixed values. From menu Goto->fixed value append.
Other possibility is to use GuiXT -> write script that will call your FM that will get data from your table and show them.
Best regards
Marcin Cholewczuk -
Help with DYNP_VALUES_READ and DYNP_GET_STEPL in search help exit
Hi,
I'm coding a search help exit for a field on a table control and I need to get access to the value of another field that's on the same line in order to limit the hit list. I can use DYNP_VALUES_READ to return the values from the step loop, but I can't find out which line of the step loop I'm on. DYNP_GET_STEPL always returns 0, presumably because I'm now in a function group and the step loop is getting reset. Any ideas?
Thanks in advance,
AndrewI want to read EBELP and INFNR.
Below is code that i'm using:
MOVE 'MEPO1211-EBELP' TO t_campos-fieldname.
APPEND t_campos.
MOVE 'MEPO1211-INFNR' TO t_campos-fieldname.
APPEND t_campos.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = 'SAPLMEGUI'
DYNUMB = '1211'
TABLES
DYNPFIELDS = t_campos
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 t_campos INDEX 1.
l_ebelp = t_campos-fieldvalue.
READ TABLE t_campos INDEX 2.
l_infnr = t_campos-fieldvalue.
The sy-subrc = 0, but the FM didn't bring the values of the screen fields. Is there some wrong with the filed name?
Thanks. -
Activating F4 help/Validating for a field added to SRM shopping cart screen
I have added Profit Center as an additional field on the Shopping Cart Screen. This should be displayed only when the user selects Cost Center as value for another input field. Also I need F4 help for this profit center.
Can someone please guide me with the steps to do the same.
Thanks and Regards,
VanessaHi Vanessa,
Validation can be done in doc change and doc check BADIs.
For attaching F4 help you can create a search help in ABAP Dictionary and attach that serach help to your cutom field .
Hope that helps,
Anubhav -
Dear Experts,
I want to add f4 help for name1 in kna1 table how to achieve it...
Thanks and Regards,
Thirukumaran. R
tables : kna1.
DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL with header line.
parameter : p_kunnr type kna1-kunnr,
p_name1 type kna1-name1.
data : begin of it_kna1 occurs 0,
kunnr type kna1-kunnr,
name1 type kna1-name1,
end of it_kna1.
select kunnr name1 into table it_kna1 from kna1 where kunnr eq p_kunnr and name1 eq p_name1.
at selection-screen on value-request for p_name1.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'NAME1'
DYNPPROG = SY-REPID
DYNPNR = '1000'
DYNPROFIELD = 'P-NAME1'
VALUE_ORG = 'C'
tables
value_tab = IT_KNA1
RETURN_TAB = T_RETURN.
loop at it_kna1.
write : / it_kna1-kunnr,
it_kna1-name1.
endloop.Hi..
You need to create a search help exit and associate with the field.
You need to create a function module which u will give in the search help exit.
Function Module Code:
*DATA DECLARATION
types: begin of t_bukrs,
bukrs type bukrs,
end of t_bukrs.
types: t_bukrs_tab type standard table of t_bukrs.
DATA : l_wa_bukrs TYPE t_bukrs, " Company Code
lit_bukrs type t_bukrs_tab.
l_v_record TYPE astmo. " Variable to store company code value.
*CONSTANT DECLARATION
CONSTANTS: l_c_bukr TYPE astmo VALUE 'CO_CODE', " Constant for Memory ID
l_c_no TYPE flag VALUE '1', " Constant To limit no of entries to be displayed
l_c_step_val TYPE bukrs VALUE 'DISP', " Constant For display when F4
l_c_app_str TYPE clsrt VALUE '123'. " Constant for prefix wehn appending value in F4 help.
IF sy-subrc EQ 0.
callcontrol-maxrecords = l_c_no.
IF callcontrol-step = l_c_step_val.
REFRESH record_tab.
*FETCH VALUE FROM CHECK TABLE T001 FOR COMPANY CODE ENTERED IN THE SELECTION-SCREEN.
SELECT bukrs FROM t001
INTO l_it_bukrs. "TABLE record_tab
IF sy-subrc = 0.
loop at l_it_bukrs into lwa_bukrs.
CONCATENATE l_c_app_str l_wa_bukrs-bukrs INTO l_v_record.
record_tab = l_v_record.
*APPEND COMPANY CODE TO TABLE FOR F4 HELP.
APPEND record_tab.
ENDIF.
ENDIF.
ENDIF.
ENDFUNCTION.
In the above code i am having a search help exit for company code.
Hope this helps. -
Hi All,
I am facing a problem in using the prefered vendor search help.
When I create a SC and go to sources of supply serach help and on click on start I get few BP numbers.
The problem comes when on selecting on any BP numbers (hyperlink)...it does not transfer to SOS screen ,prefered vendor field
Kindly Suggest what could be the problem .
Regards
BidyutHello,
You can verify if note 1391524 helps you.
In this case, an External Service Staff- Order has been inserted in the cart and assigning a vendor via search help does not work.
Kind regards,
Ricardo -
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. -
What is the significance of data collection nad search help exit field ?
Dear Gurus
I know i am asking very basic quetion of abap but sdn is the only source to learn sap for me.I want to thanks you all for your kind support.
i read most of the post related to search help and trying to create one.
for elementary search help.
SE11 -> SEACH HELP -> ELEMENTARY SEARCH HELP
I have doubts regarding to fields "DATA COLLECTION" and "SEARCH HELP EXIT".
reference to a tutorial it is a maintenance view shall i have to reate a maintenace view first.
and other field is SEARCH HELP EXIT what is this.
please help me .
Thanks in advance.
Chitta Ranjan mahato.
Edited by: chitto123 on Oct 8, 2010 5:59 AMHowdy,
DATA COLLECTION - refers to a database table or view. This is the data that the search help will search through and display based on the parameters provided, so you can create your own view for the search help if you want the search to cover multiple tables.
SEARCH HELP EXIT - You can create a function module to be able to alter the Search Help's selection and results at various events throughout the search help. An example of this function module is provided with some documentation in function module F4IF_SHLP_EXIT_EXAMPLE.
Cheers
Alex -
Exit to populate Vendor Batch field in Material tab while creating PO.
Hi Experts,
I need an exit to populate Vendor Batch field in Material tab while creating Purchase Order.
Regards,
Jayapal.
Message was edited by:
JayapalHI ,
Folllowing r the exits for po .
Enhancement/ Business Add-in Description
Enhancement
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
AMPL0001 User subscreen for additional data on AMPL
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
Regards -
Can we create serach help for a selection screen field
Can we create serach help for a selection screen field with out creating searchhelp object.
I mean is it possible to create serchelp in the program itself with some specific values i want to give.
E.g say we can define any internal table and fill it with values and using that into selection screen fields
Regards
MaveAT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
PERFORM PAYMENT_HELP.
FORM PAYMENT_HELP.
DATA: begin of DESCR_TAB occurs 0,
DESCR LIKE BKPF-BKTXT,
END OF DESCR_TAB.
DATA: gd_repid like sy-repid.
gd_repid = sy-repid.
DESCR_TAB-DESCR = 'aaaaa'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'bbbbb'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'ccccc'.
append DESCR_TAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DESCR'
DYNPPROG = gd_repid
DYNPNR = '1000'
DYNPROFIELD = 'paymeth'
VALUE_ORG = 'S'
DISPLAY = ' '
TABLES
value_tab = DESCR_TAB.
endform.
Svetlin -
How to concatenate fields in Search help exit
Hi,
My requirement is i have to create a search help for a field in cj20n transaction.
when i press f4 on that field i should get a popup of 4 fields from custom table,when user selects any 1 row,
first 3 field values should be concatenated and appear in screen field . in search hlp i added 1 more field so that i can concatenate
all 3 field values and place in it.I can use search help exit so i can concatenate but there are steps like selone,presel etc i am not able to understand .
I saw some examples in wiki, but not able to understand what to do for my requirement.
regards.
Edited by: vnamamala on May 27, 2010 12:22 PMYou would use the step 'SELECT' to control the data selection into an internal table. You would use the step 'DISP' to map the records in the internal table to the search help record table. In your case, I would already have a field in the internal table with the values concatenated together prior to the hit list display (do this in SELECT step) which is not displayed in the hit list but is flagged as the EXPORT field in the search help definition; otherwise just put the field at the end of the hit list.
Map your results in DISP as follows:
* Map the internal table to RECORD_TAB
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
SHLP_TAB = SHLP_TAB
RECORD_TAB = RECORD_TAB
SOURCE_TAB = GT_DOCUMENT
CHANGING
SHLP = SHLP
CALLCONTROL = CALLCONTROL
EXCEPTIONS
ILLEGAL_STRUCTURE = 1
OTHERS = 2.
CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
TABLES
SHLP_TAB = SHLP_TAB
RECORD_TAB = RECORD_TAB
CHANGING
SHLP = SHLP
CALLCONTROL = CALLCONTROL. -
Modify another field value in search help exit.
While creating the Sales Order, the user does an f4 on ship to party to determine the sold to party ( search help exit ), now I have the values of both the Ship to customer and Sold to customer in the search help exit, but I can update only the ship to field of the sales order, do you know how I can modify the sold to value on the screen.
I tried setting up the parameter id 'VAG' in the search help exit with the determined value, but this value is not getting copied in the Sold to party field once the search help is executed.
The other option which is left is export to memory and import to memory in another user exit of VA01. Is there any other alternative? Also which program do I need to do the import of memory so that sold to party is displayed on the initial before saving the document ?
AjayHi,
Yes..Try calling from the search help exit..
You have to pass the program name and screen number..
In the internal table parameter DYNPFIELDS..
Pass the fieldname and fieldvalue...
Thanks,
Naren -
Modify va01 fields in search help exit.
I have implemented the search help exit for Ship to field , based upon the values of ship to field , I need to modify the Sold to field during Sales Order creation.
Can this be achieved ? If yes how ?
AjayHi Ajay ,
1. go to ship to party data element KUNAG as below:
And assign shearch(NEW) help name: Z_KUNNR
Parameters : CUS
2. then create search helps:-
2.1. Search help name : Z_KUNNR(any name as per your standerd)
2.2. Short Text : Search Help for Kunnr.
2.3. Search Help Exit : Z_sold_to_party_F4HELP_EXIT(Fuction Module)
2.4. Other Attributes of Search help are as follows:
Search help parameters:
CUS TYPE kunnr , DESCRIPTION TYPE BEZEI40 .
SPOS (Selection Position) NA
LPOS (Listing Position) CUS -- 1,
DESCRIPTION -- 2.
Export Parameter CUS .
Import Parameter NA
Dialog Type Display Values Immediately.
Selection Method NA
2.5. 2. Create fuction module: Z_sold_to_party_F4HELP_EXIT Below are the details of the Function Module Attributes, Import , Export and Changing Parameters, Tables and global data (Goto -> Global Data )
Proceesing Type: Normal Function Module,
Start Immediate.
Edit Lock NA
Global Data TABLES: specify the table from where you are going to get the Sold to party values
Import Parameters NA
Export Parameters NA
Changing Parameters SHLP TYPE SHLP_DESCR_T,
CALLCONTROL LIKE DDSHF4CTRL,
Pass value (Check Box ) Checked for both Parameters.
Tables SHLP_TAB TYPE SHLP_DESCR_TAB_T,
RECORD_TAB LIKE SEAHLPRES,
2.6.
2.7. Source code Logic Implementation :-
Select the sold to party value from table into struct_record_tab-string .
Aftere that goto user exit FORM USEREXIT_MOVE_FIELD_TO_VBAK or
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
And add logic to assign sold to party value to the value to ship to party
Thanks and Regards,
Pavan -
Search help exit for field name: BANKL (bank number)
Is there any search exit that can be used on field BANKL to display only some bank based on user defined criteria?
Regardswe can create the search help ..
we dont need to use CMOD or SMOD for this .
The search help exit are implemented as function module (newly created) .
The place for exit in search help is blank but we can assing our exit ( FM created ) into that . Take the F1 help of that in change mode of search help .
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.
well which search help you want to change. and what changes are needed .? -
Relating to a field inside serch help exit
Hi!
The serchhelp which was created by me has two
fields.
One field is character field (CHAR030). It is not
a dictionary field which is being in any table
or else.
My question is how can I relate to this field
in the serch help exit. For example to check
what a user has input in this field ?
I have to program some abap code inside
of serch help exit.
Regards
ertashi,
how do you bind my mentioned field with this FunctionModule
F4IF_INT_TABLE_VALUE_REQUEST
Rgds
ertas
Maybe you are looking for
-
Problem about installing DB 10.2.0.1.0 on Solaris 10 (×86-64)
1.How to set kernel parameters with Solaris 10 (×86-64) for installing DB 10.2.0.1.0? When I run the OUI, there are errors after product-specific prerequisite checking: Checking kernel parameters Checking for BIT_SIZE=64; found BIT_SIZE=64. Passe
-
Report Painter - Business Area & GL Account Question
Hi All, Here is the problem I'm attempting to solve. In the Rows we have all the inventory GL/Accounts and company codes. In the columns we have the Period and Business Area. The issue the company has all of their postings in one company code going
-
Fine Grained Access ERROR on INSERT when generating unique keys
I'm using VPD/Fine Grained Access Control (FGAC) to implement security on my 9i backend. I created a security policy function that returns the predicate 'owner = USER'; - each of the tables has an additional column titled OWNER which contains the nam
-
A strange problem in smart form?
Hi, I met a strange problem in my smart form. When I click "Check" button in each window of each page, system said "Window (my window name) does not fit onto page(height)". Even I create a new page and a new window in it, it still said this error
-
Running multiple instances of program at same time problems
I have a c++ program that uses BerkeleyDB 4.8.26 with transactions. Program works well, and I can run multiple instances of program and they cooperate on database very well. Problem arises when I run a small test program that runs 10 instances of the