Allocation in a transformation

Hi guys,
I need some help programming a transformation routine with the following requirements:
in a data flow from a DSO to an InfoCube I want to fill an InfoObject in the InfoCube by allocating it from a Z-table:
data record from DSO:
COMPANY;AMOUNT
ABC;100
Z-table:
COMPANY;PARTNER COMPANY
ABC;DEF
data record in InfoCube:
COMPANY;PARTNER COMPANY;AMOUNT
ABC;DEF;100
The partner company should be filled, when I load the data from DSO to InfoCube, but I need some support to do this in BI 7.0.
Thanks in advance + kind regards!
Clemens

Hi Clemens,
Make changes to the INFO Objects Tech names and the Z Table as per requirement.
Paste in the Start Routine
Declarations
$$ begin of global - insert your declaration only below this line  -
  TYPES : BEGIN OF TY_COMPANY,
               /BIC/COMPANY TYPE /BIC/COMPANY-/BIC/COMPANY,
               /BIC/PARTNER COMPANY  TYPE /BIC/COMPANY-/BIC/PARTNER COMPANY,
            END OF TY_COMPANY.
   DATA  :   IT_TEST    TYPE STANDARD TABLE OF TY_COMPANY,
             WA_TEST    TYPE TY_COMPANY.
$$ begin of routine - insert your code only below this line        *-
Start Routines
    IF SOURCE_PACKAGE[] IS NOT INITIAL.
      SELECT     /BIC/PARTNER COMPANY
                 INTO CORRESPONDING FIELDS OF TABLE IT_TEST
                  FROM u201CZ Tableu201D
                  FOR ALL ENTRIES IN SOURCE_PACKAGE
                  WHERE /BIC/COMPANY = SOURCE_PACKAGE-/BIC/COMPANY AND
                  OBJVERS  = C_A.
    ENDIF.
    IF NOT IT_TEST IS INITIAL.
      SORT IT_TEST BY /BIC/COMPANY.
    ENDIF.
Paste this in the Transfer Routine
Transfer ROutine
Source Field = COMPANY
Target Field = PARTNER COMPANY
    READ TABLE IT_TEST INTO WA_TEST WITH KEY /BIC/COMPANY(Field) =
    SOURCE_FIELDS-/BIC/COMPANY
    BINARY SEARCH.
    IF SY-SUBRC = 0.
      RESULT = WA_TEST-/BIC/PARTNER COMPANY.
    ENDIF.
Rgds
SVU123

