How to delimit a record in sqlloader
hi,
I got one data file in which all the records start with '@' character at first position of the line.
eg.
@0001000abcde 0004...............
@11111bcedd 0005.............
@12345afceddd 0006...............
In certain places the data comes as below
eg.
####################@11111bcedd 0005.............
###############@12345afceddd 0006...............
#######################@12345afceddd 0006...............
@0001000abcde 0004...............
@11111bcedd 0005.............
@12345afceddd 0006...............
####################@11111bcedd 0005.............
###############@12345afceddd 0006...............
#######################@12345afceddd 0006...............
How to upload the above data. without losing any data.
Thanks in advance
Regards
S. Djeanthi
There is a "records delimited by" option in your control file that you would set to '@'. Most example control files will specify a newline here instead.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC
Similar Messages
-
How to delimit records using FM HR_INFOTYPE_OPERATION ( in background )
Hi all,
Has anyone used HR_INFOTYPE_OPERATION with OPERATION = 'LIS9' to delimit a record? I keep on getting 'A complex application error has occurred' error message. When I go into dialog mode = '2', the FM will go into the Overview Screen and I realized that the Delimit Date on the top right of the screen is not what I specify as the new record's ENDDA but the original record's ENDDA. Also I have to manually click on Delimit icon on the top left of the screen before it gets delimited.
Question:
How do I pass in the delimited date to HR_INFOTYPE_OPERATION? I put it in the RECORD-ENDDA field but it doesn't seem to work?
Thanksrohan,
why dont you use change mode (mod) and just change the default end date to the date you want the record delimited? that is also delimiting.
is this requirement for batch job? -
How to Mapping the records between OM-PA
How could you map the Records of OM->PA ,if the designation of person changes from manager to supervisor from certain date.and how can we see the changed records??
Solution :we can see the changes in the addition action infotype 302,personel hiring action(0000) delimit the record whenerver we changes the designation,and in the orgassingment infotype overview ,action infotype over view we can see the changes and PLOGI-ORGA IS the integration switch and position is the key for map the recoed from OM ->PA
Post your comments if the solution is correct???
Regards
Chandrahi,
kindly go through the below message i hope it will help you.
when the employee designation is changed the action of employee changed in infotype 0000 and previous record is delimited and that current recod automatically reflect on infotype 0001 and you find the position of employee here and esily identify.
in this way when the position changes in OM it will reflect on PA.(in infotype0001).
thanks and regards..
Bibek -
how long I can record a voice memo in my iphone 5s, how long I can record a voice memo in my iphone 5s
Thanks Caramby. I actually found another work-around
Here's how to copy the voice memo to your laptop (and then email it if you need to):
With iTunes open on the Voice Memo folder of your device (an iPhone 4s in my case), simply drag the required file from iTunes and onto the desktop of your pc/laptop. It won't remove the file from your device but simply make a copy. Then you can play the file from your pc/laptop (through Quicktime) as the file is in AAC format. You can also attach the file to an email for sending.
Hope this helps someone else.
RB -
How to get latest record on top of the result list
Hi Gurus,
How to get latest record on top of the result list when you open the record.
saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
Regards,
RaviHi
Try sort descending by on fileld "changed at ".
manipulate the sort depends on your requirement
Regards
Logu -
How to create a record based on the name of a file in the file-system?
Hi,
With a lot of pictures I want to have a database to gather some information about these pictures.
First question is how to generate a record based on a file in the file system?
e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
any suggestions?
any reaction will be appreciated.
LeoLink to Create directory
http://www.adp-gmbh.ch/ora/sql/create_directory.html
You can create a list of files in the directory and read the list files from that directory.
[UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
[Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
SS -
How to get multiple records using fn-bea:execute-sql()
Hi,
I created Proxy service(ALSB3.0) to get records from DB table. I have used Xquery function(fn-bea:execute-sql()). Using simple SQL query I got single record, but my table having multiple records. Please suggest how to get multiple records using fn-bea:execute-sql() and how to assign them in ALSB variable.
Regards,
Nagaraju
Edited by: user10373980 on Sep 29, 2008 6:11 AMHi,
Am facing the same issue stated above that I couldnt get all the records in the table that am querying in the Proxyservice.
For example:
fn-bea:execute-sql('EsbDataSource', 'student', 'select Name from StudentList' ) is the query that am using to fetch the records from the table called StudentList which contains more than one records like
Id Name
01 XXX
02 YYY
03 ZZZ
I tried to assign the result of the above query in a variable and while trying to log the variable, I can see the below
<student>
<Name>XXX</Name>
</student>
I want to have all the records from my table in xml format but it's not coming up. I get the value only from the first row of my table.
Please suggest.
regards,
Venkat -
How to edit the records in error stock.
Hi Experts,
i have error records in error stack and the remaining records are loaded successfuly . here my doubt is how to edit the records in error stack because its not giving the edit option .
i want to get the edit option means i need to delete the request in target r wt ?
and there are two more targets is there below this process .
Advance Thanks.
Regards
SAPHI
If you have less number records in this request(which you extracted now), delete that request from all the targets and reload again with option Valid records update, reporting not possible.
this is the option which is recommended.
follow the below 2 docs as well.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80dd67b9-caa0-2e10-bc95-c644cd119f46?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/007f1167-3e64-2e10-a798-e1ea456ef21b?QuickLink=index&overridelayout=true
Regards,
Venkatesh
Edited by: Venkateswarlu Nandimandalam on Jan 24, 2012 4:35 PM -
Regarding how to delete the record in internal table
Hi experts ,
how to delete the record in intarnal table after validating the data,
if record contains invalid fields?
i am giving my code see this and give me the answer?
loop at it_data into wa_data .
Validate Cost Center
READ TABLE it_kostl INTO wa_kostl WITH KEY kostl = wa_data-kostl BINARY SEARCH.
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-004.
ENDIF.
Validate source file material ( material number )
loop at it_mara into wa_mara .
read table it_ausp into wa_ausp with key atwrt = wa_data-i_matnr .
if sy-subrc NE 0 .
PERFORM update_error_log USING wa_data
text-002.
delete it_data-objek .
else.
read table it_mara into wa_mara with key matnr = wa_ausp-objek .
if sy-subrc EQ 0 .
wa_data-objek = wa_mara-matnr.
wa_data-matkl = wa_mara-matkl.
ENDIF.
Modify it_data from wa_data .
endif.
*endloop.
Validate unit of measure (unit)
READ TABLE it_t006 INTO wa_t006 WITH KEY msehi = wa_data-unit .
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-003.
endif.
Validate delivery location ( storage location )
READ TABLE it_lgort INTO wa_lgort WITH KEY del_loc = wa_data-del_loc.
IF sy-subrc NE 0.
PERFORM update_error_log USING wa_data
text-001.
if wa_data-flag ='x' .
delete it_data from wa_data .
endif.
ENDIF.
endloop.Hi Naren,
First get the index number of the IT_data table and store it in one variable whose declaration like this.
data: tabix type sy-tabix.
while reading the internal table it_data set the tabix variable.
tabix = sy-tabix.
Instead of the above use below one.
Delete it_data-objek
Use the Below statement it will delete the row from the internal table.
Delete it_data-objek index tabix
Thanks,
Chidanand -
How to delete the record of saved HRA Details...
Hi Experts,
I have put the details of HRA Correctly.But while updating HRA In 0008 Infotype i wrongly updated the wagetype,How should i change the Wagetype.
When i m trying to delete it is showing RECORD CAN NOT BE DELETED (TIME CONSTRAINT 1).
How can delete the record.
Thanking u .
SaiHi
Hope doing well ........ No need to delete any infotype but u can go to PA30 and in change mode their u can delete the wagetype which is wrongly entered
Rajeshk -
How to show multipe records on a single record
Hi all,
I have a query which can contain 1 or Many records for each S.WAS_NO or APPL_NO even. A new record is created when the APPL_STATUS changes and a timestamp is created in APPL_STATUS_CHANGE_DATE.
select distinct
S.APPL_ID,
S.WAS_NO,
S.AS_STATUS,
S.STATUS_CHANGE_DATE,
dense_rank() over (partition by S.WAS_NO order by S.STATUS_CHANGE_DATE) rank
from table_a S, table b S2
where S.APPL_ID = S2.APPL_ID
order by S.WAS_NO, rank asc;
Current Results:
APPL_ID---WAS_NO---------------AS_STATUS----STATUS_CHANGE_DATE-----RANK
6628-------E4G0YL9B08V0V6---ASSIGNED-------25/10/2011----------------------1
6628-------E4G0YL9B08V0V6---USED--------------30/12/2011----------------------2
Desired Results:
APPL_ID--WAS_NO------------------AS_STATUS1----STATUS_CHANGE_DATE1----AS_STATUS2----STATUS_CHANGE_DATE2
6628-------E4G0YL9B08V0V6----ASSIGNED---------25/10/2011------------------------USED--------------30/12/2011The rank is based on the WAS_Number and ordered by the STATUS_CHANGE_DATE so i know which order they should go in.
I want to show 1 record per WAS_NO and show each status change with its date. There can only be a maximum of three status changes.
I have not been able to workout how to get Multiple records onto a singe record and in different columns.
Many thanksThis should do what you want:
WITH t AS
(SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'ASSIGNED' as_status, TO_DATE('25/10/2011', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'USED' as_status, TO_DATE('30/12/2011', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6628 appl_id, 'E4G0YL9B08V0V6' was_no, 'COMPLETE' as_status, TO_DATE('15/01/2012', 'DD/MM/YYYY') status_change_date FROM dual UNION ALL
SELECT 6629 appl_id, 'A5AAFG1C07L0P2' was_no, 'ASSIGNED' as_status, TO_DATE('19/01/2012', 'DD/MM/YYYY') status_change_date FROM dual)
SELECT appl_id,
was_no,
MAX(CASE rank
WHEN 1 THEN as_status
ELSE NULL
END) as_status1,
MAX(CASE rank
WHEN 1 THEN status_change_date
ELSE NULL
END) status_change_date1,
MAX(CASE rank
WHEN 2 THEN as_status
ELSE NULL
END) as_status2,
MAX(CASE rank
WHEN 2 THEN status_change_date
ELSE NULL
END) status_change_date2,
MAX(CASE rank
WHEN 3 THEN as_status
ELSE NULL
END) as_status3,
MAX(CASE rank
WHEN 3 THEN status_change_date
ELSE NULL
END) status_change_date3
FROM (SELECT appl_id,
was_no,
as_status,
status_change_date,
DENSE_RANK() OVER (PARTITION BY was_no ORDER BY status_change_date) rank
FROM t)
GROUP BY appl_id,
was_no -
HOw to view the records in a structure qaqee ?
hi every one ,
we can view the tble through SE16
HOw to view the records in a structure qaqee ?
Thanks in advanceHello,
Please check the link
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/90/8d7301b1af11d194f600a0c929b3c3/content.htm
You can view the struture in SE11 t-code for its components.
Regards,
Shailesh -
How to identify missing records in a single-column table?
How to identify missing records in a single-column table ?
Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.Something like:
WITH t AS (
SELECT 1 ID FROM DUAL UNION ALL
SELECT 2 ID FROM DUAL UNION ALL
SELECT 3 ID FROM DUAL UNION ALL
SELECT 5 ID FROM DUAL UNION ALL
SELECT 8 ID FROM DUAL UNION ALL
SELECT 10 ID FROM DUAL UNION ALL
SELECT 11 ID FROM DUAL
-- end of on-the-fly data sample
SELECT '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
FROM (
SELECT id,
lead(id,1,id + 1) over(order by id) next_id
FROM t
where id != next_id - 1
GAP
[4 - 4]
[6 - 7]
[9 - 9]
SQL> SY.
P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment. -
How to add a record in document library without upload file.
Hi,
how to add a record in document library without upload file?
Is it possible? I want to create a folders in Document Library but inside folders i do not want to upload a file instead of just i want to create a record. I will map my local file path to the records.
Can anyone help me on it?
Thanks & Regards
Poomani SankaranHello Sankaran,
document library is to upload documents, without document you will not be able to add a record or Item to it.
for your requirement you can use a list and enable folders within the list and maintain the local path of the file as an item in list.
http://www.sharepointbriefing.com/spconfig/article.php/3834951/Enable-the-New-Folder-Creation-Option-in-SharePoint-Custom-Lists.htm
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
How to delete duplicate records in 10 G.
how to delete duplicate records in 10 G.
--Here is one way to do it using a second table
create table temp1
(col1 char(1));
--Table created.
insert into temp1 (col1) values('A');
insert into temp1 (col1) values('B');
insert into temp1 (col1) values('B');
--1 row created.
--1 row created.
--1 row created.
create table temp2 as select distinct * from temp1;
--Table created.
--now you have a second table with no duplicates
--truncate your old table
truncate table temp1;
--Table truncated.
--and reload it with data from the new table
insert into temp1 select * from temp2;
--2 rows created.
--then drop the temp2 table
drop table temp2
Maybe you are looking for
-
Publishing KM content in portal
Hi, I need to upload and publish the templates (excel file)to the portal. I can able to upload the same in Content AdministrationàKMContentàFolderàNewàRight clickàUpload. But the same is not publishing in portal. As my requirement is to replace the o
-
How do I access my files saved in the cloud
Once I filled/edited files on acrobat, I am unable to print or save, but it shows that it's automatically saved in the Cloud. How do I access my files saved in the Cloud and how can I print the edited files?
-
TS1567 Why won't my iTunes connect with my iPhone?
I have tried connecting iTunes to my iPhone using my USB and others USB and computer? Everything is updated to date, a friend also has this problem... What can I do?
-
Can someone please tell me how to install actions into PSE 9
-
Building application with database
Hello Labviewers, I build some labview vis wich are functioning very well as long as I execute them in the labview environment. But when I use the application builder to build an exe file from it the programm can't access the database anymore. I use