How do I create a Search Help which selects some rows from a table?
Well, I'm trying to be specific.
I have a parameter with a search help that shows columns BUKRS and BUTXT for ALL rows form the table T001. What I need is restrict the search help to show only three Values: BUKRS = 1000 BUKRS = 2000 BUKRS = 3000. This is like a search help with a SELECT sentence. How do I do it?
Hi.,
you can go through thomas sir's suggestion. But my suggestion is If you are working in a custom Report , dont change it at Table level or Domail Level., Instead, use Function Module for Custom F4 help.,
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs.
CALL FM F4IF_INT_TABLE_VALUE_REQUEST.
check this help for your reference: http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm.
If you are using Standard Report Check for Exits.
hope this helps u.,
Thanks & Regards,
Kiran
Similar Messages
-
How can i select some row from multiple row in the same group of data
I want to select some row from multiple row in the same group of data.
ColumnA
Column B
1 OK
1 NG
2 NG
2 NG
3 OK
3 OK
I want the row of group of
ColumnA if ColumnB contain even 'NG'
row , select only one row which Column B = 'NG'
the result i want =
ColumnA Column B
1 NG
2 NG
3 OK
Thank youThat's some awful explanation, but I think this is what you were driving at:
DECLARE @forumTable TABLE (a INT, b CHAR(2))
INSERT INTO @forumTable (a, b)
VALUES
(1, 'OK'),(1, 'NG'),
(2, 'NG'),(2, 'NG'),
(3, 'OK'),(3, 'OK')
SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
FROM @forumTable f
LEFT OUTER JOIN @forumTable f2
ON f.a = f2.a
AND f.b <> f2.b
GROUP BY f.a -
What is the best way to create a search help in wen dynpro java?
Hi experts,
In web dynpro java I want to create a search help which could guide user to search a job (also a position and a organizational unit) just like in transaction ppome. So which technique could be the best way to reach that quickly and simply?
Thanks!HI,
Refer the following links.
EVS Valuehelp
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421
Web Dynpro Valuehelp
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564
sample application
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8 -
Creating customized search helps in Dialog Programming
Hello people I have a little predicament here. I need to create search help restricting the results.
Like lets say I want to create a search help that select material numbers and name for a specific material group. Then use that as a seach help.
Right now Im playing around with function module <b>HELP_VALUES_GET_WITH_TABLE</b> but it seems to open right when you access call screen.
Also Since this is dialog programming I am using screen painter. And I need to assign the search help in an I/O Field.
Well that's all for now take care guys. Take care to you all.Hi Chad,
Is your problem been resolved .
If not , just try this code
Copy paste as it is and it will work .
TYPES: BEGIN OF values,
carrid TYPE spfli-carrid,
connid TYPE spfli-connid,
END OF values.
DATA: carrier(3) TYPE c,
connection(4) TYPE c.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab TYPE TABLE OF values.
CALL SCREEN 100.
MODULE init OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'CARRIER'.
APPEND field_value TO dynpro_values.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE value_carrier INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CARRIER'.
ENDMODULE.
MODULE value_connection INPUT.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF TABLE values_tab
WHERE carrid = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CONNID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CONNECTION'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE.
<b>For Screen 100 logic:
Copy:</b>
PROCESS BEFORE OUTPUT.
MODULE INIT.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
PROCESS ON VALUE-REQUEST.
FIELD CARRIER MODULE VALUE_CARRIER.
FIELD CONNECTION MODULE VALUE_CONNECTION.
<b>Do design the layout also.</b>
I hope this will help you.
If this satisfy you then please close the thread by rewarding appropriate points to the helpful answers.
Cheers
Sunny
Message was edited by: Sunny -
How to efficiently select random rows from a large table ?
Hello,
The following code will select 5 rows out of a random set of rows from the emp (employee) table
select *
from (
select ename, job
from emp
order by dbms_random.value()
where rownum <= 5my concern is that the inner select will cause a table scan in order to assign a random value to each row. This code when used against a large table can be a performance problem.
Is there an efficient way of selecting random rows from a table without having to do a table scan ? (I am new to Oracle, therefore it is possible that I am missing a very simple way to perform this task.)
thank you for your help,
John.
Edited by: 440bx on Jul 10, 2010 6:18 PMHave a look at the SAMPLE clause of the select statement. The number in parenthesis is a percentage of the table.
SQL> create table t as select * from dba_objects;
Table created.
SQL> explain plan for select * from t sample (1);
Explained.
SQL> @xp
PLAN_TABLE_OUTPUT
Plan hash value: 2767392432
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 725 | 70325 | 289 (1)| 00:00:04 |
| 1 | TABLE ACCESS SAMPLE| T | 725 | 70325 | 289 (1)| 00:00:04 |
8 rows selected. -
How to validate a filed in a search help which is created in se11
hi
i got a requirement that validate a search help. i created a ztable with 3 fileds for that one i have to create a search help so help me to how to validate fields in a search help.
regards
krishnaHello Krishna,
What do you mean by validating a field? Usually you use a search help to display possible values for a certain input field based on values in another table. You can restrict the values that are displayed by certain conditions if you need to.
If you want to allow only values based on complex conditions or authorizations of the user, you can always create a search help exit and in there you have complete control over what the user is allowed to see in the search help and what he is allowed to select.
Function Module F4IF_SHLP_EXIT_EXAMPLE gives you an idea what you can do in a search help exit.
Regards,
Michael -
How to create generic search help in wd abap
Hi experts,
How to create generic search help in wd abap.
Regards...
Arun.Hi Arun,
Following links have step by step procedures for creating search helps and other related topics.
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/3d/e53642e2a3ab04e10000000a1550b0/content.htm">ABAP Dictionary Search Help for WD</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9b/c51c42735b5133e10000000a155106/content.htm">Input Help in WD ABAP</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm">Search Helps</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm">Creating Elementary Search Help</a>
Regards,
Neha
<i><b>PS:Reward if helpful</b></i> -
How to delete a field from search help which is delivered
hi
I got a requirement to delete a field from search help which is delivered long back
Regards
krishnaHi
Whether it exists in DEV system or not?
Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
Regards
Anji -
How to create an search help for standard Screen
Hi,
Can any one help me out ... How to create a search help for standard screen field.......
thanks & regards,
Naveen...Hi Naveen.
I would like to suggest a couple of references,
[SDN - Standard Reference for create a search help for own fields in selection screen |How to create a search help for my own fields in selection screen;
[SDN - Standard Reference for Attaching search help to standard screen|Attach search help to standard screen;
[SDN - Reference for want to add a field in standard search help screen|want to add a field in standard search help screen;
[SDN - Reference for Attaching a search help to a standard screen - Case 2 |attaching a search help to a standard screen;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
A problem creating a Search Help against domain table dd07v...
At present I use FM DDIF_DOMA_GET to retrieve the Domain Values for a given field/domain. I then populate a drop-down list box with these values and use in a conventional dynpro.
However, what I would like to do is create a search help against the field characteristics which access table dd07v and retrieve the values for the domain. I'm stuck on the search help part because I don't know how to define the domain name within the search help so that the correct dd07v values are retrieved..
Do you think this is possible, or should I give up now.?.
JasProblem 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 -
Creating a search help with SAP UI5 and js?
Hello com,
I am trying to create a search help, collecting data from a table.
Is there something similar to the typical ABAP search help in SAP UI 5?
ABAP:
PARAMETERS: lv_alias TYPE dsh_alias MATCHCODE OBJECT dashboard_alias_f4,
I found this in the Demo Kit:
// create a simple SearchField
var oSearch = new sap.ui.commons.SearchField("providerSearch", {
searchProvider: new sap.ui.core.search.OpenSearchProvider({
suggestType: "json",
suggestUrl: "/demokit/suggest?q={searchTerms}",
icon: jQuery.sap.getModulePath("sap.ui.core", '/') + "mimes/logo/txtonly_16x16.ico"
search: function(oEvent){
alert("Search triggered: " + oEvent.getParameter("query"));
//attach it to some element in the page
oSearch.placeAt("sample4");
But how can i connect it with the specifiy data table?
Thanks,
DomenikHi,
you need to create OData service which will retrieve (search) the required information and then need to create UI5 application to consume it.
you can refer this blog How to Implement Value Help (F4) with SAP UI5 which covers both parts.
if you are having SP08 version of SAP Gateway then creating search help is very simple. refer my blog Creating OData service based on Search Help
Regards,
Chandra -
Sorry - Could you please help me how can I achieve this Search help ?
I am creating search help for the profit_center field,
For the search help :
The scenario is I have three Z-tables.
Example: The Data in tables are as shown below ( where F1, F2 are the fields ).
Ztable1
F1
A
B
C
D
Ztable2
F1 F2
A 1
A 2
B 112
B 113
C 34
D 43
D 55
D 87
Ztable3
PRCTR F1 F2
123 A 1
124 A 2
123 B 112
124 B 113
125 C 34
123 D 43
124 D 43
125 D 43
I need to create search help (Search Help is similar to Collective Search Help) for the field PRCTR of table Ztable3 like as below.
By pressing F4 on the field, a pop up should appear which should contains text labels& text fields on TAB-Screen ( A, B, C , D as shown below as text lables )against which text fields should appear.
TAB-Screen :
A ____________
B ____________
C ____________
D ____________
If F4 is pressed on I/O field (text fields) against A in the above TAB-Screen, Corresponding values ztable2-F2 of A from ztable2 ( = 1, 2 ) should appear as F4 help.
so that user can select ...
Is it possible to acieve this ? It would be a great help ....How can I achieve this ?
Finally based on above user selections say
A ____________
B ____________
C ____________
D ____________
corresponding prctr values should be collected.<b>You can acheive this .... first by creating the search help exit ... by creating the maintaince view then using it in the Creation of the search help </b> ...
see the link for attaching the view to the serach help .
<a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
reward points if it is usefull...
Girish -
How can I create a search filter on my muse project?
How can I create a search filter on my muse project like the 'sort by' function of this website? http://trufcreative.com/work
By that I mean be able to narrow down the content displayed on a single page (preferably with an animation) without having the switch pages or reload the browser.
I'm assuming this isn't something Muse can do natively, but if anyone knows the code, and how to make it work with Muse, that would be awesome.
Cheers!yes i have same problem. i couldnt create one. please help me
-
How to add user defined search help to data element -EXTWG ?
Dear All,
EXTWG is external material groupp field in Material Master. I am using this field to provide some external material group .But there is no search help attached to it. I want to create a search help and attach to it .I can create a search help but how to attach to a standard date element .How can i do??hi
good
go through this links ,i hope these ll help you solve your problem
http://help.sap.com/saphelp_nw2004s/helpdata/en/90/8d7307b1af11d194f600a0c929b3c3/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ee86446011d189700000e8322d00/content.htm
thanks
mrutyun^ -
How to do program for search help
Hi,
Please tell me how to do the program for search help in Dialog programming.
Thanks,
Sriram.Step 1:
Create a function module (ZZ_TEST_FUNCTION).
Step 2:
--> Create a search help(ZSEARCH)
--> Enter the above function Module(ZZ_TEST_FUNCTION) in search help exit field.
STEP 3:
Attach the search help with any field of table.
Function module Sample Code:
FUNCTION ZZ_TEST_FUNCTION.
""Local interface:
*" IMPORTING
*" VALUE(MCONAME) DEFAULT SPACE *" VALUE(SELSTR) DEFAULT SPACE
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T *" VALUE(CALLCONTROL) LIKE DDSHF4CTRL
*" STRUCTURE DDSHF4CTRL
CALL SCREEN 100.
Return from application back to SAP
CASE save_ok_0100.
WHEN 'RSTR'.
callcontrol-step = 'SELONE2'.
WHEN 'CANCEL' OR 'BACK' OR 'EXIT'.
callcontrol-step = 'EXIT'.
WHEN 'SEL'.
READ TABLE itab.
record_tab = itab-filed1.
APPEND record_tab.
callcontrol-step = 'RETURN'.
EXIT.
ENDIF.
ENDCASE.
ENDFUNCTION.
Maybe you are looking for
-
drop down menus don't work...they disappear in a blink of an eye. This only happens in FF not IE? That includes the menu below! I can't have more than 10 tabs open because the arrow won't take me past 10 it just returns to the first 10???
-
Manual Bank Subaccount Clearing 1:N – Profit Center Assignment within NEW GL
Hello guys, What is the common practice to do Manual Bank Subaccount Clearing for Vendors outgoing payments? My main concern is Profit Center Assignment within New GL. The business process is: Payment Program (F110) creates multiple JEs to Bank Subac
-
How to get the information of the log related to t.code generated by basis.
In the log generated by the basis personnel we found the details of user and corresponding t.code used details. How to get the information reg. which document he went into using this t.code? For example me29 t.code used by 'x' user. The log is show
-
Smartform address in a single line
I am having a window where I have address as 3 lines..but I want to keep in the footer in a single line with comma. I am using the address node's for it. do you have any idea how to do it.
-
Bugs in scaling and alignment in Illustrator CS5
Hi Am experiencing weird problems with Illustrator cs5 on osx 10.6.8: Scaling - for some reason the image get distorted after scaling. see example: Each time I scale it'll do it differently. this time it made the right side thicker. Any idea why is t