Keep variable values in an operation mapping

Hi experts,
I have a synchronous interface and I need to recover information from the request message mapping to be used in the response message mapping both in the same operation mapping (I have a PI 7.1).
Perhaps using OM parameters?
Regards
Gonzalo

This is not possible.
Why do you want to send back information to a system, where the data is already known?
You are probably right, but I thought that if I set a parameter via UDF in my request mapping I will recover it in the response mapping.
About  why would I need this data, I don't need to send it to the first system, I need it to perform some operations in the response mapping. The given web service returns several tables and I have to filter the response and choose one of the tables among the rest and send it as response. The parameter is the name of the given table.
In case I don't find an "easy" way of doing it I probably sent all the info to my system and filter it there, but if I can find a way of avoiding doing so...
Regards
Gonzalo

Similar Messages

  • Pass variable value form one Operational mapping to other

    Hi,
    Can a variable value be passed form one Operational mapping to other in Interface determination?
    So that a Condition check to excute the second operational mapping depending on variable value obtained form first operational mapping.
    Can globalContainer could be used in UDF?
    Thankx
    Edited by: kevindass on Aug 25, 2011 9:13 AM

    Hi,
    You can try these two options:
    1) Create a key in Dynamic Configuration and use it to store the value and retrieve the value back in second operation from Dynamic Configuration.
    OR
    2) Use Export and send the value to BPM, then in BPM using the value decide on if to execute the second operation.
    Regards,
    Aravind

  • Keeping variable values when using an LMS

    I have a program that uses variables for a branching, allowing me to mark what branch the student has completed.  It works when you preview the course.  When I publish to the LMS and take the course it works if I go straight through.  But if I leave the course and then pick it up were I left off the variables that were set showing completion of the course no longer show the completion information.  How can I maintain the variable values when the student exits the course?

    Hi dmv@Morgan and welcome to the forums!
    Here's what I've found to be true for my LMS:
    If you set a default value for the variable in the variables panel, then the variable will be reset to that default value when the course resumes. 
    If you don't set a default value, then the LMS suspend data (aka resume data) will populate the variable with the previous value from the previous attempt.
    Let us know how it goes,
    Jim Leichliter

  • PI 7.1 - Operation Mapping stays blank after applying a value

    Hello,
    I am trying to recreate an interface that I had in XI 3.0 in my development PI 7.1 system.  But every time I try to add an Operation Mapping (Interface Mapping in XI 3.0) it shows me a "value list" I select the correct mapping and then hit accept.  But the operation mapping does not appear and there is no error message telling me anything. 
    I'm having a look at installing patch 1307777 but I'm not too confident that is the issue because although one of my mappings is a split mapping the others are not.
    Any ideas?
    Thanks,
    Matt

    Hello Matt,
    I was facing the same problem. I can sugest you temporary suggestion, Like  goto Interface determination - > From where you select the OM just right click on the square then select Input Help ->  value list from there it will show the selected OM and you can see that in column.
    PLease verify and let me know if this works or not.
    Edited by: Siddhesh Pathak on Apr 13, 2009 4:45 PM

  • Selectively executing a mapping rule based on a variable value

    Hi,
    I have written a mapping rule in the following format.
    case #time_unit when 'quarter' then
    logic1
    when 'month' then
    logic2
    end
    In logic1, logic2 i again have nested case statements. Variable time_unit will have a static value hard-coded given (quarter/month) by user before execution.
    So Variable time_unit need not be checked for each row that gets transformed. It hits the performance.
    I want either logic1 or logic2 to be substituted dynamically in the mapping rule window based on the variable value.
    I cannot go for 2 seperate interfaces. How can I achieve this in ODI.
    Please help me.
    Thanks!!

    Sarah,
      I'm not aware of doing other than BPM. If you want the BPM Steps, Please refer below
      Step 1 : Receive
      Step 2 : Transformation
      Step 3 : Send (Syncronous call to the target system)
      Step 4 : Switch(Check the Payload value as per your reqmt)
      Step 5 : Transformation(Switch : False ,If the payload value is not ERROR)
      Step 6 : What you wanna do ( Switch :True)
    If you want more technically, then let me know the source and target systems, I will help you to design
    the complete flow.
    Best Regards,
    raj.

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • To pass new session variable value to stored proc before running a report.

    Hi,
    Below is summary of the report requirement -
    Database level design
    1. Created a view and a global temporary table (GTT)
    2. Created an Oracle package procedure to accept from and to business dates on basis of which it will fetch, process and populate the GTT.
    Repository level design
    1. Created a business model containing the view and the GTT (mentioned above)
    2. Created two SESSION variables "from_dt" and "to_dt" to be initialized by their respective init blocks. Each of the variable is initialized with a DATE column value (of type DATETIME) from a database lookup table. I have also set the option "Enable that variable to be set by any user" for both variables.
    Query for these variables :
    from_dt = select from_date from <table>
    to_dt = select add_months(from_date,12) from <table>
    Presentation level design
    1. Using a text box, i display the default/initialized values of these variables like this -
    Current business date:@{biServer.variables['NQ_SESSION.from_dt']} Future business dt:@{biServer.variables['NQ_SESSION.to_dt']}
    Dates get displayed in YYYY-MM-DD 00:00:00 format
    The text msg displays these default dates and allows the user to specift different date range for which i create prompts as shown below.
    2. Using any random two columns of date type from the business model, i create two date dashboard prompts with labels "From Dt" and "To Dt".
    i select Calender Controls for both; setting Default To = Report Defaults.
    The Set Variable is set to Presentation variables - such that pv_from_dt maps to "From Dt" and pv_to_dt maps to "To Dt".
    3. i create the report using the business model created above. In the report "Advanced Tab" => "Prefix" field i specify the following -
    SET VARIABLE from_dt='@{pv_from_dt}',to_dt='@{pv_to_dt}';
    Note : The logic here is to display the default dates and allow user to specify different date values which will be stored in presentation variables.
    If the user does specify different "from dt" and "to dt" values, then using the presentation variables, i want to "write" back these new values to the corresponding session variables mentioned above.
    If the user does not specify different date range, then the default/initialized dates must be considered.
    I also display the default and new date values in the report title.
    Back to Repository level design
    To execute the stored procedure that will load the GTT before running the report I need to pass two date parameters to the stored procedure on basis of which it will fetch data, process and populate the GTT.
    In the Connection Pool --> Connection Script Tab --> Execute before query, I wrote the below query using the repository variables FROM_DT and TO_DT to execute the procedure -
    DECLARE
    v_from_dt date;
    v_to_dt date;
    BEGIN
    v_from_dt := VALUEOF(From_Dt);
    v_to_dt := VALUEOF(To_Dt);
    package_name1.package_body(v_from_dt,v_to_dt);
    END;
    Now when i try to run the report i get the following error :
    [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.to_dt, has no value definition. (HY000)..
    Need help on this.
    Is it possible to "write back" a new value to a session variable ?
    Any other alternatives.
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 24, 2011 10:08 PM

    Sandeep, I found a several topics where users describe saving values in DB through stored procedure or function. For example, [How to store OBIEE presentation level variable values in DB |http://forums.oracle.com/forums/thread.jspa?threadID=892006] I tried it and get an error
    *10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 14551, message: ORA-14551: cannot perform a DML operation inside a query ORA-06512*
    It's not a BI error. This error are generated by Oracle DB. If I write next:
    SELECT MyPLSQLFunction(p1,p2) FROM DUAL
    I get the same error.
    Oracle doesn't allow DML operations in SELECT.
    Did you relalize this feature yourself? Where did I mistake?

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • How to get the variable value while starting a session?

    When to execute an interface or scenario, if there are variables related, the session will keep the value of those variables in case to restart the session after failure. However I can't find where they are stored in ODI Repository. Could anyone give me a hand?
    Thanks in advance!
    Best wishes,
    Satine

    See if this helps you
    SELECT svd.var_name,
           svd.var_n AS numval,
           svd.var_d AS dateval,
           svd.var_v AS strval
    FROM snp_var_data svd,
         (SELECT sp.project_code || '.' || sv.var_name AS fullvarname
          FROM snp_project sp, snp_var sv
          WHERE sv.i_project = sp.i_project) svp,
         snp_var_sess svs
    WHERE     svd.var_name = svp.fullvarname
          AND svs.var_name = svd.var_name
          AND svs.sess_no = :sess_no

  • RRI - Jump query, unable to pass the variable value from source to target

    Hi,
        I've a source query which has a variable on 0vendor, from this query i jump to another query for which i want to pass the this variable value, in the target query i've vendor in free characteristics (no filter or variable in there), and in RSBBS i tried the assignment details options keeping vendor as generic, tried variable and the variable name but nothing seem to work.
    But when query is run i can jump into target query but the vendor variable value doesnt get passed thru the values i get in target query is for all rather than for the variable entered vendor value in the source.
    btw we're in NW2004s.
    any help appreciated with points.
    thanks
    Mayil

    Anyways, I read somewhere that a variable with replacement path in target query would work, tried it seem to work.
    let me know if there other way to do it without creating a variable in target query.
    thanks
    mayil

  • Additional message mapping in the operation mapping-use

    Hi Friends,
       I could find the option for adding more than one message mappings in the operation mapping(Interface mapping). What is the actual purpose of it. when it is used. If there is any blogs regarding the same. refer any link for the same.
    Regards
    Prem

    Hi Prem
    Refer the blog provided by Sarvesh
    What is the actual purpose of it. when it is used. If there is any blogs regarding the same
    You can use more than one mapping programs for requirement where your message mapping cannot generate the desired structure you want or you want to do some transformations in a sequence for meeting your requirement.
    Example: You want to generate a excel sheet as a mail attachment but you have to read a flat file. What you can do here is you can read the Flat file in a single string variable itself. Use XSLT mapping1. Now in a sequence using XSLT Map2/Java mapping program to convert to excel and send as attachment over email
    Thanks
    Gaurav

  • Interface determination : How to populate an Operation Mapping parameter

    Hi experts,
    I'm creating an interface determination, I have an Operation Mapping in it. This operation mapping has an inbound parameter. When Configurating this parameter I can choose between putting a constant or getting the value from a "container". Does anybody knows where this container will be? Is it  possible to take the parameter from an export parameter from Integration Process(BPM)?
    My interface:
    BPM->IDOC
    Regards
    Gonzalo

    Hi Stefan,
    What I wanted is leaving the mapping outside the BPM, instead that I can leave it inside and the result will be the wanted. What you mean implies something similar.
    I'm going to explain why, from the process dessign point of view, I want to leave the mapping outside.
    1.-I send an IDOC from my ERP
    2.-This IDOCs starts a BPM who, in a synchronous way, makes some updates in a DB.
    3.- Functionally speaking this updates could return a 0 if OK or a -1 if NOK
    4.-The BPM have to return an ACK to the ERP.
    For constructing this ACK I need my original IDOC and the result of the updates (-1 or 0).
    -If I put the mapping inside the BPM it will work (and that will probably be the final solution).
    -But, for a better performance and dessign, I wanted to leave the mapping outside.
    -I also want to know if the container in the interface determination we talked before can be used or what it means. (So let me know if you find out something about)
    -The third reason is that I find interesting speak about this topics in the forum if you know what I mean :-D
    Regards
    Gonzalo

  • Error in Operation Mapping for Idoc to File Scenario

    Hi Experts,
    I am doing Idoc to File Scenario for Timesheet IDoc "HRSM_C" and following step are through,
    Sender agreement --> Receiver Determination --> Interface Determination
    got stuck in Operation mapping, it sahows error
    "Unable to find resource 193c0e01-bd37-11dd-850c-d879ac131b1f in the following software component versions: http://clarityPOCcom/sap/xi/tf/_MM_Timesheets_iDocToFile_.class-1"
    Also not all the fields of IDoc HRSM_C are transferred to the XI server as I am unable to see all the fields in xml file using transaction idx5, as I suppose the reason behind may be there are no values in those fields.
    Please suggest how to resove the issue and transfer all the fields from R3 to XI in Idoc eventhough it doesn't contain any value.

    Hi
    Refresh CPA cache using user PIDIRUSER.
    Look Note 951318 for Mapping Cache Refresh.

  • Abap mapping and operation mapping param

    Hi All,
    I have a problem with retrive value of export parameter in operation mapping by abap mapping class.
    standard parameter of abpa mapping class method that execute it contains param that ref to IF_MAPPING_PARAMETERS. So i belive by this class using method PARAMETERS->GET_STRING( 'P_IDOC_NR' ), but it dosen't works.
    Any idea
    Regards
    M.

    I have not seen anything in online help that gives the impression that you can use parameters in ABAP mapping.
    So I suppose that this does not work at all.
    Maybe you could use this approach:
    /people/peter.glas3/blog/2010/09/08/pi-parameterized-xslt--a-flexible-alternative

  • Error in operation mapping

    I have been receiving an error when I try to test the operation mapping, regarding the attribute "schemaLocation".
    This error occurs after importing an xsd file which name contains character "." (dot). No error message if I substitute the
    character "." by "_" (underscore). Removing the attribute "schemaLocation" from the xsd file and keeping the "." within the xsd name file, no error occurs launching the test.
    Any help will be well appreciated.
    Many thanks in advance for your kind support.
    Regards,
       Giovanni

    Hi
    Refresh CPA cache using user PIDIRUSER.
    Look Note 951318 for Mapping Cache Refresh.

Maybe you are looking for

  • Application Crash when use crystal report

     I use crystal report in visual studio 2010. In crystal report i use parameter, image, sub-report. When i close the crystal report viewer. there is always crash my program, below are the details. How I overcome this situation????????? Problem signat

  • Computer shuts down when closed

    So, one time a few months ago, a little bit of water got into my MacBook Air. Luckily it didn't kill it. It killed the trackpad and keyboard, so when I got home (I spilled water while in the car) I plugged in my iMac's Mighty Mouse and keyboard (both

  • How to delete MANY rows of a table

    Dear Oracle experts, I fear this is a very stupid question but I don't know the solution of that problem : I have a table with about 15 Million lines here. I would likt to delete about 12 M lines by a delete statement. My Problem is, that this query

  • 'wake on demand' & iOS wireless sync

    Are iOS devices able to use 'wake on demand' to wake my a Mac for wireless iTunes sync?  I know I need a Time Capsule or Airport base station, I'm just wondering if the Bonjour protocol registering used by 'wake on demand' extends to iTunes wireless

  • Script for permissions on all BOE Folders

    Does anyone have a BOE Query Script(like SELECT SI_ID, SI_NAME FROM CI_INFOOBJECTS WHERE SI_KIND = 'CrystalReport') that will give me all of the permissions on all for the folders for all groups on my BOE XI server?