Convert the Flat file format to XSTRING.

hi experts,
                I need to convert the flat file(.txt,.pdf....) to an internal table as the XSTRING.

Hi,
      Refer
/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
Regards

Similar Messages

  • Convert the flat file to xml format.

    hi,
    I need to write a interface program in the R/3  to pull the flat file data from the unix application server and do some manipulation and place back into the unix application server in XML format, From the unix box XML file taken by the XI server.
    pls give me some idea to convert the flat file to XML format, through any function module or any other logic is there...
    with regards,
    Thambee.

    Hi Thambe
    in addition to the above posts
    Program to convert flat file to XML file.
    please download tool from this link:
    http://www.download.com/Stylus-Studio-2008-XML-Enterprise-Suite/3000-7241_4-10399885.html?part=dl-StylusStu&subj=dl&tag=button&cdlpid=10399885
    how to use:
    http://www.stylusstudio.com/learn_convert_to_xml.html
    http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
    Flat file to XML
    CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
    Converting Idoc flat file representation to XML
    how to convert flat file into IDOC-XML
    Thanks
    sandeep sharma
    PS ; if helpful kindly reward points

  • How to convert the flat file data into sap tables . ?

    how to upload flat file data into sap table . before upload mapping is also there in some filds . any one can give me some steps how to upload and mapping . ?

    Hi
    See the sample code
    REPORT zmmupload.
    Internal Table for Upload Data
    DATA: i_mara like MARA occurs 0 with header line
    PARAMETERS: p_file LIKE ibipparms-path.  " Filename
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Upload the File into internal Table
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = i_mara
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Upload the Data from Internal Table
      MODIFY MARA from TABLE i_MARA.
    Regards
    Anji.

  • Flat file formats

    What are the flat files formats accepted for import and export in mdm?
    How MDM recognize the document type/mapping to perform of incoming file (file name, folder) ?
    What are the flat file format for export (delimited, structured, XML) ?
    Does MDM handle Header in a flat file (import and export) ?
    Does MDM handle several line definition in a flat file (import and export) ?

    Hi Joesph,
    Here are answers to your questions:
    <b>Ans 1--></b> As previously told by adhappan ,you can import data using import manager from the following formats:
    Access--Means From  microsoft access
    Excel -- From an excel file
    ODBC--this is generally used to import data from a  flat file.BY flat file i mean to say a tab comma seperated "csv " file or a ".txt "file.
    Port--to import data from a port .In mdm, port actually refers to a directrory
    XML--from an xml file
    XML Schema-- this is used when you try to import data from a file whosr structure you have predefined in console using an xsd file.
    <b>Ans 2--></b> we specify the file format while connecting to source by mentioning it in the <b>type</b> properties.and mapping is performed in the import manager in the map value tab.
    <b>Ans 3--></b>When you import or export a flat file then data in the first  line of file is considered as header.
    <b>Ans 4 --></b> As i previously told ,MDM will handle header.
    <b> Ans 5 --></b>MDM does not handle several line definition of header.
    Hope it will help you.<b> Please remark if it really helped you</b>.
    Thanks,
    <b>Shiv Prashant Dixit</b>

  • How look the  flat  file for CALL Transaction

    Hi  ABAPERS
    i am new for BDC i want to know how the flat file format for call transaction execution.
    if any one have sample flat file data for any transaction please send me.

    Hi,
    The file format differ for different transaction. Basically you can have the field in any order. It matters how you upload into SAP. Use the function module GUI_UPLOAD to upload the flat file.
    Please see this sites for more info.
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    Help with BDCs and flat files.....
    Cheers
    Vinod
    Message was edited by: Vinod C

  • Convert amount from flat file format to user format

    hi,
    how to convert amount from flat file format to user specific format.
    input:  1000.00
    output: 1.000,00 (user specific)
    thanks in advance

    move that value to a type WRBTR variable
    and use write statement.
    data v_wrbtr type wrbtr.
    data v_char(20).
    v_wrbtr = 1000.
    write v_wrbtr to v_char.
    v_char will contain the amount in user format.
    Prerequsite, go to SU3 transaction.
    Defaults tab, chose the decimal notation .
    Regards,
    Ravi

  • Different formats of the flat file for the same target

    In our deployment, we use plugin code to extract the csv files in the required format. The customers are on same version of datamart, but they are on different versions of source database - from 3.x to 4.5 depending on which version of application they are using. In 4.0, we introduced a new column email in the user table in the source database. Accordingly, plugin will add the field in the csv file. But not all the customers will get the upgraded version of plugin at the same time. So ETL code needs to decide which data flow to process depending on the format of the csv file to load data to the same target table. I made the email field in the target table nullable but it still expects the same format of the csv file with delimiter for null value.
    Need help to achieve this. Can I read the structure of the flat file in DS or get the count of delimiters so that I can use a conditional to use different data flow based on the format of the flat files.
    Can I make the email column in the flat file optional?
    Thanks much in advance.

    You can add an email column that maps to null in a query transform for the source that does not contain this column. 
    Or else you can define two different file formats that map to the same file.  One with the column and one without

  • I just purchased the new Canon SX60 camera. Despite downloading and installing the latest version of Adobe DNG converter, I receive an error message saying that Photoshop CS4 can't open up/convert raw files (.CR2). This is the same file format as used by

    I just purchased the new Canon SX60 camera. Despite downloading and installing the latest version of Adobe DNG converter, I receive an error message saying that Photoshop CS4 can't open up/convert raw files (.CR2). This is the same file format as used by the SX50, with which I never had any problem. Does anyone have a suggestion on how to fix this problem? Thanks.

    Camera Raw plug-in | Supported cameras  I do not see that SX60 as supported. Just how new is the SX60 when was it announces. Its support is not even listed in ACR 8.7 RC

  • Hello.what is the best converter for iPhone(for converting variety of file formats to mp3)?

    hello.what is the best converter for iPhone(for converting variety of file formats to mp3)?

    the way the total video convert works is really easy you put the song in that you want to convert you tell it to convert into mp3 format and stay the same quality
    Message was edited by: Robert1986nb

  • Is it legal to convert the music files, which I have purchased in recent months, to the mp3 format and burn them on to a CD so that they can be played on non-apple music devices that do not support the M4A format?

    Is  it legal to convert the music files, which I have purchased in recent  months, to the mp3 format and burn them on to a CD so that they can be  played on non-apple music devices that do not support the M4A format?

    Hi,
    This is what apple says about converting files http://support.apple.com/kb/PH12167
    Jim

  • Is it legal to convert the music files, which I have purchased in recent months, to the mp3 format and burn them on to a CD so that they can be played in non-apple music devices that dont support the M4A format?

    Is it legal to convert the music files, which I have purchased in recent months, to the mp3 format and burn them on to a CD so that they can be played in non-apple music devices that dont support the M4A format?

    Yes, of course it is legal.
    To convert the format, follow one of these documents:
    iTunes 11 for Windows: Save a copy of a song in a new file format
    iTunes 11 for Mac: Save a copy of a song in a new file format
    Also note that you have the option of buying your files in MP3 format in the first place, from Amazon MP3 or other online retailers.  MP3 files will work in iTunes as well as virtually every other player, program, and device.

  • Itunes plays purchased HD videos fine, but constantly stalls while trying to play home created videos converted to the same file format and bit rate?

    Itunes plays purchased HD videos fine, but constantly stalls while trying to play home created videos converted to the same file format and bit rate.
    System specs
    Win 7pro x64
    ATI 5830
    Phenom x6 1055t
    8gigs ram
    1tb 7200rpm sata hdd
    500 gig 5400 rpm sata hdd

    Itunes plays purchased HD videos fine, but constantly stalls while trying to play home created videos converted to the same file format and bit rate.
    System specs
    Win 7pro x64
    ATI 5830
    Phenom x6 1055t
    8gigs ram
    1tb 7200rpm sata hdd
    500 gig 5400 rpm sata hdd

  • Standardize a flat file format w.r.t OWB

    Hi Pat,
    or anyone,
    Can u help me to standardize a flat file format with respect to OWB?
    I have 15 financial source systems. The client agreed in giving the data in csv format. Now I need to standardize the feed file so that it would be easy for me handle it in OWB. Please note depending on my standardization the client would give me the data and in turn it would be easy for me to handle it OWB External Tables. The records size for a single feed file is 1 million. So my questions are
    1.How should I standardize a date field in flat file?. Please note target date field is default date in Oracle.
    2.How should I standardize an address field? I.e. normally here I have 3 address fields. But I want the output in 1 field. What is the best possible methodology to do this? Or can I handle this issue in OWB front.
    3.How should I standardize a feed file name (generic)?
    4.How should I standardize a feed file folder (generic)? Please note the folder will reside in UNIX environment. The concept is, there would be respective folders in UNIX and the feed files would automatically fall into these respective folders in a fortnight basis. So what should I do to achieve this? I know I have to write a shell script for the automatic process. If so how will I do this and schedule it.
    5.And w.r.t above question, how will I tell OWB to go and fetch the files in those folders. I know it is done while mapping. But my question is Is that the only best way I can achieve it?
    6.If I left anything related to feed file, please tell me?
    Please note that based on my standardization, the client would extract the data and give it to me. So if I standardize the feed file which would be easy for me to handle it in OWB, then that would be a great success. And also note this is for a long run. Minimum 10 years.
    Regards,
    rem.

    Good afternoon Rem,
    It's all very theoretical indeed, talking about standards and all. I'll try to answer some of your questions according to my experiences.
    @1, Usually we load flat files into external tables using varchar2-fields only, occasionally number fields; dates however are always loaded into varchar2's and then when reading the external table into the staging area they are converted to Oracle dates using a simple TO_DATE transformation.
    @2, I don't think there's a real standard for that, it should simply meet YOUR needs, so when loading EXT into STG simply perform a transformation concatenating those 3 fields to form one.
    @5, you have to register the location where you have defined your flat files, this should be some Unix location; after that the connector between EXT and STG will know what to do when running the mappings from EXT to STG (thus: no other action is needed to 'tell OWB' where to fetch data from flat files).
    As far as I know there a no standards in naming conventions for files and folders, just go with what seems logical/practical in your situation.
    Regards, Patrick

  • HOW MANY TYPES OF FLAT FILE FORMAT

    hi gurus......
    Basically there r 3 types of flat file format
    ASC
    DAT
    BIN
    i am correct or wrong???
    what is the difference between these formats?

    Hi,
    you are right.
    This is from the documentation available in GUI_UPLOAD func.module:
    'BIN'.
    The system reads a binary representation of the internal table from the
    file. The data is neither converted nor interpreted in this case.
    Usually, reasonable results are obtained only if the internal table
    consists of a single column of type 'X'.
    'DAT'
    The components of the internal table are filled from the file. If the
    table contains several columns, the entries in the file must be
    separated by tabs. No conversion exits are performed. eg: .TXT with tab delimited
    The following applies for the different data types:
    I or N or P or F
    The numbers must be formatted according to the decimal representation
    defined in the user settings.
    D
    The date must be formatted according to the date format defined in the
    user settings.
    T
    The time must be formatted as hh:mm:ss.
    'ASC'.
    The components of the internal table are filled from the file. Only
    data types with fixed length are allowed. The data must be contained
    in the file in its full length. eg: Like ·TXT or ·CSV files
    Anirban

  • Which is the best software to convert the video files for itouch?

    I got a 3rd gen itouch. Is there any software that helps to convert the video files. so I can sync those files to my itouch. " Handbrake " used to work pretty good. but now i still can convert the video files to m4v format but itunes doesn't allow me to put those files in. Please Help!

    You may have different menu options than Half bit Bit Ah. The support page on how to do it is at https://support.apple.com/kb/TS1497. In part it says:
    If you did not purchase videos from the iTunes Store, they are may not be in a format that you can play on your iPhone/iPod. In many cases, you can convert them to the correct format using iTunes or QuickTime.
    * Using iTunes: Select a video and choose Advanced > Create iPod or iPhone Version
    * Using Mac OS X v10.6: Open the video in QuickTime Player and choose Share > iTunes and then select the iPhone & iPod option.
    Hope that helps!

Maybe you are looking for

  • Global Address List in Outlook

    Hi We are using Outlook Connector version 7.1 (patch 122018-02 ). We are able to connect to the Mail, Calendar and the users personal Address Book. But the global address list is empty. What should be done to have it accessed through outlook. Please

  • How to impersonate user in 10G

    Hi Team, How to impersonate the user if the user A will login into the webserver i want to know the details of that user A for which objects he as accessed in his session.How can we achieve this one. Thanks,

  • Stored Procedure Only Returns First Character

    I am having an issue with ColdFusion MX7 and a MSSQL 2005 DB. I am able to duplicate my development issue with the following simple example -- SQL Code CREATE PROCEDURE myTestProc     @myString varchar(36) OUT AS BEGIN     set @myString = 'This is my

  • The top of the page is so small you cant tell what theme your using

    On the old firefox the top of my pages were bigger so you could easily see what theme you had on. Now its barely an inch of space where you see your theme.

  • How to stop Acrobat Annoying Message?

    Hi guys, That is a minor inconvenience but every time i open Acrobat a message pop up and ask me if i want Acrobat to be my default application. I don't, i rather use Mac PDF Viewer for fast and easy everyday use and Acrobat for special purposes. Any