Problem with variable inside split-join

Hello,
I'm using Oracle BOM Suite 10.3.0.0 and i want to use the split gateway.
In general the split activity ends with a join.
the problem is when i affect a value to a variable between the split and join, it could not get this value after the join, which means after the join the variable becomes empty just like it was before the split.
could anyone help me please.
thanks

HI
Case 1: Instance variables are not shared:
At join you can copy the variables from one of the branches to the main instance (that waits at join).
this.instanceVar = copy.instanceVar
This will copy the value of variable 'instanceVar' from the instance that just arrived at join to the instance that was waiting at join (main instance)
Case 2: Instance variables are shared:
This would mean that the main instance shares its variables with the child instances (instances between split - join). In such a case, when a variable is updated by any of the branches, the change is reflect in all the copies.
You can set the property to share or not to share instance variables, in the advanced properties of the split activity.
HTH
SAtinder

Similar Messages

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Problem with variable

    Hi. I'm making a form for work for people to book places on
    training courses. Having an annoying problem with variables that
    i'm hoping has a simple solution. Any help with this will be much
    appreciated.
    All the info is held in an external text file which looks
    like this (but much longer):
    &totalcourses=2&
    &course0=Please choose a course&
    &course1=my course one&
    &totaldates1=3&
    &c1date0=Select a date...&
    &c1date1=15 September 2006&
    &c1time1=Time: 10:00 to 16:00&
    &c1date2=23 January 2006&
    &c1time2=Time: 11:00 to 16:00&
    &c1date3=28 February 2007&
    &c1time3=Time: 12:00 to 16:00&
    &course2=my course 2&
    &totaldates2=3&
    &c2date0=Select a date...&
    &c2date1=15 September 2006&
    &c2time1=Time: 11:00 to 16:00&
    &c2date2=08 January 2007&
    &c2time2=Time: 9:00 to 16:00 &
    &c2date3=15 February 2007
    &c2time3=Time: 12:00 to 16:00&
    The course titles are loaded into an array and then into a
    combobox. When a course is chosen a second combobox loads the
    relevant dates array for that course. When a date is chosen the
    time is shown in a dynamic text box.
    Problem is - if more than one course is on the same date it
    will show the time for the latest course with that date. For
    example - course 1 is on 15 sept at time 10:00 to 16:00, course 2
    is also on 15 sept at time 11:00 to 16:00. When 15 Sept is chosen
    for course one it displays the time for course 2 on this date -
    presumably because it comes later in the text file.
    I've attached the actionscript for this - Can anyone help me
    sort this out??

    Hi. I'm making a form for work for people to book places on
    training courses. Having an annoying problem with variables that
    i'm hoping has a simple solution. Any help with this will be much
    appreciated.
    All the info is held in an external text file which looks
    like this (but much longer):
    &totalcourses=2&
    &course0=Please choose a course&
    &course1=my course one&
    &totaldates1=3&
    &c1date0=Select a date...&
    &c1date1=15 September 2006&
    &c1time1=Time: 10:00 to 16:00&
    &c1date2=23 January 2006&
    &c1time2=Time: 11:00 to 16:00&
    &c1date3=28 February 2007&
    &c1time3=Time: 12:00 to 16:00&
    &course2=my course 2&
    &totaldates2=3&
    &c2date0=Select a date...&
    &c2date1=15 September 2006&
    &c2time1=Time: 11:00 to 16:00&
    &c2date2=08 January 2007&
    &c2time2=Time: 9:00 to 16:00 &
    &c2date3=15 February 2007
    &c2time3=Time: 12:00 to 16:00&
    The course titles are loaded into an array and then into a
    combobox. When a course is chosen a second combobox loads the
    relevant dates array for that course. When a date is chosen the
    time is shown in a dynamic text box.
    Problem is - if more than one course is on the same date it
    will show the time for the latest course with that date. For
    example - course 1 is on 15 sept at time 10:00 to 16:00, course 2
    is also on 15 sept at time 11:00 to 16:00. When 15 Sept is chosen
    for course one it displays the time for course 2 on this date -
    presumably because it comes later in the text file.
    I've attached the actionscript for this - Can anyone help me
    sort this out??

  • Problem with Variable Client Support

    Hello,
    I work with Labview 8.5 and Crio 9014.
    I have a problem with  Variable Client Support. When I try to compile my project I have the following error:
    "The Network Variable Engine and Variable Client Support must be installed on the RT target for this application to function properly..."
    I have read that we have to install the Variable Client Support in Measurement and Automation by right-clicking on the software and then choosing add/remove software but I can't install the appropriate shared variable components because I can't see neither Network Variable Engine and Variable Client Support. So what can I do?
    Can somebody help me?
    Thanks

    I have exactly the same problem. I wanted go through the "Getting Started with the LabVIEW RT module" and when I use wizard for generating new project I get same notification in my VI... 
    The Network Variable Engine and Variable Client Support must be installed on the RT target
    for this application to function properly. If the Network Variable Engine is not supported on
    the target (e.g. FP-2000 with <32MB of RAM), open the project and move the variable library
    to My Computer in the project. Doing this will deploy the variables to localhost but
    will still require that Variable Client Support be installed on the RT target.
    Could someone help please ? 
    Attachments:
    ni.png ‏95 KB

  • Problem with variable in the woorkbook selection screen.

    Hi All,
    I have Problem with Variable in the selection screen. I have four variable in the report in this sequence
    <b>Plant (optional), calendar month (mandatory),  material (optional), Customer (mandatory). </b>
    In Development system, I changed the query to fix the problem for a formula. saved and executed the query. In the selection screen appeared four variables and executed. after executing the query and I saved the work book also. I logged out of the Bex Analyzer. In the RSRT I generated the report by clicking the Generated Report push button. and again logged into the Bex analyzer and ran the work book, now in the selection screen, appeared three Variables only, I am missing the variable <b>Customer</b>.
    The old report which is already  in the Production system is working fine. What could be the mistake I did in the development system.
    It is very urgent, I need to deliver this object as soon as possible.
    Can I anybody help on the same.
    Thanks in advance
    Narendra

    Yunus,
    I did what you said. I removed the variable from characteristic restrictions, saved the query and executed the query, appeared three variables Plant, Calender month and material. executed and saved the work book. disconeted from Bex analyzer, in RSRT Generated Report and logged into Bex analyzer ran the work book for selection Plant, calender month and material and went into change query definition and added the variable for customer which was removed earlier and and ran the query for selections Plant, Calender monmth, Material and customer. saved the work book. disconnected from Bex analyzer and closed all excel sheets and work books. In RSRT Generated Report and again connected to Bex analyzer and ran the work book, now appeared only three variables again missed variable customer.
    Yunus does any missed n the procedure what i did.
    It is helped what Chris was answered.
    Many Many Thaks for your time and replies.
    Thaks in advance
    Narendra

  • Problem with Variable screen in WAD

    Hi ,
    I have a problem with variable screen in WAD , in the varable seen it is displaying only Key , it is not giving any description , but in BEX is is displaying both Key and Description , can any only have an idea why is this happening . this is occuring only for one variable , rest are working fine .
    Thanks,
    Abraham

    Hi Abraham,
    thsi could be a problem from the specisic setting of the infocube. Please check the BEx Settings from the infocube. You can find them by the following steps:
    - search for the infocube
    - doubleclick on the infocube
    - choose an specific infoobjekt
    - right mousebutton and click "specific dataprovider settings"
    - check if the right entries are set
    Hope this will help.
    André

  • Localizing Analytics Web Catalog - problem with variables

    I tried to localize strings in OBI EE Web Catalog. I exported those captions using catalog manager, translate messages in XML file and put them to \Web\Res\l_xx\Captions. It works quite good.
    But there is problem with variables in Title. Replacement of variables STOP working :-( At the page is displayed for example: "@{biServer.variables['MaxDate']}". Variable replacemen works fine in narrative views.
    Do you have some ideas?
    Thanks.

    We have the same problem with presentation variables in titles using externalize strings option, they stopped working after tranlation.
    We tried with Oracle BI EE 10.1.3.2.1 and 10.1.3.3.3 with same result.
    Any ideas?
    Thanks

  • Problems with variable speed

    problems with clips switching from constant to variable speed.

    Could you be more specific? What are you doing exactly and what is happening when you do it? Which version of FCP?

  • Problem with variable offset for 0CALMONTH

    Hello Community,
    I have a problem with using variables offset for time characteristic 0CALMONTH
    Let's say my current query looks like this:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (Keyfigure)
    What I want do now is to add a previous year comparison. So that it should look this way:
    ...................01.2006..........02.2006..........03.2006   (0CALMONTH)
    Sales ..............100..................125................200   (selected months)
    LY_Sales...........50..................100................100   (selected months - 12)
    (LY_Sales should show figures of 01.2005, 02.2005 and 03.2006 in this example)
    I used new selection for LY_Sales with variable offset for 0CALMONTH -12 but that didn't work. Figures in second line are zero. The desired figures would show up (if I expand the selected time intervall wide enough) in 01.2005, 02.2005 and 03.2005 but that's of course not what I want.
    Please help if you can!
    Regards,
    Ulrich

    Hi,
    We can get an an other way by using CELL editor caoncept.
    First create teh query like this:
    ...................01.2006..........02.2006........12.2006.....01.2005...02.20005...12.2005  Sales ..............100................125..............200.............50...........100.........100 
    Sales ..............100................125..............200.............50...........100.........100
    Then hide the 2005 years' kf:
    ...................01.2006..........02.2006........12.2006
      Sales ..............100................125..............200 
    Sales ..............100................125..............200
    Though the call editor concept overwrite the second rows(selection) content with hidden columns of second row(selection) one by one .i.e first cell of 2nd row will be overwritten by 13 th cell of second column.similarly second cell of 2nd row will be overwritten by 14 th cell of second column........
    First row(selection) : Cal year Charactertic with restriction 2006.
    second row(selection) : Cal year Charactertic with restriction 2005.
    With rgds,
    Anil Kumar Sharma .P

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Problem with Variable Entry Screen

    Hello All,
    We upgraded our development systems to NW2004s and came across the following issue:
    All our Bex queries have restricted time characteristics with variables entries. When we execute a query it should pop-up the variable selection screen for us to enter the restriction values but the query is ignoring Variable restriction screen and taking into consideration everything. The same query works fine in Prod., which is still in 3.1.
    Did anyone come across this situation kind of situation? It did not pop-up any type of error and we are in SPS10
    Thanks in Advance,
    Message was edited by:
            bw expert online
    Message was edited by:
            bw expert online

    We fixed the "Variable Screen not appearing" problem by adding following objects to our users.
    1) Business Explorer - BEx Web Templates (NW 7.0+) S_RS_BTMP
    2) Business Explorer - Individual Tools S_RS_TOOLS
    3) Business Explorer - Data Access Services S_RS_DAS
    Mark the message answered if this helps.

  • Problems with graphics inside fax & mail form

    Hi everybody.
    I've a problem with compiling some mail forms.
    I've to load a logo inside a mail form that can be sent also as a fax.
    I tried insert a .bmp image in different ways : graphic node, intranet URL, web URL, but I have always the same problems:
    1)When I send the fax , even if the preview shows me the logo, the fax is always sent without logo.
    2) Sometimes the preview doesn't load the image.
    Somebody could help me?
    Thanks everybody
    Regards

    Hi,
    e-mail, fax or paging/SMS via SMTP configured in the SAP Web Application Server & Which prerequisites and settings are required outside the SAP system?
    Brodly there are five steps to configure
    1. Profile parameters
    2.User administration (transaction SU01)
    3. Client assignment (transaction SICF)
    4.SAPconnect administration (transaction SCOT)
    5. Settings on the mail server (SAP-external configuration)
    For step by step visit smtp configuration guide at
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/ea000fb4b31a71e10000000a422035/content.htm
    <b>Rewards point if helpfull</b>
    Thanks
    Pankaj Kumar

  • Problem with variable substitution.

    Hello,
    I asked this before but now I want to change the question focus.
    I have scenario from IDOC to XML file.
    The scenario is digital invoice for our company in Mexico and I end this scenario with java mapping that I import from SAP marketplace.
    Now I have request to add to the XML file name the content of the field "<ODN_NUMBER>" from the XML data.
    I try to use with variables substitution.
    My payload is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ZINVOIC02>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
    <TABNAM>EDI_DC40</TABNAM>
    <MANDT>400</MANDT>
    <DOCNUM>0000000006599015</DOCNUM>
    <DOCREL>700</DOCREL>
    <STATUS>30</STATUS>
    <DIRECT>1</DIRECT>
    <OUTMOD>2</OUTMOD>
    <IDOCTYP>INVOIC02</IDOCTYP>
    <CIMTYP>ZINVOIC02</CIMTYP>
    <MESTYP>INVOIC</MESTYP>
    <STDMES>ZEDI</STDMES>
    <SNDPOR>SAPDEV</SNDPOR>
    <SNDPRT>LS</SNDPRT>
    <SNDPRN>DEV400ECC</SNDPRN>
    <RCVPOR>SAPDEV</RCVPOR>
    <RCVPRT>LS</RCVPRT>
    <RCVPFC>LS</RCVPFC>
    <RCVPRN>MX_INV</RCVPRN>
    <CREDAT>20100118</CREDAT>
    <CRETIM>075931</CRETIM>
    <SERIAL>20100118075931</SERIAL>
    </EDI_DC40>
    - <E1EDK01 SEGMENT="1">
    <CURCY>USD</CURCY>
    <HWAER>MXN</HWAER>
    <WKURS>10.55530</WKURS>
    <ZTERM>0090</ZTERM>
    <KUNDEUINR>ACH971209KRA</KUNDEUINR>
    <BSART>INVO</BSART>
    <BELNR>0100017295</BELNR>
    <BRGEW>0.045</BRGEW>
    <GEWEI>KGM</GEWEI>
    <FKART_RL>LR</FKART_RL>
    <RECIPNT_NO>0000012977</RECIPNT_NO>
    <FKTYP>L</FKTYP>
    - <Z1EDK01 SEGMENT="1">
    <XML_VERSION>2.0</XML_VERSION>
    <ODN_PREFIX>A</ODN_PREFIX>
    <ODN_NUMBER>1883</ODN_NUMBER>
    <DATE_TIME>2009-11-01T17:05:10</DATE_TIME>
    <DOC_SUB_TOTAL>4.22</DOC_SUB_TOTAL>
    <DOC_DISCOUNT>3.00</DOC_DISCOUNT>
    <DOC_TOTAL>1.40</DOC_TOTAL>
    </Z1EDK01>
    And the xml that I create is:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    -     <Conceptos>
    I try to use with this variable:
    payload:ZINVOIC02,1,IDOC,1,E1EDK01,1,Z1EDK01,1,ODN_NUMBER,1
    I received in RWB the error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var_filename
    Thank you in advance for your help
    Elad

    But my target is looks very strange:
      <?xml version="1.0" encoding="utf-8" ?>
    - <Comprobante xmlns="http://www.sat.gob.mx/cfd/2" version="2.0" serie="A" folio="1883" fecha="2009-11-01T17:05:10" sello="NxZCWU8hMJMiEc2fSZafpS81Z9rUScbBotvJ8lcW76GGpmcD2lFyAV7DlNQKecYMnQJnwMVoHfGjzhpFJrjLuRcyqU3nOnH1mE1JMxY/MjLkal0Ybo2aRKCorQxx+F/Vy5ucvyeDDFAt2gx0PeHJhFS3tJ6ssc6nryz3iUr8c=" noAprobacion="49806" anoAprobacion="2009" formaDePago="Pago en una sola exhibiciףn" noCertificado="00001000000100891274" condicionesDePago="90 DAYS FROM BILL OF LADING" subTotal="4.22" descuento="3.00" motivoDescuento="Customer DiscountCustomer Discount" total="1.40" tipoDeComprobante="ingreso">
    - <Emisor rfc="NMS940324RY6" nombre="Netafim Mexico S.A. de C.">
      <DomicilioFiscal calle="Leibnitz" noExterior="20" noInterior="901" colonia="Anzures" localidad="Mexico city" municipio="Miguel Hidalgo" estado="Distrito Federal" pais="Mexico" codigoPostal="11590" />
      </Emisor>
    - <Receptor rfc="ACH971209KRA" nombre="AGRICOLA 5 HERMANOS SA DE CV">
      <Domicilio calle="JUAN DE LA BARRERA NO 1249 NORTE" localidad="COL. CHAPULTEPEC" municipio="CULIACAN" estado="Sinaloa" pais="Mexico" codigoPostal="80040" />
      </Receptor>
    I need to add folio field
    Elad

  • Problem with Variable 0I_CUFQU

    Hi all,
    We are using Fiscal year/ Period with variable SAP Exit 0I_CUFQU  in FIGL_V11 reports.
    Earlier It was working fine but after Patch Upgrade when I run the same report I am getting the Follwing error.
    Variable 0I_CUFQU could not be replaced.
    If anyone knows the answer please share the solution for the same.
    Regards,
    Ali.

    Hi Ali,
    All these variables use sap exit varaible 0P_FVAEX for thier internal calculation. this is a program error and cen be resolved by SAP note 1322757.
    The following SAP exit variables for BW queries may be affected by the error (the technical names for the variables):
    0P_PRFP1, 0P_PRFP2, 0I_CUFYE, 0I_PRFYE, 0I_CUFQU, 0I_PRFQU,
    0I_PRFY2, 0F_CUFPE, 0F_FPER, 0I_P2FQ0, 0I_P3FQU
    This note will correct the program error.
    Let me know if this works.
    Thanks,
    Amit

  • Xquery problem with variable

    Hello,
    I have some xml documents as the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <sm:be-canali xmlns:sm="http://www.oracle.com/serviceManager/output">
    <sm:evento-ordine>
    <sm:evento>
    <sm:cod-evento>003</sm:cod-evento>
    <sm:ts-evento>2005-08-08 15:40:20.679</sm:ts-evento>
    <sm:cod_status_ordine>PU</sm:cod_status_ordine>
    </sm:evento>
    <sm:evento>
    <sm:cod-evento>018</sm:cod-evento>
    <sm:ts-evento>2005-08-26 11:49:07.286</sm:ts-evento>
    <sm:cod_status_ordine>PU</sm:cod_status_ordine>
    </sm:evento>
    <sm:evento>
    <sm:cod-evento>015</sm:cod-evento>
    <sm:ts-evento>2005-08-26 11:49:08.257</sm:ts-evento>
    <sm:cod_status_ordine>PU</sm:cod_status_ordine>
    </sm:evento>
    </sm:evento-ordine>
    </sm:be-canali>
    I define a table
    test (operationd_id number(10), events xmltype) where I inserted some records.
    I try to execute the following xquery:
    SELECT OPERATION_ID, EVENTS11.* from test,
    XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
    'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
    let $pippo:=$prod/sm:evento return $prod/sm:evento[$cnt] ' PASSING EVENTS
    COLUMNS
    cod_evento VARCHAR(8) PATH 'sm:cod-evento',
    ts_evento VARCHAR(128) PATH 'sm:ts-evento',
    cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
    ) as EVENTS11
    WHERE
    operation_id =1
    and I receive, as response the following
    1, null,null,null               
    If I set the number 1, instead of the variable inside the return element as:
    SELECT OPERATION_ID, EVENTS11.* from test,
    XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
    'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
    let $pippo:=$prod/sm:evento return $prod/sm:evento[1] ' PASSING EVENTS
    COLUMNS
    cod_evento VARCHAR(8) PATH 'sm:cod-evento',
    ts_evento VARCHAR(128) PATH 'sm:ts-evento',
    cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
    ) as EVENTS11
    WHERE
    operation_id =1
    I obtain
    1 003 2005-08-08 15:40:20.679 PU
    as it shoud be.
    I do not undestand how I can pass the variable inside the xquery.
    The really query I have to execute is
    SELECT OPERATION_ID, EVENTS11.* from bnl_test,
    XMLTABLE(XMLNAMESPACES('http://www.bnl.com/serviceManager/output' as "sm"),
    'for $prod in /sm:be-canali/sm:evento-ordine
    let $elem:=$prod/sm:evento let $cnt:=fn:count($elem) return $prod/sm:evento[$cnt] ' PASSING EVENTS
    COLUMNS
    --cod_evento VARCHAR(8)
    cod_evento VARCHAR(8) PATH 'sm:cod-evento',
    ts_evento VARCHAR(128) PATH 'sm:ts-evento',
    cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
    ) as EVENTS11
    WHERE
    operation_id =1
    Any help will be appreciate.
    Thank you
    Paola

    What is your db version.
    Your query works fine on 11.1.0.6
    SQL> create table test(operation_id number,events xmltype);
    Table created.
    SQL> insert into test values(1,xmltype('<?xml version="1.0" encoding="UTF-8"?>
      2  <sm:be-canali xmlns:sm="http://www.oracle.com/serviceManager/output">
      3  <sm:evento-ordine>
      4  <sm:evento>
      5  <sm:cod-evento>003</sm:cod-evento>
      6  <sm:ts-evento>2005-08-08 15:40:20.679</sm:ts-evento>
      7  <sm:cod_status_ordine>PU</sm:cod_status_ordine>
      8  </sm:evento>
      9  <sm:evento>
    10  <sm:cod-evento>018</sm:cod-evento>
    11  <sm:ts-evento>2005-08-26 11:49:07.286</sm:ts-evento>
    12  <sm:cod_status_ordine>PU</sm:cod_status_ordine>
    13  </sm:evento>
    14  <sm:evento>
    15  <sm:cod-evento>015</sm:cod-evento>
    16  <sm:ts-evento>2005-08-26 11:49:08.257</sm:ts-evento>
    17  <sm:cod_status_ordine>PU</sm:cod_status_ordine>
    18  </sm:evento>
    19  </sm:evento-ordine>
    20  </sm:be-canali>'));
    1 row created.
    SQL>
    SQL> SELECT operation_id, EVENTS11.* from test,
      2  XMLTABLE(XMLNAMESPACES('http://www.oracle.com/serviceManager/output' as "sm"),
      3  'for $prod in /sm:be-canali/sm:evento-ordine let $cnt:=1
      4  let $pippo:=$prod/sm:evento return $prod/sm:evento[$cnt] ' PASSING EVENTS
      5  COLUMNS
      6  cod_evento VARCHAR(8) PATH 'sm:cod-evento',
      7  ts_evento VARCHAR(128) PATH 'sm:ts-evento',
      8  cod_status_ordine VARCHAR(8) PATH 'sm:cod_status_ordine'
      9  ) as EVENTS11
    10  WHERE
    11  operation_id =1;
    OPERATION_ID COD_EVEN TS_EVENTO                      COD_STAT                  
               1 003      2005-08-08 15:40:20.679        PU                        
    SQL>try this one
    SQL> select
      2     operation_id
      3    , e.*
      4  from test,
      5   xmltable(xmlnamespaces(default 'http://www.oracle.com/serviceManager/output'),
      6     'for $prod in /be-canali/evento-ordine
      7        return $prod/evento[position()=last()] '
      8     passing events
      9     columns
    10       cod_evento        varchar(8)   path 'cod-evento/text()',
    11       ts_evento         varchar(128) path 'ts-evento/text()',
    12       cod_status_ordine varchar(8)   path 'cod_status_ordine/text()'
    13   ) e
    14  where
    15   operation_id =1;
    OPERATION_ID COD_EVEN TS_EVENTO                      COD_STAT                  
               1 015      2005-08-26 11:49:08.257        PU                         Ants

Maybe you are looking for

  • FIR Maximum Frequency

    Hi, I try to design FIR filters with 501 coefficients (single symmetric coefficient set) an with max frequency > 650 MHz. Guess it should work because DSP48E1 max frequency is 740 MHz for 7-series -3 devices. Actually, it works fine if the number of

  • OID Max numbers of connections reached.

    OID version 9.0.4.1.0. There're constant error messages '* ServerListener:2 * ERROR : ServerListener : Max numbers of connections reached. Num Conns = 900, Max Conns = 900, Closing the connection." in the ldap.log file, but netstat -a|grep port|wc -l

  • Is Soundbooth part of the Adobe Premiere Pro CS4 suite?

    Is Soundbooth part of the Adobe Premiere Pro CS4 suite or does it have to be purchased separately? Thank you.

  • Loading iWeb on to your iDisk for multi computer access

    So there is a tips on .Mac explaining how to do this, but my domain file is over 1 GB. I do not think I have a huge blog. I would like to access the blog when on the road, but can't seeing putting that much on my iDisk. Here is the blog address. http

  • To start consumption based planning

    Hello experts, Can you please explain the step by step process for starting the consumption based planing. What configuration will be required (like activating MRP for respective plant) & what master data needs to be maintained in the system. What Tc