SQL Loader - Set a field to a CONSTANT and the data is date
Hi.
I have a question on SQL Loader.
I want to load a field(field name is TIME_IN).
In the Oracle table, this field type is DATE.
I my csv file, I do not put any value for this field.
I intend to use CONSTANT variable to this field.
In my control file, following is the command for above field.
Hoever, when I run the SQLLoader, it will return me error message which is INVALID MONTH.
I hope somebody can help and advise me on this matter.
Thanks.
INTO TABLE eqreceival_temp
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
EQ_NO,
SIZE_TYPE,
CUSTOMER,
CONSTRUCTION,
QUALITY,
CONDITION,
DATE_IN DATE "DD/MM/YYYY",
TIME_IN CONSTANT '01/01/1999',
PARK_LOC CONSTANT 'CP',
STOCK CONSTANT 'S',
DISCHARGE_PORT CONSTANT 'MYPEN',
CTYPE CONSTANT 'P',
ROAD CONSTANT 'Y',
GATE CONSTANT 'Y',
SHIPMENT CONSTANT 'Y'
)
use to_data function when u r inserting....
or
give simply SYSDATE --- AND FIRST CHECK
--YOU MAY REMOVE CONSTANT KEY WORD.
Similar Messages
-
I have set form fields as User required and yet the form still prints/save when empty.
I have set form fields as User required and yet the form still prints/save when empty. I also have an email button on the form but that works correctly by not allowing the user to email the form with the required fields empty.
What script do I need to additionally restrict both printing and saving if the required fields are empty?
You would think that just setting that option would restrict those functions the same as it does for the email button.
Please be specific with your response if you are gracious enough to offer one. I have been searching the forum all morning for the answer to this and I really didn't understand any of the solutions offered to others enough to use those in my own form.
The required fields are:
Social (social security number)
Name
Headquarters
Residence
The next question I have is if there is a way to make individual signature fields mandatory if they are digital signatures?
In other words, I don't want the individual to be able to email the form to the next person if he/she hasn't applied their digital signature.Saving can always be done, even when mandatory fields are empty. This is by design. And that is correct. Suppose you have a big form and 2 people need to fill it out. How can you fill out a first part and then send it to the second person without saving.
Same for printing. Same for your signature fields.
What I would do, is to put a "watermark" on the form that you show on preSave and prePrint if the form is incomplete. Just a static text on your form. Then the user will see that they need to do more. Also, on preSave and prePrint, you can show a warning popup to tell the user about the missing fields. You can then still cancel their action if the user decides not to save/print anyway. -
Vertical Elasticity on Field is not working when the data contains - in it.
Hi,
I have a report which has to print a large invoice number(around 30 characters) per invoice line, but I got only space for 12-14 characters, so I have set the vertical elasticity property of the field to Expand which makes the data to wrap to the next line.
But if the data contains any '-' character in it, the data wraps to the next line even though there is enough space on the current line.
Sample outputs:
When the vertical elasticity is set to Expand
<p>
Invoice Number Invoice Description
123456789023 First Invoice on first line
345678957694
347634763476
12345678- Second Invoice but the number gets wrapped because of the hyphen
345734573476
569456573456
When the vertical elasticity is set to Fixed
Invoice Number Invoice Description
123456789023 First Invoice on first line
12345678-345 Second Invoice but the number does not get wrapped after hyphen
</p>
Is it a bug on reports editor, how do I avoid this?
I would like to see the output like the following,
Invoice Number Invoice Description
123456789023 First Invoice on first line
345678957694
347634763476
12345678-345 Second Invoice number with correct format.
734573476569
456573456
PS: The version of the Report Builder is 10.1.2.0.2
Thanks in Advance,
SenthilIt looks as if the logic that Oracle Reports uses to determine where to break the line is interpreting the "-" character differently from other characters. This is probably because it is used (at least in English) to break words at the end of a line (see http://en.wikipedia.org/wiki/Hyphen#Justification_and_line-wrapping).
One workaround might be to replace "-" character with another character (or more) that looks the same (or similar), but that Oracle Reports does not interpret differently from other characters. For me (on Windows), CHR(173) seems to work. However, whether or not it works for you will depend on whatever character set(s) you're using. The same goes for the Unicode characters like U+2010 (hyphen), U+2011 (non-breaking hyphen), and U+2212 (minus).
For example, in your data model, you might try replacing your current invoice number column with an expression that looks something like this:
REPLACE(YOUR_INVOICE_NUMBER_COLUMN, '-', CHR(173))
Hope this helps. -
Hi
How can I add 2 new metadata-fields to every photo in iPhoto ?
The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
Exampel:
My son is born 01.01.2010
My daughter is born 01.01.2012
Photo taken by data
Aage of son
Aage of daughter
01.07.2011
1 year 6 month
not born yet
01.01.2014
4 year 0 month
2 year 0 month
I would like to be able to search by kids age and get the info displayed when doing slideshows.
How to do this in iPhoto ?
Any alternatives to accomplish the same ?
Kind regardsIt can't be done with iPhoto. There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field. Then you can use Smart Albums to search for 1year 6 month text.
OT -
My iPhone 4 will not turn on, when I plug it into my computer and load up iTunes its in recovery mode and the only option is to restore my device to factory settings, I have no back up of my phone I've also tried the home/sleep button thing but nothing, I have literally done every method I was told, I checked for water damage and that's fine. I don't want to restore my phone or buy a new one or pay for repairs because that's wasting money when it could be a simple way to fix it. And yes, I've also tried charging it and turning it in. I really need some help with my phone
That does happen. It depends on how hard the server is being hit, as well as the connection speed of your system. If you are on a windows system, you will want to disable any antivirus or firewall software during the download.
-
We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
The field GAMNG is available in the communication structure maintainace.
The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase 002 ***********************************************************
Message no. D0322 ..
We deleted Setup table , Meins field already exist in comm str.
1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
Kindly suggest correct answer.
Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PMHi,
There could be a number of reasons why you are getting the error:
1. Fields are not assigned to datatypes.
- Check structure in SE11 and assign to datatypes.
2. There are inactive appends in the extract structure.
- Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
3. The appended structure is in a different development class from the one of the structure it is being appended to.
Please review and apply the following notes carefully :
766603 Activation problems with extract structures
623411 LBWE: Gener. terminates with D0 322 (end phase 002)
757923 LBWE: Generation terminates with D0 322 (end phase
600708 D0 322: End phase 002
It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
Check to see if this is the same on your system.
Rgds,
Colum -
After the Firefox update this week (Sept 7?) links from emails won't open. I get an error message. So I've temporarily set IE as my default browser, and the links work.
Hi everyone, I have Snow Leopard 10.6.8. I have been very very frustrated by this problem. [I could not create new windows, and anything that opens new windows, such as trying to see what Add-ons you have etc would not work]. I read about changing screen alignment to the top... I have one screen so the option does not exist. The above messages would not fix this problem. I searched hard and did find a solution in the end. I read stuff about removing Add-ons until the problem is fixed, but its simply not the case.
First of all open Firefox. next go to options: Help --- 'Restart with Add-ons disabled'. Tick the box for add-ons, restart firefox. Next go to Tools --- Add-ons. Next (In the Add-ons Manager' click on 'Plugins' on the left hand side pane. Look for the small blue writing that says 'Check to see if your plugins are up to date'.
Now notice it should say 'Missing Flash'. "For your safety, Firefox has disabled your outdated version of Flash. Please upgrade to the latest version". I followed this, reinstalled Flash and it now works as it always did, no problems. For people where the above fix didn't work, try this one out. Hope it helps people!
:o) -
I am trying to set up my new replacement phone and the iCloud account is using my old email that is no longer activated, so I am not able to reset my password in order to set up messaging, etc. What do I do??
Try to change your Apple ID back to your old email address (http://appleid.apple.com) in order to set up and activate the phone. After the set up please sign out of iCloud and turn off "Find My iPhone" (Settings > iCloud) - do that on all your devices -, then change your Apple ID to your new address again and then add your iCloud account on you devices again.
-
How to validate the field when i am populating the data cursor to block
Hi,
I am populating data cursor to multi record block.
Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
If user enter negative values and decimal points in quantity filed i need to display message to user item level.
Please do the needful how to do it.902434 wrote:
Hi,
I am populating data cursor to multi record block.
Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
If user enter negative values and decimal points in quantity filed i need to display message to user item level.
Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
If :quentity <0 then
message('do not enter negative value');
message('do not enter negative value');
raise form_trigger_failure;
end if;Why u open same thread again ? not closing one.. check this one
</a>
How to validate the field when i am populating the data cursor to block
Hopes this helps
If someone's response is helpful or correct, please mark it accordingly. -
SAP CRM Tables and Fields for Contract start and End dates
Hi Experts,
Please Provide me SAP CRM Tables and Field names for the below.
SAP CRM Contracts start date and End date
SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
Thanks and Regards,
Tejacorrection
10 Replies Latest reply: 24 May, 2013 8:38 AM by nishant Vasudev
Tweet
SAP CRM Tables and Fields for Contract start and End dates
This question has been Answered.
Teja Dhar 12 Oct, 2009 8:03 PM
Currently Being Moderated
Hi Experts,
Please Provide me SAP CRM Tables and Field names for the below.
SAP CRM Contracts start date and End date
SAP CRM Conditions(PROO, K007 etc....) records start and End Date.
Thanks and Regards,
Teja
Correct Answer by Sreekantha Gorla on Oct 22, 2009 8:22 PM
Hi,
dates will be stores in the table 'SCAPPTSEG'.
I double checked it. This table stores all the date types of one order transactions...
The relationship is as follows..
CRMD_ORDERADM_H- guid = crmd_link-guid_hi
crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
Thanks and regards,
Sreekanth
<:footer>See the answer in context
6281 Views
Topics: Customer Relationship Management
Reply
Average User Rating
0
(0 ratings)
My Rating:
Rating Saved!
Comment on your rating
Re: SAP CRM Tables and Fields for Contract start and End dates
Robert Jesionowski 14 Oct, 2009 2:23 PM (in response to Teja Dhar)
Currently Being Moderated
Hi,
you should try with FM: CRM_DATES_READ_SINGLE_OB or CRM_DATES_READ_DB.
There is something in table SCAPPT and SCGENAPPT.
Regards, R
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
Teja Dhar 22 Oct, 2009 5:30 PM (in response to Robert Jesionowski)
Currently Being Moderated
Hi Robert,
I am not able to find contract start date and End dates in the tables SCAPPT and SCGENAPPT.
Can you suggest some relevant tables.
Best Regards,
Teja
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
Sreekantha Gorla 22 Oct, 2009 2:35 PM (in response to Teja Dhar)
Currently Being Moderated
Hi,
Table SCAPPTSEG stores the contract start and end dates.
Thanks,
Sreekanth
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
Teja Dhar 22 Oct, 2009 5:32 PM (in response to Sreekantha Gorla)
Currently Being Moderated
Hi Sreekanth,
I am not able to find contract start date and End dates in the table SCAPPTSEG.This is for appointments.
Can you suggest some relevant tables.
Best Regards,
Teja
Report Abuse
Like (0)
Reply
Correct AnswerRe: SAP CRM Tables and Fields for Contract start and End dates
Sreekantha Gorla 22 Oct, 2009 8:22 PM (in response to Teja Dhar)
Currently Being Moderated
Hi,
dates will be stores in the table 'SCAPPTSEG'.
I double checked it. This table stores all the date types of one order transactions...
The relationship is as follows..
CRMD_ORDERADM_H- guid = crmd_link-guid_hi
crmd_link-guid_set = SCAPPTSEG-APPL_GUID.
Thanks and regards,
Sreekanth
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
Wim Olieman 23 Oct, 2009 9:12 AM (in response to Sreekantha Gorla)
Currently Being Moderated
Hi,
I can tell you where the pricing records are saved, replicated from ECC.
The data from ECC table Axxx (e.g. A304) is replicated to CRM table
CNCCRMPRSAPxxx (e.g. CNCCRMPRSAP304).
Here you can find fields TIMESTAMP_TO and TIMESTAMP_FROM.
About the dates: what Sreekantha Gorla stated, about table 'SCAPPTSEG' is correct.
What might help is to execute program "CRM_ORDER_READ". Here you can find
the relevant entries also.
regards,
Wim
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
Teja Dhar 23 Oct, 2009 4:59 PM (in response to Teja Dhar)
Currently Being Moderated
Hi Experts,
Thanks a lot for your support.My problem got resolved.
Best Regards,
Teja
Report Abuse
Like (0)
Reply
Re: SAP CRM Tables and Fields for Contract start and End dates
rajesh gadamsetty 27 Nov, 2009 12:29 PM (in response to Teja Dhar)
Currently Being Moderated
Hi Teja
Please let me know how you got the dates. i got the same requirement
Report Abuse
Like (0)
Reply
Correction on above mail.
Hi Sanjay,
Can you please help me to find the contract st art date and end date fetching from the table as below
ITEM DATES:
Select guid_set from table CRMD_LINK where guid_hi = CRMD_ORDER_I-GUID AND
OBJTYPE_HI = '06'
OBJTYPE_SET = '30'.
Select * from SCAPPTSEG where APPL_GUID = guid_set.
as from the table scapptseg has some unusal fields which fields to select to get the start date and end date and on what condition and isuppose we need to convert als the same
pls suggest further on same
regards
Arora -
A few selection of websites after fully loading become blank and start an infinite loop of loading. I reinstalled firefox once already and the problem persists. What can I do?
Sorry I do not know what the problem may be. <br />
If no-one comes up with better ideas of what causes this then my questions and suggestions:
What do you mean by an infinite loop ? <br />
The page loads and then goes blank. What exactly happens next, does the page fully load and fully display again before going blank, and repeat this cycle endlessly in the same tab.
You do say the problem persisted in safe-mode and you had looked at the basic troubleshooting article. Buy that you can stop the problem by disabling javascript.
* did you disable all plugins - and did you still get the problem then ?
As you mention disabling javascript stops the problem, have you tried with<br /> Java script enabled but
* block popups ON
* load images automatically OFF
* advanced options - ALL OFF<br /> What happens do you get the problem then or not.
While on this firefox site if I look at the error console Ctrl+Sift+J or Tools -> Error console If I clear the console content and reload the webpage the error console shows only a couple of messages. YouTube home page give a lot of yellow triangle warnings about 200, but no red warnings, do you get red warnings.
You could also try on the problem sites eg YouTube changing the permissions with tools -> Page Info | Permissions
Did you try the Basic Troubeshooting suggestion of making a new profile. (Heeding the warning not to delete settings, otherwise you loose all bookmarks etc) did that help ? -
Recently I bought a MacBook Pro, the first time I entered a disc into the disc dive it wouldn't load up in Itunes - just kept freezing; and the disc drive made a lot of noise, how can I fix this?
I've had my mac for less than a month and for the first time I put in a disc. I can hear a laser sort of noise as well as the disc flapping about or a motor sort of sound? Sounds really bad to me :/
Someone please help!Sounds like a hardware issue.
Did you buy the system from Apple? If so how recent is recent? If it is new you have 14 days to return it, not sure what the situation is with refurb systems. If it is over 14 days you should still have warranty support make an appointment at an Apple Store or contact Apple support.
If you bought it from someone other then Apple you will need to contact them.
good luck
regards -
I am in the midst of setting up my new iPad Air, and the process seems to be stuck on "Updating iCloud settings..." What is a reasonable time for this step to take?
Shouldn't take more than a few seconds to a minute. If it's stuck, you might want to give Apple support a call to see if they are experiencing unreported server issues. Since your device is new, you are within the 90-day free call support period. You can set up the call here: http://www.apple.com/support/icloud/contact/. You will need your serial number, which is on the box and (I believe) the back of your iPad.
-
SQL Loader error on Fields terminated and optionally enclosed
When you have fields terminated and optionally enclosed, you should be able to have the enclosure characters within the data by doubling them.
So if I have fields terminated by '|' optionally enclosed by '"' and my data has a double quote in it, I can get SQL Loader to take it by replacing the double quote with two double quotes.
But this doesn't always work. For some reason the following string gets the error "no terminator found after TERMINATED and ENCLOSED field"
|"TRO2 ldj?=)(/&%ç*""aàéè_:;!àèé,jpdjbdbd"|
Apparently having the double quote immediately after an asterisk makes SQL Loader not see the second double quote. If I edit it and remove the two double quotes it loads OK. Also if I change the string to
|"TRO2 ldj?=)(/&%ç*aà""éè_:;!àèé,jpdjbdbd"|
Moving the double quote away from the asterisk it loads OK.
Anybody encounter this problem before?Oracle version is 11.1.0.7.0
OS is Windows 6.1.7601
I can't remove the "optionally enclosed by" clause because we're getting the data from another system. Fortunately this is test data and this particular combination of characters is unlikely to occur in production data. -
SQL Loader, CLOB, delimited fields
Hello.
I have to load using SQL Loader data from csv file into table, which one field is CLOB type.
Here is how ctl file initially looked like:
UNRECOVERABLE
LOAD DATA
INFILE '.\csv_files\TSH_DGRA.csv'
BADFILE '.\bad_files\TSH_DGRA.bad'
DISCARDFILE '.\dsc_files\TSH_DGRA.dsc'
APPEND
INTO TABLE TSH_DGRA
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
ID_OBJ_TSHD,
PR_ZOOM_TSHD,
PR_GRID_TSHD,
PR_ELMGR_TSHD CHAR(4000) OPTIONALLY ENCLOSED BY '<clob>' AND '</clob>',
PR_ALRMGR_TSHD CHAR(4000) OPTIONALLY ENCLOSED BY '<clob>' AND '</clob>'
Problems are fields PR_ELMGR_TSHD and PR_ALRMGR_TSHD (CLOBs in table TSH_DGRA). Until data which should be loaded into CLOB fields are under 4000 characters long, it works fine, but what should I do if I want to load data which are longer than 4000 characters?
If found on Link:[http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/ldr_loading.htm#i1006803] which one sentence said that:
"SQL*Loader defaults to 255 bytes when moving CLOB data, but a value of up to 2 gigabytes can be specified. For a delimited field, if a length is specified, that length is used as a maximum. If no maximum is specified, it defaults to 255 bytes. For a CHAR field that is delimited and is also greater than 255 bytes, you must specify a maximum length. See CHAR for more information about the CHAR datatype."
So, my question is, how to specify "up to 2gb" as text said? I can not use CHAR datatype because it is limited to 4000 characters. And I have to load about 60000 characters. I also can not use technique where all data for every CLOB field are in separate files.Just specify the maximum expected size:
PR_ELMGR_TSHD CHAR(100000) OPTIONALLY ENCLOSED BY '<clob>' AND '</clob>',
PR_ALRMGR_TSHD CHAR(1000000) OPTIONALLY ENCLOSED BY '<clob>' AND '</clob>'
The CHAR(1000000) will allow SQLLDR to handle up to 1000000 bytes of input text.
Maybe you are looking for
-
Whenever I search something on Google and try to open it,it opens in a new tab or new window.I always could open it in the same tab. Can you help me?
-
Currency Field Not Being Saved
Hi, I modified the BP_HEAD/AccountDetails view to include the address fields from BP_ADDR and also include a few EEWB generated fields - including a currency field. I am also defaulting the currency key field to 'USD' via BADI_CRM_BP_UIU_DEFAULTS. Wh
-
how do inestalo repair my poroduct?
-
My Numbers document icons have turned black. Help?
The document icons for my Numbers documents have turned a horizontal-streaked black color. (Kind of like the output from a very defective copy machine.) I have tried resaving the documents both without and with changes, but the icons don't change. Qu
-
I accidently reset safari 6, how do I go back?
I accidently reset safari 6. I want to go back to before the reset. I have my hard drive back up on a bootable hard drive. I want to pull the data off that drive and replace where safari cleared my passwords, etc. Can I do this? Where do I look