Multiple iDvd creation issues
Howdy,
I've got multiple questions I've been meaning to address for awhile but I'm always forgetting so while I'm sitting here at work thinking about them I'm just gonna throw them all into one big post (I never tend to think about this stuff when I'm actually at home in front of the computer). Any help will be appreciated.
First let me note that I'm using one of the flat panel 17" imacs. It's like 3 years old now but it's served me very well so far. I've added more memory & an external hard drive & am using iLife 6.
DVD-R:
The only dvds (besides movies & the like) that the superdrive recognizes are DVD-R's. Has anyone ever come up w/ a way to use DVD+Rs or better on these old machines?
Continuous Play Music Video DVDs:
My goal is to make music video mix dvds. This means I want to burn music vids on a dvd that can be accessed separately or you can just pop the dvd in & click play & it will run through the whole dvd. Problem is I haven't found any kind of continuous play option in idvd. So the obvious choice is to convert all of the videos into one long movie in iMovie (broken into chapters) but of course I've been unsuccesful at this. Even though I've converted the videos into the proper format (arrived at through research on this forum) the videos don't load into imovie correctly...at least 3 out the 4 I tried didn't (tried multiple times on each). It would condense the video into like a quarter of the screen & leave everything else black space. So anyone got any suggestions on how I can get this done?
SD on Widescreen formatted disc:
I have burned a music video DVD a little while back & ended up w/ something interesting. I formatted the disc for widescreen assuming the standard def(4:3) videos would all just be letterboxed on the side but the result was that some were & some weren't (in fact most weren't). This means they are stretched out to widescreen. This isn't a huge deal since I can use the tv itself to letterbox them but still I'd like to know if there is a way to deal with this in the creation of the disk. Any suggestions?
Forgive me if I've missed anything obvious. I have tried at various times to research each of these topics but haven't found any answers. Thanks.
Hello Farrell,
for this kind of project you'll need to get your workflow straightened out - and I think at the moment you're "mixing apples & pears".
The only dvds (besides movies & the like) that the superdrive recognizes are DVD-R's. Has anyone ever come up w/ a way to use DVD+Rs or better on these old machines?
DVD-R media is actually your best bet compatibility-wise. The only other option would be Double-Layer DVD+R, but that would mean getting an external burner in your case. If your content doesn't exceed, say 90-100 min. I would stick with the DVD-R.
Even though I've converted the videos into the proper format (arrived at through research on this forum) the videos don't load into imovie correctly...
You might have converted to the correct format, but obviously the sizes don't match. DV video is 720x480 (NTSC) or 720x576 (PAL), so if you want to fill the screen, you'll have to convert to the proper size. On the other hand, if you have some web clips at 320x240, up-rezzing them might degrade the quality to a point that the whole thing becomes unwatchable.
I formatted the disc for widescreen assuming the standard def(4:3) videos would all just be letterboxed on the side but the result was that some were & some weren't (in fact most weren't)
If you want to burn a widescreen DVD, you'll need to start off with a widescreen project in iMovie. As you have quite mixed footage, the best thing would be to turn on "auto letter & pillarboxing" in preferences. This will preserve the correct aspect ratio of your clips.
but still I'd like to know if there is a way to deal with this in the creation of the disk
Widescreen DVDs created in iDVD 6 are set to "auto letterboxing & pan-scan", meaning it depends on the setting of your DVD player how the disc will be displayed - but as you found out, you can easily toggle the view option on your remote.
If you want to force letterboxing, you can re-edit your final DVD with a little app called myDVDedit (http://www.mydvdedit.com/).
hope this helps
mish
Similar Messages
-
Multiple milestone creation issue for WBS element 'BAPI_PROJECT_MAINTAIN'?
Hi all,
I am using 'BAPI_PROJECT_MAINTAIN' to create Project definition,WBS element & milestone for WBS at once.
The program is working fine if one wbs element have one milestone.
But If any of the WBS elements have more than one milestone, the milestones are not creating properly.
The bottom level WBS milestones are creating for some higher level WBS. some milestones are not at all
creating. I am not getting any error message.
Code for mile stone section is :
**fill milsestone data for WBS in BAPI structures
lv_mlstno = lv_mlstno + 1.
it_wbsmilestone-milestone_number = lv_mlstno.
it_wbsmilestone-wbs_element = it_wbsdata-ID.
it_wbsmilestone-milestone_usage = it_wbsdata-mlstn.
concatenate it_wbsdata-edatu+6(4) it_wbsdata-edatu+3(2) it_wbsdata-edatu(2) into it_wbsmilestone-FIXED_MILESTONE_DATE_BASIC.
it_wbsmilestone-SALES_DOC_DATE_INIDICATOR = it_wbsdata-faktp.
it_wbsmilestone-INVOICE_PERCENTAGE = it_wbsdata-fproz.
append it_wbsmilestone.
clear it_wbsmilestone.
**fill milsestone data for WBS in BAPI update structures
it_wbsmilestoneupd-milestone_number = cs_x.
it_wbsmilestoneupd-wbs_element = cs_x.
it_wbsmilestoneupd-wbs_element = cs_x.
it_wbsmilestoneupd-milestone_usage = cs_x.
it_wbsmilestoneUPD-FIXED_MILESTONE_DATE_BASIC = cs_x.
it_wbsmilestoneupd-SALES_DOC_DATE_INIDICATOR = cs_x.
it_wbsmilestoneupd-INVOICE_PERCENTAGE = cs_x.
append it_wbsmilestoneUPD.
clear it_wbsmilestoneUPD.
**Fill bapi table method project1 for the creation of WBS milestone
**milestone will be created only after the creation of WBS elements first
**lv_refnum is the link to wbs element, which is already appened to it_methodproject
it_methodproject-refnumber = lv_refnum.
it_methodproject-objecttype = 'WBS Milestone'.
it_methodproject-method = 'Create'.
append it_methodproject.
clear it_methodproject.
endif.
How to resolve the issue?
Please help.
Thanks,
vamshiHi Ravi,
Thanks for your continuous reply.
The problem is solved.
I have passed the, reference number of WBS element creation to milestone creation in the 'Method' table.
Thatswhy it is picking wrongly.
I have corrected this by passing different reference numbers to WBS and milestone creations
based on their tables.
Thanks,
Vamshi -
10.6.7 - general pdf creation issues?
I wondered whether anyone else had run into this issue after updating to 10.6.7 when using pdfs created by Preview - perhaps related to the pdf/font issue.
If it is generally happening, then the 10.6.7 pdf-font issue has an even larger
impact than previously described:
1. Open a pdf document in Preview
2. Select a region and save to clipboard
3. Save as a new pdf file
4. Then try importing it as a "Picture" into any of the new Office 2011 apps: Word, PPT, etc.
This crashes my office 2011 apps (latest version, 14.02) But NOT any earlier version of Office (2008. etc.), which may not do as much pdf checking.
Before the 10.6.7 upgrade (ie, 10.6.6), this never happened with Office 2011.
Acrobat complains when opening the Preview-created pdfs about 'missing fonts', so I suspect some sort of pdf creation issue.
Any fixes (besides the previously suggested one of downgrading to 10.6.6)
If it's a real bug (not just local to my system), then it's a more far-reaching one than previously described.rcberwick wrote:
So, 3 different Apple tech support people say they know this problem affects
"multiple applications, including any that deal with pdf files" but that "no fix is
currently in the works"
That is wrong because it only involves OpenType Postscript fonts.
The only solution offered so far is to "downgrade by doing Archive & Install" and
then re-applying each Combo Upgrade, starting with 10.6.3 up to 10.6.6.
You wouldn't have to do that either. That is the point of a Combo update. You only need to apply the one you want. It includes all of the previous updates. -
Session creation issues with DS3.2
We are using BODS 3.2 for development. We are aware that a newer version of DS has been released quite a long time ago but due to some reasons we are still using DS 3.2.
We are facing some session creation issues. We are using Teradata and Oracle as source and extracting\updating data using some SQLs in script tasks. SQLs are targeting huge amount of data. We executed a job and checked on the servers, sessions were created on the databases. Job kept on executing for long time and was not getting completed, there was no error also. After waiting so long, I checked on Database server and found that session was lost for these SQLs on Database servers. We are able to create a successful connection using Data Stores.
Please suggest something, Why the sessions are not getting lost on the database servers?.
Thanks & Regards,
Gaurav Bansalginger_11 wrote:
Hi...I'm new to the forum.
2 of the same phones in my household having similar issues since OS upgrade.
-Text automatically going to MMS when sending pics and the pics won't send. 1 phone freezes, the other acts like its sent but not sent-this phone won't load emailed pics either.
-Keep getting notifications that passwords need updated for email accounts.
-Facebook app won't load on 1 phone-tried deleting, pulling battery and re-installing. Still getting "session re log-in required" but there is nowhere to load the log-in info under accounts. Getting the same message on the other phone but the app is still listed under accounts so am able to log in.
-Both phones are randomly re-starting. Multiple times over past 3 days.
Any known issues like these?
There must be some common factor why both phones are having the same problem.
With the 10.2.1.537, the only problem I had was a few contacts merged and surnames were repeated.
I haven't noticed any difference with the latest upgrade.
Maybe a security wipe and restore contacts and email then one app at a time. -
Hi All,
I want to create Multiple Invoice Creation through BAPI or FM. For this invoice PO is the Reference.
As per requirement i have multiple PO in container, at one shot i want to create invoice realted PO as the reference.
Thanks
Amithi,
I am trying in another way - creating one proforma invoice for multiple deliveries. and with that proforma invoice trying to create excise invoice.
But i am facing problem in creating proforma with multiple deliveries because of DIFFERENT NUMBER RANGE IN HEADER (delivery)AT FOREIGN TRADE --- UNDER ORGANIZATION --- NUMBER OF FOREIGN TRADE DATA - ( which is internally assigned by the system)
If i can get where this number is assign my problem is solved
K.S.Rao -
Multiple App syncing issues...
Hello, all.
I am having multiple application synching issues. I have a half dozen devices and have never had any of these issues before about a week ago. May have had an iTunes update? Here are the issues.
1. Some Apps re-installing even though no update was available.
2. Some apps not completely installing and showing with an empty progress bar through the icon.
3. Apps that are not supposed to sync to a particular device are.
4. Apps re-installing outside of their designated folders.
Anyone having any of these issues? It is pretty frustrating since I never know what I am going to end up with after a sync.Sure.
Only select the apps that you want to sync.
It will only sync what you tell it to sync to each device. -
GRC 10: Initial password for multiple users creation in a ARQ request???
Hi All,
I was trying to create a request in ARQ for multiple users. I noticed that, I could add all the necessary required information for multiple users using the template. I added the roles as well. However, I could not set the initial password for multiple users as the tab "User System Details" (where the initial password is provided for a single user) is disabled!!!
The users were successfully created in the R/3 system. However, due to non-availability of initial password, these users could not log into the R/3 system.
May I know how to set the initial password for multiple users?
Regards,
faisalVit,
I was trying to test this multiple user creation scenario. But I am surprise to get a template where in I have only below mentioned fields:
1. User Name
2. User Id
3. Email
I filled these details and uploaded. Then filled the "User Access" details. While submitting the request, I got the error:
"Last name is not mentioned for user id XXX"
But there is not such column in provided template by GRC!
I added 2 columns: First Name and Last Name and saved it and uploaded again. These details are not picked up!
Following are the only columns shown:
1. User Name
2. User Id
3. Email
4. Manager
Out of above, only "Manager" field is editable and others are disabled.
Last time I remember, I has got complete template with all the columns. Unfortunately, I have deleted it and not available with me now.
Any idea you have why am I getting such incomplete template?
Regards,
faisal -
We had a user report a site creation issue with their site. They had been able to create sites with no problem up to this point. But now, when attempting to crate a site they get an error "User can't be found". But if they create a blank site
I or a blank team workspace. The site creates without incident. Any idea? The permissions appear to be correct but they can't create anything but blank sites without receiving the error. Maybe check permissions to webparts and templates (Do you know where
I could do that)?Hi,
Did you mean create site collections in the CA?
Did the users have admin permission or other permission? You can use the admin account to check whether it works.
To narrow down the issue, you can use other web application to check whether it works.
Maybe the web application had been corrupted.
You can also check the event log and ULS log to see if anything unexpected occurred.
To check event log, click the Start button and type “Event Viewer” in the Search box.
For SharePoint 2010, by default, ULS log is at
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Multiple certificates on Issuing CA server
Hi,
Due to errors multiple certificates were issued from Root CA server for SubCA. Although old certificate was revoked from Root, but I see 2 certificates on Issuing CA. Also, because of 2 certificates, 2 CRLs are getting published everytime for each. Although
when I see web server certificate issued for IIS, it was signed by new certificate of Issuing CA. Also, in PKIview, I see CDP path for this CA with new CRL.
But my questions is that how shall I remove old one from Issuing CA as I am not gettign that option. Also, in AD i see 2 certficaates published for that CA. Will that cause any issue.
Thanks
Neha GargThis is actually a normal state in PKI. When you renew a sub CA with a new key pair, ot will result in multiple CRL files.
- there is no need to remove the previous subca cert
- there is no need to revoke the previous subca cert (unless there are config or security issues)
- make sure the AIA paths use %4 in the paths to keep separate versions
- make sure that the CDP paths use %9 in the paths to keep separate versions
- make sure you publish *all* versions of .crts and .crls to *all* publication points
You need to leave all versions of the CA certs in play so that both current and previously issued certs can be validated
Brian -
Mc.9 Multiple storage location issues
Hi,
I am fetching data from mc.9 in my program but if the use enter multiple storage in selection only 1st value is printed following is code and how will i come to know which material is for which storage location since mc.9 data is not getting stored anywhere
SELECT-OPTIONS : SLOC LIKE S031-LGORT.
SUBMIT RMCB0300 WITH SL_WERKS-LOW = PLNT
WITH SL_LGORT IN SLOC
WITH SL_MTART = 'HALB' WITH SL_MTART = 'VERP'
WITH SL_MTART = 'ROH' WITH SL_MTART = 'FERT'
WITH SL_SPMON-LOW = FPERIOD
WITH SLV_NO = 'STK'
WITH SL_SPMON-HIGH = FPERIOD EXPORTING LIST TO MEMORY AND RETURN.
while append to internal table even if i specify both high and low value it prints low and high incorrectly how will this problem will solved
itab-lgort = sloc-low.
Help required for same.
Thanks
ShrutiHi Shruti,
I simulated the code given by you and all the storage locations are being populated in the backed.
You can check this by putting a breakpoint at the below code in RMCB0300 and checking the value of sl_lgort[]. You will receive the number of SLOC inputs provided.
AT SELECTION-SCREEN OUTPUT.
FLG_FOUND = FALSE.
PERFORM SPEZIAL_AT_SELECTION_SCREEN_O IN PROGRAM (LIS_PROGNAME)
CHANGING FLG_FOUND
IF FOUND.
This is a data issue and you may not have any records for the selected input.
Regards,
Jovito.
Edited by: dsouzajovito on Dec 29, 2010 5:56 AM -
Hi.
I have to create multiple files for mulitiple plants entered through select-options.
I have done this for single file but not getting the idea how to do it for multiple files.
<u><b><b>My work:</b></b></u>
*File creation
CONCATENATE
c_path "file path
c_qm " 'QM'
c_underscore "underscore
c_results " 'RESULTS'
c_underscore
s_werks "plant
c_underscore
sy-datum+4(2) "system date
sy-datum+6(2)
sy-datum+0(4)
c_underscore
sy-uzeit+0(2) "system time
sy-uzeit+2(2)
c_ext "file extension
INTO g_file_name.
ENDLOOP.
Open File on the application server for processing
OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc NE 0.
*Display error message
MESSAGE i055. " Error in opening file
LEAVE LIST-PROCESSING.
ELSE.
LOOP AT i_final INTO wa_final.
TRANSFER wa_final TO g_file_name.
ENDLOOP.
ENDIF.
CLOSE DATASET g_file_name.
Then i am updating the database table using i_update
Work Area for Z_DATADOWNLOAD table
DATA: l_wa_update TYPE ztable
l_wa_update-prog_name = g_repid.
l_wa_update-plant = s_werks.
l_wa_update-last_run_dt = g_sysdate.
l_wa_update-last_run_tm = g_systime.
MODIFY ztable FROM l_wa_update.
Pls let me know how to manage this for multiple files.Hi Simran.
Consider this code.
REPORT zztest.
TABLES : t001w.
*Declare one Internal table for werks
DATA :BEGIN OF it_werks OCCURS 0,
werks TYPE t001w-werks,
END OF it_werks.
*Select options
SELECT-OPTIONS : s_werks FOR t001w-werks.
START-OF-SELECTION.
*GEt all the plants entered in selection screen from
*DB table <b>T001W (Plants/Branches)</b>
SELECT werks FROM t001w INTO TABLE it_werks WHERE werks IN s_werks.
*Loop that internal table
<b> LOOP AT it_werks.</b>
CONCATENATE
c_path "file path
c_qm " 'QM'
c_underscore "underscore
c_results " 'RESULTS'
c_underscore
<b> it_werks-werks "Plant</b>
c_underscore
sy-datum+4(2) "system date
sy-datum+6(2)
sy-datum+0(4)
c_underscore
sy-uzeit+0(2) "system time
sy-uzeit+2(2)
c_ext "file extension
INTO g_file_name.
<b>*Now you have the file path for the werks
*Open File on the application server for processing</b>
OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
ENCODING DEFAULT.
IF sy-subrc NE 0.
*Display error message
MESSAGE i055. " Error in opening file
LEAVE LIST-PROCESSING.
ELSE.
LOOP AT i_final INTO wa_final.
TRANSFER wa_final TO g_file_name.
ENDLOOP.
ENDIF.
CLOSE DATASET g_file_name.
* Then i am updating the database table using i_update
* Work Area for Z_DATADOWNLOAD table
DATA: l_wa_update TYPE ztable
l_wa_update-prog_name = g_repid.
l_wa_update-plant = s_werks.
l_wa_update-last_run_dt = g_sysdate.
l_wa_update-last_run_tm = g_systime.
MODIFY ztable FROM l_wa_update.
*Pls let me know how to manage this for multiple files.
<b> ENDLOOP.</b>
Regards,
Arun Sambargi. -
Oracle Ad-hoc report with multiple queries creating issues
Hi Guys,
I have been having multiple issues (one after the other) in trying to generate a report for Business user. Let me start with my test cases and yes, this time I have made sure by testing and dirtying my hands that the test cases work properly and commit into the database (I will be more than happy to provide screen shots of the same).
Test Case:
Tables:RETURNS & RETURN_LINE_ITEMS
CREATE TABLE RETURNS
ID NUMBER(12),
PROG_PROGRAM_CD VARCHAR2(2 BYTE),
ACCT_ID NUMBER(12),
ACPE_ID NUMBER(12),
JENT_ID NUMBER(12),
PREV_RTRN_ID NUMBER(12),
ENTP_ABN NUMBER(9),
ACCT_OCCURNC_NBR NUMBER(4),
SOURCE_TYPE VARCHAR2(30 BYTE) DEFAULT 'BLANK',
RECEIVE_DATE DATE,
AMEND_IND VARCHAR2(1 BYTE) DEFAULT 'N',
CMPLT_IND VARCHAR2(1 BYTE) DEFAULT 'N',
PENALTY_OR_IND VARCHAR2(1 BYTE) DEFAULT 'N',
RETURN_STATUS VARCHAR2(12 BYTE),
STATUS_DATE DATE,
STATUS_USERID VARCHAR2(8 BYTE),
PERIOD_START_DATE DATE,
PERIOD_END_DATE DATE,
NOTICE_STATUS VARCHAR2(12 BYTE),
NOTICE_STATUS_DATE DATE,
NOTE_TEXT VARCHAR2(2000 BYTE),
PENALTY_OR_BY VARCHAR2(8 BYTE),
PENALTY_OR_TMST DATE,
FILING_ID NUMBER(12),
CASE_ID VARCHAR2(49 BYTE),
DOC_CONTRL_NBR NUMBER(29),
LOCTR_NBR NUMBER(10),
STATUTE_BARRED_DATE DATE,
MEDIA_TYPE VARCHAR2(30 BYTE),
DISPSTN_TYPE VARCHAR2(30 BYTE),
AMEND_TYPE VARCHAR2(30 BYTE),
CALC_MODE VARCHAR2(30 BYTE),
PROCESS_PASS_CNT NUMBER(1),
CONVRTD_IND VARCHAR2(1 BYTE) DEFAULT 'N',
LOSS_PERIOD_END_DATE DATE,
MF_SYNC_CD VARCHAR2(1 BYTE)
CREATE TABLE RETURN_LINE_ITEMS
ID NUMBER(12),
RTSC_ID NUMBER(12),
RTRN_ID NUMBER(12),
SCLI_ID NUMBER(12),
LITM_ID NUMBER(12),
ENTP_ABN NUMBER(9),
PROG_PROGRAM_CD VARCHAR2(2 BYTE),
ACCT_OCCURNC_NBR NUMBER(4),
ACPE_END_DATE DATE,
SCHED_NBR VARCHAR2(3 BYTE),
SCHD_VERSION_YR NUMBER(4) DEFAULT 0,
SCHD_VERSION_NBR NUMBER(3),
RTSC_OCCUR_NBR NUMBER(3),
LITM_LINE_ITEM_NBR VARCHAR2(3 BYTE),
SLIN_LINE_ITEM_ID NUMBER(12),
OCCUR_NBR NUMBER(3) DEFAULT 1,
PREV_VAL_MOD_IND VARCHAR2(1 BYTE) DEFAULT 'N',
VIABLE_IND VARCHAR2(1 BYTE) DEFAULT 'N',
ACTIVE_IND VARCHAR2(1 BYTE) DEFAULT 'Y',
ACTION_CD VARCHAR2(1 BYTE),
PREV_VAL_AMT NUMBER(15,2),
REVISE_VAL_AMT NUMBER(15,2),
PREV_VAL_TEXT VARCHAR2(100 BYTE),
REVISE_VAL_TEXT VARCHAR2(100 BYTE),
DISPLAY_SEQ_NBR NUMBER(3),
SYS_VAL_AMT NUMBER(15,2),
LITM_INNER_PASS_SEQ_NBR NUMBER(3)
Inserting data into RETURNS table
INSERT INTO RETURNS (
ID ,
PROG_PROGRAM_CD ,
ACCT_ID ,
ACPE_ID ,
JENT_ID ,
PREV_RTRN_ID ,
ENTP_ABN ,
ACCT_OCCURNC_NBR ,
SOURCE_TYPE ,
RECEIVE_DATE ,
AMEND_IND ,
CMPLT_IND ,
PENALTY_OR_IND ,
RETURN_STATUS ,
STATUS_DATE ,
STATUS_USERID ,
PERIOD_START_DATE ,
PERIOD_END_DATE ,
NOTICE_STATUS ,
NOTICE_STATUS_DATE ,
NOTE_TEXT ,
PENALTY_OR_BY ,
PENALTY_OR_TMST ,
FILING_ID ,
CASE_ID ,
DOC_CONTRL_NBR ,
LOCTR_NBR ,
STATUTE_BARRED_DATE ,
MEDIA_TYPE ,
DISPSTN_TYPE ,
AMEND_TYPE ,
CALC_MODE ,
PROCESS_PASS_CNT ,
CONVRTD_IND ,
LOSS_PERIOD_END_DATE ,
MF_SYNC_CD)
VALUES(
3715944,
'01',
139048,
3587419,
9518324,
NULL,
401377197,
1,
'TAXPAYER',
TO_DATE('4/7/2009','mm/dd/yyyy'),
'N',
'Y',
'N',
'ASSESSED',
TO_DATE('4/30/2009','mm/dd/yyyy'),
'TRAPROD2',
TO_DATE('2/1/2008','mm/dd/yyyy'),
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'PRINTED',
TO_DATE('4/30/2009' , 'mm/dd/yyyy'),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
6045574495,
NULL,
'RSI',
'NOTICE',
NULL,
NULL,
NULL,
'N',
NULL,
NULL);
NSERT INTO RETURNS (
ID ,
PROG_PROGRAM_CD ,
ACCT_ID ,
ACPE_ID ,
JENT_ID ,
PREV_RTRN_ID ,
ENTP_ABN ,
ACCT_OCCURNC_NBR ,
SOURCE_TYPE ,
RECEIVE_DATE ,
AMEND_IND ,
CMPLT_IND ,
PENALTY_OR_IND ,
RETURN_STATUS ,
STATUS_DATE ,
STATUS_USERID ,
PERIOD_START_DATE ,
PERIOD_END_DATE ,
NOTICE_STATUS ,
NOTICE_STATUS_DATE ,
NOTE_TEXT ,
PENALTY_OR_BY ,
PENALTY_OR_TMST ,
FILING_ID ,
CASE_ID ,
DOC_CONTRL_NBR ,
LOCTR_NBR ,
STATUTE_BARRED_DATE ,
MEDIA_TYPE ,
DISPSTN_TYPE ,
AMEND_TYPE ,
CALC_MODE ,
PROCESS_PASS_CNT ,
CONVRTD_IND ,
LOSS_PERIOD_END_DATE ,
MF_SYNC_CD)
VALUES(
4117092,
'01',
57794,
3864551,
10566221,
NULL,
400571410,
1,
'TAXPAYER',
TO_DATE('6/30/2010', 'mm/dd/yyyy'),
'N',
'Y',
'N',
'ASSESSED',
TO_DATE('7/27/2010','mm/dd/yyyy'),
'TRAPROD2',
TO_DATE('1/1/2009','mm/dd/yyyy'),
TO_DATE('12/31/2009','mm/dd/yyyy'),
'PRINTED',
TO_DATE('7/27/2010','mm/dd/yyyy'),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
6053117120,
NULL,
'RSI',
'NOTICE',
NULL,
NULL,
NULL,
'N',
NULL,
NULL);
INSERT INTO RETURNS (
ID ,
PROG_PROGRAM_CD ,
ACCT_ID ,
ACPE_ID ,
JENT_ID ,
PREV_RTRN_ID ,
ENTP_ABN ,
ACCT_OCCURNC_NBR ,
SOURCE_TYPE ,
RECEIVE_DATE ,
AMEND_IND ,
CMPLT_IND ,
PENALTY_OR_IND ,
RETURN_STATUS ,
STATUS_DATE ,
STATUS_USERID ,
PERIOD_START_DATE ,
PERIOD_END_DATE ,
NOTICE_STATUS ,
NOTICE_STATUS_DATE ,
NOTE_TEXT ,
PENALTY_OR_BY ,
PENALTY_OR_TMST ,
FILING_ID ,
CASE_ID ,
DOC_CONTRL_NBR ,
LOCTR_NBR ,
STATUTE_BARRED_DATE ,
MEDIA_TYPE ,
DISPSTN_TYPE ,
AMEND_TYPE ,
CALC_MODE ,
PROCESS_PASS_CNT ,
CONVRTD_IND ,
LOSS_PERIOD_END_DATE ,
MF_SYNC_CD)
VALUES(
4382179,
'01',
498210,
3957251,
11264174,
3727534,
405079963,
1,
'TAXPAYER',
TO_DATE('4/26/2011', 'mm/dd/yyyy'),
'Y',
'Y',
'N',
'ASSESSED',
TO_DATE('5/12/2011','mm/dd/yyyy'),
'LOPATS',
TO_DATE('2/1/2008', 'mm/dd/yyyy'),
TO_DATE('1/31/2009','mm/dd/yyyy'),
'PRINTED',
TO_DATE('5/12/2011','mm/dd/yyyy'),
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
6058767341,
TO_DATE('4/30/2015','mm/dd/yyyy'),
'RSI',
'NOTICE',
'LOSS CARRY BACK (SIMPLE)',
'LOSS CARRY BACK',
NULL,
'N',
TO_DATE('1/31/2011', 'mm/dd/yyyy'),
NULL
Now inserting data into 2nd table i.e. RETURN_LINE_ITEMS
RTRN_ID means RETURN ID
This is for RTRN_ID =3715944
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES(
277707088,
8022477,
3715944,
NULL,
1585,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'000',
1998,
1,
1,
'029',
23,
1,
'N',
'Y',
'Y',
NULL,
1,
1,
NULL,
NULL,
115,
1 ,
1);
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
277707106,
8022477,
3715944,
NULL,
1603,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'000',
1998,
1,
1,
'062',
40,
1,
'N',
'Y',
'Y',
NULL,
1069336,
1069336,
NULL,
NULL,
200,
1069336,
130
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
(277707109,
8022477,
3715944,
NULL,
1539,
401377197,
'01',
1,
TO_DATE('1/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'066',
43,
1,
'N',
'Y',
'Y',
NULL,
NULL,
1000,
'NULL',
'NULL',
215,
1069336,
200);Now for RTRN_ID = 4117092
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES(
319820214,
9028477,
4117092,
NULL,
1585,
400571410,
'01',
1,
TO_DATE('12/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'029',
23,
1,
'N',
'Y',
'Y',
NULL,
3,
3,
NULL,
NULL,
115,
3,
1
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES(
319820233,
9028477,
4117092,
NULL,
1603,
400571410,
'01',
1,
TO_DATE('12/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'062',
40,
1,
'N',
'Y',
'Y',
NULL,
790068,
790068,
NULL,
NULL,
200,
790068,
130
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
319820236,
9028477,
4117092,
NULL,
1539,
400571410,
'01',
1,
TO_DATE('12/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'066',
43,
1,
'N',
'Y',
'Y',
NULL,
NULL,
790,
NULL,
NULL,
215,
790068,
200
Now finally for RTRN_ID = 4382179
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
348462584,
9694297,
4382179,
NULL,
1585,
405079963,
'01',
1,
TO_DATE(1/31/2009, 'mm/dd/yyyy'),
'000'
1998,
1,
1,
'029',
23,
1,
'N',
'Y',
'Y',
NULL,
1,
1,
NULL,
NULL,
115,
NULL,
1
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
348462602,
9694297,
4382179,
NULL,
1603,
405079963,
'01',
1,
TO_DATE('1/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'062',
40,
1,
'N',
'Y',
'Y',
NULL,
672738,
643304,
NULL,
NULL,
200,
NULL,
130
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
348462605,
9694297,
4382179,
NULL,
1539,
405079963,
01,
1,
TO_DATE('1/31/2009','mm/dd/yyyy'),
'000',
1998,
1,
1,
'066',
43,
1,
'N',
'Y',
'Y',
NULL,
672738,
643304,
NULL,
NULL,
215,
643304,
200
);OK. Now once this data is all inserted, comes the real problem and that is:
a) based on the following requirements
Requirements: Adhoc Report for Audit on CIT Income Allocation
1. Select from the RETURNS table:
• Id > 3600000 and
• Prog_program_cd = '01' and
• Return_status in ('ASSESSED', 'DU") and
• Tax year ending in 2009 (i.e. year portion of the Period_end_date is in 2009)
2. Retrieve the following fields from the RETURNS table :
• Id
• Entp_abn
• Acct_id
• Prog_program_cd
• Period_start_date
• Period_end_date
• Amend_ind
• Return_status
• Status_date
• Loctr_nbr
3. If there are multiple entries from the same account and tax year, only retain the latest record: From the records selected in step 2, if there are multiple records with the same Acct_Id and Period_end_date, only retain the record with the most recent Status_date (i.e. MAX value on the date).
4. Using the results from step 3, link to the applicable RETURN_LINE_ITEMS table where:
• RETURNS.Id = RETURN_LINE_ITEMS.Rtrn_Id
5. From the selected return on RETURN_LINE_ITEMS table, retrieve records where (value on Sch 000 Line 062 > 500,000) and (value on Sch 000 Line 066 < value on Sch 000 Line 062) :
• Sched_nbr = '000', and Litm_line_item_nbr = '062', and Active_ind = 'Y', get Revise_val_amt as 'ab_taxable_income'
• Sched_nbr = '000', and Litm_line_item_nbr = '066', and Active_ind = 'Y', get Revise_val_amt as 'amt_taxable_in_ab'
• Retain the return only if (ab_taxable_income > 500,000) and (amt_taxable_in_ab < ab_taxable_income)
I utilized the following query and I am getting 4 rows (line item numbers 062 and 066 where in ab_taxable_income > 500,000) and (amt_taxable_in_ab < ab_taxable_income) and this is correct
SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd, r1.period_start_date, r1.period_end_Date, r1.amend_ind, r1.return_status, r1.status_date, r1.loctr_nbr,
rtlnms.sched_nbr, rtlnms.litm_line_item_nbr,
decode(rtlnms.litm_line_item_nbr, '062', RTLNMS.REVISE_VAL_AMT)AB_TAXABLE_INCOME,
decode(rtlnms.litm_line_item_nbr, '066', RTLNMS.REVISE_VAL_AMT)AMT_TAXABLE_IN_AB
from returns r1, return_line_items rtlnms
where
r1.id = rtlnms.rtrn_id and
r1.prog_program_cd = rtlnms.prog_program_cd and
r1.entp_abn = rtlnms.entp_abn and
r1.id > 3600000 AND r1.prog_program_cd = '01' AND r1.return_status in ('ASSESSED', 'DU')
and r1.period_end_Date between to_date('01-01-2009','DD-mm-YYYY') and to_date ('31-12-2009', 'DD-mm-YYYY')
and r1.status_date = (select max (status_date) from returns r2 where r2. acct_id= r1.acct_id and r2.period_end_date = r1.period_end_date)
and rtlnms.sched_nbr = '000'
and rtlnms.active_ind = 'Y'
and r1.id in (4117092,3715944,4382179,3691435)
and RTLNMS.LITM_LINE_ITEM_NBR IN('062')
AND nvl(decode(litm_line_item_nbr, '062', REVISE_VAL_AMT),0) > 500000
and NVL(RTLNMS.REVISE_VAL_AMT,0) >( select NVL(RTLNMS2.REVISE_VAL_AMT,0)
FROM RETURN_LINE_ITEMS RTLNMS2
WHERE RTLNMS2.RTRN_ID=RTLNMS.RTRN_ID
AND RTLNMS2.LITM_LINE_ITEM_NBR = '066'
AND SCHED_NBR='000'
UNION
SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd, r1.period_start_date, r1.period_end_Date, r1.amend_ind, r1.return_status, r1.status_date, r1.loctr_nbr,
rtlnms.sched_nbr, rtlnms.litm_line_item_nbr,
decode(rtlnms.litm_line_item_nbr, '062', RTLNMS.REVISE_VAL_AMT)AB_TAXABLE_INCOME,
decode(rtlnms.litm_line_item_nbr, '066', RTLNMS.REVISE_VAL_AMT)AMT_TAXABLE_IN_AB
from returns r1, return_line_items rtlnms
where r1.id = rtlnms.rtrn_id
AND r1.prog_program_cd = rtlnms.prog_program_cd
AND r1.entp_abn = rtlnms.entp_abn
AND r1.id > 3600000 AND r1.prog_program_cd = '01'
AND r1.return_status in ('ASSESSED', 'DU')
and r1.period_end_Date between to_date('01-01-2009','DD-mm-YYYY') and to_date ('31-12-2009', 'DD-mm-YYYY')
and r1.status_date = (select max (status_date) from returns r2 where r2. acct_id= r1.acct_id and r2.period_end_date = r1.period_end_date)
and rtlnms.sched_nbr = '000'
and rtlnms.active_ind = 'Y'
and r1.id in (4117092,3715944,4382179,3691435)
and RTLNMS.LITM_LINE_ITEM_NBR IN('066')
and NVL(RTLNMS.REVISE_VAL_AMT,0) <( select NVL(RTLNMS2.REVISE_VAL_AMT,0)
FROM RETURN_LINE_ITEMS RTLNMS2
WHERE RTLNMS2.RTRN_ID=RTLNMS.RTRN_ID
AND RTLNMS2.LITM_LINE_ITEM_NBR = '062'
and NVL(RTLNMS2.REVISE_VAL_AMT,0)>500000
AND SCHED_NBR='000'
order by IDHowever there is another condition after "5c" i.e. after Retain the return only if (ab_taxable_income > 500,000) and (amt_taxable_in_ab < ab_taxable_income)
and that is:
For those returns meeting the criteria in step 5, also retrieve the following from RETURN_LINE_ITEMS table and that is:
sched_nbr = '000' and Litm_line_item_nbr = '029' and ACTIVE_IND ='Y', get Revise_val_amt as "corp_type"
and in order to go about this, I utilised the following query:
SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd, r1.period_start_date, r1.period_end_Date, r1.amend_ind, r1.return_status, r1.status_date, r1.loctr_nbr,
rtlnms.sched_nbr, rtlnms.litm_line_item_nbr,
decode(rtlnms.litm_line_item_nbr, '062', RTLNMS.REVISE_VAL_AMT)AB_TAXABLE_INCOME,
decode(rtlnms.litm_line_item_nbr, '066', RTLNMS.REVISE_VAL_AMT)AMT_TAXABLE_IN_AB,
decode(rtlnms.litm_line_item_nbr, '029', RTLNMS.REVISE_VAL_AMT)CORP_INCOME
from returns r1, return_line_items rtlnms
where
r1.id = rtlnms.rtrn_id and
r1.prog_program_cd = rtlnms.prog_program_cd and
r1.entp_abn = rtlnms.entp_abn and
r1.id > 3600000 AND r1.prog_program_cd = '01' AND r1.return_status in ('ASSESSED', 'DU')
and r1.period_end_Date between to_date('01-01-2009','DD-mm-YYYY') and to_date ('31-12-2009', 'DD-mm-YYYY')
and r1.status_date = (select max (status_date) from returns r2 where r2. acct_id= r1.acct_id and r2.period_end_date = r1.period_end_date)
and rtlnms.sched_nbr = '000'
and rtlnms.active_ind = 'Y'
and r1.id in (4117092,3715944,4382179,3691435)
and RTLNMS.LITM_LINE_ITEM_NBR IN('062')
AND nvl(decode(litm_line_item_nbr, '062', REVISE_VAL_AMT),0) > 500000
and NVL(RTLNMS.REVISE_VAL_AMT,0) >( select NVL(RTLNMS2.REVISE_VAL_AMT,0)
FROM RETURN_LINE_ITEMS RTLNMS2
WHERE RTLNMS2.RTRN_ID=RTLNMS.RTRN_ID
AND RTLNMS2.LITM_LINE_ITEM_NBR IN( '066')
AND SCHED_NBR='000'
UNION
SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd, r1.period_start_date, r1.period_end_Date, r1.amend_ind, r1.return_status, r1.status_date, r1.loctr_nbr,
rtlnms.sched_nbr, rtlnms.litm_line_item_nbr,
decode(rtlnms.litm_line_item_nbr, '062', RTLNMS.REVISE_VAL_AMT)AB_TAXABLE_INCOME,
decode(rtlnms.litm_line_item_nbr, '066', RTLNMS.REVISE_VAL_AMT)AMT_TAXABLE_IN_AB,
decode(rtlnms.litm_line_item_nbr, '029', RTLNMS.REVISE_VAL_AMT)CORP_INCOME
from returns r1, return_line_items rtlnms
where r1.id = rtlnms.rtrn_id
AND r1.prog_program_cd = rtlnms.prog_program_cd
AND r1.entp_abn = rtlnms.entp_abn
AND r1.id > 3600000 AND r1.prog_program_cd = '01'
AND r1.return_status in ('ASSESSED', 'DU')
and r1.period_end_Date between to_date('01-01-2009','DD-mm-YYYY') and to_date ('31-12-2009', 'DD-mm-YYYY')
and r1.status_date = (select max (status_date) from returns r2 where r2. acct_id= r1.acct_id and r2.period_end_date = r1.period_end_date)
and rtlnms.sched_nbr = '000'
and rtlnms.active_ind = 'Y'
and r1.id in (4117092,3715944,4382179,3691435)
and RTLNMS.LITM_LINE_ITEM_NBR IN('066','029')
and NVL(RTLNMS.REVISE_VAL_AMT,0) < ( select NVL(RTLNMS2.REVISE_VAL_AMT,0)
FROM RETURN_LINE_ITEMS RTLNMS2
WHERE RTLNMS2.RTRN_ID=RTLNMS.RTRN_ID
AND RTLNMS2.LITM_LINE_ITEM_NBR='062'
and NVL(RTLNMS2.REVISE_VAL_AMT,0)>500000
AND SCHED_NBR='000'
order by ID
My output is: 7 rows i.e.
3 rows of return id = 3715944,
3 rows of return id = 4117092
and 1 row of return id = 4382179
It should only retrieve rows for 3715944 and 4117092; not for row =4382179 and this is because based on question in 5 "c", rows retrieved were for return ids' = 3715944 and 4117092
I know where the problem is:
As soon as it retrieves rows for returns 3715944 and 4117092 (because REVISE_VAL_AMT is greater than 500,000), it also finds another record with return id = 4382179 with greater than 500,000 and it blindly brings that as well.
Is there a way around to ensure that I my results are compared only against the return id's retrieved from 5 "c" = 3715944 and 4117092
Believe me I have tried every option that I could think of to remove return id = 4382179 but somehow could not.
Dear Gurus @ OTN, please help me.
Thanks,
SandeepThanks for your words of wisdom guys. Appreciate it.
Anyways what ever I asked, I was able to get solution for it by using an inline query and it's as follows:
SELECT id, entp_abn, acct_id, prog_program_cd, period_start_date,
period_end_date, amend_ind, return_status, status_date, loctr_nbr,
ab_taxable_income, amt_taxable_in_ab
FROM (SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd,
r1.period_start_date, r1.period_end_date, r1.amend_ind,
r1.return_status, r1.status_date, r1.loctr_nbr,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'062', rtlnms.revise_val_amt)) ab_taxable_income,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'066', rtlnms.revise_val_amt)) amt_taxable_in_ab
FROM returns r1, return_line_items rtlnms
WHERE r1.id = rtlnms.rtrn_id
AND r1.id > 3600000
AND r1.prog_program_cd = '01'
AND r1.return_status IN ('ASSESSED', 'DU')
AND r1.period_end_date BETWEEN
TO_DATE ('01-01-2009', 'DD-MM-YYYY') AND
TO_DATE ('31-12-2009', 'DD-MM-YYYY')
AND rtlnms.sched_nbr = '000'
AND rtlnms.active_ind = 'Y'
AND r1.status_date =
(SELECT MAX (status_date)
FROM returns r2
WHERE r2. acct_id= r1.acct_id
AND r2.period_end_date = r1.period_end_date)
GROUP BY r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd,
r1.period_start_date, r1.period_end_date, r1.amend_ind,
r1.return_status, r1.status_date, r1.loctr_nbr)
WHERE ab_taxable_income > 500000
AND amt_taxable_in_ab < ab_taxable_income
ORDER BY id
*OUTPUT*
ID ENTP_ABN ACCT_ID PR PERIOD_ST PERIOD_EN A RETURN_STATU STATUS_DA LOCTR_NBR AB_TAXABLE_INCOME AMT_TAXABLE_IN_AB
3715944 401377197 139048 01 01-FEB-08 31-JAN-09 N ASSESSED 30-APR-09 6045574495 1069336 1000
4117092 400571410 57794 01 01-JAN-09 31-DEC-09 N ASSESSED 27-JUL-10 6053117120 790068 790
2 rows selected.Anyways I am stuck in another issue and that is:
Based on what I have received above - I have been given a new requirement and that is:
retrieve the corresponding Schedule 002 data (if exist) from the RETURN_LINE_ITEMS table:
*• Sched_nbr = ‘002’, and Litm_line_item_nbr = ‘001’, and Active_ind = ‘Y’, get Revise_val_amt as ‘special_allocation’*
*• Sched_nbr = ‘002’, and Litm_line_item_nbr = ‘002’, and Active_ind = ‘Y’, get Revise_val_amt as ‘ab_salaries_wages’*
So in order to do this, I committed 5 additional rows with schedule number 002 and they are as follows:
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
626121,
118320,
3715944,
NULL,
2322,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'002',
1981,
1,
1,
'001',
78,
1,
'N',
'Y',
'Y',
NULL,
NULL,
NULL,
NULL,
NULL,
5,
NULL,
40
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
626121,
118320,
3715944,
NULL,
2322,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'002',
1981,
1,
1,
'002',
78,
1,
'N',
'Y',
'Y',
NULL,
NULL,
NULL,
NULL,
NULL,
5,
NULL,
40
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
626121,
118320,
3715944,
NULL,
2322,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'002',
1981,
1,
1,
'004',
78,
1,
'N',
'Y',
'Y',
NULL,
NULL,
NULL,
NULL,
NULL,
5,
NULL,
40
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
626121,
118320,
3715944,
NULL,
2322,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'002',
1981,
1,
1,
'006',
78,
1,
'N',
'Y',
'Y',
NULL,
NULL,
NULL,
NULL,
NULL,
5,
NULL,
40
INSERT INTO RETURN_LINE_ITEMS (
ID ,
RTSC_ID ,
RTRN_ID ,
SCLI_ID ,
LITM_ID ,
ENTP_ABN ,
PROG_PROGRAM_CD ,
ACCT_OCCURNC_NBR ,
ACPE_END_DATE ,
SCHED_NBR ,
SCHD_VERSION_YR ,
SCHD_VERSION_NBR ,
RTSC_OCCUR_NBR ,
LITM_LINE_ITEM_NBR ,
SLIN_LINE_ITEM_ID ,
OCCUR_NBR ,
PREV_VAL_MOD_IND ,
VIABLE_IND ,
ACTIVE_IND ,
ACTION_CD ,
PREV_VAL_AMT ,
REVISE_VAL_AMT ,
PREV_VAL_TEXT ,
REVISE_VAL_TEXT ,
DISPLAY_SEQ_NBR ,
SYS_VAL_AMT ,
LITM_INNER_PASS_SEQ_NBR
VALUES
626121,
118320,
3715944,
NULL,
2322,
401377197,
'01',
1,
TO_DATE('1/31/2009', 'mm/dd/yyyy'),
'002',
1981,
1,
1,
'008',
78,
1,
'N',
'Y',
'Y',
NULL,
NULL,
NULL,
NULL,
NULL,
5,
NULL,
40
); So based on the requirement I ran the following query in the hope that I should see 8 records but unfortunately I saw none, Can any one help again please??? The query is as follows:
SELECT id, entp_abn, acct_id, prog_program_cd, period_start_date,
period_end_date, amend_ind, return_status, status_date, loctr_nbr,
ab_taxable_income, amt_taxable_in_ab,
CORP_INCOME, AB_ALLOC_FACTOR, AB_TAX_PAYABLE,
special_allocation, ab_salaries_wages
FROM (SELECT r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd,
r1.period_start_date, r1.period_end_date, r1.amend_ind,
r1.return_status, r1.status_date, r1.loctr_nbr,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'062', rtlnms.revise_val_amt)) ab_taxable_income,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'066', rtlnms.revise_val_amt)) amt_taxable_in_ab,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'029', rtlnms.revise_val_amt)) CORP_INCOME,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'065', rtlnms.revise_val_amt)) AB_ALLOC_FACTOR,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'080', rtlnms.revise_val_amt)) AB_TAX_PAYABLE,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'001', rtlnms.revise_val_amt)) SPECIAL_ALLOCATION,
SUM
(DECODE
(rtlnms.litm_line_item_nbr,
'002', rtlnms.revise_val_amt)) AB_SALARIES_WAGES
FROM returns r1, return_line_items rtlnms
WHERE r1.id = rtlnms.rtrn_id
AND r1.id > 3600000
AND r1.prog_program_cd = '01'
AND r1.return_status IN ('ASSESSED', 'DU')
AND r1.period_end_date BETWEEN
TO_DATE ('01-01-2009', 'DD-MM-YYYY') AND
TO_DATE ('31-12-2009', 'DD-MM-YYYY')
AND rtlnms.sched_nbr = '000'
AND(rtlnms.sched_nbr = '002' and rtlnms.litm_line_item_nbr in ('001','002','004','006','008') )
AND rtlnms.active_ind = 'Y'
AND r1.status_date =
(SELECT MAX (status_date)
FROM returns r2
WHERE r2. acct_id= r1.acct_id
AND r2.period_end_date = r1.period_end_date)
GROUP BY r1.id, r1.entp_abn, r1.acct_id, r1.prog_program_cd,
r1.period_start_date, r1.period_end_date, r1.amend_ind,
r1.return_status, r1.status_date, r1.loctr_nbr, rtlnms.sched_nbr)
WHERE ab_taxable_income > 500000
AND amt_taxable_in_ab < ab_taxable_income
strangely it's not retrieving any row where as it should have retrieved one row atleast and that is all records pertaining to return_id (return id ) = 3715944
Can any of the Gurus' please help me out? As said I am really having a bad day on this. Many thanks to any one who can help me see the light today :-) -
Multiple user creation in R12 and migration of users
I would like to know how we can automate a process of user creation in R12, or is there a way to create multiple users in Ebiz with respective responsibilities.
Second case is, migration of users from one instance to another. The problem out here is selective users not all?
RegardsPl search the forums for FND_USER package - you will find several hits that show how this package can be used in a programmatic fashion to bulk create new users and assign responsibilities. Examples are also available on My Oracle Support.
To migrate user, use FNDLOAD. See this doc - you will also find hits in these forums if you search.
376469.1 - Can FNDLOAD Migrate User Accounts Without Forcing Users To Change Their Passwords?
HTH
Srini -
IDVD 704 issues: chapters, save-as crashes, theme elements getting "lost"
I'm using iDVD 7.0.4 on a mid-2010 13" MBP with 6Gb of RAM, running OSX 10.6.5 . I created a new project, and applied an old theme I created in iDVD 5 or 6. The theme is basically empty, apart from a single backdrop image and a few font specifications. (I like things simple...)
I then imported a QT movie created with Final Cut Express HD 3.5.1 from 16:9 (anamorphic) PAL DV material. The movie contains about 9 chapter markers and was corrected back from 720x576 to 1024x576 in QuickTime Player 7.
The movie imported correctly, but chapter titles with accented characters were lost (issue 1)
Issue 2: Doing a Save-As of an open project provokes a crash - immediately if I use the keyboard shortcut, delayed if I use the menu. Yet it has worked a single time.
Issue 3: After finalising the project, I decided to do a final edit on the chapter title text colour. Impossible to consolidate that to disk: if I save a project changed in this manner, it will no longer open correctly. iDVD will complain about missing theme elements, and force the default theme on me.
I tried rebooting, but that didn't resolve issues 2 & 3 (didn't check issue 1 but that one seems a true bug or omission).
Any ideas? A quick peek on here didn't serve any similar stories, so am I the only one experiencing this?I'm using iDVD 7.0.4 on a mid-2010 13" MBP with 6Gb of RAM, running OSX 10.6.5 . I created a new project, and applied an old theme I created in iDVD 5 or 6. The theme is basically empty, apart from a single backdrop image and a few font specifications. (I like things simple...)
I then imported a QT movie created with Final Cut Express HD 3.5.1 from 16:9 (anamorphic) PAL DV material. The movie contains about 9 chapter markers and was corrected back from 720x576 to 1024x576 in QuickTime Player 7.
The movie imported correctly, but chapter titles with accented characters were lost (issue 1)
Issue 2: Doing a Save-As of an open project provokes a crash - immediately if I use the keyboard shortcut, delayed if I use the menu. Yet it has worked a single time.
Issue 3: After finalising the project, I decided to do a final edit on the chapter title text colour. Impossible to consolidate that to disk: if I save a project changed in this manner, it will no longer open correctly. iDVD will complain about missing theme elements, and force the default theme on me.
I tried rebooting, but that didn't resolve issues 2 & 3 (didn't check issue 1 but that one seems a true bug or omission).
Any ideas? A quick peek on here didn't serve any similar stories, so am I the only one experiencing this? -
Multiple Datasource creation in Production system
We are facing connection pool issues from middleware, is it suggestable to create multiple datasources with same connection
Hi,
What issue are you facing in configuring the Multi Data Source .
Refer the below docs
Configuring JDBC Multi Data Sources
JDBC Multi Data Sources in weblogic server
Hope it helps
Maybe you are looking for
-
Restrict the use of index while quering
Hi All I have a simple emp table with columns empid, name, sal. Empid has a primary key imposed. Now when i write a statement like this, select * from emp where empid = <value>; the optimizer will make use of index. The question is........... is ther
-
I migrated my software/documents from another laptop so don't have the disk to reinstall. Please help! Can't open any Microsoft Office software, like Word (for 2008), and stuck in a loop? Whenever I select Word Microsoft Setup Assistant appears, asks
-
Losing system date in windows XP Pro
I have two "number crunchers" based on K7N2GM-V motherboards that run 24/7 with the CPU pegged at 100%. Both have AMD Athlon barton core CPUs. One has a XP 2600 (OPN AXDA2600DKV4D) and the other has a 2500 (OPN AXDA2500DKV4D). The 2600 was clocked
-
Is Elements 7 compatible with Windows 7 -64 bit?
I have used Elements 7 for a year in my PC with Windows 7. Suddenly Elements will not launch. I have had a chat support with someone from the Adobe support who tells me that I can not use Elements in windows 7. When I asked how could I use it for a y
-
RAW files are super dark in LR
I am new to shooting in RAW and have noticed when import my photos into LR (they are all perfect exposures) they are super dark. I had read somewhere that RAW files would look muddied and dark before processing them. I am not sure, how do you get the