Help on transformation BI7

Dear Friends,
I am working on a transformation where I need to populate a field wrt to a Keyfigure!!!
Like IF Amount = 0 then Field = F else Field = C. When I try to insert a formula in the rule, I am getting an error message as the content is not Boolean. Could anybody help?
Regards
Oops

If it's 3.X flow -
IF comm_structure-Amount = 0.
RESULT = 'F'.
ELSE.
RESULT = 'C'.
ENDIF.
if it's 7.0 flow, then -
IF source_fields-Amount = 0.
RESULT = 'F'.
ELSE.
RESULT = 'C'.
ENDIF.

Similar Messages

  • Please help me transform this C++ code to java code....

    guys...please help me transform this C++ code to java code....please try to explain the code..thanks
    [program]
    #include <stdio.h>
    #define ALIVE 1
    #define DEAD 0
    #define SZ 33
    int stschk (int ,int );
    main()
    int s[SZ][SZ], i, j;
    for (i=0; i<sz; i++ ) s[0] = DEAD;
    for (j=0; j<sz; j++ ) s[0][j] = DEAD;
    s[0][1] = ALIVE;
    for (i=0; i<sz-1; i++) {
    for ( j=1;j<sz;j++ ) {
    s[i][j] = stschk(s[i][j-1],s[i+1][j];
    if(s[i][j-1]==ALIVE) printf("*");
    else printf(" ");
    printf("\n");
    int stschk(int s1,int s2)
    if(((s1==DEAD)&&(s2==ALIVE))||
    ((s1==ALIVE)&&(s2==DEAD))) return ALIVE;
    else return DEAD;

    Being picky, that's not C++, that's C. Standard headers in C++ dont' have .h after them, loop variables are scoped with the for, you use constants rather than #defines, etc..
    C and C++ both don't initialise arrays by default; you'd have to write an initialiser to get it to zero out the array:
        int s[sz][sz] = {};gcc will insert a call to memset to zero the array.
    If the author was assuming that the array was zeroed out, there would be no point zeroing the first row and column.
    The code reads values which haven't been initialised. If you mark such values explicitly undefined, and change the program to report an error when undefined, then you get several cases where the program makes such report.
    So either it' s a primitive random number generator (some random number generators use uninitialised memory as a source of randomness), or it's buggy, or it's processing undefined data and throwing away the result. Either way, it cannot be directly be ported to Java if the undefined values (which are limited to a small area of the ouput) are significant.

  • Need help in transformation

    Hi All,
        I need a help in transformation.  There are 5 Key figures : KF1, KF2,KF3, KF4 , KF5 in my target.
    Requirement is  KF3 should be KF1 * KF2
    and if KF4 >0 ,  KF5 = KF4.
      else
            KF5 = KF3.
    I am not able to see these key figures when im trying in  formula or routine.
    How can I do these in transformations ???
    Thanks in advance..

    Hi All,
      Thanks for your inputs .
    I have used end routine for this requirement as the field level transformation will become complex as the (already present KFs in target are derived from the routines)..
    So  I have used end routine,
    Data: lwa_result_package like line of result_package.
    loop at result_package into lwa_result_package.
    lwa_result_package-/BIC/zval_chng = lwa_result_package-/BIC/zpri_new * lwa_result_package-/BIC/z_qty_new -
                                   lwa_result_package-/BIC/zpri_old * lwa_result_package-/BIC/z_qty_old.
    if lwa_result_package-/BIC/zval_chng is not initial.
    lwa_result_package-/BIC/ztot_amnt = lwa_result_package-/BIC/zval_chng.
    else.
    lwa_result_package-/BIC/ztot_amnt = lwa_result_package-/BIC/znetprice.
    endif.
    MODIFY result_package from lwa_result_package.
    endloop.
    Thanks again for your posts..

  • XSLT help to transform an XML

    I need help writing and XSLT to transform an XML in InDesign.  I am new to XML and have no idea how to write an XSLT.
    We are trying to bring in data from a database using a query language that is having trouble creating the image tags the way we need it to.  Basically, I need to take this:
    <Project href="file://C:\My test phot.jpg">
    and transform it into this:
    <Project> <image href="file://C:\My test phot.jpg" />
    Can anyone help me with this?
    Thanks!

    Not sure I can help you with this, as my understanding of XSL is very limited.
    However, as a matter of trial and error, I find that if I transform this XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Root>
         <Project href="file://C:\My test phot1.jpg">The first bit of textual content here</Project>
         <Project href="file://C:\My test phot2.jpg">The second bit of textual content here</Project>
         <Project href="file://C:\My test phot3.jpg">The third bit of textual content here</Project>
         <Project href="file://C:\My test phot4.jpg">The fourth bit of textual content here</Project>
         <Project href="file://C:\My test phot5.jpg">The fifth bit of textual content here</Project>
    </Root>
    ...with this XSLT:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:template match="/">
         <Root>
             <xsl:for-each select="/Root/Project">
               <Project>
                 <image><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute></image>
                 <xsl:value-of select="."/>
               </Project>
             </xsl:for-each>
         </Root>
       </xsl:template>
    </xsl:stylesheet>
    ...I end up with this XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Root>
    <Project><image href="file://C:\My test phot1.jpg"/>The first bit of textual content here</Project>
    <Project><image href="file://C:\My test phot2.jpg"/>The second bit of textual content here</Project>
    <Project><image href="file://C:\My test phot3.jpg"/>The third bit of textual content here</Project>
    <Project><image href="file://C:\My test phot4.jpg"/>The fourth bit of textual content here</Project>
    <Project><image href="file://C:\My test phot5.jpg"/>The fifth bit of textual content here</Project>
    </Root>
    ...which seems what you're looking for.
    [I edited the original solution slightly by removing a wildcard.]

  • Attributes in Transformation (BI7.0)

    Hello Experts,
    I have 0MATERIAL. In this Material is a Attribut ZBRAND. In the Transformation - I load Master Data from
    0MATERIAL. Thats okay.
    But, ZBRAND have ZCOUNTRY as Attribut. I want in the same Transformation load ZCOUNTRY too. How can I
    do this.
    THANKS
    MO

    Dear Mojito,
    I assume that you have 0Material in source and both ZBRAND & ZCOUNTRY in target.
    As you said, you ll read master data of ZBRAND from 0Material.
    In the end routine, you shall give the following code to read the master data of ZCOUNTRY from ZBRAND.
    data: wa_rp type _ty_s_tg_1,
             it_rp type _ty_t_tg_1.
    data: lv_zcountry type _ty_s_tg_1-/bic/zcountry,
             lv_tabix type sy-tabix.
    loop at result_package into wa_rp.
    lv_tabix = sy-tabix.
    select single /bic/zcountry into lv_zcountry from /bic/pzbrand where /bic/zbrand = wa_rp-/bic/zbrand.
    wa_rp-/bic/zcountry = lv_zcountry.
    Modify result_package index lv_tabix from wa_rp transporting /bic/zcountry.
    clear wa_rp.
    endloop.
    Kindly take care of variable names in the code to avoid syntax errors.
    Also if the target is a DSO then make sure you select "All target fieds" button from Update behavior of End routine (Just right to End routine button).
    Hope this helps.
    Revert back for any clarifications.
    Regards,
    Guru

  • Help Need Transformation Routine

    Hi ALL,
        I want to write a routine in transformation which generates sequence number(Surrogate key) whenever i load the data in cube/ODS  ,since i don't any idea on ABAP Coding i can't proceed further. Can anybody help me in writing ABAP code generate sequence number in object based on the number of records.
    Please can anyone help me on this.
    Thanks & Regards
    Sameer Khan

    Hi Sameer
    Please let me know whether my understanding is correct or not
    You need to create a sequence number for each record of the cube
    In that case you can write a simple routine to generate a number and assign it to any infoobejct. After the last record of the data package just store the last value of sequence into a temp memoey location.
    and at the start of the routine just retrive the value of that memory loacation.
    Thanks & Regards
    Rohit

  • Help with Transformation routine

    Hi,
    I have a transformation routine from a DSO to a cube. The DSO contains two infoobjects ( Form, Brand ) which are mapped to infoobject Material in the cube. My requirement is that i need to populate the material number based on the brand and form available in the DSO. Can you please help me with the routine to be written for material ?
    Regards
    Snehith.

    Hi,
    perform below steps in start routine .
    create one internal  as t_material having 3 fields
    and then write select query as :
    SELECT material
               brand
              form
         FROM /BIC/PGPUMATL
         INTO TABLE t_material
          FOR ALL ENTRIES IN SOURCE_PACKAGE
        WHERE brand EQ SOURCE_PACKAGE-brand
      form EQ SOURCE_PACKAGE-  form
    In transformation routine of material:
    write below logic :
    FIELD-SYMBOLS  :<fs_ t_material >    TYPE y_ t_material .
    *" Get material class value from table /bic/agpud009900
        READ TABLE  t_material
          ASSIGNING <fs_ t_material >
          WITH KEY brand = SOURCE_FIELDS-brand
                             form = SOURCE_FIELDS- form
        IF  sy-subrc EQ 0
        AND <fs_ t_material >  IS ASSIGNED.
          MOVE <fs_ t_material >material  TO RESULT.
        ENDIF.
    Hope this helps you
    Thanks .

  • Please help - free transform distort...

    Hey.
    No matter what I try, I can't get to distort objects using the free transform tool. I know I have to click/hold/drag the anchorpoint first, I've read all the help files, tutorials and sp forth, but none of the modifier-keys has any effect while I'm doing that. I'm a fairly experienced user, and - to put it mildly - about to kick in my screen over not getting something simple as this to work?!
    I'm on a Mac, using CS4. And pretty pissed off...
    Hans

    Make sure Bounding Boxes are visible (View menu.)
    Select the object.
    Get the FreeTransform tool. Mousedown on a BoundingBox corner.
    THEN press and hold the modifer keys.
    Then drag.
    JET

  • PLS HELP: XML Transformation using Saxon8

    I am using XSL version2.0 and the xalan parser is not recognizing the tokenize function in the XSLT.
    Now I am trying to transform the XML using Saxon8. But it is giving exception...
    java.lang.ClassNotFoundException ---> java.lang.AssertionError.
    at java.lang.Class.forName(Class.java:142)
    at net.sf.saxon.functions.ExtensionFunctionFactory.class$(ExtensionFunctionFactory.java:21)
    at net.sf.saxon.functions.ExtensionFunctionFactory.<init>(ExtensionFunctionFactory.java:21)
    at net.sf.saxon.Configuration.<init>(Configuration.java:87)
    at net.at net.sf.saxon.TransformerFactoryImpl.<init>(TransformerFactoryImpl.java:44)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:262)
    at javax.xml.transform.FactoryFinder.newInstance(Unknown Source)
    at javax.xml.transform.FactoryFinder.find(Unknown Source)
    at javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
    at SAXTest.main(SAXTest.java:
    the following is the code...
    Please help in solving the problem...
    import javax.xml.transform.*;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.stream.StreamSource;
    import java.io.*;
    import net.sf.saxon.*;
    public class SAXTest {
    public static void main(String[] args) {
    String strResult = new String();
    File xmlFile = new File("source.xml");
    File xslFile = new File("input.xsl");
    System.setProperty"javax.xml.transform.TransformerFactory","net.sf.saxon.TransformerFactoryImpl");
    StringWriter xmlString = new StringWriter();
    StreamSource xmlSource = new StreamSource(xmlFile);
    StreamSource xslSource = new StreamSource(xslFile);
    StreamResult result = new StreamResult(xmlString);
    TransformerFactory trans = TransformerFactory.newInstance();
    try
    Transformer transformer = trans.newTransforme(xslSource) transformer.transform(xmlSource,result);
    System.out.println("result = "+result.toString());
    }catch(Exception e){}
    Please help me....

    It depends on your jre version if you have jre 1.4 .
    You can get your TransformerFactory instance using javax.xml.transform.TranformerFactory.newInstance() directrly.
    If your jre version is higher than *1.4* than try to locate this class in your rt.jar in jre lib directory.
    When you found that class replace your code
    System.setProperty("javax.xml.transform.TransformerFactory","your desired TransformerFactoryClass") than run the code you wont find that error again.
    If you want some details copy and paste your error in google search you will found same problems posted by different programmers on forums however i have seen them before. Hope this help. Sorry if i have misunderstood your problem.

  • Automatic Fields Mapping in Transformation - BI7

    Greeting,
    Getting some development procedures done automatically will definitely boost up productivity and efficiency. Examples include programs to:  create mass infoObjects, delete mass infoObjects, and activate mass InfoObjects.
    Again, that are just examples.
    In line with this, have you ever come across any program for automatic mass mapping in transformation?
    Meaning instead of doing it manually, you just fill the source fields and the target field in the program then you press the button and have it ready on the spot.
    Your quick response will be highly appreciated.

    Hi,
    I have not tried this out. But I guess you can use the class CL_RSTRAN_BUILD and generate transformations via an ABAP program.
    Bye
    Dinesh

  • Need help in transforming a customer structure to an analytical structure

    I have the following tables. I am interested in studying the manager's attributes that will predict the sales of Product A. In addition, I want to study whether the client attributes have an impact of the sales of product A. Can someone give me an example on how to combine these three tables so that I can do my analysis?
    Sales Managers -> (1-n) Clients -> (1-n) Products
    Sales Managers Attributes
    Manager ID
    Region
    State
    Years of experience
    Age
    Clients Attributes
    Client Type (Technology / Finance, etc)
    Client Size (Large / Medium / Small)
    Product Attributes
    Products (A / B / C)
    Revenue
    Sale Date
    1. If I transform the data into the following structure, will this structure allow me to study the relationship between the attributes of sales managers/clients and the likelihood of selling product A?
    My concern is that each sales manager is repeated multiple times. For example if a sales manager have clients of Technology and of Finance and clients of all sizes (Large/Medium/Small). That's six rows of data for each unique manager.
    Manager ID, Region, State, Years of Experience, Age, Client Type, Client Size, # Clients, Revenue, Sale Year, # Products Sold, Product A Sold (yes/no)
    123, East, MA, 5, 25, Technology, Large, 2, $10000, 2007, 1000, Yes
    123, East, MA, 5, 25, Technology, Medium, 5, $6000, 2007, 500, Yes
    123, East, MA, 5, 25, Technology, Small, 10, $4000, 2007, 200, No
    123, East, MA, 5, 25, Finance, Large, 1, $5000, 2007, 500, Yes
    123, East, MA, 5, 25, Finance, Medium, 1, $5000, 2007, 500, Yes
    123, East, MA, 5, 25, Finance, Small, 1, $5000, 2007, 500, No
    124, West, CA, 10, 35, Technology, Large, 2, $10000, 2007, 1000, No
    124, West, CA, 10, 35, Technology, Medium, 5, $6000, 2007, 500, Yes
    2. What algorithm should I use to study the input variables to predict the likelihood of selling product A?

    HI,
    You could use Association Rules for coming up with the probability of sales given the sale of a specific item.
    ODM will handle transactional input of sales information for this purpose.
    As for data preparation, you should take a look at Data Miner Workflow's Aggregation Node. This node allows you generate "nested tables' of the type DM_NESTED_NUMERICAL and DM_NESTED_CATEGORICAL. Using this approach, you can create structures to capture the 1 to many (as in your case of sales managers to clients). However you can not use it to capture 1 to many to many ( as in your sales managers to clients to products). See simple script below showing how nested data is creates using the SH.SALES sample data.
    For demos on how to do either AR or Aggregration, you can download SQL Dev 3.0 and use it against a DB of 11.2.0.1 or higher. There are OBE (Oracle By Example, available on OTN) tutorials and Cue Card Tutorials (shipped in SQL Dev).
    Thanks, Mark
    WITH
    /* START OF SQL FOR NODE: SALES */
    "N$10071" as (select /*+ inline */ "SALES"."PROMO_ID",
    "SALES"."TIME_ID",
    "SALES"."CHANNEL_ID",
    "SALES"."CUST_ID",
    "SALES"."PROD_ID",
    "SALES"."QUANTITY_SOLD",
    "SALES"."AMOUNT_SOLD"
    from "SH"."SALES" )
    /* END OF SQL FOR NODE: SALES */
    /* START OF SQL FOR NODE: Aggregate */
    "N$10072" as (SELECT t0."CUST_ID",
    t0."QUANTITY_SOLD_COUNT",
    t1."AMOUNT_SOLD_COUNT",
    t2."QUANTITY_SOLD_SUM",
    t3."AMOUNT_SOLD_SUM",
    t4."AMOUNT_SOLD_SUM_1"
    FROM
    (SELECT "CUST_ID", COUNT("QUANTITY_SOLD") "QUANTITY_SOLD_COUNT"
         FROM "N$10071"
         GROUP BY "CUST_ID") t0,
    (SELECT "CUST_ID", COUNT("AMOUNT_SOLD") "AMOUNT_SOLD_COUNT"
         FROM "N$10071"
         GROUP BY "CUST_ID") t1,
    (SELECT "CUST_ID", SUM("QUANTITY_SOLD") "QUANTITY_SOLD_SUM"
         FROM "N$10071"
         GROUP BY "CUST_ID") t2,
    (SELECT "CUST_ID", SUM("AMOUNT_SOLD") "AMOUNT_SOLD_SUM"
         FROM "N$10071"
         GROUP BY "CUST_ID") t3,
    (SELECT "CUST_ID",
         CAST(COLLECT(DM_Nested_Numerical(ID5, "AMOUNT_SOLD_SUM_1")) AS DM_Nested_Numericals ) "AMOUNT_SOLD_SUM_1"
         FROM
              (SELECT "CUST_ID",
              ("PROD_ID") ID5,
              SUM("AMOUNT_SOLD") "AMOUNT_SOLD_SUM_1"
              FROM "N$10071"
              GROUP BY "CUST_ID", (("PROD_ID")) )
         GROUP BY "CUST_ID") t4
    WHERE t0."CUST_ID" = t1."CUST_ID"(+)
    AND t0."CUST_ID" = t2."CUST_ID"(+)
    AND t0."CUST_ID" = t3."CUST_ID"(+)
    AND t0."CUST_ID" = t4."CUST_ID"(+)
    /* END OF SQL FOR NODE: Aggregate */
    select * from "N$10072"

  • Help in transformation routine

    I have to put an indicator for delivery block in transformation routine.
    Logic: if headed delivery block 'LIFSK' is not blank, result is 'X'.
    Here is my code which is not working:
    IF SOURCE_FIELDS-LIFSK NE ''.
          RESULT = 'X'.
        ENDIF.
    But this code is not doing anything. I tired using 'test' function in transformation, it gives abap dump.
    What is the problem. Code is in right place in transformation routine.
    A similar code for item level block is working:
    More details:
    $$ begin of routine - insert your code only below this line        -
        ... "insert your code here
    *--  fill table "MONITOR" with values of structure "MONITOR_REC"
    *-   to make monitor entries
        ... "to cancel the update process
       raise exception type CX_RSROUT_ABORT.
        ... "to skip a record
       raise exception type CX_RSROUT_SKIP_RECORD.
        ... "to clear target fields
       raise exception type CX_RSROUT_SKIP_VAL.
        IF SOURCE_FIELDS-ZZ_LIFSP ne ''.
          RESULT = 'X'.
        endif.
    $$ end of routine - insert your code only before this line         -
      ENDMETHOD.                    "compute_ZDELIBLK
    Thanks
    Jeff
    Edited by: Jeff Edwards on Aug 17, 2008 10:34 PM

    No luck.
    Error analysis
        The following checkpoint group was used: "No checkpoint group specified"
        If in the ASSERT statement the addition FIELDS was used, you can find
        the content of the first 8 specified fields in the following overview:
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
        " (not used) "
    ST22 / ABAP Editor :
    *-- Get field name from source field with extern posit.
      READ TABLE i_t_seg_source ASSIGNING <ls_s_seg_source>
        WITH KEY segid = i_segid.
      ASSERT sy-subrc = 0.
      IF sy-subrc = 0.
        READ TABLE <ls_s_seg_source>-t_field ASSIGNING <ls_s_field>
          WITH KEY position = l_posit_source_ex.
    > ASSERT sy-subrc = 0.
      ENDIF.
    *--  r_s_parameter-param_id has to be set out side due to type inheritance of RuleStepMapping
      CONCATENATE '<' <ls_s_seg>-y__nm '>' INTO
      c_s_connector-s__nm.
      c_s_connector-f__nm = <ls_s_field>-fieldname.
    ENDMETHOD.

  • Need help on transforming a bufferedimage back to an image

    Hi,
    for a project in school, I need to read in a .jpeg file, transform it to a bufferedimage, getting the pixels. Then I make a new bufferedimage and all the RGB values that are higher then a certain (changeable) contrast value are made white, the other black (so basicly i transform an image to black and white) (with getRGB from colorimage and setRGB to the new bufferedimage)
    But I have trouble to transform the black and white bufferedimage to an image for viewing the image...
    The code for that part is like this:
    public void beeldWeergeven(){
         for (int j=0;j>height;j++){
              for (int i=0;i<width;i++){
                   waarde = zwartwitmatrix[j][i]*255;
                   imagezw.setRGB(i,j,waarde);
         Image zwimage = toImage(imagezw);
         zwimage = null;{
         JFrame frame = new JFrame();
    JLabel label = new JLabel(new ImageIcon(zwimage));
    frame.getContentPane().add(label, BorderLayout.CENTER);
    frame.pack();
    frame.setVisible(true);
    public static Image toImage(BufferedImage bufferedImage) {
    return Toolkit.getDefaultToolkit().createImage(bufferedImage.getSource());
    When I compile, I always get a nullpointerexception
    I'm not that good at writing java, so if anyone could lend me a hand on this :)

    For the moment (guess you know there are other ways to Black and White anyway):
    for (int j=0;j>height;j++)
    should be
    for (int j=0;j<height;j++)
    possibly??

  • Please help me, transform to html

    compiler error is: cann't compile xslt...
    code is:
       public void produceHtml(String xmlPath, String xsltPath, Writer out)
                throws TransformerConfigurationException, TransformerException {
            StreamSource xsltSource = new StreamSource(new File(xsltPath));
            StreamSource xmlSource = new StreamSource(new File(xmlPath));
            StreamResult outSource = new StreamResult(out);
            TransformerFactory fac = TransformerFactory.newInstance();
            Transformer trans = fac.newTransformer(xsltSource);
            trans.transform(xmlSource, outSource);
        }xmlPath: F:\\xml\\numberFormat.xml
    xsltPath: F:\\xslt\\numberFormat.xslt
    out: PrintWriter instance
    the two files is exist.
    ???

    The exception is:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at org.apache.xalan.processor.ProcessorStylesheetElement.getStylesheetRoot(ProcessorStylesheetElement.java:121)
         at org.apache.xalan.processor.ProcessorStylesheetElement.startElement(ProcessorStylesheetElement.java:72)
         at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:920)
         at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:774)
         at com.myyate.thesis.htmlouput.SimpleTransform.main(SimpleTransform.java:67)
    i have add xalan.jar, should i add xerces.jar?
    or else error?

  • Help With Transformation of File Adapter to Apps Adapter

    Hi Guys
    Please can you try and point me in the right direction.
    I have a requirement which takes a flat file and imports it into AP in apps..
    THe flat file has the same type of row (simple file) with a format as such
    Supplier Name, Supplier Number, Invoice Num, Invoice Desc, Amount
    SupplA, 1234,09876,Line1,10
    SupplA, 1234,09876,Line2,20
    SupplB, 4567,65445,Line1,10
    AS you can see the file duplicates The header information on each line.
    Then in AP we have 2 Inteface Tables, Headers and Lines. I need to know how to only insert one row into the header and multiple rows into the lines.
    I am fine with the lines side, its the header record i am confused about?
    How does one address this? Do you somehow ignore duplicates for the Header? Or do you somehow Collate the information so that it only posts once into header?
    Please can you assits.
    Thanks

    also if i drag a if onto the target the follwing is consfusing
    you drag the if statement and link the source att (ie suppname) to the if statement around the (suppname field) on the target.
    but i am unable to do any logic on that if statement.. how do i specify the condition?
    would i have to do it in the source/
    so i wold have to modify this slightly
    <xsl:if test="imp1:SupplierName">
    <ns1:supplier-name/>
    </xsl:if>
    THIS is the whole XSL incase
    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="WSDL">
    <schema location="../ReadInvoicFile.wsdl"/>
    <rootElement name="InoviceInfo" namespace="http://TargetNamespace.com/ReadInvoicFile"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="WSDL">
    <schema location="../WriteXMLFIle.wsdl"/>
    <rootElement name="invoice" namespace="http://www.example.org"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [SAT MAY 01 08:56:12 CAT 2010]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:imp1="http://TargetNamespace.com/ReadInvoicFile"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/file/R2iFileAdapterWS/R2iFileAdapterProject/ReadInvoicFile"
    xmlns:ns1="http://www.example.org"
    xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/file/R2iFileAdapterWS/R2iFileAdapterProject/WriteXMLFIle"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    exclude-result-prefixes="xsi xsl imp1 tns plt xsd wsdl ns1 ns0 xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
    <xsl:template match="/">
    <ns1:invoice>
    <xsl:for-each select="/imp1:InoviceInfo/imp1:Invoices">
    <ns1:invoice-header>
    <xsl:if test="imp1:SupplierName">
    <ns1:supplier-name/>
    </xsl:if>
    <xsl:if test="imp1:SupplierNumber">
    <ns1:supplier-number/>
    </xsl:if>
    <xsl:if test="imp1:SupplierSite">
    <ns1:supplier-site/>
    </xsl:if>
    <xsl:if test="imp1:InvoiceDate">
    <ns1:invoice-date/>
    </xsl:if>
    <ns1:invoice-lines>
    <ns1:invoice-line-desc>
    <xsl:value-of select="imp1:DistDescription"/>
    </ns1:invoice-line-desc>
    <ns1:invoice-line-amount>
    <xsl:value-of select="imp1:Amount"/>
    </ns1:invoice-line-amount>
    <ns1:tax-code>
    <xsl:value-of select="imp1:TaxCode"/>
    </ns1:tax-code>
    <ns1:account>
    <xsl:value-of select="imp1:Account"/>
    </ns1:account>
    </ns1:invoice-lines>
    </ns1:invoice-header>
    </xsl:for-each>
    </ns1:invoice>
    </xsl:template>
    </xsl:stylesheet>

Maybe you are looking for

  • How do I get a new tab to open up in a blank page instead of a pre-set one?

    When I open a new tab, I would like it to open up a blank page, not this site: http://start.facemoods.com/?a=ust&f=2

  • Error in running jsp file which contains inner class,help !

    Environment ias sp4 for windows2000 Error: try to access class jsp.APPS.bsteelWZ.order.OrderMgmtMain$1$sOrderHelper from class jsp.APPS.bsteelWZ.order.OrderMgmtMain OrderMgmt.jsp contains a class named sOrderHelper. It's all ok on ias sp2 for solaris

  • Battery runs down quickly and case is hot

    I've developed a problem with the battery running down quickly after a full overnight charge and I notice the case is getting hot. I had a Mophie battery pack on it and it needs to be switched to the battery pack every day, now. This was not an issue

  • Please rank in terms of file transfer speed between FW800 external HDs

    Hello, I have two triple interface (FW400/FW800/USB2) 1000GB external hard drives. My 17inch Macbook Pro has 1xFW800 and 1xFW400. Please rank the following in terms of speed of transferring files directly between the external hard discs: 1. Connect o

  • URL's and GUI's

    Does anybody know how to resize a webpage returned by a URL call, so that the webpage fits into a container of any size? In other words, I'm trying to squeeze a webpage inside of a container so that I can avoid using scrolling. Any suggestions? Thank