Dulicacy of field values in the CSV file
Hi Experts
We are configuring a file to idoc scenario in which the file is a .csv txt file.
The format of the csv file is
NMI,BillNo,BillAmount,ContractAcc
There are instances where there is a duplicacy in the NMI & hence that needs to be filtered before sending it to PI.Any idea about how to filter this either at the source end or PI end.
Please throw some light in this.
Regards
Sabyasachi
Hi Sabyasachi,
Manually you will need to open the file put it into excel remove duplicate entries , again move that back again into text file. This method is a very dumb way of doing things.
A smarter way would be to write a module. The link given below is not a tailor made solution to your query but sufficient to get you started.
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
Regards
joel
Similar Messages
-
Need to take a value from the csv file and query in a OAF page.
Hello,
I have a requirement to take the list of employee numbers in a csv file and display its corresponding job on the page.
I have created a item 'MessageFileupload' where the user will upload the csv file containing the employee number and a Button 'Display Jobs' which will display the corresponding jobs on the page.
Any idea how to take the values from the csv file and query it?
Regards,
den123.Hi ,
Check
http://oraclearea51.com/contribute/post-a-blog-article/csv-file-upload-for-oa-framework.html
http://www.roseindia.net/jsp/upload-insert-csv.shtml
Below code works from above blogs.
package xx.oracle.apps.pa.Lab.webui;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
// import java.io.*;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAViewObjectImpl;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.jbo.domain.BlobDomain;
import oracle.cabo.ui.data.DataObject;
import oracle.jbo.Row;
* Controller for ...
public class deptCsvUploadCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
// Code Addition Started for CSV upload
OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
OAViewObjectImpl vo = (OAViewObjectImpl) am.findViewObject("deptCsvVO1");
//if ("GoBtn".equals(pageContext.getParameter(EVENT_PARAM)))
if (pageContext.getParameter("GoBtn") != null)
System.out.println("Button Pressed");
DataObject fileUploadData =(DataObject)pageContext.getNamedDataObject("FileUploadItem");
String fileName = null;
String contentType = null;
Long fileSize = null;
Integer fileType = new Integer(6);
BlobDomain uploadedByteStream = null;
BufferedReader in = null;
try
fileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
contentType =(String)fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
uploadedByteStream = (BlobDomain)fileUploadData.selectValue(null, fileName);
in = new BufferedReader(new InputStreamReader(uploadedByteStream.getBinaryStream()));
fileSize = new Long(uploadedByteStream.getLength());
System.out.println("fileSize"+fileSize);
catch(NullPointerException ex)
throw new OAException("Please Select a File to Upload", OAException.ERROR);
try{
//Open the CSV file for reading
String lineReader="";
long t =0;
String[] linetext;
while (((lineReader = in.readLine()) !=null) )
//Split the deliminated data and
if (lineReader.trim().length()>0)
System.out.println("lineReader"+lineReader.length());
linetext = lineReader.split(",");
t++;
//Print the current line being
if (!vo.isPreparedForExecution())
vo.setMaxFetchSize(0);
vo.executeQuery();
System.out.println("Trimmed "+ linetext[1].replace("\"", ""));
Row row = vo.createRow();
row.setAttribute("Deptno", linetext[0].trim());
row.setAttribute("Dname",linetext[1].trim().replace("\"", ""));
row.setAttribute("Loc",linetext[2].trim().replace("\"", ""));
//row.setAttribute("Column4", linetext[3].trim());
vo.last();
vo.next();
vo.insertRow(row);
catch (IOException e)
throw new OAException(e.getMessage(),OAException.ERROR);
//else if (pageContext.getParameter("Upload") != null)
am.getTransaction().commit();
throw new OAException("Uploaded SuccessFully",OAException.CONFIRMATION);
}Thanks,
Jit -
How to asssign output value in the CSV file for the specific header
Hi,
I am using OpenScript 9.10. The problem I am facing is that, to Write the Output value captured from the application, When i am trying to use the methods "Appen String to File" i am unable to write / assign the out put value below the specific header. Can any one please look into this and post the methods related to Write the output vaues in to the CSV files under specific headers.
Thanks in Advance.
Thanks.,
SivaHi Alex,
Thanks for your reply.I need to write the output value under specified parameter name.
for example after creating the sales order,the order number have to write in the CSV file under
OrderNumber column.I tried with appendStringtofille() method,by using this able to write the value under
first column.But i need to write output value under specified columnname(means Header name in the cSV
file).can u please give a reply for the above problem.
Note: In that Csv file i am taking the input vales and also need to write the output values under
specified column(header)
Thanks,
Siva Thota. -
Is there a way to name the .indd files created by a data merge with values in the CSV file
I have a data merge document that is set to single Record per Document page and 1 page per document. In my CSV file I have a field for Part Number. If I run a data merge with 10 records I end up with 10 .indd files. I need a way so that the resulting .indd files are named the same value that is in the Part Number field.
Loic has provided a link for my original piece, and I've written up some follow-up pieces for indesignsecrets.com:
http://indesignsecrets.com/data-merging-individual-records-separate-pdfs.php
http://indesignsecrets.com/data-merging-individual-records-separate-pdfs-part-2-scripting. php
So there are several ways to get unique name PDFs from an indesign Data Merge. However, none of these 3 articles will truly answer your question of how to get unique indesign filenames using the database. I can see a practical purpose for this as merging business cards directly to PDFs is great, but I can be guaranteed that while on proof, there will be alts to the business cards that need to be done outside the merge, meaning specific records need to be exported to indesign files for further manipulation. -
How to update a specific cell value in a CSV file.
Hi
I would like to know whether it is possible in openscript to update a cell value of the CSV file.
For example if the test script requires to update the cell of 6th row and 8th column, then how to achieve through openscript API?
Please kindly let me know.Hi,
Hope this helps!
Table table;
String[] rowvalus;
int targetRow=5,targetColumn=7;
* Note: Rows and columns are 0-based index.
table =utilities.loadCSV("C:\OracleATS\OFT\DataBank\Test.csv");
rowvalus=table.getRows().get(targetRow).getAll();
info("Before change :"+rowvalus[targetColumn]);
rowvalus[targetColumn]="NewValue";
utilities.saveCSV(table, "C:\OracleATS\OFT\DataBank\Test.csv", true);
table =utilities.loadCSV("C:\OracleATS\OFT\DataBank\Test.csv");
rowvalus=table.getRows().get(targetRow).getAll();
info("After change :"+rowvalus[targetColumn]);
Note:- Please first take the backup of your CSV file before using this code snippet
Thanks
-POPS -
How can I add form field value to the file name in save as dialog box
I do not want the form to be saved automatically, just want the form to auto populate the "file name" only.
A little background on the forms I want to use: My company has 70 retail outlets, I'll use one of our pdf forms called an "Incident Report" as an example. I would like for a store manager to be able to complete the form, then email the form to the main office (I already have javascript to add field values and form name to the email subject line), once the main office receives it, I want for them to be able to file the pdf electronically on our server. We have mutliple forms that we use so I do not want any of the forms to automatically save anywhere, (at this time anyway) I just want the office personnel to be able to click "save as" (or whatever they will need to click) and the form automatically add certain field values from the pdf they have received, of which will be different each time the form is sent to the office (Date, store #, employee name etc.) in addition to the name of the form in the "File name" of the "Save As" dialog box. The main office employees will decide into which server file the pdf should be saved.
I'm using Acrobat 8 professional, the stores and office personnel use Adobe reader.
One little note: We currently print and file a lot of paper on a daily bases, as soon as I can get this to work, we are going green.
Me and a lot of trees in this will really apprecitate any help you can give with this! :-)You might want to take a look at the document "Developing Acrobat Applications Using JavaScript" (js_developer_guide.pdf) which is part of the Adobe Acrobat SDK, which can be downloaded here. Read the "Privileged versus non-privileged context" (p. 45ff.). You will find an example for "Executing privileged methods in a non-privileged context". Should be almost exactly what you are looking for.
Small Outline: For security reasons ("the user always has to know what's going on") you are not allowed to use the "Doc.saveAs"-method without the user permission (--> in a non-privileged context). In order to reach the goal of a privileged context you can use a trusted function. You do this by creating a JavaScript file (*.js) in either the Application-JavaScript-Folder (default location on Windows systems: "%ProgramFiles%\Adobe\Acrobat 10.0\Acrobat\Javascripts") or the User-JavaScript-Folder (default location on Windows systems: "%AppData%\Adobe\Acrobat\10.0\JavaScripts"). Add the following content to the new file:
myTrustedBrowseForDoc = app.trustedFunction( function ( oArgs ) {
app.beginPriv();
var myTrustedRetn = app.browseForDoc( oArgs );
app.endPriv();
return myTrustedRetn;
myTrustedSaveAs = app.trustedFunction( function ( doc, oArgs ) {
app.beginPriv();
var myTrustedRetn = doc.saveAs( oArgs );
app.endPriv();
return myTrustedRetn;
The developer guide actually wants you to add this content to the existing "config.js" file. I recommend creating a new file, since its easier to deploy in a network. Either way, every client/user who needs to be able to save documents this way, needs this JavaScript Code in his Application/User-JavaScript-Folder.
Within the Acrobat Document, which you want to obtain a certain file name, you can now use the trusted functions "myTrustedBrowseForDoc" and "myTrustedSaveAs" to store the file. To call the trusted functions and deliver the file name you can either you use a form field (button) or you add a new menu item. Add the following JavaScript Action to the button/menu item and change "Roller Coaster" to the name of the field which contains the value which you want to become the new file name:
var fileName = this.getField("Roller Coaster").valueAsString;
try {
var oRetn = myTrustedBrowseForDoc({bSave: true, cFilenameInit: fileName + ".pdf"});
try {
myTrustedSaveAs(this, { cPath: oRetn.cPath, cFS:oRetn.cFS });
catch(e) {
console.println("Save not allowed, perhaps readonly.");
catch(e) {
console.println("User cancelled Save As dialog box");
Good Luck! -
How to write the char value as is in the CSV file
Hi Everyone,
I am creating csv files which contains inventory details for all the products. I am able to create the csv file with utl file concepts. My problem starts after the csv file is being created.
some of the product numbers(Though I am saying Product number, it is varchar2 data type in the table) is like this 3E-12, 3E-54 and so on. I have totally 23 product numbers like this.
When the user opens the csv file it is changing to numbers like this 3.00E-12, 3.00E-54. I want to keep the product number as it is like char value. I tried many quoting and concat methods.
But none of them works for me.
I am using oracle 9i.
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production
Please help me to solve this problem.
Thanks in advance,
Vimal...Hi Friends,
Thanks for the immediate response. Here is my code.
CREATE OR REPLACE PROCEDURE DATA_TO_CSV_FILE
IS
l_file_ptr UTL_FILE.file_type;
l_hdr_text VARCHAR2 (4000);
l_dynamic_sql_str VARCHAR2 (4000);
TYPE l_dynamic_sql IS REF CURSOR;
l_dynamic_cursor l_dynamic_sql;
l_org_id_select VARCHAR2 (200);
l_master_org_id NUMBER;
l_category VARCHAR2 (40);
l_itemno VARCHAR2 (40);
l_description VARCHAR2 (240);
l_brand VARCHAR2 (240);
l_organization_id NUMBER;
l_oh NUMBER;
l_status apps.mtl_system_items.inventory_item_status_code%TYPE;
BEGIN
l_file_ptr := UTL_FILE.fopen ('CSV_DIR', 'inventory.csv', 'w');
l_dynamic_sql_str :=
'SELECT mc.segment2 CATEGORY, itm.segment1 itemno '
|| 'itm.description description, LOG.brand brand,'
|| 'NVL (m.oh, 0) oh'
|| '(select msi.inventory_item_status_code from apps.mtl_system_items msi'
|| ' where msi.inventory_item_id = itm.inventory_item_id'
|| ' and msi.organization_id = '
|| l_master_org_id
|| ' ) status '
|| ' FROM xxx_custom_table m,'
|| ' apps.mtl_item_categories ic,'
|| ' apps.mtl_categories_b mc,'
|| ' apps.mtl_system_items itm,'
|| ' xxx_custom_table1 LOG,'
|| ' xxx_custom_table2 cap'
|| ' WHERE m.item_id(+) = itm.inventory_item_id'
|| ' AND m.org_id(+) = itm.organization_id'
|| ' AND itm.segment1 = cap.itemno(+)'
|| ' AND itm.inventory_item_id = ic.inventory_item_id'
|| ' AND itm.organization_id = ic.organization_id'
|| ' AND ic.category_id = mc.category_id'
|| ' AND mc.segment2 IS NOT NULL'
|| ' AND itm.inventory_item_id = LOG.inventory_item_id'
|| l_org_id_select
|| ' GROUP BY mc.segment2,'
|| ' itm.segment1,itm.inventory_item_id,itm.description,'
|| ' LOG.brand,LOG';
OPEN l_dynamic_cursor FOR l_dynamic_sql_str;
LOOP
FETCH l_dynamic_cursor
INTO
l_category, l_itemno, l_description, l_brand, l_status,l_oh;
EXIT WHEN l_dynamic_cursor%NOTFOUND;
UTL_FILE.put_line (
l_file_ptr,
l_CATEGORY
|| ','
|| l_itemno
|| ','
|| l_description
|| ','
|| l_status
|| ','
|| l_brand
|| ','
|| l_oh
END LOOP;
UTL_FILE.fclose (l_file_ptr);
END;
Hey damorgan,
Can you please give me little more detail about your workaround method. I think I did the ODBC Connection Once for MS ACCESS database. I
hope you are taking about the same method.
Thanks
Vimal.... -
CCM 2.0: Field price unit in the csv file
Hello Colleagues,
We have SRM 5.5 with CCM 2.0
We would like to know the name of the column field in the csv file to indicate the price unit. For example, we have articles that the price is 93 / 1.000 Units. We would like to know the name of the field in the csv file to enter 1.000 and if it is necessary some customization in the SRM to activate this field.
Thank-you.Hello Colleagues,
We have SRM 5.5 with CCM 2.0
We would like to know the name of the column field in the csv file to indicate the price unit. For example, we have articles that the price is 93 / 1.000 Units. We would like to know the name of the field in the csv file to enter 1.000 and if it is necessary some customization in the SRM to activate this field.
Thank-you. -
How to write the JTables Content into the CSV File.
Hi Friends
I managed to write the Database records into the CSV Files. Now i would like to add the JTables contend into the CSV Files.
I just add the Code which Used to write the Database records into the CSV Files.
void exportApi()throws Exception
try
PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
System.out.println("Connected");
stexport=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
rsexport=stexport.executeQuery("Select * from IssuedBook ");
ResultSetMetaData md = rsexport.getMetaData();
int columns = md.getColumnCount();
String fieldNames[]={"No","Name","Author","Date","Id","Issued","Return"};
//write fields names
String rec = "";
for (int i=0; i < fieldNames.length; i++)
rec +='\"'+fieldNames[i]+'\"';
rec+=",";
if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
writing.println(rec);
//write values from result set to file
rsexport.beforeFirst();
while(rsexport.next())
rec = "";
for (int i=1; i < (columns+1); i++)
try
rec +="\""+rsexport.getString(i)+"\",";
rec +="\""+rsexport.getInt(i)+"\",";
catch(SQLException sqle)
// I would add this System.out.println("Exception in retrieval in for loop:\n"+sqle);
if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
writing.println(rec);
writing.close();
}With this Same code how to Write the JTable content into the CSV Files.
Please tell me how to implement this.
Thank you for your Service
JofinHi Friends
I just modified my code and tried according to your suggestion. But here it does not print the records inside CSV File. But when i use ResultSet it prints the Records inside the CSV. Now i want to Display only the JTable content.
I am posting my code here. Please run this code and find the Report.csv file in your current Directory. and please help me to come out of this Problem.
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.table.*;
public class Exporting extends JDialog implements ActionListener
private JRadioButton rby,rbn,rbr,rbnore,rbnorest;
private ButtonGroup bg;
private JPanel exportpanel;
private JButton btnExpots;
FileReader reading=null;
FileWriter writing=null;
JTable table;
JScrollPane scroll;
public Exporting()throws Exception
setSize(550,450);
setTitle("Export Results");
this.setLocation(100,100);
String Heading[]={"BOOK ID","NAME","AUTHOR","PRICE"};
String records[][]={{"B0201","JAVA PROGRAMING","JAMES","1234.00"},
{"B0202","SERVLET PROGRAMING","GOSLIN","1425.00"},
{"B0203","PHP DEVELOPMENT","SUNITHA","123"},
{"B0204","PRIAM","SELVI","1354"},
{"B0205","JAVA PROGRAMING","JAMES","1234.00"},
{"B0206","SERVLET PROGRAMING","GOSLIN","1425.00"},
{"B0207","PHP DEVELOPMENT","SUNITHA","123"},
{"B0208","PRIAM","SELVI","1354"}};
btnExpots= new JButton("Export");
btnExpots.addActionListener(this);
btnExpots.setBounds(140,200,60,25);
table = new JTable();
scroll=new JScrollPane(table);
((DefaultTableModel)table.getModel()).setDataVector(records,Heading);
System.out.println(table.getModel());
exportpanel= new JPanel();
exportpanel.add(btnExpots,BorderLayout.SOUTH);
exportpanel.add(scroll);
getContentPane().add(exportpanel);
setVisible(true);
public void actionPerformed(ActionEvent ae)
Object obj=ae.getSource();
try {
PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
if(obj==btnExpots)
for(int row=0;row<table.getRowCount();++row)
for(int col=0;col<table.getColumnCount();++col)
Object ob=table.getValueAt(row,col);
//exportApi(ob);
System.out.println(ob);
System.out.println("Connected");
String fieldNames[]={"BOOK ID","NAME","AUTHOR","PRICE"};
String rec = "";
for (int i=0; i <fieldNames.length; i++)
rec +='\"'+fieldNames[i]+'\"';
rec+=",";
if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
writing.println(rec);
//write values from result set to file
rec +="\""+ob+"\",";
if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
writing.println(rec);
writing.close();
catch(Exception ex)
ex.printStackTrace();
public static void main(String arg[]) throws Exception
Exporting ex= new Exporting();
}Could anyone Please modify my code and help me out.
Thank you for your service
Cheers
Jofin -
How to align the CSV file on upload?
Hi All,
I have to upload a CSV file as an attachment in a mail and the data's in the internal table which has to be uploaded in the CSV file are seperated using commas which on uploading appear in the CSV file in the same column but i need the data's to be seperated in different columns and different lines...
Pls help it is very urgent..
Thanks in Advance...Hi
For my understanding you are talking about download.
For that you have to concatenate each fields of final internal table (gt_itab for example) using comma as below.
TYPES: BEGIN OF ty_lines,
line(1023) TYPE c,
END OF ty_lines.
DATA: l_filename TYPE string VALUE 'C:\temp\abcd.csv',
gt_lines TYPE TABLE OF ty_lines,
gw_lines TYPE ty_lines.
LOOP AT gt_itab INTO gw_itab.
CONCATENATE gw_itab-f1
gw_itab-f2 .....
INTO gw_lines-line
SEPARATED BY ','.
APPEND gw_lines TO gt_lines.
ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = l_filename
filetype = 'ASC'
confirm_overwrite = 'X'
no_auth_check = 'X'
TABLES
data_tab = gt_lines. -
Hi,
I have data in csv file. I need to read the data from that file and at the same time i need to omit first row(ie column header). How can i do this...?
Please help me....asap
Thanks in advance....BluShadow wrote:
Nuerni wrote:
Just read-in the csv-file line by line and dismiss the first line; use a tokenizer for each line to get the semicolon-delimited field of every line; now fill your record/table or anything else with the tokens...
There's an tokenizer-example in this forum I've posted recently:
Re: Comma separated values to columns
That's a lot of hard work to achieve something that is built into SQL*Loader and External Tables. All that's needed is the SKIP <n> keyword included in the control definition for those.You're right!
If SQL*Loader and External Tables is an available option for SHAN01 then try use it; if not then I would consider the tokenizer-method... -
What are all the fields covered in the Raw file received from the Card Co
Hi Experts,
I want to know what are all the fields covered in the Raw file received from the credit card company say AMEX before uploading the data into ASP system i.e. CCD format file to be uploaded in T-Code PRCC
Some of the fields I know:
1. Name of the Employee
2. Company ID
3. Credit card number
4. Currency
5. Amount
6. Exchange rate
7. Date of Transaction
8. Description
9. Document no.
10. Expense type
11. Expenses paid by company
Waiting for a positive response from your side
Regards,Hi
The below mention is the possible values/records will be received from Banks regarding credit card expenses
ORGANIZATION / HIERARCHY HEADER RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY NAME
COMPANY ID
SUB COMPANY ID
EFFECTIVE / FILE DATE
CCF VERSION
COMPANY NUMBER
TRANSACTION POSTING DATE START
TRANSACTION POSTING DATE END
FILLER
TRX CONTROL DATA
ORGANIZATION / HIERARCHY DETAIL RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
CORP PARENT NODE
CORP CHILD NODE
PAST DUE BUCKETS RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
STATEMENT DATE
AMOUNT PAST DUE
30 DAYS PAST DUE
60 DAYS PAST DUE
90 DAYS PAST DUE
120 DAYS PAST DUE
150 DAYS PAST DUE
180 DAYS PAST DUE
180 PLUS DAYS PAST DUE
PREVIOUS BALANCE
FILLER
TRX CONTROL DATA
CARDHOLDER HIERARCHY RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
NODE ID
ACCOUNT NUMBER
FILLER
TRX CONTROL DATA
ACCOUNT HEADER RECORD 1
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
PROCESSOR
ACCOUNT NUMBER
ACCOUNT TYPE
LAST NAME
CARDH FIRST NAME
CARDH MIDDLE NAME
ADDRESS LINE1
ADDRESS LINE2
ADDRESS LINE3
ADDRESS LINE4
ADDRESS LINE5
CITY
STATE / COUNTY/ PROVINCE
POSTAL CODE
COUNTRY
NATIONAL ID
TELEPHONE NUMBER
WORK PHONE NUM
ID VERIFICATION CODE
DATE OF BIRTH
CYCLE CODE
FAX NUMBER
E MAIL ADDRESS
EMPLOYEE ID
CLIENT ID / CUSTOMER NUMBER
CUSTOMER VAT NUMBER
TITLE
STMT DATE
GENDER
FILLER
TRX CONTROL DATA
MAIN TRANSACTION RECORD
FIELD NAME
RECORD TYPE
TYPE INDICATOR
COMPANY ID
SUB COMPANY ID
CBS TR RUN DATE
ACCOUNT NUMBER
TRANS DATE
TRANS TIME
POST DATE
FILLER
AUTH REQUIRED
AUTH ID
CONVERS DATE
POS ENTRY
POS COND CODE
ACQUIRER ID
REFERENCE NUM
TRACE NUMBER
FILLER
TRANS ID
MCC
MCC INFO DATA
MERCH ACCEPTOR ID
MERCH DESCRIPTION
MERCHANT CITY
MERCHANT STATE / PROVINCE
MERCHANT POSTAL CODE
MERCH COUNTRY
MERCHANT VAT NUMBER
MERCH DESC FLAG
MERCHANT REFERENCE NUMBER
SOURCE CURRENCY
SOURCE AMOUNT
BILLING CURRENCY
BILLING AMOUNT
SETTLEM CURRENCY
SETTLEM AMOUNT
US DOLLAR CURR
US DOLLAR AMT
GB POUND CURR
GB POUND AMT
EURO CURRENCY
EURO AMOUNT
ASIA YEN CURR
ASIA YEN AMT
SWED KRON CURR
SWED KRON AMT
CANADIAN CURR
CANADIAN AMT
CONVERSION RATE
DB CR FLAG
MEMO FLAG
CORP ACCT NO
SALES TAX
SALES TAX FLAG
VAT TAX
VAT TAX FLAG
PURCHASE ID
PURCH ID FLAG
TRAN TYPE
NO OF ADDENDUMS
VISA_MCI TRAN CODE
ADDENDUM KEY
TICKET NUMBER
MSG TYPE
FILLER
VAT EVIDENCE FLAG
CUSTOMER REFERENCE NUMBER
DISCOUNT AMOUNT
MESSAGE ID
SUMMARY COMMODITY CODE
CUSTOMER VAT NUMBER
FILLER
TRX CONTROL DATA
The above mentioned is Just 50% of data will be received form the banks. Still footer details have to added.
Thanks,
Nandagopal C
Edited by: Nandagopal Chiranjeevi on Feb 6, 2009 5:40 AM -
How to dynamically and selectively update DSO based on values in a csv file
Hi,
I'm loading a csv file into a DSO. When loading the flat file in FULL mode I need to do a pseudo delete of records that were previously loaded but are not in the new flat file.
Is it possible to dynamically determine the unique set of records (say Pk1, Pk2, Pk3) in the csv file and then set all the corresponding DSO records' quantities to 0 - maybe in a start routine?? After that, I can load the csv file with the correct quantities (effectively update and inserts). The net result should be that the change log only be updated through to the next DSO.
Example: Load 10 records yesterday. Today reload 9 records. 10th records must have quantity set to 0. Other 9 records will have quantity values set to those in today's csv file - some will be the same & some will be different. The net change log of all 10 records must be loaded into the next DSO.
Any suggestions on how to do this logic?
Thanks!Hi Gregg,
You can create one transformation from the DataStore to itself. In the "Technical" rules group, set 0RECORDMODE = 'X' (before image) or 'R' (reverse). Therefore, when you execute its corresponding DTP, all existing records shouldl be set to zero.
Then, as a second step, you can execute the DTP which is related to the transformation between the DataStore and the DataSource, thus loading the new records.
I hope this helps you.
Regards,
Maximiliano -
How to export out the date into the csv file?
Hi, I had been trying to export out the value of the date to csv file.
This is the script:
$strADPath = 'LDAP://dc=test,dc=com'
function ConvertLargeIntegerToDate([object]$LargeInteger){
try
$int64 = ConvertLargeIntegerToInt64 ($LargeInteger)
if ($int64 -gt 0)
$retDate = [datetime]::fromfiletime($int64)
else
$retDate = $null
return $retDate
catch
return $null
$objSearch = New-Object DirectoryServices.DirectorySearcher
$objSearch.Filter = '(&(objectClass=user)(samaccountname=user1))'
$objSearch.SearchRoot = $strADPath
$objSearch.PageSize = 1000
$objSearch.SearchScope = "subtree"
$objResults = $objSearch.Findall()
$dateAccountExpires = ConvertLargeIntegerToDate $objUser.accountexpires[0]
Write-Host "date Account expires: " $dateAccountexpires
$objResults| ForEach-Object{
$_.GetDirectoryEntry()
} |
Select-Object -Property @{Name="sAMaccountName";Expression={$_.sAMAccountName}},
@{Name="cn";Expression={$_.cn}},
@{Name="name";Expression={$_.name}},
@{Name="manager";Expression={$_.manager}},
@{Name="givenName";Expression={$_.givenName}},
@{Name="accountExpires";Expression={$_.dateAccountExpires}},
@{Name="department";Expression={$_.department}} |
Export-Csv -Path 'D:\test44.csv'
This is what I get in PowerShell ISE:
This is what I had get for the csv file for the expire date:hi FWN,
the code had giving me error saying that it could not call method on a null-value expression.
$temp = $_.Properties
the code had gave error saying that it could not call method on a null-value expression.
$properties | %{ $res.$_ = $temp.Item($_) }
the code had gave error saying that it could not call method on a null-value expression.
with lot of thanks
noobcy -
VISA: How to get the CSV file through C/C++ code?
How to get the CSV file through C/C++ code?
I'm communicating with a USB oscilloscope using VISA.Thank you for your reply.
I am using Apache Commons File Upload. Here is the code where I got the "fi".
DiskFileUpload fu = new DiskFileUpload();
fu.setSizeMax(1000000000);
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
FileItem fi = (FileItem)itr.next();
if(!fi.isFormField())
File tempFileRef = new File(fi.getName());
System.out.println("Field = "+tempFileRef.getAbsolutePath());
}
Maybe you are looking for
-
Hello , I am working on oracle 11g R2 on AIX. One query was performing good around 20 sec. but suddenly it took more then 15 min. We check that the sql executoin plan changes , it showing that order of operation changed like order of using indexes is
-
I have a brand new ipod touch and it wont connect to itunes or my computer!!??
I have a brand new ipod touch however when I connect it to my computer, itunes does not recognise it and neither does my computer. The drivers have downloaded and are showing working. I have tried uninstalling and re-installing itunes as discussed in
-
Dear Gurus, Can anyone explain me the stock status after the Consignment Return happens. For example : Company A is doing the Consignment Fill up of 100 nos to Customer B and Consingment Issue happend for 50 nos where as Customer B returned 10 nos a
-
Skipping to a specific place in a recursive function
I wrote a recursive function that recurses Adding times, then calls go (). The entire function will call go () billions of times. When I call this function, I want to only run go () 5,000,000 times. It should run the first 5,000,000 go's if the Part
-
Here drive not working....
Had some problem to so i started factory reset on my mbile... it worked like a charm... but now the problem is that the Here Drive is not working... When i try to install it it shows that your phone doesn't support this app, and on the app store on m