Similar Messages

  • Memory Utilization during XML Parsing - Response time is high

    Slow response time while xml parsing is done.
    Description of the problem:
    During XML parsing, memory is used and discarded so frequently that garbage collection
    is occurring multiple times per minute, impacting performance. In order to better
    understand the source of the memory usage issue, we used JProbe Memory Debugger.
    JProbe Memory Debugger was run in Aggregate mode in order to determine which classes
    were using the most total or aggregate memory (the sum of the memory required
    to instantiate not just a given object, but all the objects it uses.) The result
    was that weblogic.apache. xerces.impl.xs.dom.DocumentImpl and weblogic.apache.xerces.jaxp
    comprise 23.8% and 15.4%, respectively, of total memory on a heap of 121MB. In
    additional tests, the larger the heap, the greater these percentages were.
    This results in slow response time.
    The following are the details of software and Hardware configurations used:
    Server: weblogic 8.1
    OS: Solaris 8
    System Configuration: Sun Microsystems sun4u Sun Fire 6800
    System clock frequency: 150 MHz
    Memory size: 8192 Megabytes

    "Kris" <[email protected]> wrote in message news:40f2fcda$1@mktnews1...
    Sorry, I overlooked it.
    yes we do have 8 GB RAM. And as far as xml usage, we are parsing the xml to DOM
    (including validation) and then applying transformation. But its the parsing stuff
    which is eating the memory.1. Can you run JProbe to find out real CPU utilization/bottlenecks?
    2. Apache Xerses implementation that is used in weblogic has a design
    flaw that results in serialization of memory allocation by the transformer,
    that makes it impossible to use for intense multithreaded transformations.
    Consider using other transformers.
    Regards,
    Slava Imeshev
    >
    >
    "Slava Imeshev" <[email protected]> wrote:
    Please answer my questions.
    Regards,
    Slava Imeshev
    "Krisna" <[email protected]> wrote in message news:40f299ae$1@mktnews1...
    Thanks Slava for youe response. Coming back to response time, thisprocess is part
    of a big task. So i cant really tell what response time i can allocatejust for
    this piece alone. Might be, roughly it should be less than 0.4 seconds.what the
    major concenr is the memory utilization by these packages. So whatmakes it to
    use this kind of memory and whether its a known issue ?
    "Slava Imeshev" <[email protected]> wrote:
    "kris" <[email protected]> wrote in message news:40eaddce$1@mktnews1...
    Slow response time while xml parsing is done.
    Description of the problem:
    During XML parsing, memory is used and discarded so frequently thatgarbage collection
    is occurring multiple times per minute, impacting performance. In
    order
    to better
    understand the source of the memory usage issue, we used JProbe
    Memory
    Debugger.
    JProbe Memory Debugger was run in Aggregate mode in order to determinewhich classes
    were using the most total or aggregate memory (the sum of the memoryrequired
    to instantiate not just a given object, but all the objects it uses.)The result
    was that weblogic.apache. xerces.impl.xs.dom.DocumentImpl and weblogic.apache.xerces.jaxp
    comprise 23.8% and 15.4%, respectively, of total memory on a heap
    of
    121MB. In
    additional tests, the larger the heap, the greater these percentageswere.
    Large heap means longer garbage collections. Anyway, DOM is very heavy
    on memory and you can not escape it. What's is your usage patternfor
    XML
    processing? Do you use XSL?
    This results in slow response time.What do you consider as acceptable/inacceptable responce time?
    The following are the details of software and Hardware configurationsused:
    Server: weblogic 8.1
    OS: Solaris 8
    System Configuration: Sun Microsystems sun4u Sun Fire 6800
    System clock frequency: 150 MHz
    Memory size: 8192 MegabytesDoes this mean you got 8GB RAM on 150Mhz box?
    Regards,
    Slava Imeshev

  • Error while running Account Transformation...

    Hi Experts,
    I'm trying to run Account Transformation using the script logic below but unfortunately nothing gets calculated. When I check the package, it status is mark "CANCELED" though I did not cancel the execution of the package. Checking the detail of the status it only show the below info:
    Script Logic:
    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY = %CATEGORY_SET%
    CURRENCY = %CURRENCY_SET%
    TID_RA = %TIME_SET%
    OTHER = [COMPANY=%COMPANY_SET%]
    CALC = CALC_RE
    *ENDRUN_PROGRAM
    Package Detail Log:
    /CPMB/MODIFY completed in 0 seconds
    [Selection]
    (Member Selection)
    COMPANY: 1403
    CATEGORY: ACTUAL
    CURRENCY: LC
    TIME: 2005.JAN
    [Messages]
    Application: CONSOL Package status: SUCCESS
    By the way, I used the process chain for ALLOCATION, I put the code for Account Transformation in the ALLOCATION.LGF since it's the logic being called by the said process chain. Checking further using the TCODE ST22 it gives the following error:
    Runtime Errors: GETWA_NOT_ASSIGNED
    Short Text: Field symbol has not been assigned.
    What happened: Error in ABAP Application Program. The current ABAP program "CL_UJK_UTIL================CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
    Cheking "Information on where terminated" code is terminated here...
        READ TABLE <lt_mem> ASSIGNING <l_member> INDEX 1.
        ASSIGN COMPONENT 'TIMEID' OF STRUCTURE <l_member> TO <l_timeid>.
        MODIFY ct_timeid FROM <l_timeid>.
        "ASSIGN COMPONENT 'TIMEID' OF STRUCTURE <l_member> TO <l_string>.
    I checked the properties and the TIMEID property is existent. Was there anything wrong with my syntax? Any idea regarding this kind of error?
    Thanks,
    Marvin

    After checking all the dimension and using TCODE RSA1 to check the server side, I found that INTCO property is existent in the member worksheet but not in the server so I maintain the dimension properties and re-add INTCO property in the Entity dimension. After that package runs successfully.

  • ABAP routine in Open hub transformation

    Hello Experts,
    My BW consultant created a Open Hub service. For creating a .csv file from a cube.
    For that he had a transformation defined between the source and destination fields.
    I was asked to write a routine to bring the negative sign to front for one of the fields.
    I wrote the following code.
    >    DATA V_OUT(25).
    >
    >   CLEAR V_OUT.
    >
    >    V_OUT = SOURCE_FIELDS-G_AVVWHC.
    >
    >      CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    >        CHANGING
    >          VALUE = V_OUT.
    >
    >      RESULT = V_OUT.
    there was no error in the syntax check.
    Now, when the open hub is created/ran without routine(direct assignment) it works fine.
    But when the above code is ran, it TIMED OUT!!!!
    I am unable to find any reason for that.
    Could anybody please provide some guidance on this.
    Regards,
    DNP

    Hi Jerry,
    Thanks for your input again. I checked the dump in ST22 and looks like nothing is related to Routine-
    >Information on where terminated
    >    Termination occurred in the ABAP program "CL_SQL_STATEMENT==============CP" -
    >     in "EXECUTE_QUERY".
    >    The main program was "RSAWBN_START ".
    >
    >    In the source code you have the termination point in line 19
    >    of the (Include) program "CL_SQL_STATEMENT==============CM004".
    SourceCde
    >METHOD execute_query .
    >*
    >* Execute the given query.
    >*
    >
    >  DATA:
    >    stmt_ref TYPE REF TO data,
    >    sql_code TYPE i,
    >    sql_msg  TYPE dbsqlmsg,
    >    c        TYPE cursor.
    >
    >
    >* check if a statement was provided by the caller
    >  IF statement IS NOT SUPPLIED.
    >    RAISE EXCEPTION TYPE cx_parameter_invalid
    >          EXPORTING parameter = 'STATEMENT'.
    >  ENDIF.
    >
    >>  CALL 'C_DB_FUNCTION' ID 'FUNCTION'    FIELD 'DB_SQL'                     
    >>                       ID 'FCODE'       FIELD c_fcode_prepare_and_open
    >>                       ID 'CONNAME'     FIELD me->con_ref->con_name
    >>                       ID 'CONDA'       FIELD me->con_ref->con_da
    >>                       ID 'STMT_STR'    FIELD statement
    >>                       ID 'HOLD_CURSOR' FIELD hold_cursor
    >>                       ID 'INVALS'      FIELD me->parameters->param_tab
    >>                       ID 'CURSOR'      FIELD c
    >>                       ID 'SQLCODE'     FIELD sql_code
    >>                       ID 'SQLMSG'      FIELD sql_msg.
    > IF sy-subrc <> 0.
    >  31 *   call error handling macro
    >  32     m_handle_error sy-subrc sql_code sql_msg.
    >  33   ENDIF.
    >  34
    >  35 * reset the parameters in order to make the statement object reusable
    >  36 * for the next execution of an DML statement or query immediately;
    >  37 * but the cursor C itself must not be freed because it will still be
    >  38 * accessed by the created result set object; the allocated cursor
    Regards,
    DNP

  • Problem in Call transformation - xslt program

    Hi Experts,
    For the below XML file i have declared the XSLT Program  as described.
    i am not able to get the data into Internal table.
    Could you pls help me in where am i going wrong?
    Is it XSLT declaration or what?
    Data declarations
    TYPES: BEGIN OF TY_BH,
            RECORDTYPE(02), " Record Type
            DOCTYPE(02),      " Document type
            REFERENCE(16),      " Reference Document Number
            DOCUMENTDATE(08),      " Document Date in Document
            POSTINGDATE(08),      " Posting Date in the Document
            COMPANYCODE(04),      " Company Code
            CURRENCY(03),      " Currency Key
            EXCHANGERATE(08),      " Exchange rate
            PARK(01),  " Park document
            ITEMNUMBER(03), " Number of line item
           END OF TY_BH,
           BEGIN OF TY_HH,
             RECORDTYPE(02), " Record Type
             SOURCE(04),
             DESTINATION(04),
             TIMESTAMP(14),
           END OF TY_HH,
           BEGIN OF TY_TT,
             RECORDTYPE(02),
             TOTALRECORDS(10) TYPE N,
             TOTALVALUE(16),
           END OF TY_TT.
    TYPES: BEGIN OF TY_BL,
             RECORDTYPE(02),
             REFERENCE(16),
             REFLINEITEM(03),
             ACCTTYPE(01),
             DRCRINDICATOR(01),
             ACCOUNT(10),
             AMOUNT(13),
             VENDORNAME1(40),
             VENDORNAME2(40),
             VENDORNAME3(40),
             VENDORNAME4(40),
             STREET(40),
             CITY(40),
             POSTALCODE(10),
             COUNTRY(02),
             CONTACTPERSON(10),
             ALTERNATEPAYEECODE(10),
             ALTERNATEPAYEENAME1(40),
             ALTERNATEPAYEENAME2(40),
             ALTERNATEPAYEENAME3(40),
             PAYMENTTERMS(04),
             BASELINEDATE(08),
             PAYMENTMETHODS(01),
             ALLOCATION(18),
             LINEITEMTEXT(50),
             TAXCODE(02),
             TAXAMOUNT(13),
             WHTAXCODE(02),
             WHTAXBASE(13),
             FUND(10),
             FUNDCENTER(16),
             COSTCENTER(10),
             INTERNALORDER(12),
             TAXAUTOMATICALLY(01),
             SPECIALGLINDICATOR(01),
           END OF TY_BL.
    DATA: GT_BH     TYPE STANDARD TABLE OF TY_BH,
          GS_BH     TYPE TY_BH,
          GT_BL     TYPE STANDARD TABLE OF TY_BL,
          GS_BL     TYPE TY_BL,
          GT_HH     TYPE STANDARD TABLE OF TY_HH,
          GS_HH     TYPE TY_HH,
          GT_TT     TYPE STANDARD TABLE OF TY_TT,
          GS_TT     TYPE TY_TT.
    DATA: GT_RESULT_XML5 TYPE ABAP_TRANS_RESBIND_TAB,
          GS_RESULT_XML5 TYPE ABAP_TRANS_RESBIND.
    DATA: GS_RIF_EX     TYPE REF TO CX_ROOT,
          GS_VAR_TEXT   TYPE STRING.
    DATA: BEGIN OF GT_XML,
             HH TYPE TY_HH,
             BH LIKE TABLE OF GT_BH,
             BL LIKE TABLE OF GT_BL,
             TT TYPE TY_TT,
           END OF GT_XML.
    DATA: GT_ITAB       TYPE STANDARD TABLE OF CHAR2048,
          GS_ITAB TYPE CHAR2048.
    I have the below file read into internal table GT_ITAB.
    XML File
    <?xml version="1.0" encoding="utf-8"?>
    <ABCInbound xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\XYZSchema\ABCInbound.xsd">
    <HH>
    <RecordType>HH</RecordType>
    <Source>ABC</Source>
    <Destination>XYZ</Destination>
    <TimeStamp>20050909220546</TimeStamp>
    </HH>
    <BH>
    <RecordType>BH</RecordType>
    <DocType>AB</DocType>
    <Reference>2205516125</Reference>
    <DocumentDate>20080909</DocumentDate>
    <PostingDate></PostingDate>
    <CompanyCode>ABC</CompanyCode>
    <Currency>INR</Currency>
    <ExchangeRate>1.0000</ExchangeRate>
    <Park></Park>
    <ItemNumber>2</ItemNumber>
    </BH>
    <BL>
    <RecordType>BL</RecordType>
    <Reference>2205516125</Reference>
    <RefLineItem>1</RefLineItem>
    <AcctType>K</AcctType>
    <DrCrIndicator>H</DrCrIndicator>
    <Account>01000003</Account>
    <Amount>364.00</Amount>
    <VendorName-1>TOM &amp; JERRY IS MY</VendorName-1>
    <VendorName-2> NAME TO BE PAID</VendorName-2>
    <VendorName-3>1987566Z</VendorName-3>
    <VendorName-4>22</VendorName-4>
    <Street>UCX STREET</Street>
    <City>ROAD 4</City>
    <PostalCode>515004</PostalCode>
    <Country>IND</Country>
    <ContactPerson></ContactPerson>
    <AlternatePayeeCode></AlternatePayeeCode>
    <AlternatePayeeName-1></AlternatePayeeName-1>
    <AlternatePayeeName-2></AlternatePayeeName-2>
    <AlternatePayeeName-3></AlternatePayeeName-3>
    <PaymentTerms></PaymentTerms>
    <BaselineDate></BaselineDate>
    <PaymentMethods></PaymentMethods>
    <Allocation></Allocation>
    <LineItemText>item text</LineItemText>
    <TaxCode></TaxCode>
    <TaxAmount>0.00</TaxAmount>
    <WHTaxCode></WHTaxCode>
    <WHTaxbase>0.00</WHTaxbase>
    <Fund></Fund>
    <FundCenter></FundCenter>
    <CostCenter></CostCenter>
    <InternalOrder></InternalOrder>
    <TaxAutomatically></TaxAutomatically>
    <SpecialGLIndicator></SpecialGLIndicator>
    </BL>
    <TT>
    <RecordType>TT</RecordType>
    <TotalRecords>1</TotalRecords>
    <TotalValue>222</TotalValue>
    </TT>
    </ABCInbound>
    Call transformation as below
    GET REFERENCE OF GT_XML INTO GS_RESULT_XML5-VALUE.
    GS_RESULT_XML5-NAME = 'IABC'.
    APPEND GS_RESULT_XML5 TO GT_RESULT_XML5.
    TRY.
        CALL TRANSFORMATION Z_XML_TO_ABAP5
        SOURCE XML GT_ITAB
        RESULT (GT_RESULT_XML5).
      CATCH CX_ROOT INTO GS_RIF_EX.
        GS_VAR_TEXT = GS_RIF_EX->GET_TEXT( ).
        MESSAGE GS_VAR_TEXT TYPE 'E'.
    ENDTRY.
    WHEN I CHECK GT_XML its initial.
    XSLT Program Z_XML_TO_ABAP5 is like below.
    Pls let me know if my xslt declaration is wrong.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output encoding="iso-8859-1" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <IABC>
              <xsl:apply-templates select="//ABCInbound"/>
            </IABC>
          </asx:values>
        </asx:abap>
      </xsl:template>
      <xsl:template match="ABCINBOUND">
        <item>
          <RECORDTYPE>
            <xsl:value-of select="RecordType"/>
          </RECORDTYPE>
          <SOURCE>
            <xsl:value-of select="Source"/>
          </SOURCE>
          <DESTINATION>
            <xsl:value-of select="Destination"/>
          </DESTINATION>
          <TIMESTAMP>
            <xsl:value-of select="TimeStamp"/>
          </TIMESTAMP>
          <RECORDTYPE>
            <xsl:value-of select="RecordType"/>
          </RECORDTYPE>
          <DOCTYPE>
            <xsl:value-of select="DocType"/>
          </DOCTYPE>
          <REFERENCE>
            <xsl:value-of select="Reference"/>
          </REFERENCE>
          <DOCUMENTDATE>
            <xsl:value-of select="DocumentDate"/>
          </DOCUMENTDATE>
          <POSTINGDATE>
            <xsl:value-of select="PostingDate"/>
          </POSTINGDATE>
          <COMPANYCODE>
            <xsl:value-of select="CompanyCode"/>
          </COMPANYCODE>
          <CURRENCY>
            <xsl:value-of select="Currency"/>
          </CURRENCY>
          <EXCHANGERATE>
            <xsl:value-of select="ExchangeRate"/>
          </EXCHANGERATE>
          <PARK>
            <xsl:value-of select="Park"/>
          </PARK>
          <ITEMNUMBER>
            <xsl:value-of select="ItemNumber"/>
          </ITEMNUMBER>
          <RECORDTYPE>
            <xsl:value-of select="RecordType"/>
          </RECORDTYPE>
          <REFERENCE>
            <xsl:value-of select="Reference"/>
          </REFERENCE>
          <REFLINEITEM>
            <xsl:value-of select="RefLineItem"/>
          </REFLINEITEM>
          <ACCTTYPE>
            <xsl:value-of select="AcctType"/>
          </ACCTTYPE>
          <DRCRINDICATOR>
            <xsl:value-of select="DrCrIndicator"/>
          </DRCRINDICATOR>
          <ACCOUNT>
            <xsl:value-of select="Account"/>
          </ACCOUNT>
          <AMOUNT>
            <xsl:value-of select="Amount"/>
          </AMOUNT>
          <VENDORNAME1>
            <xsl:value-of select="VendorName-1"/>
          </VENDORNAME1>
          <VENDORNAME2>
            <xsl:value-of select="VendorName-2"/>
          </VENDORNAME2>
          <VENDORNAME3>
            <xsl:value-of select="VendorName-3"/>
          </VENDORNAME3>
          <VENDORNAME4>
            <xsl:value-of select="VendorName-4"/>
          </VENDORNAME4>
          <STREET>
            <xsl:value-of select="Street"/>
          </STREET>
          <CITY>
            <xsl:value-of select="City"/>
          </CITY>
          <POSTALCODE>
            <xsl:value-of select="PostalCode"/>
          </POSTALCODE>
          <COUNTRY>
            <xsl:value-of select="Country"/>
          </COUNTRY>
          <CONTACTPERSON>
            <xsl:value-of select="ContactPerson"/>
          </CONTACTPERSON>
          <ALTERNATEPAYEECODE>
            <xsl:value-of select="AlternatePayeeCode"/>
          </ALTERNATEPAYEECODE>
          <ALTERNATEPAYEENAME1>
            <xsl:value-of select="AlternatePayeeName1"/>
          </ALTERNATEPAYEENAME1>
          <ALTERNATEPAYEENAME2>
            <xsl:value-of select="AlternatePayeeName2"/>
          </ALTERNATEPAYEENAME2>
          <ALTERNATEPAYEENAME3>
            <xsl:value-of select="AlternatePayeeName3"/>
          </ALTERNATEPAYEENAME3>
          <PAYMENTTERMS>
            <xsl:value-of select="PaymentTerms"/>
          </PAYMENTTERMS>
          <BASELINEDATE>
            <xsl:value-of select="BaselineDate"/>
          </BASELINEDATE>
          <PAYMENTMETHODS>
            <xsl:value-of select="PaymentMethods"/>
          </PAYMENTMETHODS>
          <ALLOCATION>
            <xsl:value-of select="Allocation"/>
          </ALLOCATION>
          <LINEITEMTEXT>
            <xsl:value-of select="LineItemText"/>
          </LINEITEMTEXT>
          <TAXCODE>
            <xsl:value-of select="TaxCode"/>
          </TAXCODE>
          <TAXAMOUNT>
            <xsl:value-of select="TaxAmount"/>
          </TAXAMOUNT>
          <WHTAXCODE>
            <xsl:value-of select="WHTaxCode"/>
          </WHTAXCODE>
          <WHTAXBASE>
            <xsl:value-of select="WHTaxbase"/>
          </WHTAXBASE>
          <FUND>
            <xsl:value-of select="Fund"/>
          </FUND>
          <FUNDCENTER>
            <xsl:value-of select="FundCenter"/>
          </FUNDCENTER>
          <COSTCENTER>
            <xsl:value-of select="CostCenter"/>
          </COSTCENTER>
          <INTERNALORDER>
            <xsl:value-of select="InternalOrder"/>
          </INTERNALORDER>
          <TAXAUTOMATICALLY>
            <xsl:value-of select="TaxAutomatically"/>
          </TAXAUTOMATICALLY>
          <SPECIALGLINDICATOR>
            <xsl:value-of select="SpecialGLIndicator"/>
          </SPECIALGLINDICATOR>
          <RECORDTYPE>
            <xsl:value-of select="RecordType"/>
          </RECORDTYPE>
          <TOTALRECORDS>
            <xsl:value-of select="TotalRecords"/>
          </TOTALRECORDS>
          <TOTALVALUE>
            <xsl:value-of select="TotalValue"/>
          </TOTALVALUE>
        </item>
      </xsl:template>
    </xsl:transform>
    I able to get if declare only for BL and BH in separate xslt transformations.
    Regards,
    Simha

    Hello Mithun,
    when you use the call transformation statement you have to specifiy the xslt transformation used. As a first step you usually use the transformation with the name ID. This is a special transformation for making the asXML representation of abap data. Unfortunately if you look into this transformation you find the following:
    <xsl:transform version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    >
    <xsl:strip-space elements="*"/>
    <xsl:template match="/">
      <xsl:copy-of select="."/>
    </xsl:template>
    </xsl:transform>
    If I remember correctly when you use another transformation this will first call the ID transformation and after this the specified one. So it should not be possible to just copy ID transformation and remove the line. I'll have to think again how to avoid the behaviour.
    Best Regards
    Roman

  • Remove Leading zeros in Transformation rules

    Hi
    I am trying to write a formula transformation rule to an infoobject, i have 2 source fields Account Type and Allocation Number and i have a target field Vendor, i am trying to map the allocation numbers with a account type of 'K' to the vendor but the allocation number is padded with a bunch of zeros, the vendor key is not a standard length as it can be between 4 and 7 characters else i could have used a right trim. I am trying the below formula but this is failing when i run the dtp.
    IF( ACCT_TYPE = 'K', TRUNC( ALLOC_NMBR ), ALLOC_NMBR )
    Should i be using a different function, or is this the wrong approach?
    Thanks
    Josh

    Thats Good.
    I dont know how you going to put this code in BI 7. I 've tested this in 3.5
    IF < CONDITION>
    Data: v_OUTPUT type TRANSFER_STRUCTURE-<DATA ELEMET>
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    INPUT = TRAN_STRUCTURE-<DATA ELEMENT>
    IMPORTING
    OUTPUT = v_OUTPUT
    RESULT = v_OUTPUT.
    ELSE.
    RESULT = 0.
    ENDIF.
    < > :If you are writing this in Transfer Rules you have to give Data Element name (R/3 field name). If you are writing this in Update Rules you can give info object name. In BI 7 you have only transformations. I think SOURCE FIELDS & DATA_FIELDS are the words replacing TRAN_STRUCTURE & COMM_STRUCTURE.
    Cheers
    Praveen

  • Business Rules for Account Transformation - Execute a Transformation Group

    Hello,
    when executing a package for account transformation, I want to select a specific transformation group
    only.
    The transformation group is the first column in the definitions.
    My question:
    Can I pass this to script logic as a parameter?
    What is it like?
    I think this should have a performance effect when using account transformation in default logic.
    Thanks for an answer
    Jochen

    Hi Jochen,
    Your best bet is the documentation at [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/2b/8f059920de465b88be2893e2117fbe/frameset.htm], however in this case it does not do a very good job of explaining what is happening. Fortunately the CALC= property is just about the only one that you have control over for the account transformation business rules.
    The other option (and the only way to truly know what is going on) is to investigate the ABAP programs that actually execute the business rule logic in BW. You can find these programs in SE80, under the UJ package, in the UJP sub-package. You will be most interested in the classes available there. There tends to be one class per business rule group, as well as classes for allocations and validations.
    Cheers,
    Ethan

  • Java.lang.OutOfMemory error when transforming xml using xsl with Weblogic 6.1 sp2

    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    [AgentsGeres.jsp]

    Hello,
    You might try asking your question in the JSP newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    There just may not be a more flexible solution :-)
    This doc may be of some value, see chapter 2:
    http://edocs.bea.com/wls/docs61/pdf/perform.pdf
    HTH,
    Bruce
    Laurent Gosuin wrote:
    >
    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    Name: AgentsGeres.jsp
    AgentsGeres.jsp Type: Hypertext Markup Language (text/html)
    Encoding: base64

  • Text Free Transform Sizing Issues

    First off I'm using Photoshop CS6 on a 2010 iMac.
    Here is the problem, for example I open a blank file and type "ABC" in any font at at size (but for sake of ease lets say 72 pts in Myriad Pro). I then do a free transform (while holding shift to keep the size correctly scaled) and either enlarg or shrink the text. At that point if I try and change the text point size through the Character panel back to 72 points it sizes to the original size I set the free transform too, or lets say I try to increse the size to 100 pts, it gives me some random size that is not 100 pts. So regarless if I enter the size to 72 points, hit enter, the text will no longer be 72 points.
    I run into this issue often because I like to eyeball my text sizes when I'm doing a project and Free Transform is perfect for this. But if I have several text blocks of the same size and I change the size of one and need to match the others to the new size, this issue make matching them very difficult and frustrating.
    I know I can fix it by clicking "Character Reset" via the Character panel and then choose my desired font size but that takes time and I don't understand why photoshop wouldn't just give me the font size I choose regarless of free transform or not. Is there a way around this? Is this some setting of Photoshop that I can simply bypas, or is it a glitch with the new CS6 (I do not remember having this issue with CS5)?
    Thank you in advance for your help.

    Noel Carboni wrote:
    As usual, the only real way to tell what's better would be to install it and try it.
    I know that Adobe HAS been doing some bugfixes, but like you I have no idea what's specifically fixed in 13.0.4.  Since you have the option, I'd suggest trying it.
    I could try the 13.0.4 update in a cloned system volume but have lacked the motivation, so far. Until I read of a fix for a single bug which has been detrimental to my use of 13.0.1, I'll make do with the software whose behaviour and results is known to me.
    I do know that there has been no fix to 3D rendering being almost useless for Mac users for the 5 months since the 13.0.1 update inflicted the problem. Meanwhile, Adobe has had no problem allocating resources to adding 3D enhancements to the Cloud Photoshop to lure in more customers.
    Who knows, it may fix the issue in this thread.
    Sculp1n replied that their Ps with the problem is up to date when you asked whether they were running 13.0.4 or 13.1.2. I suppose it's possible that they are using 13.1.2, and 13.0.4 has fixes that aren't in 13.1.2.

  • CS4 trial - transform tool frags my graphics!!

    Anybody else have problems with the transform tool? on my iMac it's instant-death to my work and messes up my icons in the dock too - it really is like throwing a frag-grenade into my computer's graphics! I have to restart my mac to restore everything back to normal.
    Test this at your own risk - and I highly recommend saving anything important before you do! My first encounter with this problem was to use the lasso tool to select an area I wanted to rotate just a fraction and when I hit cmd-T everything just froze and went horrible graphically. Also I noticed that I was unable to see the selection line of the lasso tool as I was using it
    24" iMac (white) running OSX v10.5.5
    2.33GHz intel core2 duo
    3GB ram
    NVIDIA GeForce 7600 GT 256MB

    Ok I now feel quite 'over-reactive' O_o; - just took a deep breath and tried it again (have been staying well away from the transform tool since it happened) and ...nothing - it worked like a dream - perfect! - ok so went into the gpu settings under performance prefs and I only had '3D interaction acceleration' ticked - I ticked the 'advanced drawing' box and tried again - bam! photoshop freezes and everything goes iffy. I think we found the issue! Since it happened last I have been tweaking the performance prefs to reduce brush lag so must have un-ticked it then.
    for your info I have 140GB free disk space and do not have a separate scratch. I have 2GB Ram allocated to photoshop.

  • OutOfMemoryError when applying an xsl transformation

              Hello,I have an OutOfMemoryError when applying an xsl transformation to generate
              htmlcode in a web page. I'm running Weblogic 6.1 sp2I think the problem comes
              from the objectin which th html is stored during thetransformation. The problem
              only occurs from a minimal xml size. I could fixit by increasing JVM allocated
              size but I would like to find a more flexible solution. If I know an other way
              to solve this problem, I really would appreciate !
              Thank you,
              Laurent.
              [AgentsGeres.jsp]
              

    Hello,
    You might try asking your question in the JSP newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    There just may not be a more flexible solution :-)
    This doc may be of some value, see chapter 2:
    http://edocs.bea.com/wls/docs61/pdf/perform.pdf
    HTH,
    Bruce
    Laurent Gosuin wrote:
    >
    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    Name: AgentsGeres.jsp
    AgentsGeres.jsp Type: Hypertext Markup Language (text/html)
    Encoding: base64

  • A buffer failed while allocating 10485088 bytes. - Error

    Have you seen this error?
    A buffer failed while allocating 10485088 bytes.  I understand it's a memory problem with many lookups in full cache mode.
    Is there a setting in SQL 2008r2 which could help eliminate this issue?
    Thanks
    gs

    It's not a SQL Server problem - it's a package architecture problem.  You're asking SSIS to retain too much in memory.  SSIS can't reduce the amount of memory you've asked it to use - you have to ask it to use less.  You can use some of the
    techniques that are in the thread BIRocks mentioned. 
    Mucking with buffer sizes won't help you at all.
    You're probably better off attempting to not use full caches on all those lookups.  Cascading lookups might help you out, where you first try to hit a pregenerated cache (using the Cache Transformation) of "most used" cache values, then send no matches
    to an uncached lookup.  (See the
    SSIS Team Blog series on Lookups.)
    Talk to me now on

  • Procedure for transformation ratio

    Hi,
    1.I have created an winding group with low votage current transformer with primary current as 200 and secondary current as 5.
    2.Then created an device category with an transformer and assigned the winding group to transformer.Then created a device with the transformer.
    3. Then i have created a device category with meter and assigned the register group with the direct measurement.then created a device with the meter.
    4.then i have made the made the installtions.
    5.When i do the device allcation ,with controlling device and controlled device,the system is asking for the allocation type.but when i select the transformation group as device allocation type the system is not accepting to proceed further.
    Can any one correct me if am wrong in the procedure.
    Or  can any one explain me how the transformation ratio works with procedure.
    Thanks in advance.
    -Santhosh.

    if you are using a low voltage current transformer ... you should use a device category for meter with semi-indirect measurement ... this would work just fine

  • Not all fields are getting updated in transformation

    Dear all,
    Please help me in the following issue:
    I have the following scenario:
    DSO1 and CUBE1. From DSO1 to CUBE1 I have transformation. Fields are mapped one to one.
    Some of the fields are getting updated in transformation (22 fields) and some of them are not updated in transformation. (2 - storage location and steel grade).
    The fields exist in DSO 1 but don't go into cube.
    I did the following:
    1. deleted transformation and dtp, recreate = > not working
    2. copied the cube, and create new transformation and DTP...not working.
    Any help would be appreciated
    Thank you
    Ramona

    Hi Ramona,
    Storage location (standard infoobject 0STOR_LOC) has plant as compunding object, check whether this is the issue ? (may be check with Steel grade infoobject also).
    Else, do some RSRV checks on the DSO and Infoobject, if it doesn't bring up any issue, raise a message with SAP.
    Check your BW Support Pack level , is it the latest ? Give more details about the scenario ?
    Cheers,
    CK

  • Transformation Issue: HR - PA

    Hi,
    I'm working on SAP HR-PA stuff.
    In standard data flow,  0HR_PA_0 & 0HR_PA_1 datasources feeding data to 0PA_C01 Cube.
    Our detailed reporting requirements demands me to insert a DSO in between. I created a DSO with same fields as cube, and copied all the routines in the update rules and loaded data and everything is working fine.
    Now, I wanted to use BI 7.0 functionality, So, i selected update rules -> Additional functions -> Create Transformation. .
    This will convert all 3.5 routines into BI 7.0 routines, I guess.
    But, after the data loads, surprisingly these transformation populating wrong data into DSO.
    Is this the right way to create transformation from update rules?
    Thanks,
    V

    Hi Vas,
    I just read your thread on sdn for 0PA_C01 cube.
    I need a small help from you.
    I am also working on the same cube, same like you I am migraitng the data flow from 3.5 to 7.0. I have few routines in the update rules which i need to convert it to oops abap in bi7. You have this cube in 7.0 already. So, can you please send me the routine code you have. Actually i am not a abaper and my client also dont have any bw-abap person. I need to do some manual changes in the code. My data flow is exactly same as your data flow. I am unable to solve this problem from long time.
    And also I need to put dso inbetween the flow as per our clients requirements. So where did yu out the start routines and infoobject routines in update rules of 3.5 to 7.0, i mean at what stage?, before dso or after dso? Also I have the INCLUDE in my routines that I am worried about.
    If you provide me the code, i will really appreciate it. And in future we can share the knowledge as well.
    Thanks.
    Regards,
    Harshal Panchal

