Cs3 Indesign problem - Pulling incorrect data from an .xlsm file.. please help

Hello,
I am hoping someone can provide me some answers here, as this problem has stumped me for a couple of days now.
I am using Adobe Indesign Cs3 - and I have been pulling excel tables into the .indd file with no problem. However, I had to upragde my version of 2003 excel, to the newer 2007 version, which inlcluded having to update the base excel files to .xlsm from their previous .xls versions.
I did not change anything else with the files.. simply used 'save as' to update the files.
After the upgrade, I relinked all instances of tables for the .indd file, and all seemed to be fine. Except when I look at anything that was pulled in as a date, is now pulling in 4 years and one day behind what it is written as in the .xlsm file it is being pulled from.
It doesnt make any sense to me how Indesign can be pulling in figures differently than how they are written in the Excel file it is pulling the data from.
Hopefully this makes sense, and someone will be able to help me here
Thanks
J

Aye.. the reason I have had to upgrade the excel files is because of the column limit in the .xls format. 2003 excel files will only allow columns up until the IV limit.. and my data now goes past that.
Since Indesign seems to have a huge problem trying to draw excel data/tables from anything other than 1 worksheet in an excel file, Ive had to try and create an .xlsx or .xlsm file to give me the extra columns I need for my data.
As for changing my source files.. that would be fine. Ive tried a few things with the dates, but nothing I've tried has worked so far. It reeks of a 1904 date system problem, becuase of the exact 4 years and one day off that indesign is pulling in (if you are familar with the 1904 date setting in excel, you will undertsand what Im saying) but why indesign is pulling in different data than what is visible in the source file is beyond me.
Example, the source file has a date: July 15, 2010. Indesign is pulling in July 14, 2006.
It is really bizzare.

