Sql for extract file path without file_name form the folumn value

Dear Experts,
can someone give the sql script to extract file path without file_name form the folumn value.
can someome provide sql to extract only path in the column value.
column value :
/data/rrsapus/oradata22/rrsa_25122011rpsp_arpch.rsp
i need output like this */data/rrsapus/oradata22/*

Hi,
Welcome to the forum!
INSTR and SUBSTR is probably the most efficient way. Use INSTR to find where the last '/' is, and SUBSTR to get that many characters, starting from the beginning of the string.
INSTR and SUBSTR (and REGEXP_SUBSTR, and REGEXP_REPLACE, and RTRIM, and REPLACE, and all the other bullt-in functions) are documented in the SQL language manual:
http://docs.oracle.com/cd/B28359_01/server.111/b28286/index.htm
REGEXP_SUBSTR or REGEXP_REPLACE would also do the job, perhaps with a little less code, but maybe not as efficiently.
Here's a more creative way:
SELECT     RTRIM ( str
           , REPLACE (str, '/')
           )          AS file_path
FROM     table_x
;What results do you want if str does not contain a '/'?

Similar Messages

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • How to get the Output File Name as One of the Field Value From Payload

    Hi All,
    I want to get the Output file name as one of the Field value from payload.
    Example:
    Source XML
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_TEST xmlns:ns0="http://sample.com">
    - <Header>
      <NAME>Bopanna</NAME>
      </Header>
      </ns0:MT_TEST>
    I want to get the Output file name as " Bopanna.xml"
    Please suggest me on this.
    Regards
    Bopanna

    Hi,
    There are couple of links already available for this. Just for info see the below details,
    The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
    //       Description: Function to create dynamic Filename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
    conf.put(key,a);
    return "";
    With this udf map it with the MessageType as
    (File Name field from Payload) > DynamicFileConfiguration>MTReceiver
    Thanks
    Swarup

  • BO XI Desk-I graph The negative values are rising form the lowest value up

    The negative values are rising form the lowest value up. Instead of dropping from the Zero-line. Where is the problem originating?  BO FP2.3.
    The positives values are also rising from the lowest value up.
    The problem only occurs withing Desk-I. Within Web-I this problem does not occur.
    Edited by: A. SMULDERS on Sep 7, 2010 10:35 AM

    Hi
    Try with the following symbol in the field
    &ITAB-NETWR(>)&  - will write the sign  as (100.00-)
    &ITAB-NETWR(<)&  - will write the sign  as (-100.00)
    and based on some field  in the program write like
    If itab-shkzg = 'H'.
      itab-netwr = itab-netwe * -1.
    endif.
    and try to print this field in the form.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Drag and drop just to extract file path

    I'm writing a Cocoa GUI app to facilitate working with a command-line program. The scenario is quite similar to what I see in the Apple FileMerge.app. I'd have a NSView (or a drop pocket of whichever class appropriate) into which I can drag the file icons just in order to retrieve file's path, one by one, no visualization, no checking for file types, just for assembling a list of files to eventually be passed to the data crunching program as command line arguments. I've come across CocoaDragAndDrop sample program, which does great work in displaying dragged picture tiff and pdf files. Probably 90% of the code there is beyond what I need, but the semantics are so unlike anything I've ever come across (I'm miles away from image processing). I can't even figure where to start since everything seems so interconnected. Is there a simplest case example of Drag and drop which only serves file path extraction? From the aforementioned sample code I'm struggling to figure out what is the part which is absolutely needed only to retrieve the path? Do I have to init a [NSImage canInitWIthPasteboard: ... ...] if a file is a plain text file, or a raw data file? The app doesn't need to know what the file is, since passing the absolute path as text argument cannot do any harm in this case - the number crunching command line program takes care of the content. Do I need coders? Do I need a sourceOperationMaskForDragingContext? Does Drag and Drop even cover such trivial demands?
    Thanks in advance!
    Regards, UU

    Thanks for your kind replay. Please let's stay on-topic: my question shouldn't have pointed at if "Apple works like this or like that".
    IMHO, it's quit opposite: many things are cut-and-paste compatible, yet I'm missing few basic explanations.
    The following code can be derived from the API reference:
    #import "DragTView.h"
    #import "AppDelegate.h"
    @implementation DragTView
    - (id)initWithFrame:(NSRect)frame{
        self = [super initWithFrame:frame];
        if (self) [self registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
        return self;
    - (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender{
        highlight=YES;
        [self setNeedsDisplay: YES];
        return NSDragOperationGeneric;
    - (void)draggingExited:(id <NSDraggingInfo>)sender{
        highlight=NO;
        [self setNeedsDisplay: YES];
    - (void)drawRect:(NSRect)rect
        [super drawRect:rect];
        if ( highlight ) {
            [[NSColor grayColor] set];
            [NSBezierPath setDefaultLineWidth: 5];
            [NSBezierPath strokeRect: rect];
    - (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender {
        highlight=NO;
        [self setNeedsDisplay: YES];
        return YES;
    - (BOOL)performDragOperation:(id < NSDraggingInfo >)sender {
        NSArray *draggedFilenames = [[sender draggingPasteboard] propertyListForType:NSFilenamesPboardType];
        NSURL* fileURL;
        NSTextField* pathField = [(AppDelegate*)[[NSApplication sharedApplication] delegate] pathField];
        if (([[[draggedFilenames objectAtIndex:0] pathExtension] isEqual:@"txt"]){
            fileURL=[NSURL URLFromPasteboard: [sender draggingPasteboard]];
            [pathField setStringValue:  [fileURL path] ];
            return YES;
        } else return NO;
    - (void)concludeDragOperation:(id <NSDraggingInfo>)sender{
    @end
    It reveals the file path, yet, it boils down to fifty meaningless lines of code, since the pathField object (of class NSTextField) would itself reveal a dropped file's path without a single extra line of drag-and-drop code. What I find confusing is the following:
    How should a drag operation be set up, so a text file can be dragged to the DragTView object (declared as @interface DragView: NSImageView <NSDraggingSource, NSDraggingDestination>), which would than show the image of file's icon (without dragged file itself being an image file)? This is rather unclear in the documentation, with all due respect to Apple.
    Thanks in advance.

  • How to use NI CAN feature for extracting DBC information without a CAN Interface?

    Hi,
    I'm looking for some tricks in order to extract DBC Information using the NI CAN without a CAN interface...
    Basically I have some DBC files and I would to analyze them to get hierarchy Messages and Channels (and their related information, offset, scale, etc.).
    http://www.ni.com/white-paper/4294/en/
    The function CAN Get Names is usefull and allow me depending on the mode to get a list of the Channels and Messages described in the DBC file. However, I'm encountering one major issue and none of the least, I cannot use the function the CAN Get Property... As it required a connector based on Task that I cannot provide since I dont have any real and physical CAN interface, for now. Therefore I cannot have any information about the channels neither about the messages...
    Does anybody can give me a hand to fix that matter?
    Solved!
    Go to Solution.

    Nelval wrote:
    It seems that no matter the virtual port I am using, it does not work. Could you have a look at my sample.vi, I know it's poorly wired, especially since I'm more in .NET things than NI from my occupation ^^'. I also provided a dummy DBC file to simulate a very basic input.
    And by the way is there any way then to get the Byte Array / Bit Array corresponding to a certain message (and how to set the signal values required to get the message)?
    Your code isn't that bad, relativly easy to follow.  In any case the problem had nothing to do with the CAN port being used.  If you would probe the error wires around you would see that coming out of the CAN Init Start stated that the channel name didn't exist.  Looking at how you had it wired you took the messages (or frames) and put them into the channels terminal, when I assume you wanted the channels.  Then looking at your tree you were again trying to get the ID of a channel, but giving it the message name.  I also added reading the Start Bit, Number of Bits, and Byte Order for all the channels read.
    If you were to do this with XNET there would be completelly different functions, but the same operations can be done.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    DBC Extraction Hooovahh Edit.vi ‏29 KB

  • Alter file path without recompiling

    I have a LabVIEW program compiled with version 7.1. Unfortunately, it was not compiled properly and I do not have the original source.
    You see, after experimenting with Filemon I have determined that the VI is trying to read or write to a file named c:\[whatever]\viname.exe\settings.cfg . Of course, this path makes no sense in the Windows filesystem, though I understand such an access attempt is not unusual for LabVIEW projects.
    Is there some way I can get around this problem without the original source?

    It seems that this path does makes sense to Windows, as I was able to create a similar file on my PC. But of course, it doesn't quite make sense for us .
    The only possibility I can see is to open the exe file with an hex editor and change the path writing into it; this has several drawbacks, for example you may not change the length of the individual constants used to build the name, so if the path was obtained by building successively [whatever], viname.exe and settings.cfg, you are not allowed to relocate the file into a C:\ mysinglecnfgdirectory  directory, for example, but you need to respect the two steps directory nesting, like in C:\myapplicat\my_vi_name\settings.cfg
    Message Edited by pincpanter on 03-05-2007 05:14 PM
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • Function module for logical file path and name

    Hello all,
    I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
    Regards,
    Anyi

    Please check the FM FILE_NAME_GET.
          CALL FUNCTION <b>'FILE_GET_NAME'</b>
             EXPORTING
               logical_filename = 'ZDELCHKREP'
               parameter_1 = it_cntry-cntry
             IMPORTING
               file_name        = l_file
             EXCEPTIONS
               file_not_found   = 08.
        CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b>       EXPORTING
             logical_path = 'ZDELCHKREP'
             file_name = l_file
           IMPORTING
             file_name_with_path = l_file.
    Message was edited by: Anurag Bankley
    Message was edited by: Anurag Bankley

  • ABAP code for flat file path

    Hello,
    My hierarchy is loaded through flat file. This file is present in the application server.
    We have hard coded the filename path in our program in the production system as:
    DATA:p_fname LIKE rlgrap-filename value '
    A0001SAP\PACE_PRD\interface\BI\BO\PYD_PDL.CSV'
    Now, our pre production system is refreshed and hence after the refresh, the same path got copied in the pre production system and our process chain got failed as the path name is wrong. Same is the case in the development system.
    Please note: The file path is same in all the systems except the name of the system i.e.
    For development system, the name is PACE_DEV
    for preprodcution system, the name is PACE_PREPRD,
    for production system, it is PACE_PRD.
    Could anyone let us know, what global logic should be developed so that the process chain runs smoothly in all the systems?
    Thanks in advance for the reply.
    Regards,
    Nitin Chopade.

    Nitin Chopade,
    Put the path /file name on the selection screen.
    parameters: p_output(120). 
    Then use that selection-screen field in place of the hard coded value.
    You can then change the path / file name at will.
    or
    Change the file '
    A0001SAP\PACE_PRD\interface\BI\BO\PYD_PDL.CSV'
    to                      '
    A0001SAP\PACE_&SYSID&\interface\BI\BO\PYD_.CSV'
    Assign the hard coded value to a variable, w_variable.
    Before you use the file:
    replace '&SYSID&' in w_variable with sy-sysid
    Bruce
    Edited by: Bruce Tjosvold on Dec 20, 2011 4:09 PM

  • Common URL format for sharing file paths between Mac and Windows?

    Hi -
    I have to integrate several Macs into a Windows environment. We need to be able to copy and paste file paths to share between all machines. Is there a common URL format that can be used between the platforms?
    On Windows, I have:
    \\server\share\file
    On the Mac:
    smb://server/share/file
    Thank you for your help,
    Steve

    On Windows you have what is known as a "UNC".
    On the Mac, you have a "URL". It starts with the protocol to use "smb" then gives the path to the item using standard conventions.
    UNC is Microsoft mainly.
    The only way I know for Windows to use a URL is with an application like a web browser or ftp client.
    On the Mac, you can use UNCs but they must be modified as follows.
    In Terminal:
    smbclient \\\\servername\\sharename\\filename -U username
    And enter a password if prompted.
    Notice that you must double up the slashes. This is due to how UNIX shells treat the backslash.
    You will connect to the share, but it will only be in Terminal.

  • Weird problem while Extracting File path from file Browser item

    Hi all
    I followed some tutorials on this forum to get the absolute filepath from the filebrowser item and storing it in the database.
    Heres what I did. I created a script in the header of the page which reads like this:
    <script language="JavaScript1.1" type="text/javascript">
    function SaveFullName(filepath,feed)
    function getVal(item)
    if(document.getElementById(item).value != "")
    return document.getElementById(item).value;
    else
    return "";
    document.getElementById(filepath).VALUE = getVal(feed);
    alert(document.getElementById(filepath).VALUE);
    </script>
    I have call this function by this syntax which I have put in the onchange event handler of the file browser item.
    onChange="javascript:SaveFullName('CCDPATH','CCDFILEBROWSER');"
    Here CCDPATH is the name of the hidden item which I use to store the path and CCDFILEBROWSER is the name of the filebrowser in question.
    now the last statement of the script above, alert(), gives me an alert with the proper value. The problem is when I am trying to store the value of this variable CCDPATH in my database with an onsubmit process, NULL values are getting inserted :-(
    When I checked out in the debug mode, I can see that the value of this hidden item, CCDPATH is showing as "" , i.e; null. Why is this happening is out of my understanding.
    I mean, with the javascript, it is assigning and displaying its value perfectly, but when I try to store it with PLSQL, it simply does'nt happen.
    What am I possible doing wrong? What should I do to store the value of this hidden item in the database ??

    Any thoughts people?

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • CS2/CS3/CS4: Cannot get file path in Unicode of the current document on Windows

    Hi All,
    In my automation plugin I need to have full absolute path of the opened document with any possible non-English letters. Using SDK examples Listener and Getter that come with Photoshop SDK the full absolute path which I obtain is in the default ANSI code page (CP_ACP) and I can convert it to Unicode using MultiByteToWideChar() API. However this works well when I have corresponding to document name language set in the "Control Panel -> Regional and Language Options -> Advanced -> Select a language to match the language version of the non-Unicode programs you want to use." For example if name of the document has Russian letters and chosen language in "Regional and Language Options" is also Russian the described conversion works well. If I change "Regional and Language Options" to English for example, full path returned by Photoshop SDK API (AliasToFullPath in PIUFile.cpp) for the document with Russian letters will contain "????????.psd" symbols.
    So I need to have an ability to get absolute file path in Unicode. Is it possible in Photoshop CS2/CS3/CS4 for Windows? I have searched forum and SDK but could not find info on it.
    Is it possible to have native HANDLE of the opened file to get file info using Windows API?
    Please advice.
    Below given slightly modified code from Photoshop CS3 which I use to get absolute file pat of the opened document.
    Thanks and regards,
    Sergey
    std::string outFilePath;
    int32 theID = 0;
    SPErr error = kSPNoError;
    error = PIUGetInfo(classDocument, keyDocumentID, &theID, NULL);
    if (error == kSPNoError)
    Handle theFileHandle = NULL;
    error = PIUGetInfoByID(theID, classDocument, keyFileReference, &theFileHandle, NULL);
    if (error == kSPNoError)
    int32 length = sPSHandle->GetSize(theFileHandle);
    Boolean oldLock = FALSE;
    Ptr pointer = NULL;
    sPSHandle->SetLock(theFileHandle, true, &pointer, &oldLock);
    if (pointer != NULL)
    outFilePath = (char*)pointer;
    sPSHandle->SetLock(theFileHandle, oldLock, &pointer, &oldLock);

    Hi All,
    Does anybody know, whether it is possible to get Unicode file path of the current document in Photoshop via Photoshop SDK API or without them?
    Thanks,
    Serhiy

  • Eclipse nightmare: Trying to use Build Path without muddling up the project

    I'm working on a team project for the first time ever, which is a little scary. We are using Subclipse. As soon as I downloaded the project, I noticed that I don't get any error warnings. Soon after, I noticed that Ctrl H fails to search the project.
    I thought this was all Subclipse's fault, and tried a clumsy workaround by copying the project. I had noticed that the package icon doesn't appear for the folders holding the source files and realized this is the problem. I guess Eclipse doesn't know which files are the source files. I would have thought it could tell because they end in .java, but that shows how little I know.
    After wrestling with this for hours, I figured out that I could use Build Path -> Use as source folder. For a split second, I thought I had finally solved the problem. But then all of a sudden tons of error messages showed up in every file. It turns out that when you use Build path -> Use as source folder, it moves your source folder and changes the names of the subfolders. So how on earth do I just tell Eclipse where my source files are without it moving everything around and screwing up the whole project?
    Please, somebody tell me what is going on before I pull all of my hair completely out.

    codinatrix wrote:
    I'm working on a team project for the first time ever, which is a little scary. We are using Subclipse. As soon as I downloaded the project, I noticed that I don't get any error warnings. Soon after, I noticed that Ctrl H fails to search the project.
    I thought this was all Subclipse's fault, and tried a clumsy workaround by copying the project. I had noticed that the package icon doesn't appear for the folders holding the source files and realized this is the problem. I guess Eclipse doesn't know which files are the source files. I would have thought it could tell because they end in .java, but that shows how little I know.
    After wrestling with this for hours, I figured out that I could use Build Path -> Use as source folder. For a split second, I thought I had finally solved the problem. But then all of a sudden tons of error messages showed up in every file. It turns out that when you use Build path -> Use as source folder, it moves your source folder and changes the names of the subfolders. So how on earth do I just tell Eclipse where my source files are without it moving everything around and screwing up the whole project?
    Please, somebody tell me what is going on before I pull all of my hair completely out.I have encountered similar issues with Eclipse and--though I'm not an expert--I have used Eclipse a lot.
    Can you tell us more about your project folder structure (as it exists in SVN)?
    Generally speaking, here's what I would do when start a new Eclipse project from SVN using Subclipse:
    1) Delete your current project and start clean.
    2) Open the SVN Repositories view in Eclipse
    3) Right-click the folder you are checking out as your project (for example, if your project is called ProjectFoobar and contains a trunk, right-click the trunk folder... don't check out all of the branches--use svn switch instead) and do a Checkout.
    4) Select 'Check out as a project in the workspace
    5) Give it a project name.
    6) 'Check out HEAD revision' (presumably)
    7) Depth: fully recursive
    8) Next
    9) Workspace location: make sure this the workspace you intend to create the project in
    8) Finish
    Hope that helps.
    -Thok
    Edited by: Thok on Apr 29, 2009 7:07 PM

  • Create Excel file in application server but the field value is incorrect

    Hi Experts,
    i am facing a problem when create excel file in application server using OPEN DATASET command.
    the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
    the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
    Example :
    the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
    and if i add alphabet like a8962118800000447654 then it is correct.
    is there is anything wrong with my code?
    here is my code
    CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
    Data : begin of lt_zdsdmmdt00005 occurs 0,
             SERNR (18) type c,
             MSISDNl(20) type c,
             BOX1 (20) type c,
             ICCID(30) type c,
           end of lt_zdsdmmdt00005.
    data : ld_temp(100) type c.
    i_file = '/usr/sap/DM/test_excel.xls'.
    open dataset i_file for output in legacy text mode.
      loop at lt_zdsdmmdt00005.
        move lt_zdsdmmdt00005-ICCID to ld_iccid .
        concatenate lt_zdsdmmdt00005-sernr  lt_zdsdmmdt00005-MSISDN  lt_zdsdmmdt00005-BOX1 ld_iccid
        into ld_temp separated by c_tab.
        transfer ld_temp to i_file.
      endloop.
      close dataset i_file.
    Best Regard,
    Akbar.

    Hi Naveen,
    thanks for your reply,
    i already tried and the result still the same. any idea?
    Best Regard,
    Akbar.

Maybe you are looking for

  • Indian rupee sysmbol in abap report

    how to get indian rupee sysmbol in abap report to show in smartform output???

  • DOM inserting new elements (no changes in xml file)

    I add the new element and it's nodes like that:     public static int InsertZapis(String s)         File dat = new File("nepremicnine.xml");         try             String nepr[]=s.split(":");             DocumentBuilder builder = DocumentBuilderFact

  • How to select a row for update values, Using CTEs or suitable method

    HI All, I have a table as claim_data as below. claim_id    amount         change_monthkey          created_monthkey          ord 54511       300            201304                   201304                     1 54511       0              201305       

  • SharePoint search results not showing padlock to document icon

    Hi, We have an application in which we have activated In place record management. this feature gives us possibility to make documents as records. As now when we search that document, we can able to search that document but in search results we will n

  • Gallery picture id's

    In my gallery on my tablet I want to be able to rename groups of pictures. So far I cannot find out how to do this.