How to use variables in DVM

I have a string variable called codeValue and I want to use it in a dvm:lookupValue. Do you know how to use a variable in a dvm function? Below is my lookup function but I got an XPath error
dvm:lookupValue ('cityMap.dvm','Code',codeValue,'CityNames', 'CouldNotBeFound')
I also tried the below but it failed also
dvm:lookupValue ('cityMap.dvm','Code',bpws:getVariableData('codeValue'),'CityNames', 'CouldNotBeFound')
Thanks

Task Completed

Similar Messages

  • How to use variable in DVM

    I have a string variable called codeValue and I want to use it in a dvm:lookupValue. Do you know how to use a variable in a dvm function? Below is my lookup function but I got an XPath error
    dvm:lookupValue ('cityMap.dvm','Code',codeValue,'CityNames', 'CouldNotBeFound')
    I also tried the below but it failed also
    dvm:lookupValue ('cityMap.dvm','Code',bpws:getVariableData('codeValue'),'CityNames', 'CouldNotBeFound')
    Thanks

    Hello,
    I am also receiving an error. Is there any other configuration that is necessary besides creating the dvm file and using the xpath functions. Is there something we need to do with the Mediator. I am using the dvm:lookup in my XSL transformation.
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}subLanguageExecutionFault}
    parts: {{summary=<summary>XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:processXSLT('xsl/Transformation_XMLRequest.xsl',bpws:getVariableData('inputVariable','payload')).
    The XPath expression failed to execute; the reason was: internal xpath error.
    Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    </summary>,code=<code>XPathExecutionError</code>}
    cause: {XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:processXSLT('xsl/Transformation_XMLRequest_.xsl',bpws:getVariableData('inputVariable','payload')).
    The XPath expression failed to execute; the reason was: internal xpath error.
    Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    If I remove the dvm:lookupValue functions from the XSL, it works
    So I created a simple BPEL process, created a Test.dvm just using the default values and did a transformation
    <xsl:template match="/">
    <client:processResponse>
    <client:result>
    <xsl:value-of select="dvm:lookupValue('Test.dvm','domain1','value1','domain2','Not Found')"/>
    </client:result>
    </client:processResponse>
    </xsl:template>
    I get the same error message when I run the process. When I try to test the transformation I get the error:
    Failed to transform the source XML. Start of root element expected.
    Has anyone used DVM's in 11g? Any help would be greatly appreciated.
    Thanks,

  • How to use variables with

    I need to get the number of lines in internal table, which would
    be easy, using DESCRIBE TABLE itab LINES lines. But the problem
    is, that I get the name of this internal table in the field of
    another internal table, so I have to use the name of internal
    table as variable, but I don't know how to use variables with
    DESCRIBE TABLE (or if this is possible).

    Hi,
    REPORT ZPRUEBA782 .
    define two tables with diferent structures.
    data: begin of table1 occurs 0,
    registro type i,
    end of table1.
    data: begin of table2 occurs 0,
    registro type i,
    repid like sy-repid,
    end of table2.
    data: rows type i.
    start-of-selection.
    fill them with data
    do 1000 times.
    table1-registro = sy-tabix.
    append table1.
    enddo.
    do 1757 times.
    table2-registro = sy-tabix.
    table2-repid = sy-repid.
    append table2.
    enddo.
    call a form that receives as input the table and returns the number
    of rows as output.
    perform howmanyrows tables table2 changing rows.
    break-point. "evaluate the number of rows
    perform howmanyrows tables table1 changing rows.
    break-point. "evaluate the number of rows
    end-of-selection.
    form howmanyrows tables itable changing rows.
    rows = 0.
    loop at itable.
    add 1 to rows.
    endloop.
    endform.
    You can try it if you don't find a better solution.
    Cheers,
    Chaitanya.

  • How to use @variable(bouser) in Universe to get BOE userid in Xcelsius

    Dear Expert,
    I have request that need to display BOE userid to displayed in Dashboard using Xcelsius,
    after searching in Internet, i found that it can be done by using @variable(bouser) in an object in the Universe, and use the object in Qaaws, but i don't how to use it.
    already tried insert /* @variable('BOUSER') */ in END_SQL universe parameter, but still no luck.
    my question is :
    how to use @variable(bouser) in universe? and then my Xcelsius can display the BOE userid?
    thanks in advance for any answer.
    I Using SAP Integration KIT to create universe from Query BEX
    Luqman
    Edited by: luqman hakim on Jun 29, 2010 4:03 PM

    >
    Didier Mazoue wrote:
    > Hi,
    >
    > You are mentioning that you are using SAP Integration Kit.
    > Does it mean that the source you are targeting is SAP BW?
    >
    > If it is the case, this is unfortunately not supported.
    > SAP BW MDX does not support calculated expressions that return string or date: this is a limitation of SAP BW engine.
    > This is one of the reason why a lot of user exit are used to address these needs.
    >
    > Regards
    > Didier
    Didier Mazoue 
    yes, my Data source is SAP BW, and connected to BOE via SAP INT KIT.
    It's too bad that SAP doesn't support so simple requirement.
    you said : user exit 
    are used to address these needs.
    so there are possibility to solve my problem.
    would you give me the logic of user exit?  which part I should create the user exit
    I'm quiet familiar with user exit in BW
    thanks

  • How to use variable in source path of an image  in flex

    hello
    i just want to know that how to use variable in source path
    of an image in flex

    I am doing exactly that with data binding at the moment. This
    is my Image element
    <mx:Image width="50" minHeight="50" height="76"
    source="{Application.application.parameters.api}/rest/entity/{data.Slug}/Image"
    />
    Note the curly brackets
    HTH
    Pat

  • How to use variable in topology

    Hi every one..
    how to use variable in topology

    The normal way you use in interface or procedure. But the package you are executing should have the variable in 1st step with set or refresh mode.

  • How to use variables in data slices?

    Hello,
    in BI-IP I have tried to use variables in a data slice.
    The user should fill these variables.
    How can one use and fill these variables?
    Thank you
    Daniel

    Hello Horst,
    data slice is a very strong system lock. It is normally not a good decission to allow users to control this part becuse it sould be in administration of a responsible person.
    If you allow users in the web to open or close data slices, this is like a "open period" funtion in financials: Think about what could happen, if anyone else than the responsible person could do that....
    This is my point of view.
    I would do it in anoter way: Create an User exit and fill a variable like desribed above. You read each line and make a decission whether the user might see this line or not (e. g. period open? yes or no?). The period and the status for the period could be maintained in a table or in a characteristic. table might be easier.
    regards
    Eckhard

  • How to use CrossReference and DVM in ODI &how to populate data into Xref

    Can any one tell how to use Domain Value Maps and Cross Referencing in ODI?
    DVM or Domain Value Map are created and used in ESB console of SOA suite.
    My actual requirement is as follows:
    The below steps describe loading data from ERP Application 1 to ERP Application 2.
    1. The Source Application ERP APP1, populates the interface table using their native technology.
    2. A job scheduler invokes the Source side ODI Package.
    3. ODI then extracts the data from Source Interface table and populates the Target Interface table.
    4. After populating the Target interface table the ODI populates the X-ref table with App 1 ID and generated common ID.
    5. The ODI either deletes or updates the rows that were processed from the Source interface table.
    6. On the Target Application ERP APP2, the native application extracts data from target interface table and populates target database there by generating ERP Application 2 ID.
    7. A job scheduler on the Target application invokes the ODI package to populate the Application 2 ID onto the Xref table matching on the Common ID.
    I just want to know :
    1. How to populate data into the Xref table from Source datastore
    2. And if data is successfully laoded from target datastore to actual base table of target then how to populate the target id into the cross reference table.

    can anyone suggest me some answer, then it would be of great help?

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • How to use variable in automator?

    So I am trying to create this dictation command in automator where i can go like this "Launch Safari" or "Launch iTunes" so how to use the variable for text in the command?

    Hi,
    This is possible without a variable.
    Remove the "Ask for Text" and "Set value of Variable psize" actions.
    In the "Scale Images" action:
    -- Click on the "Options" button.
    -- click on "Show this action when the workflow runs" checkbox.
    This is almost similar to that "Ask for Text" action, since the "Scale Images" action will be displayed as a dialog, You can adjust the percentage in this dialog.

  • How to use Variable in interface for Mapping in ODI 11g

    Hi,
    I want to use Variable 'Year' in interface mapping. how i can do that? I define a variable YEAR1 = '2001' and in interface i put #YEAR1 but it didn't work for me. is there any other way?
    Example.
    I m using 'Year' column in mapping and it is having different 3 constant values so i was think to define 3 variable Year1= '2001' & Year2= '2005' & Year3= '2010'.
    In interface i just want to put variable name insted giving fix value.
    regards
    Sher

    Thank u
    I m trying with all the options & when i create Variable i and set Default value to ''2001'
    '#YEAR'
    #YEAR
    '#PROJECT_NAME.YEAR'
    #PROJECT_NAM.YEAR
    #PROJECT_NAME.'YEAR'
    and setting to Stagging Area
    But still it is not working out.
    I m suing ODI11.1.1.3
    is it any issue?

  • How to use variable in rule script in HFM

    I'm now writing VB script for HFM rule, and have something to ask about the use of variables in rule.
    The script below generates the following error.
    -Error description-
    Line: 4, Error: Invalid Expression
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    An error has occurred in Hyperion Financial Management.
    -Rule script-
    Sub Allocate()
    Dim cur
    cur = 500
    HS.Exp "S#Actual.A#77300.I#[ICP None] = cur"
    End Sub
    On the other hand, the script below works properly.
    -Rule script-
    Sub Allocate()
    HS.Exp "S#Actual.A#77300.I#[ICP None] = 500"
    End Sub
    Probably I'm not using variables in proper way, but have no idea how to correct it.
    Does anyone have any idea?
    Thanks in advance.

    Hello,
    try this in the sub calculate:
    HS.Exp "S#Actual.A#77300.I#[ICP None]=" & cur
    For the sub allocate, I suppose that you do not have the issue because the allocate is not launch during the consolidation process. Allocate is launched separatly by a right click, and can only be done when calculation status = "OK", which means that all calculation have been done (that could not be the case if you have an error like this in sub calculate).
    Hope it helps

  • [DW 8.02 + PHP] how to use variables in advanced SQL queries

    Hi all,
    I can't find a way to use variables in an SQL query after
    updating
    dreamweaver 8.02.
    I always get error messages that says: 'missing variable
    type:myvariablename', undefined#myvariablename... and so on.
    What is the correct way to use variables?
    I usually set a variable in a PHP statement (example: <?
    $today=date('Y-m-d'); ?>)
    and then I compare this variable in the SQL query.
    What is the correct syntax for variable in DW 8.02 in
    advanced SQL
    queries?
    TIA
    tony

    sweetman wrote:
    > I'm editing a website created with DW 8.01 and MX
    Kollection.
    >
    > I updated DW to 8.02 and now I can't edit an existing
    SQL query.
    > I always get an error message 'Missing variable type'
    and I can't go
    > on.
    InterAKT released a new version of Kollection to cope with
    the 8.0.2
    changes. AFAIK, you should be able to download the updated
    version from
    your InterAKT account area.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How to use variables in scriptlogic

    Hi BPC gurus,
    I'd like to make a condition in my scriptlogic for an allocation of a planned value on year base to the months values. If there is reference data in the past year, I would like to allocate according to the reference. If not, I would just like to make an even distribution. Unfortunately I didn't find a way to use variables in scriptlogic and assign values to them. Here's my coding:
    *LOOKUP Vertrieb
    *DIM MEASURES="PERIODIC"
    *DIM CATEGORY="ACTUAL"
    *DIM P_DATASRC="UPLOAD"
    *DIM PREVYEAR:TIME="2009.TOTAL"
    *DIM PREVJAN:TIME="2009.JAN"
    *DIM PREVFEB:TIME="2009.FEB"
    *ENDLOOKUP
    *WHEN TIME
    *IS "2010_INPUT"
    *WHEN CATEGORY
    *IS "PLAN"
    *WHEN P_DATASRC
    *IS "MANUAL"
    //here I would like to add a condition if the value for the past year is not 0
    *REC(FACTOR=LOOKUP(PREVJAN)/LOOKUP(PREVYEAR),TIME="2010.JAN")
    *REC(FACTOR=LOOKUP(PREVFEB)/LOOKUP(PREVYEAR),TIME="2010.FEB")
    //or here I would like to add a condition if the value for the past year = 0
    *REC(FACTOR=1/12,TIME="2010.JAN")
    *REC(FACTOR=1/12,TIME="2010.FEB")
    *ENDWHEN
    Thanks for your assistance.
    Regards,
    Ulrike

    Hi,
    If you would like to add a condition if the value for the past year is not 0, then you can try
    *WHEN TIME
    *IS 2009.TOTAL
       *WHEN SIGNEDDATA
       *IS (put is not equal to sign, as I am not able to put it) 0
          *REC(......)
       *ENDWHEN
    *ENDWHEN
    *COMMIT
    Hope this helps.

  • How to use Variable in message mapping

    Hi Experts,
    I have some problem using variable in message mapping.
    In one message mapping, since a block of logic is repeated for several fields, then i tried to use a variable instead.
    the repeated logic is: first if condition, then use a udf to form a queue which will be suppressed by its father node.
    i tried to assign the result queue to a variable after the UDF execution. (this variable is created after the father node)
    I am wondering is there any restriction of using variable?
    Can we assign the whole queue to a variable?
    Can we use UDF during the process of assigning value to variable?
    thanks in advance.

    I dont think you can assign a queue to a variable,I am not 100% sure, . and there is no restriction to useing a Zvariable, only u can use it after you declare at some parent level.
    Yes you can use a UDF in the process of assigning to a Zvariable.
    Check out this link and read the comments of the blog.
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    Edited by: Saiyog Gonsalves on Nov 6, 2010 6:40 PM

Maybe you are looking for

  • While making Subform Flowed-WesternText  there is an error

    Hello Buddies, I am using LiveCycle Designer7.1.I have included two filds in a subform which i made flowed-WesternText but when i preview it two fields are overlapping one over the error in the report pallete i found the like "Invalid layout attribut

  • How to restore my Ipod touch into a new hard disk/computer?

    Guys, my Laptop's hard drive was crash and all my songs and applications were the only copy I had. However, I had no idea how to restore my musics and application back to the library after I had replace a new hard disk. I went through online to check

  • HT5293 my xmoviex doesn't work .how could i run it?

    my xmoviex doesn't work .how could i run it?

  • Execute a query in Jdeveloper using DB adpater

    Hi All , In jdeveloper, using DB adapter i want to execute the following query , select segment1,eng_item_flag from table_name where segment1 in ('itemnumber1','itemnumber2'); In the query the operation IN got used so could you please help me to proc

  • Phantom used space on HD

    My PowerMac G4 hard drive, capacity 57.2GB, says 49.6GB used. But using both a finder window and Whatsize I can find less than 40GB of files on the drive. How can I free up the ~10GB of unaccounted for disk space? Thanks so much if you can help.