Importing mapping tables via txt-file

Hi
Is it possible to import mapping tables for some dimensions using txt- or csv-file instead of excel-template?

Yes.
There is a format called "Ledger Link" which is dirt simple. It is a CSV file that has Source, Target, and Description. If you have a sign flip, you put a - in front of the Target. If instead of explicit map, it is a like, Source is the rule.
For example......
110011,3rdPartySales,Third Party Sales
110021,-ICSales,Intercompany Sales
11003?,ServiceRevenue,Service Revenue for Accounts starting with 11003 with a length of 6 characters

Similar Messages

  • Send An Internal Table Via Excel File As An Attachment of E-mail

    Hi,
    I've sent my internal table via Excel file as an attachment of email but all records of internal table are in a row of sended excel file.
    How can i send an internal table via excel file , records of internal table for each rows of excel file,as an attachment of email correctly?
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list     "   t_packing_list-doc_type   =  'XLS'.
                contents_bin               = pit_attach " this is a normal internal table.
                contents_txt               = pit_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.

    Hi,
    CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
    CONSTANTS:
    CON_TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
    CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.
          LOOP AT T_FINAL INTO WA_T_FINAL.
            CONCATENATE WA_T_FINAL-PERNR
                        WA_T_FINAL-NAME
                        WA_T_FINAL-LEVEL
                        WA_T_FINAL-POS
                        WA_T_FINAL-JOB
                        WA_T_FINAL-SECTION
                        WA_T_FINAL-DEPT
                        WA_T_FINAL-GROUP
                        WA_T_FINAL-EX_HEAD
                        WA_T_FINAL-SUPID
                        WA_T_FINAL-SUPNM
                        WA_T_FINAL-FHRNM
                        WA_T_FINAL-VACID
                        WA_T_FINAL-VAC_SECTION
                        WA_T_FINAL-VAC_DEPT
                        WA_T_FINAL-VAC_GROUP
                        WA_T_FINAL-VAC_EX_HEAD
                        WA_T_FINAL-VAC_FHRNM
            INTO T_FINAL3 SEPARATED BY CON_TAB.
            CONCATENATE CON_CRET T_FINAL3 INTO T_FINAL3.
            APPEND T_FINAL3.
          ENDLOOP.
    *Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    *Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME = 'REPORT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE . "mail description
      W_DOC_DATA-SENSITIVTY = 'F'.
    *Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE T_FINAL1 INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
      ( W_CNT - 1 ) * 255 + STRLEN( T_FINAL1 ).
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = PT_FINAL1[].
    *Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    *Create 1st attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR = 'Application 1'.
      T_PACKING_LIST-OBJ_NAME = 'Application 1'.
      T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
      CLEAR T_PACKING_LIST.
    *Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = LD_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = W_DOC_DATA
          PUT_IN_OUTBOX              = 'X'
          SENDER_ADDRESS             = LD_SENDER_ADDRESS
          SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
          COMMIT_WORK                = 'X'
        IMPORTING
          SENT_TO_ALL                = W_SENT_ALL
        TABLES
          PACKING_LIST               = T_PACKING_LIST
          CONTENTS_BIN               = T_ATTACHMENT
          CONTENTS_TXT               = IT_MESSAGE
          RECEIVERS                  = T_RECEIVERS
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
    Edited by: Rahul Ghosh on Apr 6, 2009 6:42 AM

  • Importing Text From A .txt File

    Hey guys,
    I'm looking for a way to import text from a .txt file but I'm totally lost. If someone could point me in the right direction that would be awesome

    Hi Prails
    This script is basically what you asked:
    #target illustrator
    #targetengine main
    function copyText(){
        var textFile = File.openDialog ("Select the file");
        if (! textFile.exists || app.documents.length==0){
            return;
        textFile.open("r");
        var txtContent = textFile.read();
        textFile.close();
        var doc = app.activeDocument;
        var textItem = doc.textFrames.add();
        textItem.contents = txtContent   
    copyText ();
    Basically what you need to do is declare the text file, open it, read the content and close it. Then, you create a new text item in the Illustrator document and write the content once catched into the text item.
    You could continue to work with the variable "textItem" in my example script if you want to set properties like the size, color of the text, position and so on. Also, if you want, replace the first line of the function var textFile = new File ("~/Desktop/Test.txt"); by var textFile = File.openDialog ("Select the file"); so the scripts opens a dialog to ask you the file you want the copy the content.
    Hope to be helped
    Best Regards
    Gustavo
    Message was edited by: Gustavo Del Vechio

  • SQL table or Txt file as target

    Hi,
    I have been asked my my IT department if FDM can have a Sql table or a txt file as a target instead of using the normal EPM products like esbase/hfm.
    They like the interface as a user friendly interface for collecting data and validating data from numerus sources.
    We are trying to collect invoicing data from our subsiduaries, to produce one electronic invoice to our customer.
    Does anyone have any experiences with this - and is this something they could recommend.
    Is htis perhaps more a job for ODI?
    Kind regards
    Per

    Hi Per
    There are other adapters for FDM so you do not have to use exclusively HFM / Essbase as targets. It sounds as though you may be interested in the 'Pull' adapter, please see the Oracle readme doc for one of the latest versions of that:
    http://docs.oracle.com/cd/E17236_01/epm.1112/fdm_adapter_readmes/pull_g4_e_adapter_readme.pdf
    Essentially it imports to FDM as normal (stored in its underlying relational schema be it SQL or Oracle) and then outputs to text file I believe as standard but I'm sure that you could amend that if required to be a relational target.
    One thing to note is that some of the features of the HFM adapter in particular regarding FDM checking HFM for valid target intersections / members won't be there but you can I believe load a table of valid values into FDM and use that as a replacement to that feature.
    Worth a look at least to compare against ODI. ODI will be able to perform similar tasks but as you suggest may not be as end user friendly (in my opinion / experience).
    Regards
    Stuart

  • Export Excel Table in .txt File with space delimited text in UNICODE Format

    Hi all
    I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very good solution is
    given by the converter in Excel "Save As" .prn File. All works fine, the formattation is perfect (it does not matter if some parts are cutted because are too long), but unfortunately the greek letters are converted into "?"!!!
    I've tried to convert my .xlsx File in .txt File with formatting Unicode and the greek letters are still there! But in this case the format is not good, the structure of a table is gone!
    Do you know how to save an Excel file in .prn but with Unicode formatting instead of ANSI or a .txt with space delimited text?
    Thanks a lot to everyone that can help me!
    M.L.C.

    This solution works in Excel/Access 2013.
    Link the Excel table into Access.
    In Access, right-click the linked table in the Navigation Pane, point your mouse cursor to "Export", and then choose "Text File" in the sub-menu.
    Name the file, and then under "Specify export options", check "Export data with formatting and layout".  Click "OK".
    Choose either Unicode or Unicode (UTF-8) encoding.  Click "OK".
    Click "Close" to complete the export operation.

  • Importing data from a .txt file and have Acrobat create new pages

    Hi everyone,
    I've created a form in Acrobat 9 to be used as an invoice. I want to be able to import data from an excel spreadsheet or .txt file into all the form fields. I know that I can go Forms > Manage form Data > Import Data to import 1 record at a time, but say I have about 50 invoices to populate, is there a way to import all the records at once and have acrobat create a new invoice for each of the customer's records?
    If there is a way, will it be compatible for Acrobat Reader users since this form will be used by someone who only has the Reader?
    Really appreciate any help.

    Sure.. this is what we use. "New Micro Right Click Tools"
    http://www.nowmicro.com/rct/

  • Importing accents from a txt file

    Hi everyone
    I have the following proble that I can't solve for now:
    I've got a pdf file with forms
    I've got an excel file that I export to txt (tab delimited text file)
    When I import the data from the txt file to the pdf everything is fine but the french accents (é or è or à). For example the "é" becomes a " ,".
    I thinks it might be related to unicode or utf but I don't know how to export properly then import those characters.
    Any idea ?
    Thanks
    Florent
    PS: I'm using Excell 2011 on MAC and Acrobat 9 Pro.

    Done that already, no luck.
    I've saved in all the txt formats possible in my Excel.

  • Using applescript/automator to import and categorise multiple .txt files

    Hello all,
    I wonder is anyone can offer me some advice on the best approach to importing multiple text files into excel. I've searched excel specific forums, but it seems that the macro's that work on windows wont work on my mac.
    Basically, I am trying to find a way of importing multiple comma delimanted text files into an excel workbook. If it is possible, it would also be great to automatically compute the data into summarised variables (e.g., the data is multiple reaction time trials [220 to be precise] and I would like to create cells within excel with the mean scores from groups of the trials [A1 to A20, A21 to A40, A41 to A80 etc.]) within a seperate sheet (at present I am importing the text files one by one, performing the calculations, before copying and paste special into a summary sheet).
    I have put an example of the file in dropbox (https://www.dropbox.com/s/9y6valpkzsq8kgz/Example%20workbook.xlsx) to give anyone who is willing to help a better idea of what I mean.
    Thanks in advance.
    John

    Danitaz,
    Did you ever figure out the problem with your mail that was going out from the wrong server (2 yrs. ago)?  I have the same problem from my MacBook Pro, using Mac Mail.  I try to send email from my work account and then find to my surprise and dismay that I get an autoreply in my personal gmail account from the person I wrote to.  I look in the Sent mail for my work account and it looks like the message went from there but I can see in the reply that it instead went from my gmail account!  I tried checking the box in my work account that says "send only from this SMTP server" but that didn't fix the problem.  The only way seems to be turning off the gmail in order to send with certainty from my work account.  If you have any suggestions I would love to try them.  Thanks!
    PS Sorry to write off topic here.  I wanted to reply to the original posting but I guess since it is so old I couldn't do so.

  • Linking to external webpages via txt file

    Hi
    Im trying to link my animated buttons to pages on a website.
    The flash file is linked to an exernal _url.txt file
    where it seems simple enough to amend, but all the flash
    buttons seem to link to the one page only (noted in _urls.txt as
    Url1?
    Any ideas how to amend the this so I can just simply change
    the .txt file to put in the html links?
    I think its something to do with the action code on each
    sepatate button within the flash file ( although the
    overall action for the movie is to link to this -url.txt
    file)
    action code on bottom layer:
    this.loadVariables("_urls.txt")
    Stage.showMenu=false;
    url txt file is below:
    url1=http://www.yourcompanyname.com/page1.html
    &url2=http://www.yourcompanyname.com/page2.html
    &url3=http://www.yourcompanyname.com/page3.html
    &url4=http://www.yourcompanyname.com/page4.html
    &url5=http://www.yourcompanyname.com/page5.html
    &url6=http://www.yourcompanyname.com/page6.html
    &url7=http://www.yourcompanyname.com/page7.html
    &url8=http://www.yourcompanyname.com/page8.html
    &url9=http://www.yourcompanyname.com/page9.html
    &url10=http://www.yourcompanyname.com/page10.html
    individual button action is below:
    on (rollOver) {
    gotoAndPlay("s1");
    on (rollOut, releaseOutside) {
    gotoAndPlay("s2");
    on (release) {
    if(_root.url1==""|| _root.url1==undefined){
    getURL("javascript:alert('NO URL1!')")
    else{
    getURL(_root.url1,"_self")
    Text

    Well, iWeb doesn't seem to be capable of this simple feat; however, http://www.potionfactory.com/ has an app called Podcast Maker that fills this bill quite nicely. Maybe iWeb will be a bit smarter in the next release, eh?

  • Can we create internal table from txt file seperated by space?

    Hi all,
    I have text file abc.txt :
    BP1 SAP1
    BP123 SAP2
    Now I can read this file GUI_UPLOAD FM
    But I want to return this as table with two columns and two rows.
    First row with two columns: BP1 SAP1
    Scond row with two column: BP2 SAP2
    I tried using
    TYPES:
    BEGIN OF i_po_data,
    BP(3) TYPE c, " lmax length of the line of the text file
    BP_name(10) TYPE c,
    END OF i_po_data.
    but in this case
    First 3 characters will be filled in first column.
    But in the second row BP123 , BP1 will be in first column but
    '23' will not fit in first column.
    How to insert the data in the first column just by space?
    so that BP123 can also fit in the second column.
    Thanks,
    SUSHANT

    hi,
    if you have declared a variable of length 3 ,then how can you store data in that varaible which is more then 3 in length?
    change your varaible length to get required result.

  • Create key mapping using import manager for lookup table FROM EXCEL file

    hello,
    i would like create key mapping while importing the values via excel file.
    the source file containing the key, but how do i map it to the lookup table?
    the properties of the table has enable the creation of mapping key. but during the mapping in import manager, i cant find any way to map the key mapping..
    eg
    lookup table contains:
    Material Group
    Code
    excel file contain
    MatGroup1  Code   System
    Thanks!
    Shanti

    Hi Shanti,
    Assuming you have already defined below listed points
    1)  Key Mapping "Yes" to your lookup table in MDM Console
    2) Created a New Remote System in MDM console
    3) proper rights for your account for updating the remote key values in to data manager through import manager.
    Your sample file can have Material Group and Code alone which can be exported from Data Manager by File-> Export To -> Excel, if you have  data already in Data Manager.
    Open your sample file through Import Manager by selecting  the remote system for which you want to import the Key mapping.
    (Do Not select MDM as Remote System, which do not allows you to maintain key mapping values) and also the file type as Excel
    Now select your Soruce and Destination tables, under the destination fields you will be seeing a new field called [Remote Key]
    Map you source and destination fields correspondingly and Clone your source field code by right clicking on code in the source hierarchy and map it to Remote Key if you want the code to be in the remote key values.
    And in the matching criteria select destination field code as a Matching field and change the default import action to Update NULL fields or UPDATED MAPPED FIELDS as required,
    After sucessfull import you can check the Remote Key values in Data Manager.
    Hope this helps
    Thanks
    Sowseel

  • Insert Data into Table from TXT or CSV file !!!!!

    Dear All,
    Recently I have started working on APEX. In Oracle Forms, we used to use TEXT_IO for inserting records into tables from txt files. Now I want to do the same thing in apex 3.2. How can I insert data into tables from txt of csv files.
    Waiting of your valuable suggestions.
    With kind regards,
    Yousuf.

    Yousuf
    wwv_flow_files is used by APEX to hold uploaded files.
    If you incorporate a file browse item on you page, browse for the selected file, then submit the page (having the PL/SQL process described as an on suibmit process) then what I detailed should work.
    If you don't need users to have access to this then just go to Home>Utilities>Data Load/Unload in APEX and there is a handy load utility there that does it all for you.
    Cheers
    Ben

  • Method to dump all tables to flat files?  (spool is slow)

    Hey all,
    I have been using spool with a bunch of set commands and it works great, but performance is a bit slow. Especially for our partitioned tables. (4.2 Mill records) Is there a better way to dump flat files?
    I want to use sqlldr to import (faster than IMP) but no good if creating the flat files is 10X slower than EXP utility.
    Any ideas?
    Thanks,
    Chris G

    Hi Chris,
    Maybe spooling itself is not a key issue which slow down your dumping. In my daily job, I need to dump a big bunch of data (even over 10M records in one table) to .txt files and .csv files and they are all done via spooling.
    If you find the query itself is slow, caused by partition or join, you can try to create materialized tables to get the query results and then dump the data from these tables. This is an approach when I was working on a big data warehouse project.
    Good luck,

  • Text (txt) file location

    Hi everyone,
    For some reason, if I try to import data from a txt file from a folder located on the same location as my movie file it doesn't work:
    on startMovie()
      importFileInto(member "Contact", the applicationpath&"Documents\Contact.txt")
    end
    But if I move the txt file, next to my movie and change the lingo to:
    on startMovie()
      importFileInto(member "Contact", the applicationpath&"Contact.txt")
    end
    It does work...
    I am adding this lingo to a movie script.
    Any ideas?
    thank you in advance...
    Rafa.

    Sean,
    Thank you for your time. I try what you menioned and I do get the alert window. But for some reason it is pointing to a different path than what I would like. See attached, please.
    What do you think is the issue?
    Rafa.

  • How to skip footer details when loading data from a .txt file

    Hello experts,
    i have to import data from a txt file into my database. I have skipped my header info by using SKIP but how can i ignore my footer details.
    Thanks

    Reply on your other thread:
    Processing txt file for a required format

Maybe you are looking for

  • Connection pooling

    hi im dreaded with a problem in connection pooling in struts .i use ide netbeans.im completly new to this topic.now i encountered an error type Exception report message description The server encountered an internal error () that prevented it from fu

  • Change pre-order from 16 to 32 Gb version

    So I pre-ordered the I-Phone 4, 16Gb version yesterday but was having second thoughts after considering the fact that it records HD video and that extra space might be useful. Does any know if it's possible to change my order or has anyone done this?

  • Automated XML - Placeholder Structure Question

    I'm testing XML import for a series of publications that need use automated layouts...having never attemped this. But I am confounded regarding the placeholder structure and how it should mirror the XML structure and am banging my head against a wall

  • Data on HH2 Achieving Stable Line Rate & Switching...

    In the thread "Re: Is HomeHub designed to be on all the time? No off switch?" the question was raised about properly switching off the router at the mains.   I have collected data over the past few weeks which may give some guidance on this action, p

  • Multiple Filters Mode Problem

    I have been trying to implement the Multiple Non-Destructive Filters Mode sample at http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html but just cannot get it to work, although the data shows and is sort of sort