Similar Messages

  • My iphone 5 was recently stolen. I had the service shut off, but I don't know how to remotely wipe out my data from my phone! Please help!!

    My iphone 5 was recently stolen. I had the service shut off, but I don't know how to remotely wipe out my data from my phone! Please help!!

    YOu can only do that if you had find my iphone setup and activated prior to having your phone stolen.
    Then you log into icloud.com to remote wipe, but your phone has to be connect to wifi or cellular data to do that.

  • Indesign CS3-JS - Problem in reading text from a text file

    Can anyone help me...
    I have an problem with reading text from an txt file. By "readln" methot I can read only the first line of the text, is there any method to read the consecutive lines from the text file.
    Currently I am using Indesign CS3 with Java Script (for PC).
    My Java Script is as follows........
    var myNewLinksFile = myFindFile("/Links/NewLinks.txt")
    var myNewLinks = File(myNewLinksFile);
    var a = myNewLinks.open("r", undefined, undefined);
    myLine = myNewLinks.readln();
    alert(myLine);
    function myFindFile(myFilePath){
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File(myScriptFile);
    var myScriptFolder = myScriptFile.path;
    myFilePath = myScriptFolder + myFilePath;
    if(File(myFilePath).exists == false){
    //Display a dialog.
    myFilePath = File.openDialog("Choose the file containing your find/change list");
    return myFilePath;
    function myGetScriptPath(){
    try{
    myFile = app.activeScript;
    catch(myError){
    myFile = myError.fileName;
    return myFile;
    Thanks,
    Bharath Raja G

    Hi Bharath Raja G,
    If you want to use readln, you'll have to iterate. I don't see a for loop in your example, so you're not iterating. To see how it works, take a closer look at FindChangeByList.jsx--you'll see that that script iterates to read the text file line by line (until it reaches the end of the file).
    Thanks,
    Ole

  • I have a problem to  extract data from oracle dump file (.dmp) using oracle database or any other tools.

    There is IMP utility which provides me data as graphical way. But i need extract data in such a way so that i could able to use in my application.
    thanks,
    mohan

    Hi,
    EdStevens
    Actually I was using SQL Developer. Sorry for the wrong define question. Now the real problem is:
    I want to read or extract data in a txt file from Oracle Dump (.dmp) file without using Oracle sqlPlus or Oracle Database.
    No need to say that i am able to extract dump data using sqlPlus. But for that, there is a little burden to install oracle database
    or sql Developer.
    I also listen about Oracle Loader a little bit. Is it a tool for providing extraction of data from Oracle dump file.
    Thanks for your previous reply,
    And now waiting for your suggestion.
    thanks,
    mohan

  • Problem while retreiving data from a text file

    AOA
    I tried to retreive text from a .txt file.
    By using following code, i get junk box after every character retreived. What may be the reason.
    public void run()
    try
    FileReader reader = new FileReader(uidsFile);
    BufferedReader bin = new BufferedReader(reader);
    while((line = bin.readLine()) != null )
    String uid =line;// line.substring(0,4);
    System.out.println(uid.trim());
    catch(Exception x)
    JOptionPane.showMessageDialog(null ,
    x.getStackTrace(),
    JOptionPane.INFORMATION_MESSAGE);
    }

    The reason would be that that is what your text file looks like (namely UTF-16) while you use a FileReader without specifying any encoding, which means that it will choose your platform default - which is not UTF-16.

  • Having problem saving an iamge into a BMP file, please help!

    I'm writing a class to read an BMP image and output it again into another BMP file.
    After searching on the forum i have found some code for reading and writing bmp files, i put them togather to make up this class, however, the output bmp file is not correct, can anyone look at my code and tell me wots wrong? thanks!
    public class BMP {
    byte bf[]=new byte[14];
    //     private byte bitmapFileHeader [] = new byte [14];
    byte bi[]=new byte[40];
         public Image BMPReader(String filePath){
              Image image = null;
         try{
         FileInputStream fs=new FileInputStream(filePath);
         fs.read(bf,0,14); //Reads the 14byte fileheader      
         fs.read(bi,0,40); //reads the 40byte infoheader
         int nwidth=(((int)bi[7]&0xff)<<24) //pic width
         | (((int)bi[6]&0xff)<<16)
         | (((int)bi[5]&0xff)<<8)
         | (int)bi[4]&0xff;
         int nheight=(((int)bi[11]&0xff)<<24) //pic height
         | (((int)bi[10]&0xff)<<16)
         | (((int)bi[9]&0xff)<<8)
         | (int)bi[8]&0xff;
         int nbitcount=(((int)bi[15]&0xff)<<8) | (int)bi[14]&0xff;
         //pic size
         int nsizeimage=(((int)bi[23]&0xff)<<24)
         | (((int)bi[22]&0xff)<<16)
         | (((int)bi[21]&0xff)<<8)
         | (int)bi[20]&0xff;
         //parse 24bit bmp
         if(nbitcount==24){
         int npad=(nsizeimage/nheight)-nwidth*3;
         int ndata[]=new int[nheight*nwidth];
         byte brgb[]=new byte[(nwidth+npad)*3*nheight];
         fs.read (brgb,0,(nwidth+npad)*3*nheight);
         int nindex=0;
         for(int j=0;j<nheight;j++){
         for(int i=0;i<nwidth;i++){
         ndata [nwidth*(nheight-j-1)+i]=
         (255&0xff)<<24
         | (((int)brgb[nindex+2]&0xff)<<16)
         | (((int)brgb[nindex+1]&0xff)<<8)
         | (int)brgb[nindex]&0xff;
         nindex+=3;
         nindex+=npad;
         Toolkit kit=Toolkit.getDefaultToolkit();
         image=kit.createImage(new MemoryImageSource(nwidth,nheight,
         ndata,0,nwidth));
         else
              JOptionPane.showMessageDialog(null, "The choosen BMP image is not 24bit" +
                        "only 24bit bitmap is supported for BMP image.",
                   "Invalid image", 0);
              image=(Image)null;
         fs.close();
         }catch (Exception e){
         System.out.println(e);
         return image;
    //     --- Private constants
         private final static int BITMAPFILEHEADER_SIZE = 14;
         private final static int BITMAPINFOHEADER_SIZE = 40;
         //--- Private variable declaration
         //--- Bitmap file header
         private byte bitmapFileHeader [] = new byte [14];
         private byte bfType [] = {'B', 'M'};
         private int bfSize = 0;
         private int bfReserved1 = 0;
         private int bfReserved2 = 0;
         private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
         //--- Bitmap info header
         private byte bitmapInfoHeader [] = new byte [40];
         private int biSize = BITMAPINFOHEADER_SIZE;
         private int biWidth = 0;
         private int biHeight = 0;
         private int biPlanes = 1;
         private int biBitCount = 24;
         private int biCompression = 0;
         private int biSizeImage = 0x030000;
         private int biXPelsPerMeter = 0x0;
         private int biYPelsPerMeter = 0x0;
         private int biClrUsed = 0;
         private int biClrImportant = 0;
         //--- Bitmap raw data
         private int bitmap [];
         //--- File section
         private FileOutputStream fo;
         //--- Default constructor
         public void saveBitmap (String parFilename, Image parImage, int
         parWidth, int parHeight) {
         try {
         fo = new FileOutputStream (parFilename);
         save (parImage, parWidth, parHeight);
         fo.close ();
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * The saveMethod is the main method of the process. This method
         * will call the convertImage method to convert the memory image to
         * a byte array; method writeBitmapFileHeader creates and writes
         * the bitmap file header; writeBitmapInfoHeader creates the
         * information header; and writeBitmap writes the image.
         private void save (Image parImage, int parWidth, int parHeight) {
         try {
         convertImage (parImage, parWidth, parHeight);
         writeBitmapFileHeader ();
         writeBitmapInfoHeader ();
         writeBitmap ();
         System.out.println("finished");
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * convertImage converts the memory image to the bitmap format (BRG).
         * It also computes some information for the bitmap info header.
         private boolean convertImage (Image parImage, int parWidth, int parHeight) {
         int pad;
         bitmap = new int [parWidth * parHeight];
         PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
         bitmap, 0, parWidth);
         try {
         pg.grabPixels ();
         catch (InterruptedException e) {
         e.printStackTrace ();
         return (false);
         pad = (4 - ((parWidth * 3) % 4)) * parHeight;
         biSizeImage = ((parWidth * parHeight) * 3) + pad;
         bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
         BITMAPINFOHEADER_SIZE;
         biWidth = parWidth;
         biHeight = parHeight;
         return (true);
         * writeBitmap converts the image returned from the pixel grabber to
         * the format required. Remember: scan lines are inverted in
         * a bitmap file!
         * Each scan line must be padded to an even 4-byte boundary.
         private void writeBitmap () {
         int size;
         int value;
         int j;
         int i;
         int rowCount;
         int rowIndex;
         int lastRowIndex;
         int pad;
         int padCount;
         byte rgb [] = new byte [3];
         size = (biWidth * biHeight) - 1;
         pad = 4 - ((biWidth * 3) % 4);
         if (pad == 4) // <==== Bug correction
         pad = 0; // <==== Bug correction
         rowCount = 1;
         padCount = 0;
         rowIndex = size - biWidth;
         lastRowIndex = rowIndex;
         try {
         for (j = 0; j < size; j++) {
         value = bitmap [rowIndex];
         rgb [0] = (byte) (value & 0xFF);
         rgb [1] = (byte) ((value >> 8) & 0xFF);
         rgb [2] = (byte) ((value >> 16) & 0xFF);
         fo.write (rgb);
         if (rowCount == biWidth) {
         padCount += pad;
         for (i = 1; i <= pad; i++) {
         fo.write (0x00);
         rowCount = 1;
         rowIndex = lastRowIndex - biWidth;
         lastRowIndex = rowIndex;
         else
         rowCount++;
         rowIndex++;
         //--- Update the size of the file
         bfSize += padCount - pad;
         biSizeImage += padCount - pad;
         catch (Exception wb) {
         wb.printStackTrace ();
         * writeBitmapFileHeader writes the bitmap file header to the file.
         private void writeBitmapFileHeader () {
         try {
         fo.write (bfType);
         fo.write (intToDWord (bfSize));
         fo.write (intToWord (bfReserved1));
         fo.write (intToWord (bfReserved2));
         fo.write (intToDWord (bfOffBits));
         catch (Exception wbfh) {
         wbfh.printStackTrace ();
         * writeBitmapInfoHeader writes the bitmap information header
         * to the file.
         private void writeBitmapInfoHeader () {
         try {
         fo.write (intToDWord (biSize));
         fo.write (intToDWord (biWidth));
         fo.write (intToDWord (biHeight));
         fo.write (intToWord (biPlanes));
         fo.write (intToWord (biBitCount));
         fo.write (intToDWord (biCompression));
         fo.write (intToDWord (biSizeImage));
         fo.write (intToDWord (biXPelsPerMeter));
         fo.write (intToDWord (biYPelsPerMeter));
         fo.write (intToDWord (biClrUsed));
         fo.write (intToDWord (biClrImportant));
         catch (Exception wbih) {
         wbih.printStackTrace ();
         * intToWord converts an int to a word, where the return
         * value is stored in a 2-byte array.
         private byte [] intToWord (int parValue) {
         byte retValue [] = new byte [2];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
         return (retValue);
         * intToDWord converts an int to a double word, where the return
         * value is stored in a 4-byte array.
         private byte [] intToDWord (int parValue) {
         byte retValue [] = new byte [4];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
         retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
         retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
         return (retValue);
    }

    You dont have to write a whole program to read and write BMP files, rather I would recommend you to use latest version of JAVA.
    Java version 5 supports reading and writing of BMP images :)
    File file = new File("walkleft.bmp");
    BufferedImage bi = ImageIO.read(file);   // Here u can read bmp images
    ImageIO.write(BufferedImage, "bmp", new File("newimage.bmp"); //Same way you can write themCheers

  • Having trouble with reading hex from an input file - please help

    Hi, I have a txt file with rows of hex, and I need to read each line and add it to an int array. So far I have:
    BufferedReader fileIn = new BufferedReader(new FileReader("memory.txt"));
                    int count = 0 ;
                    String temp = fileIn.readLine();
                    int file_in = Integer.parseInt(temp) ;
                    while(temp!=null) {
                         data[count] = file_in;
                         temp = fileIn.readLine();
                         file_in = Integer.parseInt(temp,16);// Integer.parseInt() ;
                         count++ ; /* increment counter */
                    } memory.txt:
    4004000
    4008000
    3FDF4018
    4108200
    3C104001
    FFFFFFE8
    4010C6C0
    FFFFFFE8
    94000000The above code crashes on the third input (my guess is becuase there are letters in and it can't parseInt letters.
    I think I need to parse it into an array of chars instead, however I don't know how to get from the string (temp) to the char array.
    can anyone help?

    ok turns out it's just a null pointer exception on the data[count] line, becuase I've only initialised the first two slots of data. i didn't see it before becase it was just throwing an error and i never printed it out.
    here's how I've defined data:
    in the class
    int[] data;just before the code to input the file data:
    for ( int i = 0; i < length; i++ )       
                    data [ i ] = 0;thinking this shoudl go through all the array and initialise it. but it gives a NullPointerException on the data=0; line.
    any ideas?
    Edited by: rudeboymcc on Feb 6, 2008 10:50 PM
    Edited by: rudeboymcc on Feb 6, 2008 10:51 PM

  • HT1473 I recently had to restore my laptop back to factory settings and lost my itunes music. I have imported all my cds again but i have some music on my ipad mini and am having problems importing this back into my itunes file. please help as this is dri

    I have recently reset my laptop to factory settings and whilst doing so have lost my music files. I have uploaded my cds but am having trouble moving music from my ipad mini back to music file or itunes.

    iTunes sync is one way from iTunes library to an iOS device.
    You will need third party software such as TouchCopy to transfer from iOS to your computer.

  • Report is not pulling the data from multiprovider in BI 7.0

    Hi BW gurus,
    We have upgraded our BW systems from 3.5 to BI 7.0.
    According to our requirement we did some modifications(added some new cubes) to existing multiprovider. All the objects and assignments looks good in the multiprovider.
    We are facing a problem while executing the reports, report is not pulling any data from the particular multiprovider but I can see the data from the multiprovider.
    For any selection creteria we are getting the msg like "No applicable data found".
    Created a sample query with only two chars and two KF's no conditions, no exceptions still the report is not populating any data for any selection creteria.
    Appreaciate for your help in this regard.
      -BK

    Hi
    Deactivate the aggregates and then rebuild the indexes and then activate the aggregates again.
    GTR

  • Pulling output data from .txt file

    Hello, I am trying to have a program that allows a user to input shopping items into the program andhave that input go to a .txt file called shoppinglist, then after the user is finished, he/she can type no to stop entering items to the list and the program will then pull all the info entered to the .txt file and output it to the screen, creating a shooping list for the user. My problem is that I am not quite sure how to output the data from the .txt file to the screen. Here is my code.
    import java.io.*; // uses the java io library for the
    import java.util.*; // BufferedReader class
    public class week5
    public static void main(String [] args)
    PrintWriter inputItems = null;
    try
    inputItems = new PrintWriter(new FileOutputStream("shoppinglist.txt"));
    BufferedReader outputItems = null;
    String line = null;
    outputItems = new BufferedReader(new FileReader("shoppinglist.txt"));
    line = outputItems.readLine();
    outputItems.close();
    catch(FileNotFoundException e)
    System.out.println("File file.txt not found");
    System.out.println("or could not be opened.");
    catch(IOException e)
         System.out.println("Error reading from file file.txt.");
    System.out.println("This program will create a shopping list:");
    String keepGoing = "yes";
    String item = null;
    Scanner keyboard = new Scanner(System.in);
    for (int count = 1; count < 999 && keepGoing.equalsIgnoreCase("yes");count++)
    //ask for input, write it to a file
    System.out.print("Please enter item # " + count + ": ");
    System.out.print("");
    item = keyboard.nextLine();
    inputItems.println(count + " " + item);
    //ask if you want to keep going
    System.out.print("Do you wish to enter more items (yes/no): ");
    System.out.print("");
    keepGoing = keyboard.nextLine();
    System.out.println("Your shopping list contains: " + item);
    System.out.print("");
    inputItems.close();
    } All the above does is output the last item entered by the user, not the whole shopping list. Any help is greatly appreciated.

    nim_ramesh wrote:
    outputItems = new BufferedReader(new FileReader("shoppinglist.txt"));
    /* I think u want to print the text here so */
    line = outputItems.readLine(); // Replace this line with that while loop
    outputItems.close();
    He hasn't even read the user input at that point.
    OP, you need to sit down and think about the exact order you want to do things in, and rewrite your code in a logical straightforward manner. It looks like you just threw some code in hoping it would work, instead of coding deliberately. I'm not insulting you or anything, I know you're new to Java. I'm just trying to give you some advice. Look at your code, and ask yourself why the following line of code appears before you've even written anything to your file:
    line = outputItems.readLine();

  • Help pulling off data from HD

    Trying to recover data from old iMac CRT HD.
    Problematic old iMac CRT System 9.2, Multimedia version. CD not functioning to burn data, OS freezes when attempting to copy off large amounts of data.
    I tried booting this as FIREWIRE DRIVE, connecting with firewire 400 to System 10.4.11 MacBook firewire 400, (holding "T" rebooting), yet it just reboots/restarts -but not as Firewire drive.
    Can I use a USP FLASH DRIVE in USP/1 port to pull out data from old Mac HD, or will System 9.2 require driver, will this work?
    OR can I attach firewire 400 external formatted with System 10.4.x to this old iMac with System 9.2.x?
    OR... can System 9.2.x publish/share to Macbook 10.4.11?
    What do you suggest? I hate to go through added expense to have old HD physically removed, and pull data that way. THANKS< Mark

    UncleMarky08 wrote:
    Trying to recover data from old iMac CRT HD.
    Problematic old iMac CRT System 9.2, Multimedia version. CD not functioning to burn data, OS freezes when attempting to copy off large amounts of data.
    This is worrisome. You may have a problem with the hard drive. I suggest you try Disk First Aid.
    hd > applications > utilities
    I tried booting this as FIREWIRE DRIVE, connecting with firewire 400 to System 10.4.11 MacBook firewire 400, (holding "T" rebooting), yet it just reboots/restarts -but not as Firewire drive.
    this should work. You may need the latest firmware to be installed. I seem to recall that the target disk mode was added via a firmware update. Do you have a firmware password?
    You need to figure out the level of your firmware before installing 10.2 or greater. ( The PC name for firmware is BIOS. ) Installing 10.2 with a down level firmware will most likely make your iMac unusable and difficult to fix.
    Figuring out what level of firmware you have?
    1) Mac OS 9.x or 8.x, you need to use the Apple System Profiler.
    Apple -> Apple System Profiler
    2) Open Firmware, boot into Open Firmware.
    Power on your iMac while holding down commandoption+of
    The first output line contains the firmware level. Mine reads:
    Apple PowerMac4,1 4.1.9f1 BootRom built on 09/14/01 at 13.18.04
    Copyright 1994-2001 Apple Computer Inc.
    On my machine, I have 4.1.9f1.
    What firmware do you need?
    http://docs.info.apple.com/article.html?artnum=86117
    For a slot loading iMac, this article indicates that you need to be running 9.1 or later version of Mac OS Classic.
    http://docs.info.apple.com/article.html?artnum=75130
    "The iMac Firmware Update 4.1.9 will only run on iMac computers with lot-loading CD or DVD drives running Mac OS 9.1 or later from a local drive. If you are using Mac OS X you must boot from a local Mac OS 9.1 or later writeable partition (not a CD, or network disk) prior to following the update instructions."
    You can download the Mac OS 9 updates from the Apple site.
    http://support.apple.com/kb/HT1387?viewlocale=en_US
    Can I use a USP FLASH DRIVE in USP/1 port to pull out data from old Mac HD, or will System 9.2 require driver, will this work?
    This worked for me. the driver is included in the extension folder. I was not able to format the flash drive with 9.2 drive utility. I suggest you format the flash drive to Mac OS standard.
    OR can I attach firewire 400 external formatted with System 10.4.x to this old iMac with System 9.2.x?
    You would need to have the latest firmware installed. otherwise, problems with the video display would occur.
    OR... can System 9.2.x publish/share to Macbook 10.4.11?
    you can set up an FTP server client.
    I wasn't able to get apple's share working with Mac OS X 10.4.
    Jan Hedlund wrote:
    You may want to have a look at what Grant Bennet-Alder writes under this topic.
    http://discussions.apple.com/thread.jspa?threadID=1603898&tstart=0
    Jan
    I was able to upload files by using an FTP server. I used PureFTPd Manager 1.7 with Mac OS X 10.4. this download does include the server software. I did have to create a FTP user. I had to boot the classic machine after configuring.
    http://www.apple.com/downloads/macosx/networking_security/pureftpdmanager.html
    I used fetch:
    http://fetchsoftworks.com/downloads.html
    I used version 3. Previously, I used version 4.
    You can use any web browser to download from Mac OS X when you turn on Web sharing. This is how I downloaded fetch.
    Robert
    What do you suggest? I hate to go through added expense to have old HD physically removed, and pull data that way. THANKS< Mark</div>

  • Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    If you just installed iCloud does that mean you updated the iOS that's running on your iPad?  If so, you'll want to restore all the programs you have from the backup you hopefully made.
    Refer to these articles for help.
    iTunes: Backing up, updating, and restoring iOS software.
    If you don't want to use iCloud, simply don't activate it.
    You can also download the programs again.
    If you live in a country that supports re-downloading apps then you can re-download them.  You can refer to this article for more help.
    Downloading past purchases from the App Store and iTunes Store
    What to know if your country supports downloading past purchases?
    iTunes in the Cloud Availability

  • Problem in the BDC program to upload the data from a flat file.

    Hi,
    I am required to write a BDC program to upload the data from a flat file. The conditions are as mentioned below:-
    1) Selection Screen will be prompted to user and user needs to provide:- File Path on presentation server (with F4 help for this obligatory parameter) and File Separator e.g. @,#,$,%,... etc(fields in the file will be separated by using this special character) or fields may be separated by tab(tab delimited).
    2) Finally after the data is uploaded, following messages need to be displayed:-
    a) Total Number of records successfully uploaded.
    b) Session Name
    c) Number of Sessions created.
    Problem is when each record is fetched from flat file, the record needs to be split into individual fields separated by delimiter or in case tab separated, then proceeding in usual manner.
    It would be great if you provide me either the logic, pseudocode, or sample code for this BDC program.
    Thanks,

    Here is an example program,  if you require the delimitor to be a TAB, then enter TAB on the selection screen, if you require the delimitor to be a comma, slash, pipe, whatever, then simply enter that value.  This example is simply the uploading of the file, not the BDC, I assume that you know what to do once you have the data into the internal table.
    REPORT zrich_0001.
    TYPES: BEGIN OF ttab,
            rec TYPE string,
           END OF ttab.
    TYPES: BEGIN OF tdat,
           fld1(10) TYPE c,
           fld2(10) TYPE c,
           fld3(10) TYPE c,
           fld4(10) TYPE c,
           END OF tdat.
    DATA: itab TYPE TABLE OF ttab.
    data: xtab like line of itab.
    DATA: idat TYPE TABLE OF tdat.
    data: xdat like line of idat.
    DATA: file_str TYPE string.
    DATA: delimitor TYPE string.
    PARAMETERS: p_file TYPE localfile.
    PARAMETERS: p_del(5) TYPE c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      DATA: ifiletab TYPE filetable.
      DATA: xfiletab LIKE LINE OF ifiletab.
      DATA: rc TYPE i.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
          file_table = ifiletab
          rc         = rc.
      READ TABLE ifiletab INTO xfiletab INDEX 1.
      IF sy-subrc = 0.
        p_file = xfiletab-filename.
      ENDIF.
    START-OF-SELECTION.
      TRANSLATE p_del TO UPPER CASE.
      CASE p_del.
        WHEN 'TAB'.
          delimitor = cl_abap_char_utilities=>horizontal_tab.
        WHEN others.
          delimitor = p_del.
      ENDCASE.
      file_str = p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename = file_str
        CHANGING
          data_tab = itab.
      LOOP AT itab into xtab.
        CLEAR xdat.
        SPLIT xtab-rec AT delimitor INTO xdat-fld1
                                         xdat-fld2
                                         xdat-fld3
                                         xdat-fld4.
        APPEND xdat to idat.
      ENDLOOP.
      LOOP AT idat into xdat.
        WRITE:/ xdat-fld1, xdat-fld2, xdat-fld3, xdat-fld4.
      ENDLOOP.
    Regards,
    Rich Heilman

  • Problem while retrving data from a view

    Hi Friends
      i have a problem while retriving data from a view <b>v_t685a</b>.
    the error message is :""" "V_T685A" is not defined in the ABAP Dictionary as a table, projection view or database view."""
    i wrote : select single VTEXT1 from V_T685A into w_cst_jin1 where
                        KSCHL = 'JIN1' and
                        KAPPL = 'V'.
    how to retrive the data.
    waiting for quick response
    Regards
    Mukesh

    Hi
    This is a Maintenance View, not a Database View
    SO can't fetch data using select statement.
    You can use the Table <b>T685</b> directly to fetch the condition Types data straight away instead of the view. write the same select for this table and use.
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Problem in passing data from 1 screen to another using BBP_DOC_CHANGE_BADI.

    Hi Experts,
    i am new to the SRM, i am facing problem in passing data from one screen to another.
    my requirement is that when we select one shopping cart and press the PROPOSE SOURCES OF SUPPLY button, we will fetch all the contracts that are attached to the shopping cart.
    we have implemented a BADI implementation of BBP_SOS_BADI (method BBP_SOS_CHECK) for passing some changed values to the contracts of the shopping cart into the popup screen that is displayed when we press PROPOSE SOURCES OF SUPPLY button and when we select any contract and press ASSIGN ONLY button in the popup screen the badi BBP_DOC_CHANGE_BADI is triggered.
    i have implemented another BADI implementation of BBP_DOC_CHANGE_BADI for fetching the selected contract and pass the values to another screen, but the problem is that when we select one contract and press the assign only button we are fetching the wrong contract number ( that is in the BADI method BB_SC_CHANGE parameter IT_ITEM we are fetching the wrong contract), if we again do the same procedure for the second time we are getting the correct contract.
    i am unable to understand why we are getting the wrong contract in the first time( that is we are getting contract other than the selected one).
    as per my understanding i think when we are passing data to the popup screen using BBP_DOC_CHANGE_BADI we are not updating the shopping cart with the changed data.
    can anyone tell me how we can update the SHOPPING CART with the changed contracts data, i have used BBP_PD_SC_UPDATE, BBP_PD_SC_SAVE and other shopping cart FM but nothing is happening.
    Thanks
    Tanveer

    Hello,
    What version of SRM are you on?  Have you check for OSS Notes?  I have had trouble with BBP_DOC_CHANGE_BADI but it was because of other issues.  The BADI works pretty well and it is called almost every time something happens to the shopping cart.
    I have noticed that sometimes that values are not changed til the second calling of the BADI.  I have yet understand why but I think it has to do with prompt processing. Usually, we train our requisitioners to click the 'Check'  button to flush things out.
    I don't know if I was helpful.... another thought.... could there be an error caught by BBP_DOC_CHECK_BADI that is preventing change in BBP_DOC_CHANGE_BADI?
    Regards, Dean.

Maybe you are looking for

  • After creating a new image of my project burned from iDVD I get no audio when I import it back into iMovie HD 6.0.3

    I need to edit my project after I have already burned the project. I deleted the files after being burned to save space on my hard drive. So I made a new image of the burned project with disk utility. I opened up iMovie HD 6.0.3 and imported the movi

  • 2 Dimensions and a Fact - Join Paths

    I have a scenario and I have been racking my brains out as to if what I am looking for could be set up. I have two dimenisions - Region and System - each System belongs to a Region. So the System Dimenison contains a Region_Key. I have a Fact table t

  • IDoc type for invoices

    Please tell me the idoc type for invoices passing from SAP to Crossworlds.Please reply ASAP. Thanks & Regards Tharani

  • Regarding SET TITLEBAR in normal ABAP report

    Hi All,     I  wnat to know the  use of SET TITLEBAR command in ABAP report . i have searched the forum but i am not find any sutable answers. for what purpose we  use the SET TITLEBAR in normal ABAP report. Regards CB

  • Sorting is wrong with Entity Framework for oracle

    Hi, I've downloaded the Entity Framework for Oracle beta and I found a bug. It's easy to repro: - Create a model with a simple table - Create a dynamic data web app - display the content of your table and try to sort -> the sql generated is wrong and