Help required on XSLT Conditional Mapping

Hi,
We need help on XSLT mapping in BPEL based on a condition. We are transforming from OAG format to a client specific format. We need to map a single tag (but repetitive) on the left hand side (OAG) to different tags on the right hand side. The same tag on the left hand side repeats with different values. Depending on the value the mapping to the right hand side varies. The left hand side (OAG) looks something like this.
<PARTNER>
<PARTNRID>2002</PARTNRID>
<PARTNRTYPE>Supplier</PARTNRTYPE>
<ADDRESS>
<ADDRLINE index="1">2000 Century Way</ADDRLINE>
</ADDRESS>
</PARTNER>
<PARTNER>
<PARTNRID>204</PARTNRID>
<PARTNRTYPE>BillTo</PARTNRTYPE>
<ADDRESS>
<ADDRLINE index="1">90 Fifth Avenue</ADDRLINE>
</ADDRESS>
</PARTNER>
Please note that the tag PARTNER and it's underlying tags appear twice in the XML file.
Based on the value in the tag PARTNRTYPE, the mapping to the right hand side differs. If the value is 2002, PARTNRID should map to Supplier ID on the right hand side and if the value is 24, PARTNRID should map to BillTo ID on the right hand side. The right hand side should look something like
<Supplier>
<SupplierID>2002</SupplierID>
<Address>2000 Century Way</Address>
</Supplier>
<BillTo>
<BillToID>204</BillToID>
<Address>90 Fifth Avenue</Address>
</BillTo>
Please let us know how to achieve this. Your help is much appreciated. Thanks in advance.
Thanks,
Prasanna

Hi Prasanna ,
I am not an expert but what about this:
<SUPPLIERID>
  <xsl:value-of select="/PARTNER/PARTNRID[../PARTNRTYPE = '2002']"/>
</SUPPLIERID>
<BILLTOID>
  <xsl:value-of select="/PARTNER/PARTNRID[../PARTNRTYPE = '24']"/>
</BILLTOID>or
<xsl:choose>
  <xsl:when test="/PARTNER/PARTNRTYPE = '2002'">
    <SUPPLIERID>
      <xsl:value-of select="/PARTNER/PARTNRID"/>
    </SUPPLIERID>
  </xsl:when>
</xsl:choose>
<xsl:choose>
  <xsl:when test="/PARTNER/PARTNRTYPE = '24'">
    <BILLTOID>
      <xsl:value-of select="/PARTNER/PARTNRID"/>
    </BILLTOID>
  </xsl:when>
</xsl:choose>Regards Pete

