Extract data from one CRM in two diferents BI

Hi Experts,
Anyone knows if is possible extract information from one CRM (witn only one client) to two different BI??
Is necessary use the mapbox?
How configure this?
Regards,
Dani

OK.
But in:
SPRO > Integration with Other mySAP.com Components > Strategic Enterprise Management > Define Target Systems (ERP, BI, SEM, cPro)
Only is possible add one BI system.
You test the solution???
Seems that CRM not work like ECC or ERP.
Regards,
Dani
Edited by: Daniel Merino Fernandez on Apr 29, 2010 10:05 AM

Similar Messages

  • Regarding Extracting Data from SAP CRM

    Hi,
    1) What are steps to extract data fron  SAP CRM? I heared that we get different types of errors while extracting data from SAP CRm to BW when compared to BW
    2) From which tables BW system is getting data when we extract data from SAP CRM Lead management, Opportunities, Activities and CIC?
        Can anybody please let me know the answers for these ..........
    Thanks in Advance,
      Sowji
    [email protected]

    Hi Sowjanya,
    Pls ch this link:
    regarding bw crm extraction
    CRM extraction
    CRM Extraction
    http://help.sap.com/saphelp_nw2004s/helpdata/en/be/92fb3b28904f73e10000000a114084/frameset.htm
    http://help.sap.com/bp_biv335/BI_EN/html/BW/SalesAnalysis.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f2910623-0c01-0010-de8f-d1926988a986
    http://help.sap.com/bp_biv135/html/bw.htm
    http://help.sap.com/bp_biv135/html/BW/SalesAnalysis.htm
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    http://help.sap.com/bp_biv235/BI_EN/index.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    http://help.sap.com/bp_biv235/BI_EN/html/BW/CRMAnalytics.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    Steps:
    1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
    SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
    2) Activate the Business Content DataSources (tcode RSA5).
    Select/enter the application component and choose Execute (F8).
    To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
    To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
    3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
    As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
    You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
    The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
    All BW-Adapter metadata is considered when versions are compared:
    Header information (Table SMOXHEAD)
    Mapping information (Table SMOXRELP)
    Global selection conditions (Table SMOXGSEL)
    Attribute key fields (Table SMOXAFLD)
    Datasources used in CRM-BW extraction are:
    0crm_sales_act_1,
    0BBP_STSMA_TEXT
    0CRMFOCST_TEXT
    0CRM_ACCPLN_ATTR
    0CRM_ACCPLN_TEXT
    0CRM_BILL_BLCK_TEXT
    0CRM_CANC_PARTY_TEX
    0CRM_CANRSN_TEXT
    0CRM_CATEGORY_ATTR
    0CRM_CATEGORY_TEXT
    0CRM_CLASS_TEXT
    0CRM_DECOTP_TEXT
    0CRM_DECO_TEXT
    0CRM_DIRECT_TXT
    0CRM_ECROPT_TEXT
    0CRM_FINCLASS_TEXT
    0CRM_ITM_OBJ_TYPE_T
    0CRM_ITM_TYPE_TEXT
    0CRM_JRGUID_TEXT
    0CRM_OBJ_TYPE_TEXT
    0CRM_OPGUID_TEXT
    There many more!
    Check the datasources in rsa6 of crm system under CRM node. Documentation is available in SAP help.
    *pls search SDN For more info*
    *pls assign points if info is useful*
    Regards
    CSM reddy

  • Is there a way to extract data from one of e.g. 7 rows from the multicolumn listbox?

    is there a way to extract data from one of e.g. 7 rows from the multicolumn listbox?

    All the data can be extracted by creating a property node and read the Item Names property...then you get a 2D array of all the rows and columns. Wire that array into an index array function and input the row you want (e.g. the listbox value, if you want the row currently selected...)...that's it. See attached example.
    MTO
    Attachments:
    ExtractRow.vi ‏24 KB

  • Tool to transfer data from one CRM system to another

    Hi,
    We are merging one CRM system into another and need to transfer master data and transactions from one CRM system into the another. What are the options/tools that are available for data migration in CRM 7.0?
    Please share experiences/thoughts if you have moved data into SAP CRM from legacy/other SAP CRM systems.
    Regards
    Dan

    Hi Dan,
    Looking at your post - I decipher that you would be doing download from a lower version of SAP CRM system to SAP CRM 7 if this is the scenario then you have an advantage as you could employ standard SAP CRM middleware which is a powerful application to download master data from older version to new version, or else you could ALE the master data. Now this being the simple part we move on to the harder part of the migration which is transactional data - namely elements such as Number ranges, document flow, relationships, condition data tables .....etc if you are migrating this from lower SAP CRM version here you would have to understand the interlinking with R/3 or ECC6 in any case you would have to do a fresh implementations but on the whole there are some way outs for examples ; But still  let me know how you intend to migrate and what are systems we are talking about.
    With compliments,
    Tarovar.

  • Enter Data from one table to two tables

    Hi
    I have three table one is master sale_order another is sale_order_detail(detail table) and the thirs is external table
    what i want the data from extenal table to my master and detail
    What i did for this i create a cursor and enter the data in master but what i need in detail i am able to insert but i am not able to understand how i will insert ID in detai my cursor and table codes are given below
    sale_order;
    Name Null? Type
    ID NUMBER
    SALE_ORDER_NO VARCHAR2(50)
    ORDER_DATE DATE
    PARTY_NAME VARCHAR2(100)
    DEL_DATE DATE
    COMMENT1 VARCHAR2(200)
    desc sale_order_detail;
    Name Null? Type
    ID NUMBER
    PROD_ID VARCHAR2(20)
    STYLE VARCHAR2(100)
    COLOR VARCHAR2(20)
    XS NUMBER
    S NUMBER
    M NUMBER
    L NUMBER
    XL NUMBER
    PCS NUMBER
    TOTAL_QTY NUMBER
    COMMENTS VARCHAR2(100)
    SQL> desc po_pending_csv;
    Name Null? Type
    P_O_NO VARCHAR2(20)
    PARTY_NAME VARCHAR2(120)
    PROD_CODE VARCHAR2(20)
    STYLE_NAME VARCHAR2(120)
    COLOR VARCHAR2(25)
    XS VARCHAR2(25)
    S VARCHAR2(25)
    M VARCHAR2(25)
    L VARCHAR2(25)
    XL VARCHAR2(25)
    PCS VARCHAR2(25)
    COMMENTS VARCHAR2(100)
    COMMENT1
    DECLARE
         v_p_o_no sale_oder.sale_order_no%type;
         v_party_name sale_order.party_name%type;
    CURSOR po_cursor IS
         SELECT DISTINCT(p_o_no),party_name FROM po_pending_csv;
    BEGIN
         OPEN po_cursor;
    LOOP
              FETCH po_cursor INTO v_p_o_no,v_party_name;
         EXIT WHEN po_cursor%NOTFOUND;
              INSERT INTO sale_order (id,sale_order_no,party_name,order_date)
              VALUES (sale_order_id_seq.nextval,v_p_o_no,v_party_name,sysdate);
    END LOOP;
    CLOSE po_cursor;
    END;
    DECLARE
    CURSOR c1 IS
         SELECT id from sale_order;
         v_id sale_orderdetail.id%TYPE;
         v_p_o_no sale_oder_detail.p_o_no%TYPE;
         v_prod_code sale_oder_detail.prod_id%TYPE;
         v_style_name sale_oder_detail.style%TYPE;
         v_color sale_oder_detail.color%TYPE;
         v_xs sale_oder_detail.xs%TYPE;
         v_s sale_oder_detail.s%TYPE;
         v_m sale_oder_detail.m%TYPE;
         v_l sale_oder_detail.l%TYPE;
         v_xl sale_oder_detail.xl%TYPE;
         v_pcs sale_oder_detail.pcs%TYPE;
         v_comments sale_oder_detail.comments%TYPE;
    CURSOR po_cursor_detail IS
    SELECT p_o_no,prod_code,style_name,color,xs,s,m,l,xl,pcs,comments
         FROM po_pending_csv;
    BEGIN
         OPEN po_cursor_detal;
         OPEN c1;
    LOOP
              FETCH po_cursor_detail INTO v_p_o_no,v_prod_code,
              v_style_name,v_color,v_xs,v_s,v_m,v_l,v_xl,v_pcs,v_comments;
    FETCH c1 INTO v_id;
         EXIT WHEN po_cursor_detail%NOTFOUND;
    EXIT WHEN c1%NOTFOUND;
              INSERT INTO sale_order_detail(id,prod_id,style,color,xs,s,m,l,xl,pcs,
              total_qty,comments)
              VALUES (v_id,v_prod_id,v_style,v_color,v_xs.v_s,v_m,v_l,v_xl,v_pcs,
              v_xs+v_s+v_m+v_l+v_xl,v_comments);
    END LOOP;
    CLOSE po_cursor_detail;
    CLOSE c1;
    END;
    plesae help me
    thanks and regards
    vikas singhal

    Try this:
    DECLARE
      TYPE t_sales IS RECORD(
        id         DBMS_SQL.NUMBER_TABLE,
        p_o_no     DBMS_SQL.VARCHAR2_TABLE,
        party_name DBMS_SQL.VARCHAR2_TABLE,
        prod_code  DBMS_SQL.VARCHAR2_TABLE,
        style_name DBMS_SQL.VARCHAR2_TABLE,
        color      DBMS_SQL.VARCHAR2_TABLE,
        xs         DBMS_SQL.NUMBER_TABLE,
        s          DBMS_SQL.NUMBER_TABLE,
        m          DBMS_SQL.NUMBER_TABLE,
        l          DBMS_SQL.NUMBER_TABLE,
        xl         DBMS_SQL.NUMBER_TABLE,
        pcs        DBMS_SQL.VARCHAR2_TABLE,
        total_qty  DBMS_SQL.NUMBER_TABLE,
        comments   DBMS_SQL.VARCHAR2_TABLE,
        flag       DBMS_SQL.NUMBER_TABLE);
      a_sales t_sales;
      TYPE t_sales_id_list IS TABLE OF SALE_ORDER%ROWTYPE
        INDEX BY PLS_INTEGER;
      a_sales_id_list t_sales_id_list;
      v_curr_id NUMBER;
      CURSOR c_sales IS
        SELECT *
          FROM (SELECT NULL id,
                       p_o_no,
                       party_name,
                       prod_code,
                       style_name,
                       color,
                       xs,
                       s,
                       m,
                       l,
                       xl,
                       pcs,
                       xs+s+m+l+xl total_qty,
                       comments,
                       ROW_NUMBER() OVER(PARTITION BY p_o_no,
                                                      party_name
                                             ORDER BY p_o_no,
                                                      party_name) row_number
                  FROM po_pending_csv)
         ORDER BY p_o_no,
                  party_name,
                  row_number;
      v_timestamp DATE := SYSDATE;
      v_array     NUMBER := 1;
    BEGIN
      OPEN c_sales;
      LOOP
        FETCH c_sales BULK COLLECT
          INTO a_sales LIMIT 100;
        -- Logic to populate ID
        FOR i IN 1 .. a_sales.id.COUNT
        LOOP
          IF a_sales.flag(i) = 1 THEN
            -- Only get nexval for distinct values of p_o_no, party_name
            SELECT sale_order_id_seq.NEXTVAL
              INTO v_curr_id
              FROM dual;
            -- Assign new id to a_sales
            a_sales.id(i) := v_curr_id;
            -- Populate a_sales_id_list
            a_sales_id_list(v_array).id := v_curr_id;
            a_sales_id_list(v_array).sale_order_no := a_sales.p_o_no(i);
            a_sales_id_list(v_array).order_date := v_timestamp;
            a_sales_id_list(v_array).party_name := a_sales.party_name(i);
            -- Increment counter
            v_array := v_array+1;
          ELSE
            -- Populate a_sales id with last value
            a_sales.id(i) := v_curr_id;
          END IF;
        END LOOP;
        -- Insert into Sales Order
        FORALL i IN 1 .. a_sales_id_list.COUNT
          INSERT INTO SALE_ORDER
            VALUES a_sales_id_list(i);
        -- Insert into Sales Order Detail
        FORALL i IN 1 .. a_sales.id.COUNT
          INSERT INTO SALE_ORDER_DETAIL
            (id,
             prod_id,
             style,
             color,
             xs,
             s,
             m,
             l,
             xl,
             pcs,
             total_qty,
             comments)
          VALUES
            (a_sales.id(i),
             a_sales.prod_code(i),
             a_sales.style_name(i),
             a_sales.color(i),
             a_sales.xs(i),
             a_sales.s(i),
             a_sales.m(i),
             a_sales.l(i),
             a_sales.xl(i),
             a_sales.pcs(i),
             a_sales.total_qty(i),
             a_sales.comments(i));
        -- delete array
        a_sales_id_list.delete;
        -- reset counter
        v_array := 1;
        EXIT WHEN c_sales%NOTFOUND;
      END LOOP;
      CLOSE c_sales;
      COMMIT;
    END;Cheers

  • How to extract data from CRM with Data Service?

    Hi all,
                 I'll try to explain briefly the main issue; We need to read or extract data from SAP CRM with Data Service tool, then we'll show the data with webi, but now I would like to know if there are some standard tool as a rapid mart (i mean that it doesn't exists) but if some one knows how it works and if it's possible, it could be very helpful for us.
    BW option doesn't ok because the client needs a lot of queries for a report and the standard tool in our project is Data Service.
    Thanks in advance, and ask all u need if it can be a help for answer the question.
    Best Regards.
    Edited by: Cantabria on Jun 7, 2011 1:14 PM

    Hi,
    Your very familiar with LO data source even though your getting doubts on it.
    LBWE/SM13 belongs to only LO Data sources.
    CRM data sources also have delta settings based on data source.
    You can search on google about CRM data sources by using data source names.You may get some useful information.
    Before using CRM Data sources, CRM functional team need to set proper configurations at CRM system. those also you can easily get form google.
    use search term as " CRM - BW Adapter settings".
    Like other standard data sources for crm also,
    we need to activate from RAS5 and do the modification at RSA6.
    test at RSA3 and replicate into BW. Do the rest of the flow at bw system.
    Thanks

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • Error while  extracting data from CRM to 0BPARTNER

    Hi All,
    We are  extracting   daily data from SAP CRM to  0BPARTNER using 0BPARTNER_ATTR(Delta mode)  .  While loading the data upto PSA,  it showed the total number of  records as * 50033 from 50033*. But the total and technical  status  are  yellow . When checked  the step by step analysis , *Processing error in source system reported * is red and rest all are green.When I saw  the application Log it is writtern as  * There is a discrepancy between confirmation and deletion of qrfc-LUWs*.
    In the Details tab ,we got the following messages.
    1)*Extraction (messages): Errors occurred *
       19485 Records sent ( 19485 Records received ) .
    2)*Transfer (IDocs and TRFC): Missing messages or warnings *
        *IDoc : sent, not arrived ; Data passed to port OK * and rest every thing is green.
    But all the data packets are fine.
    WeI have checked using  BD87, WE02, WE05   in BW and source systems for I DOCS . But none of the t-codes provide any IDOCS with warnings or errors.
    So we have changed the Total l status to  Green. Please note that  still the technical status is showing  as Yellow only. 
    We started to  updating  the data target from PSA. Now again, both statues are showing yellow only.So  what should we do inorder to resolve this ?
    Thanks  in advance,
    Babu Vasamsetti.
    Edited by: babu vasamsetti on Jan 11, 2010 5:54 PM
    Edited by: babu vasamsetti on Jan 11, 2010 5:55 PM
    Edited by: babu vasamsetti on Jan 11, 2010 5:55 PM

    Hi
    please check sm58 in souce system side trfc may be strucked... to press f6 to run manually
    first make a request a red.. in IP
    hope u clear it
    thx
    viijender

  • Error while extracting data from CRM

    Dear all,
    I have used some standard and generic datasources to extract data from CRM. These were working fine for more than a year and are scheduled in Process chains. For the past few days I am getting Caller 09 error as shown below, only for the generic datasources. I have checked the connection,replicated the datasources and activated them, reinitialized and have tried all the solutions that were posted earlier, but still the process chain fails. When I execute the process chain for generic datasources manually, it is working fine.
    When I tried in RSA3 for both standard and generic datasources in CRM with update mode D, I get a message 'Error occured during the extraction',
    Kindly suggest what can be the problem.
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Extractor .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.
    Thanks all in advance.
    Regards
    Adhira Anand

    Hi Meyappan,
    I have checked SM37, SM21 and ST22. There are no errors.
    in SM37 the below log is displayed.
    Job started
    Step 001 started (program SBIE0001, variant &0000000005420, user ID ALEREMOTE)
    Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
    DATASOURCE = ZCRM_SRV_DEFECT
    RLOGSYS    = CLNT645BIP
    REQUNR     = REQU_4JHQ8HH6KA40JHC1TYLYIV2W2
    UPDMODE    = D
    LANGUAGES  = *
             Current Values for Selected Profile Parameters               *
    abap/heap_area_nondia......... 2000000000                              *
    abap/heap_area_total.......... 2000000000                              *
    abap/heaplimit................ 40000000                                *
    zcsa/installed_languages...... DE                                      *
    zcsa/system_language.......... E                                       *
    ztta/max_memreq_MB............ 2047                                    *
    ztta/roll_area................ 6500000                                 *
    ztta/roll_extension........... 2000000000                              *
    1 LUWs confirmed and 1 LUWs to be deleted with function module RSC2_QOUT_CONFIRM_DATA
    IDOC: Info IDoc 2, IDoc No. 101415, Duration 00:00:00
    IDoc: Start = 13.10.2010 22:51:39, End = 13.10.2010 22:51:39
    Synchronized transmission of info IDoc 3 (0 parallel tasks)
    IDOC: Info IDoc 3, IDoc No. 101416, Duration 00:00:00
    IDoc: Start = 13.10.2010 22:51:42, End = 13.10.2010 22:51:42
    Job finished

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • Extract datas from CRM - Appliance

    Hi experts
    Anybody knows if has the standard datasource to extract datas from appliance in CRM ?
    Or the tables that I need to read to get all information ther?
    Tks,
    Cesar Batista

    Hi Cesar,
    Please check the below link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/af/ed833b2ab3ae0ee10000000a11402f/frameset.htm
    Hope it helps!
    Regards,
    Pavan

  • How to extract data from the fields present in two or three tables

    Hi Experts,
          I have a scenario where i have to extract data from the fields of different tables. e.g. let there 2 tables which have some number of fields . I want the data of 3 fields each from these 2 tables. How can i get that??
    Sam

    Hi
    You can create view in tcode se11..
    here you include all tables from which you want to fetch the data..
    you need to give selection condition here
    eg..
    say select empname from table A, select empadd from table B.. where empno(from A)=empno(from B)
    (note that you dont need to write queries like this.. i have just given u the example)
    After creating the view you can create datasource in RSO2..
    Regards
    Swati

  • Partitioning two Years Of Data From One Cube Yo Another

    Hi Experts,
    Can any one please help me on the following issue.
    I got the requirement where I need to copy the data from one cube to another having unequal number of dimensions.
    I have achieved this using Transparent partitioning, But I could be able to copy only one year data.
    In cube1 I have the months like Jan, Feb...Dec and in cube2 I have the structure like Jan-11..Dec-11, Jan-12...Dec-12.
    While creating the partition how can I map the Jan with Jan-11 and Jan-12.
    Thanks In Advance,
    Ram

    You can map manually. it is possible.

  • Unable to extract data from an AS/400 system.

    Hello experts.
    We are trying to extract data from an AS/400 system but not having any success until now.
    I´ll write down you the stepts that we have followed until now:
    1.- Create a DB Connect between both systems
    2.- Create a Source System from AS400 in the workbench under DB Connect Directory
    3.- Generate datasources from tebles specified in the schema of the connection
    break point -
    At this point, we had a problem with some tables with at least one fieldname containing character "Ñ".
    After asking some possible solutions to SAP, the told us this is not supported, as the system can´t have any object with character "Ñ", so the transfer structure was unable to activate with this fields in the datasource.
    --- end of brek point --
    4.- After those issues, we´ve decided to implement, in another schema, views from those tables which had the fieldnames with that character "Ñ", changing them to an "N".
    5.- We´ve created another source system with that schema, and user than can see that schema.
    6.- To be able to see those views, in transaction RSDBC, we had to deactivate the two checkboxes in the first window ( Choose tables and Choose views) .
    7.- Right afeter, we could generate correctly the datasources from this logical tables.
    8.- We have designed  the hole dataflow for this datasources and everithing went rigth.
    9.- But wen we tried to execute the infopackage to extract data from those logic tables, we cannot get any registers. Acctualy the charge remains yellow after the job have finished.
    Please, I would appreciate any help you could give us on this problem.
    Thank you very much
    Regards
    Joaquin

    I´d like ti add something to this thread, and maybe clarify a littel bit the question.
    The only way that the BW system recognizes those logical tables, through transaction RSDBC is checking out the two boxes on this transaction, "Select Tables" and "Select Views".
    I don´t know haw these logical tables have been created, bus does this mean that the are not neither tables or views as BW understand them.
    Please, if someone knows anythin about this, answer to this thread.
    Thank you very much.
    Joaquin Sobrido

  • Extracting data from Excel To Illustrator javascript or vbscript

    Hi all-
    I was wondering if there was a way to extract data from Excel to be used in Illustrator. I know there is an option of variables and xml, and I don't want that. I've seen and tried out how to read illustrator and write to excel, and I get that.  What I would like to do is pretty much the opposite:
    1.Pre-fill in an Excel file(.xls,.csv, doesn't matter) with data such as a filename in column 1 and (Replacement Text) in column 2 and close manually.
    2. Run script(VBSCRIPT,Javascript, doesn't matter)
    3.For each column in Excel file where cell in first column is not empty, open Illustrator Template with placeholder of "DWG" textframe and replace the frame titled "DWG" with Replacement text from Excel in Column2.
    4, Save each to a PDF file and name file with text from Excel Column1(Filename)
    In a nutshell, there will be a single illustrator template with a premade textFrame with a name of "DWG". Excel will contain two columns, one for the filename to be named and one for the relative text to replace with the placeholder in AI. I hoped I explained this well enough without causing too much confusion. Thanks in advance.
    Filename
    Replacement Text
    test1.pdf
    DWG01
    test2.pdf
    DWG02
    test3.pdf
    DWG03
    test4.pdf
    DWG04

    As text… \n is new line character and \r is return character. I can't remember which excel uses but they both equate to a line/paragraph… I very quickly threw together an example for you…
    #target Illustrator
    textToPDF();
    function textToPDF() {
              if ( app.documents.length == 0 ) { return; }
              var doc, csvFile, i, fileArray, opts;
              csvFile = File( '~/Desktop/ScriptTest/Test.csv' );
              if ( !csvFile.exists ) { return; }
              fileArray = readInCSV( csvFile );
              doc = app.activeDocument;
              opts = new PDFSaveOptions();
              opts.pDFPreset = '[Press Quality]';
              // Here we loop the main array
              for ( i = 0; i < fileArray.length; i++ ) {
                        // Here we get the second item of sub array i
                        doc.textFrames.getByName( 'DWG' ).contents = fileArray[i].[1];
                        // Here we get the first item of sub array i
                        doc.saveAs( File( fileArray[i].[0] ), opts );
    function readInCSV( fileObj ) {
              var fileArray, thisLine, csvArray;
              fileArray =[];
              fileObj.open( 'r' );
              while( !fileObj.eof ) {
                        thisLine = fileObj.readln();
                        csvArray = thisLine.split( ',' );
                        fileArray.push( csvArray );
              fileObj.close();
              return fileArray;
    I haven't tested it but it should be close…?

Maybe you are looking for