Query problem : help me
DATA : s_werks TYPE vbrp-werks,
BELN like vbpa-VBELN,
BITM like vbpa-POSNR,
v_adrnr like vbpa-adrnr.
tables : vbpa.
READ TABLE IT_FINAL.
beln = it_final-vbeln.
bitm = it_final-posnr.
s_werks = it_final-werks.
s_bukrs = it_final-bukrs.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = beln1
IMPORTING
OUTPUT = beln1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = bitm1
IMPORTING
OUTPUT = bitm1.
select single *
from vbpa
where vbeln = beln
and posnr = bitm
AND PARVW EQ 'SH'.
Now i have changed the query yar, but its also not woking,
it returns sy-subrc = 4, even the condition satisfied with values.
can anyone help me on this.
Regards
Rajaram
hi ,
i have just made small change...more than that i could not find any error...
DATA : s_werks TYPE vbrp-werks,
BELN like vbpa-VBELN,
BITM like vbpa-POSNR,
v_adrnr like vbpa-adrnr.
tables : vbpa.
*What u are trying to read every time i think u should use index/key field
READ TABLE IT_FINAL.
if sy-subrc = 0.
beln = it_final-vbeln.
bitm = it_final-posnr.
s_werks = it_final-werks.
s_bukrs = it_final-bukrs.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = beln "not beln1
IMPORTING
OUTPUT = beln.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = bitm "not bitm1
IMPORTING
OUTPUT = bitm.
select single *
from vbpa
where vbeln = beln
and posnr = bitm
AND PARVW EQ 'SH'.
endif.
regards,
karthik
Similar Messages
-
My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!
Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?
-
I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?
If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
You may have to force iPad/iPod into Recovery Mode
http://support.apple.com/kb/ht4097 -
IPad syncing problem - HELP!
iPad sync problem - HELP! I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)" and yet I seem to have plenty of space on the iPad. This just started today. I even tried deleting some things to make even more room, but it didn't help. Any ideas???
I was thinking of restoring, but I've never done it... should I?
thank you!Hello florafromnv,
Welcome to Apple Support Communities.
The following article addresses how to resolve the issues related to this message:
iOS: "Not enough free space" alert when trying to sync
http://support.apple.com/kb/TS1503
Regards,
Jeff D. -
This topic has been moved to Overclockers & Modding Corner.
KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!Not that I am an expert o/c but here are some thoughts on the matter.
My comments are based on my experiences of the KT3 Ultra2 which is basically the same as the Ultra version.
This mobo does not have the ability to lock the PCI/AGP bus freely from the FSB. However, it does have dividers. At 133 a 1/4 divider kicks in. Above 152FSB the 1/5 divider works, so that at 166 the PCI & AGP buses will be back in sync. If you are o/c your cpu, don't go from 133 to 145, etc since you will be running the PCI/AGP buses further out of whack. Just go to either the mid 150's or to 166 in one jump. The other problem / issue relates to your cpu. From what you say you have one of the old Palominos which are not great o/c's. I would personally o/c your cpu from the BIOS rather than 'Fluffy Logic' which I would tend to stay away from.
With a 166FSB cpu a very stable o/c would be 175-177 beyond 180 gets decidedly tricky.
Hope this helps -
How to improve the performance of the attached query, Please help
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1Hello,
This has really nothing to do with the Oracle Forms product.
Please, send the SQL or/and PL/SQL questions in the corresponding forums.
Francois -
Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!
For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
tt2 -
Hello APEX people,
I posted my problem here:
Designing LOV Query Problem
What I have is a sequence like this:
CREATE SEQUENCE
DR_SEQ_FIRST_SCHEDULE_GROUP
MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
CACHE 6 ORDER CYCLE ;
What I need would be a SQL query returning all possible values oft my sequence like:
1
2
3
4
5
6
7
I want to use it as a source for a LOV...
The reason why I use the cycling sequence is: My app uses it to cycle scheduling priorities every month to groups identified by this number (1-7).
In the Admin Form, I want to restrict the assignment in a user friendly way - a LOV.
Thanks
JohannHere ist the solution (posted by michales in the PL/SQL forum):
SQL> CREATE SEQUENCE
dr_seq_first_schedule_group
MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
CACHE 6 ORDER CYCLE
Sequence created.
SQL> SELECT LEVEL sn
FROM DUAL
CONNECT BY LEVEL <= (SELECT max_value
FROM user_sequences
WHERE sequence_name = 'DR_SEQ_FIRST_SCHEDULE_GROUP')
SN
1
2
3
4
5
6
7
7 rows selected. -
SQL+-MULTI TABLE QUERY PROBLEM
HAI ALL,
ANY SUGGESTION PLEASE?
SUB: SQL+-MULTI TABLE QUERY PROBLEM
SQL+ QUERY GIVEN:
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
DLC_POLYMORPHS_NORMAL_VALUE FROM PATIENTS_MASTER1, HAEMATOLOGY1,
DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM AND PATIENT_NUM = DLC_PATIENT_NUM AND PATIENT_NUM
= &PATIENT_NUM;
RESULT GOT:
&PATIENT_NUM =1
no rows selected
&PATIENT_NUM=2
no rows selected
&PATIENT_NUM=3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 4
HMTLY_RBC_NORMAL 4.6-6.0
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
ACTUAL WILL BE:
&PATIENT_NUM=1
PATIENT_NUM 1
PATIENT_NAME BBBB
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 5
HMTLY_RBC_NORMAL 4.6-6.0
&PATIENT_NUM=2
PATIENT_NUM 2
PATIENT_NAME GGGG
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 42
DLC_POLYMORPHS_NORMAL_VALUE 40-65
&PATIENT_NUM=3
PATIENT_NUM 3
PATIENT_NAME KKKK
HMTLY_TEST_NAME HAEMATOLOGY
HMTLY_RBC_VALUE 4
HMTLY_RBC_NORMAL 4.6-6.0
DLC_TEST_NAME DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE 60
DLC_POLYMORPHS_NORMAL_VALUE 40-65
4 TABLES FOR CLINICAL LAB FOR INPUT DATA AND GET REPORT ONLY FOR TESTS MADE FOR PARTICULAR
PATIENT.
TABLE1:PATIENTS_MASTER1
COLUMNS:PATIENT_NUM, PATIENT_NAME,
VALUES:
PATIENT_NUM
1
2
3
4
PATIENT_NAME
BBBB
GGGG
KKKK
PPPP
TABLE2:TESTS_MASTER1
COLUMNS:TEST_NUM, TEST_NAME
VALUES:
TEST_NUM
1
2
TEST_NAME
HAEMATOLOGY
DIFFERENTIAL LEUCOCYTE COUNT
TABLE3:HAEMATOLOGY1
COLUMNS:
HMTLY_NUM,HMTLY_PATIENT_NUM,HMTLY_TEST_NAME,HMTLY_RBC_VALUE,HMTLY_RBC_NORMAL_VALUE
VALUES:
HMTLY_NUM
1
2
HMTLY_PATIENT_NUM
1
3
MTLY_TEST_NAME
HAEMATOLOGY
HAEMATOLOGY
HMTLY_RBC_VALUE
5
4
HMTLY_RBC_NORMAL_VALUE
4.6-6.0
4.6-6.0
TABLE4:DIFFERENTIAL_LEUCOCYTE_COUNT1
COLUMNS:DLC_NUM,DLC_PATIENT_NUM,DLC_TEST_NAME,DLC_POLYMORPHS_VALUE,DLC_POLYMORPHS_
NORMAL_VALUE,
VALUES:
DLC_NUM
1
2
DLC_PATIENT_NUM
2
3
DLC_TEST_NAME
DIFFERENTIAL LEUCOCYTE COUNT
DIFFERENTIAL LEUCOCYTE COUNT
DLC_POLYMORPHS_VALUE
42
60
DLC_POLYMORPHS_NORMAL_VALUE
40-65
40-65
THANKS
RCS
E-MAIL:[email protected]
--------I think you want an OUTER JOIN
SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
DLC_POLYMORPHS_NORMAL_VALUE
FROM PATIENTS_MASTER1, HAEMATOLOGY1, DIFFERENTIAL_LEUCOCYTE_COUNT1
WHERE PATIENT_NUM = HMTLY_PATIENT_NUM (+)
AND PATIENT_NUM = DLC_PATIENT_NUM (+)
AND PATIENT_NUM = &PATIENT_NUM;Edited by: shoblock on Nov 5, 2008 12:17 PM
outer join marks became stupid emoticons or something. attempting to fix -
i have installed photoshop elements 12.
when I try use the editing features it said that i must login to Adobe to register the product.
but each time i try to it said there is a problem.
help
the problem stated that the internet is not connected, but that is not the case.I had the same issue and I'm running Windows 7. Tried working with technical support for several hours but they were no help. They just had me doing the same things over and over, offering no real answers. I finally got fed up and have decided to return my product for a full refund.
-
I can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys
i can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys?? i don't know what to do..
Why are you unable to install the iPod Updater? Are you getting an error message? Please be specific.
Cheers!
-Bryan -
Camera (focus) problem - help?
Duplicate post, please see: Camera (focus) problem - help?
Message was edited by: Admin ModeratorWarranty is valid only in country of original purchase. You have to return
the iPhone to the US for evaluation. Either you return it personally or send
it to a friend/relative/co-worker in the US to take into Apple. Apple will not
accept international shipments for evaluation nor will Apple ship out of the
country after repair/replacement.
Have you tried the standard trouble shooting steps: restart, restore, restore
as new iPhone? -
Cluster bar chart- sql query please help-
Hi,
I am trying to create cluster bar chart and am stumped with this sql query.Any help is appreciated.
Here is my table
city region issue value
c1 north i1 y
c1 north i2 y
c2 north i1 n
c2 north i2 y
c3 south i1 y
c3 south i2 n
c4 east i1 n
c4 east i2 n
The bar chart will have 3 series, north south and east.
And labels will be i1 and i2. value will be number of times this issue was encountered(y) in this region.
How can I get something like this from the above table-
region issue count(yes)
north i1 1
north i2 2
south i1 1
south i2 0
east i1 0
east i2 0
thanksWITH table1 AS
(SELECT 1435177 qte_id, 2 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no
FROM dual
table2 AS
SELECT 1435177 qte_id, 1 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 2 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 3 seq_no, 0 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 4 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 11 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no, 59300 cmmt_curr_amt
FROM dual
SELECT qte_id, t2_seq_no, cmmt_curr_amt - cmmt_curr_lag diff
FROM
(SELECT t2.qte_id, t2.seq_no t2_seq_no, t1.seq_no t1_seq_no, cmmt_curr_amt, LAG(cmmt_curr_amt,1,0) OVER (PARTITION BY t2.qte_id ORDER BY t2.seq_no) cmmt_curr_lag
FROM table1 t1, table2 t2
WHERE t2.qte_id = t1.qte_id (+)
AND t2.seq_no = t1.seq_no(+)
ORDER BY 1,2
WHERE t1_seq_no IS NOT NULL
ORDER BY 1,2
QTE_ID T2_SEQ_NO DIFF
1435177 2 0
1435177 5 0
1435177 7 0
1435177 8 0
1435177 12 0
1435177 14 0 -
SQL> select prod from prod where prod like '%chromium ore%'
2 /
PROD
chromium ore andconcentrates, ferro-chrome, silico-chrome
chromium ore andconcentrates, ferro-chrome, silica-chrome, metal
chromium ore andconcentrates, ferro-chrome, silica-chrome
chromium ore andconcentrates, ferro-chrome, silico-chrome
chromium ore andconcentrates, ferro-chrome, silico-chrome, metal
chromium ore andconcentrates, ferro-chrome, silico-chrome
6 rows selected.
SQL> select prod from prod where prod like '%what is chromium ore%';
no rows selected
SQL> select count(unique(co_id)) from prod where (prod like upper('%ferro%') or prod like lower('%ferro%') or prod like initcap('%ferro%'));
COUNT(UNIQUE(CO_ID))
3153
SQL> select count(unique(co_id)) from prod where (prod like upper('%What is ferro') or prod like lower('%What is ferro') or prod like initcap('%What is ferro'));
COUNT(UNIQUE(CO_ID))
0
SQL> select count(unique(co_id)) from prod where (prod like upper('%What is ferro%') or prod like lower('%What is ferro%') or prod like initcap('%What is ferro%'));
COUNT(UNIQUE(CO_ID))
0I want to search any of the matching word with existing record(s) but unable to write accurate query
Please help me
Thanks & best regards>
Is ranking possible in displaying records i.e. How can I display that have mostly used keyword 'Paris' or 'where is paris'. e.g.
>
something like this,
SQL> Select * From Test;
ID TEXT
1 <HTML>Paris is a city of France</HTML>
2 <HTML>Canada don´t have Paris City</HTML>
3 <HTML>Hotel France Eiffel in Paris</HTML>
4 <HTML>Paris! Unforgettable Paris, Wonderful Paris</HTML>
5 <HTML>Visitors to Paris not forget Paris memories</HTML>
6 <HTML>China is located on the continent of Asia</HTML>
6 rows selected
SQL> With Tab As(Select Id
2 , Text
3 , Regexp_substr( Text,Replace(Regexp_Replace('Where is Paris', ' is| ', '|'),'||','|')
4 , 1
5 , 1 ) word
6 from Test
7 where Regexp_Like( Text
8 , '([' || Replace('Where is Paris', ' ', '|') || ']\is)')
9 )
10 Select Id
11 , Text
12 , (Length(Text) - Length(REPLACE(Text, Word, NULL))) / Length(Word) Occurrence
13 from Tab
14 Order By Occurrence Desc;
ID TEXT OCCURRENCE
4 <HTML>Paris! Unforgettable Paris, Wonderful Paris</HTML> 3
5 <HTML>Visitors to Paris not forget Paris memories</HTML> 2
2 <HTML>Canada don´t have Paris City</HTML> 1
1 <HTML>Paris is a city of France</HTML> 1
3 <HTML>Hotel France Eiffel in Paris</HTML> 1Can I highlighting the searched keywords?
>
you must treat the result in your application
Regards,
Christian Balz -
after update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help
Connect your phone to iTunes on your computer like the diagram has indicated and restore the phone
Maybe you are looking for
-
How do you update programs in Adobe Creative Cloud?
I understand that the following applications are now available: Lightroom 5.4 Adobe Raw 8.4 Premiere Pro 7.22 However, if I go to any application and to to /Windows/Updates, I get the message: "Your applications are all up-to-date as checked less tha
-
HT2731 how do you set up a new itunes account?
I cant remember my security questions to my old apple id account. So i decided to make a new apple id and i dont know how to make an itunes account again. I wanted to download music but it wont let me because i dont remember my old apple id secutiry
-
How to set an empty JPanel to maximum size?
Hello! I created class extends JFrame. I want this maximum size so I set the minimum size as screen size: setSize(screenWidth,screenHeight); Now I added an empty JPanel, and I want it to be the maximum size. But the problem is - I don't know what is
-
Presentation Director Monitor Drop Down Menus Blank
I'm trying to get Presentation Director functioning properly, but there are a couple of screwy things going on: If I check the properties of the "Capture" profile, it has the resolution of external monitor incorrect. (1920 x 1200 Vs Captured 1024X768
-
Making changes in reusable structure
Hi, I have a query upon which i want to run test cases. i made another query copy of the original one, exclusively for test purpose. i do not want to change the original resuable structure, but still want to play around to see how the results will be