Similar Messages

  • Help Required for XSLT mapping

    Hi Folks,
    I am working on a scenario, where we had 17 different one to one mapping with same source strcture but different target structures. Source is a Idoc common for everyone.
    Sample Target Structure :
    Message Type(XYZ)
                     RECORDS(0,u)
                                             A(0,1)
                                             B(0,1)
                                             C(0,1)
                                             D(0,1)
    As per our requirement we need the output in which we need to have "GLOBE " at the top and the value of A, B, C and D on single row for each ouurance of RECORD. For 2nd occurance we need to change the line and 2 nd set of ABCD on 2nd row and so on. e.g.
    GLOBE
    0002044452KNA1 0000027079 0001E
    0002044452KNA1 0000027080 0001E
    0002044452KNA1 0000027080 0001E
    To acheive the above output we are using a XSLT map after Message Mapping
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" indent="no" encoding="UTF-8" omit-xml-declaration="yes"/>
    <xsl:preserve-space elements="*"/>
    <xsl:template match="/">GLOBE<xsl:text>&#xD;&#xA;</xsl:text>
    <xsl:for-each select="//RECORDS">
      <xsl:for-each select="*">
         <xsl:value-of select="current()"/>
      </xsl:for-each><xsl:text>&#xD;&#xA;</xsl:text></xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>
    NOW WE HAVE changed the 17 one to one maps to one multi mapping (1:17) as our source is same.
    Now as the output of this multi mapping is getting into XSL code, it is not able to parse it.
    How can we do the changes in this particular code So that we can Achieve:                     17 different file out of single multi mapping and XSL map like it was comming previously from 17 different maps.
    Thanks
    Pradeep

    Hi Pradeep,
    Depending on how you setup your multi mapping, when you execute you will end up with something like this as the xml output:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
      <ns0:Message1>
        <XYZ></XYZ>
        <XYZ></XYZ>
      </ns0:Message1>
    </ns0:Messages>
    Or this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
      <ns0:Message1>
        <XYZ></XYZ>
      </ns0:Message1>
      <ns0:Message2>
        <XYZ></XYZ>
      </ns0:Message2>
    </ns0:Messages>
    The single xml message with the u201CMessagesu201D wrapper is not split into separate messages until it hits one of the adapters in the adapter engine.  Perhaps you can try to adjust the xslt to expect this as input, but the output would still need to be <ns0:Messages>.  That might be what is causing the failure with your current xslt.  Can the flat file conversion in the file adapter?
    Thanks,
    -Russ

  • Help required in XSLT

    Dear Experts ,
    I want to convert my XML file to the ABAP Internal table.
    For this I have to Setuo a XSLT transformation.
    My XML File is as follows :
    <!--XML Export from Broadcast Master List.-->
    <!--Seg Codes List, Created 02/02/2010 16:02-->
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <BCMListOutput>
    <Row>
    <Column Name="Slot Type">Channel</Column>
    <Column Name="Media ID"></Column>
    <Column Name="Actual Start">00:00:00:00</Column>
    <Column Name="Actual Duration">00:00:00:00</Column>
    <Column Name="As-run Start">00:00:00:00</Column>
    <Column Name="Title">TVE2</Column>
    <Column Name="Version"></Column>
    <Column Name="House Number"></Column>
    <Column Name="Version Part"></Column>
    </Row>
    </BCMListOutput>
    I want to Convet this into the format with the structure as :
    YPES: BEGIN OF ty_schedule,
           SLOT_TYPE type ZSLOT,
           MEDIA_ID(10) TYPE c,
           ACT_ST TYPE TIMESTAMPL,
           ACT_DUR TYPE TIMESTAMPL,
           AS_RUN_ST TYPE TIMESTAMPL,
           TITLE(10) TYPE c,
           VERSION(10) TYPE C,
           HOUSE_NO(20) TYPE C,
           VERSION_PART(10) TYPE C,
           END OF ty_schedule.
    I am stuckup in writing XSLT for this.
    Can you please help me ?
    Regards,
    Nikhil

    Hi,
    use xpath function translate() and escape the semicolon and the quotes.
    <output><xsl:value-of select="translate(//Name,%3B,%25%3B%25)"/></output>
    If  that escapes do not work google for escape sequences.
    Regards,
    Udo

  • Node Function help required in XML message mapping !!

    Hi Brilliants,
    Source Message
        <ROOT>               0..1   
          <OUTPUT>          0..n
             <Group_N1>           0..n     <Header>
                <H02_N1_DTM>                           0..1
          DTM_Y2K_DATE     0..1
             <Group_LIN>          0..n                <Lin Item>
         <Group_ZA>          0..n
              <D02_ZA>     0..n
          </OUTPUT>
    </ROOT>
    The above Source <OUTPUT> tag comes 2 times. In this two time, Header comes once per header and more than 50 times Lin item occurs.
    Target Message
    ProductActivityNotification                                                            0..n
         ProductActivity                                                       1..1
              Item                                                       1..unbound  (Lin Item level on target side)
                 SalesTimeSeries                  0..1
                          Item                                           1..unbound
                        ValidityPeriod              1..1
                        StartDate              0..1
                        EndDate              0..1
    The above source message Lin item, whatever the times it replicates, the same number of times u201CItemu201D tag has to occur and DTM_Y2K_DATE value has to pass to StartDate.
    Could anybody please put your valuable idea on this? I suppose to deliver this interface tomorrow.
    I will highly appreciate your intellectual ability.
    Many Thanks in Advance
    Kind Regards
    San

    HI San,
    Based on your this post, i think u want like this way...
    How many times from source  DTM_Y2K_DATE  or <LinItem>(because DTM_Y2K_DATE   in LinItem ) occurs that many of <Item> in target is required rt??
    Then u map like,
    DTM_Y2K_DATE  (Change context to LineItem(right clich and choose context)) and map  to LineItem of target.
    and also now map directly from DTM_Y2K_DATE  to Start Date(Dont change any context now..)
    If still nt clear do post..
    Babu

  • XSLT mapping Help Required.

    XSLT mapping Help Required.
    Hi Experts,
    I am New to XSLT Mapping. I am practising the below Example:
    InputXML File:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    XSL StyleSheet File:
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen"
    Xmlns:ns1=”http://XYZ.com/Test”>
    <xsl:template match="/">
    <ns1:MT_XSLT_Target>
    <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
    <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
    </Name>
    <Street> <xsl:value-of select="concat(concat(ns0:Mt_XSLT_Source/Person/Address/Houseno,' '),
    ns0:Mt_XSLT_Source/Person/Address/Street)"/> </Street>
    <City> <xsl:value-of select="ns0:Mt_XSLT_Source/Person/Address/City"/> </City>
    </ns1:MT_XSLT_Target>
    </xsl:template>
    </xsl:stylesheet>
    The Desired Output shuold be:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_XSLT_Target xmlns:ns1="http://XYZ.com/Test">
    <Title>Male</Title>
    <Name>Anshul Chowdhary</Name>
    <Street>83/b 2nd Main</Street>
    <City>Mysore</City>
    </ns1:MT_XSLT_Target>
    I have refered the xsl in xml and i am getting the below Oupt in a Single line like this:
    Anshul Chowdhary Male 2nd Main 83/b Mysore
    I am Unable to display in Target XML Fomrat as shown above. Please check and do the needful.
    Regards,
    GIRIDHAR

    Hi,
    I have used below for testing.
    Input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    xsl code:
    <?xml version='1.0' encoding="UTF-8"?> 
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen" 
        xmlns:ns1="http://XYZ.com/Test"> 
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 
        <xsl:template match="/"> 
            <ns1:MT_XSLT_Target> 
                <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title> 
                <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/> 
                </Name> 
                <Street> <xsl:value-of select="concat(concat(/ns0:MT_XSLT_Source/Person/Address/Houseno,' '), 
                    /ns0:MT_XSLT_Source/Person/Address/Street)"/> </Street> 
                <City> <xsl:value-of select="/ns0:MT_XSLT_Source/Person/Address/City"/> </City> 
            </ns1:MT_XSLT_Target> 
        </xsl:template> 
    </xsl:stylesheet>
    For testing in PI ,change the extension from .txt to .xsl and zip it and upload into PI as an imported archive .
    Regards
    Venkat

  • Conditional Mapping issue - Need help Urgently

    Hi Experts,
    We have a requirement for conditional mapping for HFM. When the value of certain account is positive, it is mapped to one account, else, to a different account. We are able to achieve this in the conditional mapping.
    Once the mapping is done, we need the amount to be positive one. How do we attain this?
    Thanks
    Kannan.

    Hi,
    Lets say your two target accounts are called X & Y.
    I assume in your account mapping you have something like
    Source account xxxx1 ==> Target account X
    Source account yyyy1 ==> Target account Y
    Here is what you can do.
    In the import script of Account you can check the amount value < 0 and assign to account X else to account Y and assign to the out variable.
    In the import script of Amount you can check if the source account is xxxx1 or yyyy1 then always assign abs(amount value) and assign to the out variable.
    In the account mapping,
    If you wish you can retain the below (with the account script change as I suggested, you will never get xxxx1 or yyyy1 in the out variable anymore)
    Source account xxxx1 ==> Target account X
    Source account yyyy1 ==> Target account Y
    And add the two additional entries (since out variable for the two conditions will be X & Y)
    Source account X ==> Target account X
    Source account Y ==> Target account Y
    Hope this helps, we have plenty of these kinds of situtations.
    Regards
    Ajay

  • Conditional mapping in Graphical mapping

    Hi All,
    I have a conditional mapping requirement i.e.I have 2 nodes ( collections/collection/object and  extensions/collection/@name) in the source structres. Both nodes are identical and have unbound occurences. Based on certain condtions I need to map second node in the  source node to target node ( Items ). Below is the condition.
    If first node '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/collections/collection/object/@classname' (Occurs Unbounded ) value is not  'contracts.LineItem'  and second node '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/extensions/collection/@name' ( Occurs Unbounded ) value is 'MATGRP_COLLN' then only map source field '/MT_FCI_CONTRACT_EXPORT/fcidataexport/objects/object/extensions/collection/row' ( occurs unbounded ) to target node 'Items' ( Occurs unbounded ).
    I have done this mapping using If condtions and did some context changes. My second condition is working fine but my first condition is not working as expected. Its only taking value in the first occurences and based on that passing first condition. But I need to check in all occurences whether value 'contracts.LineItem' is not exist  then only I need to pass that condition. Please let me know how to achieve this.
    Please help me to achieve my requirement.Thanks.
    Regards,
    Rajesh

    Hi Rajesh,
    To reply your query first we have to understand the exact requirement . So I am writing my understanding below and solution for it .Kindly reply if your requirement is different.
    you have three source field which is involved in mapping .@classname, @name, and row and target side you have node item .
    Now you have to check for all classname and name that if classname is not equal to contracts.LineItem and @name is equal to MATGRP_COLLN ( both the values I have considered as constant) then map row to target node item. i.e if classname and lineitem is occuring 4 time and two time both are satisfying both the codition then generate two target Item node .
    Solution.
    classname -> (CollapseContext)->equals to ContractLineitem --not -->
                                                                                    AND -
    IIF WITHOUT ELSE
    Name -
    >(CollapseContext)-->equals to MATGRP_COLLN--
    >
    the condition of if without else function will be output of AND and in then map row----.(collpasecontext) finally the output of if without else will be mapped to item
    note :all ittalic is Graphical mapping functions .
    Regards,
    Saurabh

  • Conditional Mapping with script using BlOCKPROC to access the HFM API

    Hello,
    following problem. During the mapping/validation I need to map certain custom1 members to None if the Top Member is None and let it be if not None. This allocation depends on the account. Reading through the documentation I stumbled across conditional mapping.
    So in the Custom1 map type Like I defined following:
    Rule Name: C1_Script
    Rule Definition: CXXX*
    TargetCustom1: #Script
    In the script I try to achieve to get the Custom1 Top member for the account! The HFM API offers this function(fGetCustomTopMember) and with varValue(14) I get my TargetAccount. So everything I need seems to be there.
    Only problem is I need to use the BlOCKPROC to access the HFM API provided through the adapter, but either way won't work.
    Trying "Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect("LookUP")" throws an object required error.
    Trying
    Dim BLOCKPROC
    Set BLOCKPROC = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
    BLOCKPROC.Initialize API, SCRIPTENG
    throws me a type mismatch for "BLOCKPROC.Initialize".
    I am kinda at my wits end. Any help/clue is much appreciated.
    Ahh, yes the different writing BlOCKPROC and BLOCKPROC is correct!
    Thanks!

    Hello Tony,
    Many thanks for your answer. Just one last question. The event AftProcMap(strLoc, strDim) gives me the Dimension? Just how do I get the account?
    Can you point me to the right direction and I'll figure out the rest!
    Thanks a lot!

  • KPI Reports in BI - Help required

    Hi,
    I am having a requirement - KPI Report needs to show KPI target values. These data are neither stored in any transactional documents (such as Notification or Work Order) nor in any additional fields that can be used via customizing. This data is coming from Legacy system only which require lot of conditions & customizations to arrive in to final KPI target values.
    Can you please help me to anser to following questions?
    1. Is there any possibility to map this requirement with Business Content in BI? (I believe No)
    2. What is the best possible solution to implement this scenario - I mean first load this Legacy data in to ECC side tables and extract the same using Generic Extractor OR Load the data in to BI system and utilize for reporting?
    Thanks!
    Best regards,
    Venkata Chalapathi

    Yes, it takes bit more time for calculations.
    For that only BW system is there. for complicated calculations. Do calculations or derivation at extraction level(from ODS to cube) then at reporting side.
    Or if you are planning to do at R/3 side again it takes same amount of time. Main drawback is we dont have any control on data calculations. For any adjustment we need to depend on source side. for any change  also. Very tidious process to control.
    So i suggest, avoid R/3, load directly to BW and do calculations, so we have complete access and control over it.
    Srini

  • Pricing Error (help required)

    Is there any routine which includes the tax value in R100 as well ,currently  the problem is that the 100% Discount condition is only including the net price
    And in the pricing procedure i m using two prices one price of tax calculation and the other is consumer price first i calculate the tax from base price then i deduct the tax from the consumer price this calculation is working fine through standard routines.
    Only problem is that when i enter NRAB and R100 at end it only includes Net Value which is calculated through Formual using condition type NTPS
    Kindly Help Required ASAP

    Hi ABAPAR,
    I m not getting the exact picture of what U desired, from your pricing procedure.
    As you r using multiple free goods condition type...anyway.
    If you wanted to make the calculated tax "amount + "as a basis for the calculation of particular condition type.you can use the functionality of subtotal.
    That mean go and assign one subtotal no. to subtotal column in your pricing procedur to all condition type to which you wanted to make as a basis for furthur calculation.(this settings allow the total of all values in one subtotal).
    And finally U can assign this subtotal no.to the "alt.cal.B.value "of pricing procedure for the calculation of particular condition type.
    If you r using any std condion type that come up with certain routine like NRAB or somthing...possibly that will not allow u to do this settings. so in this case clear your free goods requirement or use any new condition type. i.e . Z creation.
    consult your SD consultant.
    karnesh

  • Help required in BR-restore

    dear experts,
    plz look on to log message.
    CDPRD:oraprd 60> brrestore -m full -b bdvslmwp.aft -c
    BR0401I BRRESTORE 6.40 (22)
    BR0405I Start of file restore: rdvsuwwe.rsb 2007-07-19 18.09.20
    BR0428W File /oracle/PRD/data/sapdata3/prd_1/prd.data1 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata3/prd_2/prd.data2 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata3/prd_3/prd.data3 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata3/prd_4/prd.data4 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_6/prd.data6 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_8/prd.data8 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_10/prd.data10 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_9/prd.data9 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_7/prd.data7 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_10/prd.data13 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_10/prd.data12 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd_10/prd.data11 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata3/prd_5/prd.data5 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/prd640_1/prd640.data1 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/prd640_2/prd640.data2 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/prd640_4/prd640.data4 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata2/prd640_6/prd640.data6 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata2/prd640_8/prd640.data8 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata2/prd640_10/prd640.data10 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd640_12/prd640.data12 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prd640_13/prd640.data13 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata3/prd640_11/prd640.data11 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata2/prd640_9/prd640.data9 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata2/prd640_7/prd640.data7 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/prd640_5/prd640.data5 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/prd640_3/prd640.data3 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata4/prdusr_1/prdusr.data1 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/temp_1/temp.data1 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/undo_1/undo.data1 will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/system_1/system.data1 will be overwritten
    BR0428W File /oracle/PRD/origlogA/log_g11m1.dbf will be overwritten
    BR0428W File /oracle/PRD/mirrlogA/log_g11m2.dbf will be overwritten
    BR0428W File /oracle/PRD/origlogB/log_g12m1.dbf will be overwritten
    BR0428W File /oracle/PRD/mirrlogB/log_g12m2.dbf will be overwritten
    BR0428W File /oracle/PRD/origlogA/log_g13m1.dbf will be overwritten
    BR0428W File /oracle/PRD/mirrlogA/log_g13m2.dbf will be overwritten
    BR0428W File /oracle/PRD/origlogB/log_g14m1.dbf will be overwritten
    BR0428W File /oracle/PRD/mirrlogB/log_g14m2.dbf will be overwritten
    BR0428W File /oracle/PRD/origlogA/cntrl/cntrlPRD.dbf will be overwritten
    BR0428W File /oracle/PRD/data/sapdata1/system_1/cntrl/cntrlPRD.dbf will be overwritten
    BR0428W File /oracle/PRD/saparch/cntrl/cntrlPRD.dbf will be overwritten
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.20
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE:
    c
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.27
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.27
    BR0407I Restore of database: PRD
    BR0408I BRRESTORE action ID: rdvsuwwe
    BR0409I BRRESTORE function ID: rsb
    BR0449I Restore mode: FULL
    BR0411I Database files for restore:
    /oracle/PRD/origlogA/log_g11m1.dbf
    /oracle/PRD/mirrlogA/log_g11m2.dbf
    /oracle/PRD/origlogB/log_g12m1.dbf
    /oracle/PRD/mirrlogB/log_g12m2.dbf
    /oracle/PRD/origlogA/log_g13m1.dbf
    /oracle/PRD/mirrlogA/log_g13m2.dbf
    /oracle/PRD/origlogB/log_g14m1.dbf
    /oracle/PRD/mirrlogB/log_g14m2.dbf
    /oracle/PRD/origlogA/cntrl/cntrlPRD.dbf
    /oracle/PRD/data/sapdata1/system_1/cntrl/cntrlPRD.dbf
    /oracle/PRD/saparch/cntrl/cntrlPRD.dbf
    BR0419I Files will be restored from backup: bdvslmwp.aft 2007-07-17 20.20.27
    BR0416I 35 files found to restore, total size 264320.932 MB
    BR0424I Files will not be decompressed
    BR0421I Restore device type: tape
    BR0102I Following backup device will be used: /dev/nst0
    BR0103I Following backup volume will be used: PRD2170707 (2007-07-17 20.20.27)
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.27
    BR0256I Enter 'c[ont]' to continue, 's[top]' to cancel BRRESTORE:
    c
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.40
    BR0257I Your reply: 'c'
    BR0259I Program execution will be continued...
    BR0126I Unattended mode active - no operator confirmation required
    BR0208I Volume with name PRD2170707 (2007-07-17 20.20.27) required in device /dev/nst0
    BR0280I BRRESTORE time stamp: 2007-07-19 18.09.40
    BR0226I Rewinding tape volume in device /dev/st0 ...
    BR0351I Restoring /oracle/PRD/sapbackup/.tape.hdr0
    BR0355I from /dev/nst0 ...
    BR0241I Checking label on volume in device /dev/nst0
    BR0209I Volume in device /dev/nst0 has name PRD2170707 (2007-07-17 20.20.27)
    BR0280I BRRESTORE time stamp: 2007-07-19 18.10.05
    BR0199I Volume label checked successfully
    BR0351I Restoring /oracle/PRD/data/sapdata3/prd_1/prd.data1
    BR0355I from /dev/nst0 ...
    BR0278E Command output of 'LANG=C cd /oracle/PRD/data/sapdata3/prd_1 && LANG=C cpio -iuvcB prd.data1 < /dev/nst0 && LANG=C mt -f /dev/nst0 fsf 1':
    cpio: warning: skipped 79322336 bytes of junk
    cpio: warning: skipped 542681129 bytes of junk
    cpio: warning: skipped 169089187 bytes of junk
    cpio: warning: skipped 4490772 bytes of junk
    cpio: warning: skipped 7297164 bytes of junk
    cpio: warning: skipped 3571036 bytes of junk
    cpio: warning: skipped 32560979 bytes of junk
    cpio: warning: skipped 2376064 bytes of junk
    cpio: warning: skipped 1269138 bytes of junk
    cpio: warning: skipped 613734 bytes of junk
    cpio: warning: skipped 13541613 bytes of junk
    cpio: warning: skipped 10854153 bytes of junk
    cpio: warning: skipped 80328255 bytes of junk
    cpio: warning: skipped 3251134 bytes of junk
    Found end of tape.  To continue, type device/file name when ready.
    BR0280I BRRESTORE time stamp: 2007-07-19 18.23.46
    BR0279E Return code from 'LANG=C cd /oracle/PRD/data/sapdata3/prd_1 && LANG=C cpio -iuvcB prd.data1 < /dev/nst0 && LANG=C mt -f /dev/nst0 fsf 1': 1
    BR0359E Restore of /oracle/PRD/data/sapdata3/prd_1/prd.data1 from /dev/nst0 failed due to previous errors
    BR0397E Verification of backup of /dev/nst0 using DBVERIFY failed due to previous errors
    BR0406I End of file restore: rdvsuwwe.rsb 2007-07-19 18.23.46
    BR0280I BRRESTORE time stamp: 2007-07-19 18.23.46
    BR0404I BRRESTORE terminated with errors
    this is the message i'm getting while i try to restore my DBA in sap crash.
    i'm not able to restore the DBA
    plz help us in this condition.
    by
    raghav

    you posted here too?

  • Using conditional Maps

    Hi all, Im using FDM 11.1.2.1
    I want to use a conditional Mapping for Custom 2 (UD2)
    I tried to use the example on the manual, but on the field Rule Definition, which is empty on the example, FDM is forcing me to include some value, so basically the grid is as follows
    Rule Name Rule Desc Rule Definition Targe Custom2 Script
    NIT All All #Script ----
    And the script goes like this
    If Len (varValues(21)) > 9 Then
         Result = Left(varValues(21),9)
    Else
         Result = varValues(21)
    End If
    Once I execute the import the follow error comes up
    ERROR:
    Code............................................. 4026
    Description...................................... Invalid Between Clause: (All) For Dimension Map (UD2) and Rule (NIT)
    Procedure........................................ clsCalcEngine.fFlagWildcard
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 11124
    I can´t understand what's wrong with the rule, if it's on the script, or the grid.
    Please any help will be highly apprecited

    If you want the map to apply to all Custom2s, then I think it is more appropriate to use Like mapping instead of Between mapping. In the Like mapping entry, the Rule Def ashould be set to * (asterisk) and the Target should be set to #SCRIPT.
    Edited by: Larry R on Nov 23, 2011 12:30 PM

  • FDM Conditional Map Script Error

    Hi all,
    we trying importing data from EBS to HFM though ERPI by using FDM.
    We used conditional based scripts to importing data from ebs to FDM.
    this scripts used in FDM for ICP dimension between conditional mapping script.script logic is some particular account are related to Intercomapny transaction accounts we have to map to ICP member
    can anyone help me on this:
    this is error :
    ** Begin FDM Runtime Error Log Entry [2011-12-12 15:10:18] **
    ERROR:
    Code............................................. 1014
    Description...................................... Conditional Map Script Error: Expected 'End' at line(2)
    Script:
    If varValues(14)="113401" Then Result="21_ADNIP"
    Else Result="[ICP NONE]"
    End if
    Rule=I1
    Procedure........................................ clsImpProcessMgr.fLoadAndProcessFile
    Component........................................ upsWObjectsDM
    Version.......................................... 1112
    Thread........................................... 13888
    IDENTIFICATION:
    User............................................. admin
    Computer Name.................................... ADNIPHYPUAT01
    App Name......................................... FDMHFM
    Client App....................................... WebClient
    CONNECTION:
    Provider......................................... ORAOLEDB.ORACLE
    Data Server......................................
    Database Name.................................... HYPUAT
    Trusted Connect.................................. False
    Connect Status.. Connection Open
    GLOBALS:
    Location......................................... HFMGLLOAD
    Location ID...................................... 750
    Location Seg..................................... 4
    Category......................................... WLCAT
    Category ID...................................... 12
    Period........................................... May - 2011
    Period ID........................................ 5/31/2011
    POV Local........................................ False
    Language......................................... 1033
    User Level....................................... 1
    All Partitions................................... True
    Is Auditor....................................... False
    Thanks.
    Srini

    Hi, please try the mapping script again having the "Result=" statement on a separate line, like:
    If varValues(14)="113401" Then
    Result="21_ADNIP"
    Else
    Result="[ICP NONE]"
    End if
    Kind regards,
    Jeroen

  • Java Mail,SMTP server not starting,help required urgently

    Hi i have been working on java mail .Yesterday it was working ok but today suddenely i am getting this thing.its not starting the smtp server i guess,just exiting and get the command prompt ..dont know what to do.help required how to go about this error
    am pasting the debug information.please check and let me know
    the compilation ,smtp server and others are all valid
    thanks
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\Pavan>cd C:\Program Files\Java\jdk1.5.0_07\bin
    C:\Program Files\Java\jdk1.5.0_07\bin>javac jdbcExample3.java
    C:\Program Files\Java\jdk1.5.0_07\bin>java jdbcExample3 smtpserver address
    DEBUG: JavaMail version 1.4ea
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_07\jre\lib\
    javamail.providers (The system cannot find the file specified)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax
    .mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsyste
    ms, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com
    .sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLSt
    ore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst
    ems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.su
    n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=jav
    ax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
    com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP
    3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.
    sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STOR
    E,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Prov
    ider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],
    pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems
    , Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
    Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.S
    MTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_07\jre\lib\
    javamail.address.map (The system cannot find the file specified)
    C:\Program Files\Java\jdk1.5.0_07\bin>

    The debug output doesn't show an obvious problem. You're
    going to have to actually debug your program. A debugger
    might be helpful.

  • Selection Screen search help values based on condition

    Hi All,
    I am developing this report for HR.And the requirement is in one of the selection screen field the
    value's should be appeared(when f4) based on some condition,ie not all values should come.
    My field is HRP1001-sobid,here there are many values,they dunt want all that to be shown when user
    tries to input the values(F4).And also i need to show the Text for this field(department name) in
    search help.
    Can anyone please guide...
    Thanks in advance.

    Hi Salz
    You can code your own search help procedure for this. To achieve this, first you should add the block:
    <u>e.g.</u>
    AT SELECTION-SCREEN ON VALUE REQUEST FOR p_sobid.
    Within this block you can use the standard FM "<b>RH_OBJID_REQUEST</b>" to call the standard HR help list for objects conditionally.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Maybe you are looking for