Need some help in SQL...
Sorry for asking before doing a search.
I really don't know what is the keyword to do this search.
my case is i want a report to show now many Documents created in yesterday and it is group by hours
so i have write the following SQL:
select TO_char(xf_txdate,'ddmmyyyy'),TO_char(xf_txdatetime,'HH24'),count(distinct xf_docno)
from xf_vipitemdm
where TO_DATE(xf_txdate,'dd/mm/yyyy') = (select TO_DATE(sysdate-1,'dd/mm/yyyy') from dual)
group by xf_txdate,TO_char(xf_txdatetime,'HH24')
and i get the following in return.
TO_CHAR(XF_TXDATE,'DDMMYYYY') HOUR COUNT(DISTINCTXF_DOCNO)
22112009 13 3
22112009 14 1
22112009 15 1
22112009 16 5
22112009 17 3
22112009 18 6
22112009 19 3
22112009 20 1
but wat i need is a 24 hour report like the following.
22112009 00 0
22112009 01 0
22112009 02 0
22112009 03 0
22112009 04 0
22112009 05 0
22112009 06 0
22112009 07 0
22112009 08 0
22112009 09 0
22112009 10 0
22112009 11 0
22112009 12 0
22112009 13 3
22112009 14 1
22112009 15 1
22112009 16 5
22112009 17 3
22112009 18 6
22112009 19 3
22112009 20 1
22112009 21 0
22112009 22 0
22112009 23 0
What should i do? to force the row with "0" show?
Thank you very much of your time.
Hi,
Welcome to the forums.
You can write querylike this:
SQL> ed
Wrote file afiedt.buf
1 with t as(
2 SELECT 22112009 dt, 13 cnt, 3 hrs from dual union all
3 SELECT 22112009, 14, 1 from dual union all
4 SELECT 22112009, 15, 1 from dual union all
5 SELECT 22112009, 16, 5 from dual union all
6 SELECT 22112009, 17, 3 from dual union all
7 SELECT 22112009, 18, 6 from dual union all
8 SELECT 22112009, 19, 3 from dual union all
9 SELECT 22112009, 20, 1 from dual)
10 select NVL(t.dt,22112009),t1.hrs,NVL(t.cnt,0) from t , (SELECT rownum hrs
from dual connect by level <=24) t1
11 WHERE t.hrs(+) = t1.hrs
12* order by t1.hrs asc
SQL> /
NVL(T.DT,22112009) HRS NVL(T.CNT,0)
22112009 1 20
22112009 1 14
22112009 1 15
22112009 2 0
22112009 3 17
22112009 3 13
22112009 3 19
22112009 4 0
22112009 5 16
22112009 6 18
22112009 7 0
NVL(T.DT,22112009) HRS NVL(T.CNT,0)
22112009 8 0
22112009 9 0
22112009 10 0
22112009 11 0
22112009 12 0
22112009 13 0
22112009 14 0
22112009 15 0
22112009 16 0
22112009 17 0
22112009 18 0
NVL(T.DT,22112009) HRS NVL(T.CNT,0)
22112009 19 0
22112009 20 0
22112009 21 0
22112009 22 0
22112009 23 0
22112009 24 0
28 rows selected.
SQL>I hope you can do necessary changes. if not let us know.
Cheers,
Avinash
Similar Messages
-
Need some help over sql query format
Input :
TABLE 1 ppl
id name
1 ravi
2 andy
3 john
TABLE 2 fa_ppl
id attr_name attr_value
1 watch Guess
1 laptop Sony
2 fashion casual
2 laptop Dell
3 watch fossil
3 fashion formal
OUTPUT Required:(3 rows)
name watch laptop fashion
ravi guess sony NULL
andy NULL dell casual
john fossil NULL formal
SQL Statements that may help in schema objects:
create table ppl(id number,name varchar2(50));
create table fa_ppl(id number,attr_name varchar2(20), attr_value varchar2(20));
insert into ppl values(1,'ravi');
insert into ppl values(2,'andy');
insert into ppl values(3,'john');
insert into fa_ppl values(1,'laptop','sony');
insert into fa_ppl values(1,'watch','guess');
insert into fa_ppl values(2,'laptop','dell');
insert into fa_ppl values(2,'fashion','casual');
insert into fa_ppl values(3,'fashion','formal');
insert into fa_ppl values(3,'watch','fossil');
I tried in the below way:
Select P.name,
case when attr_name='fashion' then attr_value end as fashion ,
case when attr_name='laptop' then attr_value end as laptop,
case when attr_name='watch' then attr_value end as watch,
from ppl P join fa_ppl F on (P.id=F.id and F.attr_name in ('fashion','laptop','watch'))
PROBLEM:
Getting separate rows(6 rows in my case) for each attribute_value.
Thanks a lot.....What you are trying is a pivot. There is a [url https://forums.oracle.com/forums/thread.jspa?threadID=2174552#9360005]thread in the FAQ linking to various methods.
You are actually pretty close, if you just do a group by on your select:
Select P.name,
max(case when attr_name='fashion' then attr_value end) as fashion ,
max(case when attr_name='laptop' then attr_value end) as laptop,
max(case when attr_name='watch' then attr_value end) as watch
from ppl P join fa_ppl F on (P.id=F.id and F.attr_name in ('fashion','laptop','watch'))
group by
p.nameBut if you have several people with same name, you probably want to do this:
Select
p.id, /*you may omit this column if you do not need it*/
max(P.name) as name,
max(case when attr_name='fashion' then attr_value end) as fashion ,
max(case when attr_name='laptop' then attr_value end) as laptop,
max(case when attr_name='watch' then attr_value end) as watch
from ppl P join fa_ppl F on (P.id=F.id and F.attr_name in ('fashion','laptop','watch'))
group by
p.idSimilar can be done in 11G with the PIVOT statement. See the links in the FAQ thread. -
Hi all,
I have the following query:
select x.area_id
, x.ORG_id
, x. product
, case when x.param_info_key in (400, 410, 420, 430, 440)
then x.new_value
end as facility_average_price
, case when x.param_info_key in (660, 670,680,690,700)
then x.new_value
end as royalty_rate_adjustment
from
select d.area_id
, d.ORGANIZATION_NUMBER org_id
, d.PARAM_INFO_KEY
, i.PARAM_INFO_NAME
, case when d.param_info_key in (400)
then 'Gas'
when d.param_info_key in (410, 700)
then 'Ethane'
when d.param_info_key in (420, 680)
then 'Propane'
when d.param_info_key in (430, 690)
then 'Butane'
when d.param_info_key in (440, 670)
then 'Pentane'
end as product
, d.old_value
, d.new_value
, m.CHANGE_DATE_TIME
, max(m.CHANGE_DATE_TIME) over(partition by area_id, organization_number,d.param_info_key) max_change_date
, m.PERIOD_KEY
, m.change_comment
from accruals2.accrual_parm_chng_hist_detail d
, accruals2.accrual_parm_chng_hist_master m
, accruals2.accrual_period p
, accruals2.accrual_param_info i
where d.PARM_CHNG_HIST_MASTER_KEY = m.PARM_CHNG_HIST_MASTER_KEY
and m.PERIOD_KEY = p.PERIOD_KEY
and d.PARAM_INFO_KEY = i.PARAM_INFO_KEY
and d.param_info_key in (400, 410, 700, 680, 430, 690, 440, 670)
and area_id = 1013
and p.ACCOUNTING_DATE = date '2010-04-30'
) x
where x.change_date_time = x.max_change_date
order by x.area_id, x.org_id
, x.product, x.PARAM_INFO_KEYIt returns a data set that looks like this:
AREA_ID ORG_ID PRODUCT FACILITY_AVERAGE_PRICE ROYALTY_RATE_ADJUSTMENT
1013 1 Butane 0.08
1013 1 Butane 0.0015
1013 1 Ethane 0.06
1013 1 Ethane 0.003
1013 1 Gas -0.1
1013 1 Pentane 0.09
1013 1 Pentane 0.006
1013 1 Propane 0.007And...............?
-
We have a set of oracle clients running on T5220 zones that need some help
Greetings all -
We have a set of oracle clients running on T5220 zones that need some help.
If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
Running "uname -a" from the client gives:
(SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
Running "uname -a" from the dataserver gives:
(2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
The RDBMS is 10.2.0.4
Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
tia -
Jim
Edited by: jim1768 on Mar 31, 2010 1:47 PM
Edited by: jim1768 on Mar 31, 2010 2:12 PM
Edited by: jim1768 on Mar 31, 2010 2:13 PMHello,
We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
http://blogs.sun.com/glennf/tags/throughput
http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware -
Need some help with color on a column.
Hello
I need some help on how I can set the color on either column header or the whole column.
I have a report with where the first row display a total sum. The rows under that are htmldb_item.text where the user may input some values.
The sum of these textboxes should match the the total column on top. If it does not match then the header or column should be marked red.
I have one pl/sql prosess where i check this, and i return a message for that column, can I in this prosess set the column color for the report?
report looks like this
total1----total2----total3....
box1-----box2-----box3....
box1-----box2-----box3....
box1-----box2-----box3....
box1-----box2-----box3....
so if the sum of all the box1s do not match total1 then column or header is red.
thanks,
AndersHi Anders,
have a look at Carls example: http://htmldb.oracle.com/pls/otn/f?p=11933:7:3740381051529350
It works with row template, but maybe you can change it for working with column templates.
chrissy -
Need some help with computation
Hi, I need some help with the following:
My page 3 is a form thats shows, among other things, a document ID (:P3_DOC_ID). Next to this item I have created a button that calls a document selection form (page 10).
On selection this forms sets 2 items:
P10_SELECTED (Y or N)
P10_DOC_ID (the selected documents ID value)
When the user selects a document he returns to the calling form.
On page 3 I now try to capture the selected values. For a test item I managed to do this by defining this items source as:
[PL/SQL function body]
begin
if V('P10_SELECTED') = 'Y'
then
return V('P10_DOC_ID'); -- selected value
else
return V('P3_TEST'); -- else the original value
end if;
end;
However I want P3_DOC_ID to capture the selected value. I tried using a computation but that did not work. Any ideas?
thanks ReneYou might want to check if the "Source Used" attribute for P3_DOC_ID is set to always or to "only when ..." it sounds like you need it set to "only when ..."
If that does not work try this
Place the following in a pl/sql anonymous block and turn off your
computation.
if :P10_SELECTED = 'Y'
then
:P3_DOC_ID := :P10_DOC_ID; -- selected value
else
:P3_DOC_ID := :P3_TEST; -- else the original value
end if;
Justin -
Need some help understanding the way materialized views are applied through
Hi, I need some help understanding the way materialized views are applied through adpatch.
In patch 1, we have a mv with build mode immediate. When applying it PTS hang due to pool performance of mv refresh.
So we provide patch 2, with that mv build mode deferred, hoping it'll go through. But patch 2 hang too on the same mv.
How does this work? Is that because mv already exists in the database with build immediate, patch 2 will force it to refresh first before changing build mode? How to get over this?
Thanks,
WeiHi Hussein,
Thank you for the response.
Application release is 11.5.10.
Patch 1 is MSC11510: 8639586 ASCP ENGINE RUP#38 PATCH FOR 11.5.10 BRANCH
Patch 2 is MSC11510: 9001833 APCC MSC_PHUB_CUSTOMERS_MV WORKER IS STUCK ON "DB FILE SEQUENTIAL READ" 12 HOURS
The MV is APPS.MSC_PHUB_CUSTOMERS_MV
This happens at customer environment but not reproducable in our internal environment, as our testing data is much smaller.
Taking closer look in the logs, I saw actually when applying both patch 1 and patch 2, MV doesn't exist in the database. So seems my previous assumption is wrong. Still, strange that patch 2 contains only one file which is the MV.xdf, it took 7 hours and finally got killed.
-- patch 1 log
Materialized View Name is MSC_PHUB_CUSTOMERS_MV
Materialized View does not exist in the target database
Executing create Statement
Create Statement is
CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
TABLESPACE "APPS_TS_SUMMARY"
BUILD IMMEDIATE
USING INDEX
REFRESH FORCE ON DEMAND
WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS select distinct
from
dual
AD Worker error:
The above program failed. See the error messages listed
above, if any, or see the log and output files for the program.
Time when worker failed: Tue Feb 02 2010 10:01:46
Manager says to quit.
-- patch 2 log
Materialized View Name is MSC_PHUB_CUSTOMERS_MV
Materialized View does not exist in the target database
Executing create Statement
Create Statement is
CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
TABLESPACE "APPS_TS_SUMMARY"
BUILD DEFERRED
USING INDEX
REFRESH COMPLETE ON DEMAND
WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
DISABLE QUERY REWRITE
AS select distinct
from dual
Start time for statement above is Tue Feb 02 10:05:06 GMT 2010
Exception occured ORA-00028: your session has been killed
ORA-00028: your session has been killed
ORA-06512: at "APPS.AD_MV", line 116
ORA-06512: at "APPS.AD_MV", line 258
ORA-06512: at line 1
java.sql.SQLException: ORA-00028: your session has been killed
ORA-00028: your session has been killed
ORA-06512: at "APPS.AD_MV", line 116
ORA-06512: at "APPS.AD_MV", line 258
ORA-06512: at line 1
Exception occured :No more data to read from socket
AD Run Java Command is complete.
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
AD Java
Version 11.5.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
AD Worker error:
The above program failed. See the error messages listed
above, if any, or see the log and output files for the program.
Time when worker failed: Tue Feb 02 2010 19:51:27
Start time for statement above is Tue Feb 02 12:44:52 GMT 2010
End time for statement above is Tue Feb 02 19:51:29 GMT 2010
Thanks,
Wei -
Remote App on iPad connects but drops after about 20 mins. Need to turn off wait about 1 minute, then turn on wifi on iMac before it can reconnect. Need some help please.
Already gone through troubleshooting guide a zillion times. Thanks.This worked for me... A little time consuming but once you get rolling it goes GREAT... Thanks....
I got my artwork and saved it to my Desktop
Opened up Microsoft Paint and clicked on "File" and "Open" and found it to get it on the screen to resize it
Clicked "resize" and a box for changing it opened up
Checked the box "Pixels" and "Unchecked maintain aspect ratio"
Set Horizontal for 640 and Vertical for 480
Clicked on "OK" and went back to "File" and did a "Save As" and chose JPEG Picture
It came up "File Already Existed" and clicked "OK" (really did not care about the original artwork I found because wrong size)
Went to iTunes and on the movie right clicked on "Get Info", clicked on "Details", then "Artwork"
Go to the little box on the top left that shows your old artwork and click on it to get the little blue border to appear around it and hit "Delete" to make it gone
Click on "Add Artwork" and find it where you put the one from above on your Desktop and hit "Open" and OK and your new artwork is now there and all good.
Sounds like a lot of steps to follow but after around 5 or so you will fly through it. This worked perfect on my iPhone 6 Plus and I have artwork on my Home Videos now. -
TS1702 I need some help the apps were downloading slowly
The apps downloaded but it didn't cause it's stuck in downloading mode what should I do?
The iOS 6 update didn't work.
Please I need some help.
The apps didn't download.
Talking Angela and Ginger didn't download.
Talking Santa didn't update.Try moving the existing backup file to a safe location so that iTunes has to create an entire new file. The backup file is located here. You can delete that backup once you get a successfull backup.
iTunes places the backup files in the following places:
Mac: ~/Library/Application Support/MobileSync/Backup/
Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
Windows Vista and Windows 7: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
Note: If you do not see the AppData or Application Data folders, you may need to show hidden files (Windows XP, Windows Vista and Windows 7), or iTunes may not be installed in the default location. Show hidden files and then search the hard drive for the Backup directory. -
Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Thoughts???
thought that it was possible to have the same iTunes library on any machine that was authorised, a kind of cloud-iTunes I guess.
That would convenient, but sadly it is not the case. Sorry!
Either way your welcome and best of luck!
B-rock -
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 -
Need some help in debugging this exported script
Below is DDL generated by visio forward engineering tool . The example below consists of 2 test tables with one foreign key.
Forward engineering generated DDL script
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table1]') AND type in (N'U'))
DROP TABLE [dbo].[Table1]
GO
CREATE TABLE [dbo].[Table1] (
[test] CHAR(10) NOT NULL
, [test2] CHAR(10) NULL
GO
ALTER TABLE [dbo].[Table1] ADD CONSTRAINT [Table1_PK] PRIMARY KEY CLUSTERED (
[test]
GO
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Table2]') AND type in (N'U'))
DROP TABLE [dbo].[Table2]
GO
CREATE TABLE [dbo].[Table2] (
[test2] CHAR(10) NOT NULL
GO
ALTER TABLE [dbo].[Table2] ADD CONSTRAINT [Table2_PK] PRIMARY KEY CLUSTERED (
[test2]
GO
GO
ALTER TABLE [dbo].[Table1] WITH CHECK ADD CONSTRAINT [Table2_Table1_FK1] FOREIGN KEY (
[test2]
REFERENCES [dbo].[Table2] (
[test2]
GO
GO
When i converted this DDL script using scratch editor the migration tool gave some errors can anyone help me to resolve below
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table1]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table1;
END IF;
END;
CREATE TABLE Table1
test CHAR(10) NOT NULL,
test2 CHAR(10)
ALTER TABLE Table1
ADD
CONSTRAINT Table1_PK PRIMARY KEY( test );
--SQLDEV:Following Line Not Recognized
DECLARE
v_temp NUMBER(1, 0) := 0;
BEGIN
BEGIN
SELECT 1 INTO v_temp
FROM DUAL
WHERE EXISTS ( SELECT *
FROM objects
WHERE OBJECT_ID_ = NULL/*TODO:OBJECT_ID(N'[OPS].[Table2]')*/
AND TYPE IN ( N'U' )
EXCEPTION
WHEN OTHERS THEN
NULL;
END;
IF v_temp = 1 THEN
TRUNCATE TABLE Table2;
END IF;
END;
CREATE TABLE Table2
test2 CHAR(10) NOT NULL
ALTER TABLE Table2
ADD
CONSTRAINT Table2_PK PRIMARY KEY( test2 );
--SQLDEV:Following Line Not Recognized
ALTER TABLE Table1
ADD
CONSTRAINT Table2_Table1_FK1 FOREIGN KEY( test2 ) REFERENCES Table2 (test2)
--SQLDEV:Following Line Not Recognized
;Pl do not post duplicates - Need some help in debugging this script
-
working on a music video that needs some help. I own Final Cut and Color. Done the edit and it looks great but it needs help polishing and I have no idea what to do. Planning on showing the video this friday night in hollywood and I want it to blow people away. Is there anyone in the area would be willing to help? Please contact me ASAP. Thanks Ray
if you can give me a call that would be best, I can tell you what I need to accomplish. Thanks
818 935 5079 -
Need some help in ARCHITECTURE level for upgrading SAP BW 3.5 to SAP BI 7.0
HI all,
I am a consultant in a small company, i am curently handling upgradation project i need some help in ARCHITECTURING this complete project, please share me your knowledge, like process flows what information i need to get from clients before starting the project, what is pre upgradation checks, post upgradation cheks ...............
Thanks in advance.............Hi,
You need to confirm the downtime during the upgrade activity.
Check for Space and resource allocation.
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d1a0a3a-0b01-0010-eb82-99c4584c6db3
https://wiki.sdn.sap.com/wiki/display/BI/UpgradefromBW3.XtoBI7.0+%28SP13%29
https://wiki.sdn.sap.com/wiki/display/BI/Migrationof3.xobjectstoBI7.0
You need to make sure some OSS notes should be applied, check the below link for the same:
https://wiki.sdn.sap.com/wiki/display/BI/UpgradetoNetWeaverBI7.0%28SAPNotes+%29
http://wiki.sdn.sap.com/wiki/display/BI/BIUpgradation-HelpfulOSSnotesfromEDWperspective
Hope this helps...
Rgs,
Ravikanth. -
Need Some help in Developing an ALV report ..Plz help me
Hi Experts I am basic learner to ABAP Here I need some help in developing a Delivery *** Invoice Report....Please help me by spending a little time..
Tables are VBAK VBAP LIPS LIKP and Document floe table is VBFA
SELECT VBELN VKORG VTWEG SPART
FROM VBAK
INTO TABLE I_VBAK
WHERE VBELN IN S_VBELN.
IF I_VBAK IS NOT INITIAL .
SELECT VBELN POSNR MATKL POSAR WERKS
FROM VBAP
INTO TABLE I_VBAP
FOR ALL ENTRIES IN I_VBAK
WHERE VBELN = I_VBAK-VBELN.
ENDIF.
IF I_VBAP IS NOT INITIAL.
SELECT * FROM LIPS
INTO CORRESPONDING FIELDS OF TABLE I_LIPS
WHERE VGBEL = VBAP-VBELN
AND VGPOS = VBAP-POSNR.
ENDIF.
IF I_LIPS IS NOT INITIAL.
SELECT VBELN VSTEL VKORG KUNNR
FROM LIKP
INTO TABLE I_LIKP.
ENDIF.
Moderator message : Outsourcing is not allowed, don't expect others to correct your source code. Thread locked.
Edited by: Vinod Kumar on Aug 1, 2011 5:43 PMhi ,
Look in this link
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/b3/0ef3e8396111d5b2e80050da4c74dc/frameset.htm</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/content.htm</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62bfe07211d2acb80000e829fbfe/content.htm</a>
Regards
Renjith Kumar
Maybe you are looking for
-
Mac Pro will not boot. Power led just flashes
When I start up, the HD spins but then the power led starts flashing at a constant rate. It also never gets to the gong. I tried everything on the support pages.
-
Report for the List of Vendor for which no Purchase order has been created
Hi ALL Please let me know if there is any Report for the List of Vendor for which no Purchase order has been created regards,
-
Messages remain in Queue Table
Hello, I work as a dba in a company where my colleagues are developing an application that uses AQ. The application is installed on multiple databases but we have a problem in a particular one: the processed messages are not deleted from table by Ora
-
Bonjour, je n'arrive pas à effectuer la mise à jour des différentes applications de la suite 6, j'ai toujours un message d'erreur qui m'envoie à un fichier log d'Extension Manager que bien évidemment je narrive pas à déchiffrer, merci de m'indiquer l
-
Document link to Func loc / equipment / work order
Hi We need to print the documents attached in functional location/ equipment via work order. Kindly guide the process to implement the same. or I need the tables to link the document attached in functional location, equipment with work order / functi