Maybe you are looking for

  • ITunes Media Folder Frustrations

    Hi, I hate, hate, hate the way that iTunes sorts the library for you into Artist/Album/Song. While this is useful if you have many tracks for an artist but three folders for just one song is ridiculous and results in songs that you know, being squirr

  • RFC call from Excel using VBA

    I am trying to do an RFC call from Excel to SAP using VBA. RFC is working fine for most the RFC enabled Function Modules except DDIF_FIELDINFO_GET and DDIF_FIELDLABEL_GET. What can be the reason for this? Can someonme please help me with a macro code

  • Nokia 5500 problem with applications

    I have noticed a strange thing on my phone - when I install application on my phone everything is alright, it works fine. But when I turn off and turn back on the phone I am not able to open the same applicaton (dictionary, game or program). It is st

  • 1603 fatal error during installation-L7680 all in one printer

    I continue to get this error because the installation finds newer software and quits.  I have completed the MSI error 1603 solution 16 page paper for windows XP and was unsuccessful.  I then used CCleaner to clean all registry errors, and that still

  • I am having problems setting up iCloud with Outlook 2007.

    I was able to setup the email with Outlook, but every time I try to setup the contacts.  I get the following error: your setup could not be started because of unexpected error This error does not occur immediately, but occurs after several steps of d