Definition of new search help in report RFBILA00
Hello,
I have created a new search help which I would like to include in the selection screen of the report RFBILA00.
Does anyone know how to include a new search help in this report which can be used in the screen "Dynamic selections"?
Best regards
Peter
Try by extending collective search helps - like SAKO for SKA1-SAKNR - by appending your custom search help.
Then I think when you select GL Account description in chart or accounts it will call your custom search help inside it.
Similar Messages
-
Assign Search help in report program
Dear All,
I facing problem to assign search help in report program.
I crated one elementary search help in which three fields i include
-carrid
-carrier name
-booking
all three fields having import and export parameter in search help.
while executing this search help in se11 it gives proper output.
but while assigning this search help in report program it only fetch one carried.
my report is also having three parameter
-carrid
-carrier name
-booking
i assign search help like
PARAMETER : p_carrid TYPE scarr-carrid
MATCHCODE OBJECT z01_carrid,
with all three field but it fetch only carrid ...Hi Chintan,
For such types of requirements you can use this Function Module:
F4IF_INT_TABLE_VALUE_REQUEST.
Use this functiom modue under AT SELECTION-SCREEN ON HELP-REQUEST FOR P_CARRID.
With this function module, you can fill your remainng parameters : P_carriername and booking also.
Sample Code:
DATA : TMP_RETURN_TAB LIKE TABLE OF DDSHRETVAL, TMP_RETURN LIKE DDSHRETVAL,
TMP_FIELD TYPE DFIES-FIELDNAME.
CASE AKIND.
WHEN '1'.
TMP_FIELD = 'AENNR'.
WHEN '2'.
TMP_FIELD = 'VBELN'.
WHEN '3'.
TMP_FIELD = 'ZZTEHAI'.
ENDCASE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = TMP_FIELD
WINDOW_TITLE = ATITEL
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ATABLES
RETURN_TAB = TMP_RETURN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC = 0.
READ TABLE TMP_RETURN_TAB INDEX 1 INTO TMP_RETUN.
AVALUE = TMP_RETURN-FIELDVAL.
ENDIF.
Jus analyze this code, you can get ur requirement done.
Regards
Sandeep Reddy -
Creating search help through reports
Hello experts,
Is there a method so that I can create search help through reports?
Thanks,
Mohit.hi,
we can create F4 help through report and also we can create Input Help from the ABAP Dictionary .
please check this link for Input Help from the ABAP Dictionary .
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
and for F4 help in reports you can use some function modules:
select-options : so_selgp FOR t458a-selgp /
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_selgp-low .
REFRESH gt_auskt[].
here insert select query to fill your internal table .
IF so_selgp[] IS NOT INITIAL.
DELETE gt_t458a1 WHERE selgp NOT IN so_selgp[].
ENDIF.
SELECT aussl auslt FROM t458b INTO CORRESPONDING FIELDS OF TABLE gt_t458b WHERE spras = 'E'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'SELGP'
PVALKEY = ' '
dynpprog = 'ZPPGL_MRP_LIST '
dynpnr = '1000'
dynprofield = 'SO_SELGP'
value_org = 'S'
IMPORTING
USER_RESET =
TABLES
value_tab = gt_auskt " internal table.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3 -
New Search help - Cloning DEBIX
Hi I need to create a new search help which will be a clone of standard search help DEBIX. I have to add two new feilds to the DEBIX which will be STR_SUPPL3(street 4) and LOCATION (street 5). When I copied this particualr search help and added the two fields in it , it dosent seem to allow me to get a new selection screen for it and it gives the same selection screen as DEBIX without addition of these two fields where I can input some value. I did add those two fields to my list of fields that I want on my selection yet it gives me a selection screen similar to debix. Then I tried using a database view instaed of teh search help exit used in it , this works but this made the search help case-sensitive which I dont want .
Can you please advice or suggest what I need to do so that I get a screen with fields that I want and its case-insensitiuve.
Help will be greatly appreciated.
Thanks
AaravThats right Greg < i have done exactly that way . I created a Z search help with same fields as DEBIX , added my two extra fields , removed the search help exit , created a new Z view table included those two fields there and then added this new search help in DEBI and assigned the parameters , its working fine , but as I said its case-sensitive , I want to make it case-insensitive , so that it goes by the word and not by its cases.
Please suggest as what needs to be done to accomplish this .
Thanks
Aarav -
Creating a new Search Help on a standard SAP table field?
Good day, everyone!
As part of a report I am writing, the customer would like to have Search Help added to the AUFEX field in table AUFK. They would like this functionality so that when they are changing an order via t-code ko02, they can get a list of valid values to put in field AUFEX. I would like to tie it to a zTable I've created; in my zTable, I have just 2 fields: a key value (that will go into AUFEX) and a text description of the key value. This zTable is used in my report.
While I've created a Search Help on this table already for table maintenance, I've never added a custom Search Help to an existing standard SAP table field before. I've done some Googling and other searching to see what I need to know, but I've only been able to find information on Collective Search Helps. AUFEX doesn't yet have a Search Help field, so I don't think Collective Search Helps is my answer.
Is this possible? Can I add a custom Search Help to a standard SAP table field that doesn't have any Search Help linked to it yet? Is there an existing thread or guide somewhere that can tell me how to do this?
Thank you!Hi
Yes u can: u can assign the search help to (A) data element livel or (B) field table livel.
After creating your search help:
A) Run SE11, insert your data element (AUFEX), press edit and insert the search help in "Search Help" area on DEFINATION tab;
B) Run SE11, insert your table (AUFK), press edit, place the cursor on your field (AUFEX) and go to GoTo->Search help->for field
But u should consider it'll mean to change a standard object for both cases: so u need to get the access key from your OSS.
Max -
F4 search help on report selection screen
Hi to all
I am developing a report.
There are four fields on selection screen.
ncode
ccode
mcode
mj_code
On these fields i want search help.
When I press f4 all possible values should display.
Then in second field, when I press F4 , only the values corresponding to that previous selection should display.
same for remaining two fields also.
Please tell me which function module to use at selection screen and how to select corresponding values only.
Please guide me.
Regards
AnubhavHi Anubhav Gupta,
Try like this code you will definetly get your answer
Parameters: carrid type spfli-carrid,
P_connid(3).
DATA: BEGIN OF values,
carrid type spfli-carrid,
connid type spfli-connid,
END OF values.
data: dinpro_values type table of dynpread,
value_tab like table of values,
field_value like line of dinpro_values.
at selection-screen on value-request for P_connid.
field_value-fieldname = 'CARRID'.
APPEND field_value TO dinpro_values.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = dinpro_values.
READ TABLE dinpro_values INDEX 1 INTO field_value.
values-carrid = FIELD_VALUE-FIELDVALUE.
SELECT CARRID
connid
FROM sflight
INTO TABLE VALUE_TAB
where carrid eq FIELD_VALUE-FIELDVALUE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CONNID'
dynpprog = SY-REPID
dynpnr = SY-DYNNR
dynprofield = 'P_CONNID'
value_org = 'S'
TABLES
value_tab = value_tab.
Reward if it is useful only,
Mahi. -
EKKO-ZTERM field search help in report
Hello,
In a report selection screen,i have Payment terms as one of the selection criteria's.But the search help(f4) values not getting for this EKKO-ZTERM field.
How can i get the list for this field.
thanks in aadvanceHi,
You can use 'F4IF_INT_TABLE_VALUE_REQUEST' Function module to define your own search helps.Here is the sample code for the same.
data:
begin of t_values occurs 2,
value like kna1-begru,
end of t_values,
t_return like ddshretval occurs 0 with header line.
t_values = 'PAR*'.
append t_values.
t_values = 'UGG'.
append t_values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'BEGRU'
value_org = 'S'
tables
value_tab = t_values
return_tab = t_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc = 0.
read table t_return index 1.
o_begru-low = t_return-fieldval.
if o_begru-low = 'PAR*'.
o_begru-option = 'CP'.
else.
o_begru-option = 'EQ'.
endif.
o_begru-sign = 'I'.
append o_begru to s_begru.
else.
o_begru = i_begru.
endif. -
Bsid-gjahr field search help in report
Hi friends
In my report selection screen,i have Fiscal year as one of the selection criteria's.But the search help(f4) values not getting for this bsid-gjahr field.
i don't want the FM, can anybody refer a table name so that i can define select-options of that type and can get f4 help.
thanks in advance
poornaIf the search help does not come when defining
parameter ... like bsid-gjahr
try looking at the screen where you get the search help,
find out which search help is being called and check your parameter additions (there is one for search help)...
Enjoy -
How to add new Search Help in VD02
Hi All,
I have created Database view and Elementary Search Help and i want to add the search help to Cutomer in VD02, So can any one please tell me how i can do it .....
Regards,
Sudhakar Reddy.AHi All,
If i select any Customer from this search help the selected customer should get display on the field...
EX:
IF i select Customer : 100 in VD01
It Should get display in the field Customer in VD01.
Can any one can help in this....... As i am using HOT KEY as 'Z' in Elementary Search Help.
Regards,
Sudhakar Reddy.A -
New search help on CRMD_ORDER locator
Hi Experts,
I have created a new search id in the search type SAL_SALES. I have copied the function group CRM_1O_LOCATOR in order to modify the logic to satisfy the customer requirements. Before doing any mkodification I have decided to test the search pressing start button and the search threw a dump. I have debugged and I have found the error....the search try to use a method of the class cl_crm_1o_locator through the instance gv_application. The problem is that gv_application is null and the exception OBJECTS_OBJREF_NOT_ASSIGNED, because of accessing via 'NULL' object reference is not possible. The standard create this reference object via the constructor method of the class CL_CRM_1O_NAVIG, where call the FM CRM_1O_LOCATOR and pass this reference to variable gv_application of the function group CRM_1O_LOCATOR, and then call ascreen of my ZFunction group, thus that my own gv_appliocation is never instantiated. Anyone have dealt with this????
Best Regards,
RosaHi,
First of all, I wish you a happy new year!!!!
I am going to explain you why I want create a new search Id. Really I want a search like 'General' search Id (search type 'Sales'). But I want that Status listbox shows user status instead of system status or whatever it shows. I have read that you can maintan table view CRMV_STATUS_PROC in order to add the status you want to display. But what must I do with the rest of the status I don´t want display...does it suffice marking the checkbox of display field for every status in the table?
Besides, I want to add a new column in the layout of the result table of the search. I want to add the description of the business partner from a specific partner function for every sales order. How can I achieve this?
Thank you very much for your interest.
Best Regards,
Rosa -
Search help with new selection within if more than 500 entries
Dear all,
I created a new search help and this works fine ... If I compare my search help with a default search help from SAP, I have 1 small feature that not seems to work ... With the default one, it is possible to make a new selection within the search help by clicking on the arrow down :
If I look at my search help, I don't have the possibility to make a new selection :
Does anyone how this can be done ?
Thanks in advance !
Greetz,
Kurt.HI,
Here are the general steps to get you started.
1. Identify the search help being used (on the ship-to-party field, F1 then Tech Info). I believe you want the collective search help SD_DEBI.
2. Create your own search help with the fields you want to use with SE11, like 'ZDEBI' as an example.
3. Append 'ZDEBI' to SD_DEBI. (Goto->Append Search Help).
4. Clean things up by "Hiding" the old search help. In the 'Included Search Help' tab of the collective search help SD_DEBI, there is a check box that you can tick to hide included search helps. -
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 -
Do we have search help facility in variable selection (F4 help).
Hi All,
At my client place users are comfort with R/3 search help (F4), and looking for the same feature in Bex Reporting. Is it possible to have the same kind of feature in Bex reports.
Example.
In R/3 T-Code MB5B, user searches with material description or with some other options like sales material by general product hierarchy. Can we get the same kind of feature.
And my client says that if we drop down for material it is taking huge amount of time to display the material numbers and description, we want to know how to reduce the time for displaying the material or customer master data text in variable selections.
In Bex we are aware of material text is going to display as small or medium or long descriptions, when we drop down.
Your suggestions are most valuable to us.
Thanks in Advance.
AkashGoto se11
in data type : put KIDNO change mode ... avoid the messges ....
there in theDefinition : put your new Search Help activate it ....
so that it will be attached..
otherwise there so many ways of attaching the serach help for F4 ..
Implementing search Helps
Search helps can be implemented in a variety of ways:
1 .Add to Table field Added via SE11: Place cursor on desired field within database and select menu path Goto->Search help->for field
Effect: If field used to create screen field, search help will be called when user executes F4/drop down input help. All fields on screen will be populated if appropriate fields exist in search help and screen.
2.Add to Table Added via SE11: Place cursor on desired field within database and select menu path Goto->Search help->for table
3.Add to Data element Added via SE11: Select desired data element (double click), enter search help name and parameters in appropriate fields on screen. Will be applied to all fields associated with that data element
4.Add to Screen field Added via screen painter: One of field attributes is search help. Will only populate the one screen field.
5.Add to Sel. screen parameter (MATCHCODE) Added using 'matchcode' addition for parameters declaration: Search help name must be no more than 5 characters long.
e.g. PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh.
Rewatrd points if it is usefull ...
Girish -
Search Help Exit and Cursor Position
I have created a new search help, which returns the selected value into the applicable screen field correctly. The problem is that there are multiple fields on the screen, and the first field keeps getting the cursor focus instead of the search help field. Is there any way to control the position of the cursor upon returning from the search help?
Implement this sample program. While the selection screen is displayed, keep hitting enter. Notice the cursor changing from field to field. Maybe you could use this type of coding.
report zrich_0001.
data: cursorfield(30) type c.
parameters: p_matnr type mara-matnr,
p_werks type marc-werks,
p_lgort type mard-lgort.
at selection-screen.
get cursor field cursorfield.
at selection-screen output.
case cursorfield.
when 'P_MATNR'.
set cursor field 'P_WERKS'.
when 'P_WERKS'.
set cursor field 'P_LGORT'.
when 'P_LGORT'.
set cursor field 'P_MATNR'.
endcase.
Regards,
Rich Heilman -
Hi,
Can anyone tell me whts the use of LPOS and SPOS in search help.
I have read the help but not getting it exactly.
Thanking u all.
Regards,
kavita<b>LPOS</b> -> Position of field in search help results report/table.
<b>Explaination .</b>
when you data is displayed in the F4 help that time it will be based on the LPos position .
<b>SPOS</b>-> Position of field in search help restriction screen.
<b>Explaination .</b>
When you press the F4 button the selection screen will be displayed with fields of the Search attached to that Field ....there the order of the field in the selection screen was determined by the SPOS .
<b>Note:</b> If you read 10 time again and agani slowly you will better understand the Definition of the line of LPOS & SPOS
<b>Example :</b>
search help ztest
1. matnr spos = 2 , lpos = 1
2. maktx spos = 1 , lpos = 3
3. meins spos = 3 , lpos = 2
Then
use the above search help for table field or for report parameter .
then when you press F4 ... the selection screen will be displayed with
SPOS
<b>
1.MAKTX
2.MATNR
3.MEINS</b>
When press enter you will see the data displayed for above fields as
LPOS
<b>1.MATNR
2.MEINS
3.MATKX</b>
reward points if it is usefull....
Girish
Maybe you are looking for
-
Net price to different G/L Account.
23.01.2009 Hi friends, I have Sales Orders with different material groups. I need the revenues from these material groups to go into different G/L accounts when the invoice is transferred to accounting. For this in the same pricing procedure I used d
-
Generating a signal 11 (SEGV)
I have two questions, they are actually the same question worded two ways. 1) Without using JNI, how can I make a 100% Java application produce a Signal 11 JVM error. 2) Does a Signal 11 in a 100% Java application imply an issue with the JVM, a JNI e
-
Raising a credit note when customer makes a prompt payment
Hi everyone Does anyone know how you can raise a credit note automatically when a customer makes a payment with discount? The discount is for prompt payment, i.e. 3% discount if you pay within 30days of the invoice. The invoice will be issued for the
-
Mass change: iViews Properties (gui type, alias,..)
Do you know how I can get the read/write version of the PCD Inspector? (system: EP 6.0 SP2 P4) Thank you. Ciao. Davide
-
Buying Premiere Pro (not through cloud)
Is there anyway to buy a single copy of Premiere Pro (I don't need photoshop or After Effects) without doing a monthly subscription to Adobe Cloud? If it's this hard to try and buy the software and there's no one from Adobe to help answer a question