Using variables in transform process

Using file adapter to read multiple rows into the database. Its a basic transformation with a one to one match, e.g. what's on the left exist on the right.
The issue is that I want to uniquely identify each file process with an ID. Therefore what I have done is set up a sequence which will be used as a batch ID. I assign this to a variable before I transform the file definition to the database definition.
What I would like to do is assign this variable to a field in my database as a kind of dynamic constant. I don't seem to be able to use the getVariableData in the options. I want this ID to be loaded on every line without incrementing.
Does anyone know if it is possible to use variables within the transformation.
cheers
James

Using file adapter to read multiple rows into the database. Its a basic transformation with a one to one match, e.g. what's on the left exist on the right.
The issue is that I want to uniquely identify each file process with an ID. Therefore what I have done is set up a sequence which will be used as a batch ID. I assign this to a variable before I transform the file definition to the database definition.
What I would like to do is assign this variable to a field in my database as a kind of dynamic constant. I don't seem to be able to use the getVariableData in the options. I want this ID to be loaded on every line without incrementing.
Does anyone know if it is possible to use variables within the transformation.
cheers
James

Similar Messages

  • Using variables in Page processing

    I want to use variables (items) in
    Page processing - process - reset pagination for page(s) (PageID,PageID,PageID)
    and
    Page processing - Branches - Branch to page / URL - URL
    Is this possible, and if so How
    Fred.

    scott,
    On the places I mentioned I have tried to use references like &ITEM. and #ITEM# but they don't work.
    Where can I find documentation about where I can use which references.
    Fred.

  • Using variables with transform.colorTransform

    I have declared a handful of new colors like this:
    var colTransNameNumber:ColorTransform = new ColorTransform();
    colTransNameNumber.color = 0x77060A and so on.
    The Name and Number are coming from variables in the query
    string but when I try to call the colors by doing "colTrans" + name
    + num, I get the Type Coercion failed: cannot convert
    "colTransNameNumber" to flash.geom.ColorTransform. error. It
    doesn't like the string being passed to it. Does anyone know how to
    create this in the correct format?
    thanks.

    Have you tested if you can read the value of a variable from Captivate into your widget by using the MovieClip(root).varX code?
    I think that you are better off with using the Widget APIs approach to variable handling - it's usually defined as mainmov.varX and you can check the Certificate AS3 FLA to see how it works.
    EDIT: Just saw Jims answer - he is an AS3 wizz so if he says you done it correctly then that's most likely true ;o)
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Trying to use the transform process activity - flow with 2 invokes

    I want to transform incoming data with a transform "Process Activity" and write this transformed data out to two files. What I have tried to do is to transform the incoming data and then send the transformed variable into a flow with two invoke "Process Activities" which in turn use two "File Adapter" services to write to two separate output files. When I attempt to deploy this I get a complaint that I cannot use a single variable to feed both invoke "Process Activities" because of name space conflicts. Does anyone know how I could do this transformation without having to write a transformation for each invoke? It seems like it should be possible to simply write one transformation for multiple invoke operations. However, perhaps there is a completely different way to do what I am trying to do. I am fairly new to using BPEL and the Oracle SOA Suite. Thanks much!

    Here is the error message when I try to do what you suggested in your last post:
    Error(83):
    [Error ORABPEL-10035]: wrong messageType
    [Description]: in line 83 of "C:\SOADEMO\DataTransMultVETRO\bpel\DataTransMultVETRO.bpel", messageType "{http://xmlns.oracle.com/pcbpel/adapter/file/FileWrite1/}Employee2_msg" of variable "Invoke_FileWrite1_InputVariable" does not match the expected      messageType "{http://xmlns.oracle.com/pcbpel/adapter/file/FileWrite2/}Employee2_msg" in <invoke>.
    [Potential fix]: make sure the correct variable is used in invoke.
    I believe it is a problem with name spaces. I could change the name space prefixes, but that causes other errors. I am using JDeveloper to create this BPEL process flow using their predefined graphic "Process Activities" and "Services". FYI, I haven't gotten too much into writing the xml from scratch as I would think that the tool should be flexible enough to create this simple process flow.

  • To use the transformation process I hear you have to code using OOP, True?

    I've heard that to use the transformation process all update rules, routines must be writtend with OOP and you can't use  the older coding method.  Is this true

    Prefferably Yes Routines hav to be migrated accordingly to OO ABAP.
    <b>Look at</b>
    Re: Doubt Migration of update rules to Transformations ?
    Re: Steps for Copying routine?

  • How to Import xsd and use it in transformation for mapping

    I have constructed an xsd and want to use it in BPEL Process.I imported the xsd into development.But I am unable to understand how to further proceed.Can anybody suggest me how to import xsd and use it as it has to be defined in wsdl before using right.Is there any way we can use xsd?

    Hi',
    See in a BPEL (web service) we use XSD to define its input and output, inside this BPEL process you have input and output variable.
    Now inside the transform you can use this variables to transform data, there can be many other variables too, when you try to invoke
    some other BPEL process you again create new input and output variable.
    Inside a transform activity you have a source and a target there you can decide where all the input is coming from you could have
    one or many variables in source and only 1 in target, this is how your variables (or XSD) can go inside the transform, inside the transform.xsl
    view you can right click on the source side(left) and include any new variable there.
    -Yatan

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • FTPs connection error:When using Variable substitution for Directory path

    Hi
    I am transferring data from BI to xml file via PI: Here a Client proxy from BI sends the data to PI and the PI FTPs the XML file to a remote location. For FTP I am using FTPs SSL connection.
    It was working fine untill I used Variable susbstitution to determine Directory path dynamically. I am using this because different xml files are intended to goto the different locations.
    I did the variable substitution like this:
    Target Message Structure:
    ---> Target Directory: %var1%
    <?xml version="1.0" encoding="UTF-8" ?>
    <MT_BI_EXTRACT_FILE>
      <Header>
         <Directory>/Customer</Directory>
    </Header>
    <Detail>
    </Detail>
       </MT_BI_EXTRACT_FILE>
    And in the variable substitution I am doing it this way
    payload:MT_BI_EXTRACT_FILE,1,Header,1,Directory,1
    And the error I am getting is:
    Attempt to process file failed with Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    Exception caught by adapter framework: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure
    Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLException: Peer sent alert: Alert Fatal: handshake failure.
    Does anybody have some Idea of this ??
    Regards
    Naina

    Hi,
    I guess the problem is not with Variable Substitution..
    Error when getting an FTP connection from connection pool:
    So its a connection problem..
    Also check the option Disable Security check and try again...
    Try to check again if the interface is executing properly without Variable substitution and let us know..
    Babu
    Edited by: hlbabu123 on Jan 7, 2011 2:46 PM

  • Used variable substitution to substiture the field 'date' in file name

    Hi gurus
    I have used variable substitution to substiture the field 'date' (dd/MM/yyyy/hh/mm/ss) in the file name so when empty payload (a valid xml ) is generated by Message mapping then the communication channel is failing by showing the following error
    File processing 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
    : date
    As of now the business is not getting effected as the business scenarion needs only customer master data at the reciever side But when ever there is no custmer master data in the sourse side the message mapping is generating an empty payload and the communication channel is failing ( so it is an internal issue and is there any way which could solve the both (ie the business must not get effected and as well the communication channel must not fail)
    any coments on this will be higly apreciated
    thanks and regards
    sandeep

    Hi Sandeep -
    Yes If you use the Variable substitution from the payload , that perticular field has to be generated in the target structure.
    To handle this You can do the following:
    Sourcefield --->exists -> IfThenElse-->TargetField
    Where     SourceField>exists(node function)-> If
                   SourceField -
    >Then
                   CurrentDate(Date Function)----->Else
    Hope this will help !!
    Regards.
    Jeet.

  • Problem with Multimapping using Variable Susbtitution

    Hi,
    I have done a Multi-Mapping where I have used variable substitution in the mapping
    The problem I am facing is that when my target message generates multiple messages the files are creating successfully on the FTP server but if only a
    single message generates on the target side then my message is successfully processed in IS but in adapter engine the message status is in "Waiting" state.
    When i see the audit log i found the following details:
    Time Stamp Status Description
    2007-09-18 06:10:24 Success The message was successfully received by the messaging system. Profile: XI URL: https://dx1-60.ra.rockwell.com:56001/MessagingSystem/receive/AFW/XI
    2007-09-18 06:10:24 Success Using connection AFW. Trying to put the message into the receive queue.
    2007-09-18 06:10:24 Success Message successfully put into the queue.
    2007-09-18 06:10:24 Success The message was successfully retrieved from the receive queue.
    2007-09-18 06:10:24 Success The message status set to DLNG.
    2007-09-18 06:10:24 Error Unable to find channel ID
    2007-09-18 06:10:24 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: 46ee0b73-f266-3794-e100-000082974e17.
    2007-09-18 06:10:24 Success The asynchronous message was successfully scheduled to be delivered at Tue Sep 18 06:15:24 GMT 2007.
    2007-09-18 06:10:24 Success The message status set to WAIT.
    2007-09-18 06:15:24 Success Retrying to deliver message to the application. Retry: 1
    Iam using SP14
    Can anyone help me to solve the above problem

    DATA: l_tabname TYPE tabname .
    DATA : gi_mara TYPE TABLE OF mara ,
           gi_makt TYPE TABLE OF makt .
    l_tabname = 'MARA' .
    DATA         : l_dref TYPE REF TO data.
    FIELD-SYMBOLS: <li_itab> TYPE ANY TABLE.
    CREATE DATA l_dref TYPE TABLE OF (l_tabname).
    ASSIGN l_dref->* TO <li_itab>  .
    *Define another field symbol and asign it to right internal table
    *here naming of internal table is important
    FIELD-SYMBOLS : <fs_tab> TYPE ANY TABLE .
    CONCATENATE 'GI_' l_tabname INTO l_tabname .
    ASSIGN (l_tabname) TO <fs_tab>.
    <fs_tab> = <li_itab> .

  • How to test ABAP mapping used in a Integration Process node

    Hi,
    anyone can suggest me how to debug an ABAP mapping used into a transformation node belonging to an Integration Process ?
    Thanks.
    Francesco

    Hi, Francesco.
    I've debugged ABAP Mapping with SXI_MAPPING_TEST transaction.
    If you have creted a scenario including your ABAP Mapping, you only hace to put the correct sender/sender interface and receiver/receiver interface. You have to put some XML document as an input.
    I wrote in my code the Break-point instruction an debugged the process without problems.
    regards,
    Francisco

  • 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

  • Using "Route" activity in process flow

    Hi, I have a situation where I want to run one of two maps, depending on how many rows are in a particular table, i.e. something like:
    If table X rowcount > 100000
    then run map A
    else run map B
    What's the most straight forward way to set this up in a process flow? I assume I need to write a PL/SQL function that returns the # of rows in the table...but after that I'm a bit stuck, and the OWB user guide has next to nothing on how to use the ROUTE operator.
    Thanks in advance!
    Scott

    Hi David, thanks a million, that helps out a ton. I thought we had to use variables, with SET / ASSIGN and the ROUTE operator to do this...all of which are Enterprise ETL functionality.
    It seems like the method you outline below, in addition being easier, actually is legal even if we don't have Enterprise ETL. Is that correct?
    Thanks!
    Scott
    Includes the following advanced process flow functionality:
    - Activity templates
    - Variables support: assigning and passing variables and using the Assign and Set Status activities
    - Looping activities such as For Loop and While Loop
    - Route and Notification activities

  • BPS ERROR I CREATE A NEW Manual Planning when a use variable in lead column

    Dear
    when a create a new manual planning have a message.
    Frist
    I create two variable one is Controlling Area other is Cost Element
    in planning area.
    next
    I a create a manual planning to make a report form.i create a
    manual planning layout category is key Figures and make Controlling
    Area and Cost Element as lead column in next continue setup lead
    columns tab.i set key figure and set Controlling Area and Cost Element
    to use variable above.and finish other tab.
    next
    i double click manual planning system give me a message
    The environment has changed; the layout can no longer be executed
    notes: i can insure Controlling Area and Cost Element is a single value
    and make sure both can mapping in cube
    by the way when i use fixed value this form will be run.
    Edited by: frank ju on Aug 6, 2009 11:13 AM

    Hi Everybody:
    I summarize the last post: In RoboHelp 7 for Word, the problem is that when I try to create a winhelp2000 project importing from a .hlp file of origin created previuosly, the import process makes error because it want to extract images that not exist on the .hlp file of origin. Thanks in advance for all the help that you can give me.
    Ismael.

  • Substitute variables for external process activity in process flows

    Has anyone used with success substitute variables such as ${Working.Rootpath} for external process activity?
    I can't get it working. Variables aren't substituted and my scripts fail.
    Sample value for parameter_list parameter for external process I use is:
    |${Working.Rootpath}|
    and in the script I get:
    ${Working.Rootpath}
    which is of course not what I expected.

    In documentation is Working.Rootpath so there is a bug in documentation. It is ugly because it's hard to guess.
    Thank's for your reply Michael. I checked all that you described. Previously I had Working location set to "Use default location". When I changed it to actual location substitute variables started to work properly.
    If I correctly understand "Use default location" means: use location associated with process module. And for execution it works but for substitute variables doesn't. So I think it is a bug.
    Next thing is variables in the script itself. From examples sent by Mark (script: cd ${Working.RootPath}...) they should be set in environment and accessible to shell. This doesn't work for me but it is not described in documentation and can be easily achieved by passing parameters. So that's not a problem.
    One more question: Should I open tars and file bugs describing what we found?

Maybe you are looking for

  • Chart Labels in Numbers09

    I recently upgraded from numbers 08 to numbers 09. There was a handy little "tilt text" check box in 08 that I can't seem to find in 09. The help menu was no help and I haven't found the answer on this forum. I would like the x-axis text to be slante

  • Active cost center field in FA master data (subnumbers)

    hello, I would like to ask you, what is the path in SPRO if I want to active cost center field for maintanancne in subnumbers? Thanks Hana

  • Error during the group order close

    Hi, I implemented the IS MILLS Solution. During the close period is necessary to close the group order to avoid more good issues or confirmation Even the group order has the following status: Technically close and close. When I try to close the indiv

  • Activate by default inspection plan

    Hi i have a problem with inspectn plan material have an 2 inspetion plans (group no are differtent 1001 and 1002) both are valid upto 31.12.9999 when am i post the GR for material  goes to quality inspection mode..inspection lot has generated but the

  • LISTENER file Problem

    Hello everyone, I recently installed the Latest OEL 5 and have configured necessary settings to stage the U01 and Stage folder. I successfully install the Oracle systems from /stage/db11g/db/Disk1. I started to create a LISTENER file from the NETCA t