Adapter Variable creation

Hi,
I have >90 attributes to be passed to the application while provisioning the user. All these attributes are present in the OIM table.
I have a doubt... if I have to create all >90 fileds in process form and map to adapter variables OR
Is there any way to directly pass the values from user definition form to the adapter parameters ?
Pls Suggest.

Hi,
When I have some requirements as yours and when I need to map many fields of User Definition or process form, I create a variable to the user key or proncess instance key, for example. Then, I implement a java code to be the logic of my adapter that has one or two variables.
Renato.

Similar Messages

  • Unable to Create "Not Equal to" condition in Variable creation

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

    Hi ,
    I am getting an error while creating variable at report level,
    Well, my condition at variable creation is ----> sum(A) where [country] <> " x" ...(It is showing the results when the country is equal to x) and the converse for the same ... If I use [country] = "x" .. It is taking as country not equal to x ..
    Please suggest me on this..
    Thanks in advance ....

  • Dynamic variable creation

    i would like to know how to make use of bind variables in RPD variable creation . I tried creating in oracle10g by giving a sql query in Initiliazation block . I want to select a column based on a certain user input . For Your information i cannot use ':user' because it by default takes then current user who has logged in .

    If you are solely asking for a variable that would hold the value of username, Yes that is possible. It depends on the type of authentication you are using. Assuming you are using an LDAP server, providing the solution below:
    1) Source the list of usernames in to a external table in the database.
    2) Create an intialization block to populate that value based on user login.
    Ex: select username1 from externaltable where username1=':user' - Data Source
    variablename - Data target.
    Now you can use this in your required init block.
    Hope this answers your question.
    Please award points if helpful.
    Thanks,
    -Amith.

  • Variable creation in TestStand through CVI

    I have one steptype in which during Edit, the new variable has been created. I also saved that sequence. If I close that sequence file with that steptype and reopen the same sequence, the variable created last time was not there. I think these variable are not getting stored with sequence. The steptype building block is created in CVI. Those edit time variable creation is done by means of using “TS_PropOption_InsertIfMissing” functions in CVI. Can you please tell us is there any CVI functions to create variable during edit time and to be saved with the sequence.??

    Once again, Expression Strings, has stumbled another programmer!
    Parameters.DatabaseOptions.ConnectionString is not a string but an Expression String, and your assignment of a StationGlobals.Database ( just a string ) is causing this error.
    Here is what I did to solve your issue:
    1.) StationGlobals ( remove the leading "\" and trailing \"" from the Database string ) it should contain NO leading or trailing quotes
    StationGlobals.Database = Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=C:\\Users\\Public\\Documents\\National Instruments\\TestStand 4.2.1\\Components\\Models\\TestStand Results.mdb.
    2.) In Database Options Callback use the following expression to set the Data Source
    Parameters.DatabaseOptions.ConnectionString= "StationGlobals.Database"
    There are other alternatives as documented in this link.
    http://zone.ni.com/devzone/cda/tut/p/id/4793
    Good luck,
    PH

  • Receiver File Adapter:Variable substitution :FATAL  ERROR

    HI all
    as per the previous thread :
    <b>Receiver File Name Variable Substitution :payload: Fatal Error
    in our idoc to file sceanrio, we are using simple <b>graphical mapping.</b>
    for dynamic file name , variable field is at <b>Target message type</b>,So  on using <b>Variable substitution</b>, again the error is same :
    SAXException while parsing XML payload: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) .
    <b>Our XI  Component version : 2004
    WAS 6.4 SP 15</b>
    Thanks
    AR

    Ashutosh,
       There is nothing to do with your mapping programs. Its the mistake in ur reciever file adapter configuration for variable substitution.I asked u whether u changed message mapping in order to implement the UDF!!
    Did u tried checking the audit log. Ok just to see where u are going wrong, instead of using Payload :... in Variable substitution use Message:..... and give some interface name so that to check whether the file is created with Interface name.
    Juz give a try!!!
    Best regards
    raj.

  • File Reciver adapter - Variable Substitution

    Hi all,
    i am creating a file with dynamic file name.
    My structure looks like this:
    Row - 0-unbound (all the data)
    FileName - 1
    I don't want the file name to appear in the file I just want it for the Variable Substitution.
    so in the content conversion i use only the row.fieldFixedLengths
    but in the file i get an extra empty line because of the file name.
    Thanks,
    Naama.

    Hi,
    Its better to go for Adapter specific attributes with dynamic configuration. That will avoid you from usage of Filename field in target structure.
    Refer - Dynamic Configuration for file name
    Dynamic  File Name for Receiver File Adapter
    Dynamic File Name using XI 3.0 SP12 Part - I
    Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
    Thanks
    swarup

  • File-Adapter: Variable substitution form payload XML-attribute

    Hi experts,
    is possible to use XML-attribute-content for variable substitution in file-Adapter?
    extract from XML:
    <?xml version="1.0" encoding="utf-8" ?>
    - <all>
    - <transaction <b>file="filename"</b>>
    - <table name="BPAADDRESS" options="insertIfUpdateFails">
    - <record id="1">
      <hkeycol name="BPAMAINHKEY">0010500345</hkeycol>
      <hkeycol name="USAGE">Invoice</hkeycol>
      </transaction>
    I want to get the value "filename" = attribute file of transaction.
    Is this possible?
    Thanks a lot,
    Florian

    I have done this taking a field from the XML.
    You have to map the location of the field within the XML...
    Taken from:
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    &#9679;      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    &#9675;       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
    message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
    message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
    For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
    If one of the message attributes contains characters that are not permitted in a file name, for example \, /, :, *, ?, ", <, >, |, then these characters are replaced by an underscore ("_").
    &#9675;       If the variable refers to an element in XML schema, add the prefix payload: to the information under Reference. The reference then comprises a pseudo path description in the form of a comma-separated list with the schema namea,na,nameb,nb,....
    namea,nameb,... corresponds to the element name and na,nb,... corresponds to the occurrence of the element name at the respective level in the document.
    The description begins at the root of the document and ends at the respective element.
    To reference the element that is in bold in the example, the following expression is used: payload:root,1,e1,1,e2,2
    The parser searches for the first occurrence of the root element at the first level. It then searches for the first occurrence of e1 at the second level and for the second occurrence of e2 at the third level. The content of the last element (“Example Value”) is set as the value for a specified variable.
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
            <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
      </e1>
    </root>
    &#9679;      To disable the check the adapter performs for the element data, set the Disable Security Checks indicator.
    Otherwise, the adapter checks whether the element data contains characters that could lead to security risks in the file system environment. The check includes the characters “/“, “\“, and “..“.

  • File adapter - Variable Substitution

    Hi all,
    I’m trying to use Variable Substitution functionality in my receiver file adapter. The objective is: During process message XI read the payload of an xml message and picks the value of tag <ORIGEM> coming with the File Name and do the substitution of File Name Schema of receiver file adapter.
    This is what I have donned in the configuration of receiver file adapter:
    File Name Schema: <b>R3%var1%.xml</b> (file construction mode: Add Time Stamp)
    Variable Substitution: <b>Enable</b>
    Variable name: <b>var1</b>     
    Reference: <b>payload:nr1:IfContabilizacao_Source_Log,1,INFO_CONTROLO,1,ORIGEM,1</b>
    The XML Message:
    <?xml version="1.0" encoding="utf-8"?>
      <nr1:IfContabilizacao_Source_Log
    xmlns:nr1="http://xi/XI/InterfaceContabilistico">
        <INFO_CONTROLO>
          <ORIGEM>TESTE</ORIGEM>
          <DESTINO>This is a string 2</DESTINO>
          <IDENTIFICACAO>This is a string 3</IDENTIFICACAO>
          <DATA>1999-01-24</DATA>
          <VERSAO>This is a string 4</VERSAO>
        </INFO_CONTROLO>
        <INFO_DADOS>
          <HEADER_DOCUMENTO>
            <BLDAT>1999-01-24</BLDAT>
            <BLART>C</BLART>
            <BUKRS>C</BUKRS>
            <BUDAT>1999-01-24</BUDAT>
        </INFO_DADOS>
      </nr1:IfContabilizacao_Source_Log>
    When I execute the process both sxmb_moni flags are ok! But in the adapter monitoring I receive this error message:
    2005-12-20 10:51:25 WET: Message processing failed: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1
    Var1 is the name that I have defined in variable name! Is wrong? Anybody see something wrong in this configuration or something in reference payload of  tags hierarchy… I think that I have checked all…
    Thanks in advance,
    Ricardo.

    Renjith,
    Adapter monitoring continues with this error mesage: VariableDataSourceException: The following variable was not found in the message payload: var1
    This error means that the reference showed bellow have something wrong! But I can't see where is the error!!!
    payload:IfContabilizacao_Source_Log,1,INFO_CONTROLO,1,ORIGEM,1
    Anybody see where is the error of my reference, or any other idea?
    Thanks in advance,
    Ricardo.
    Message was edited by: Ricardo  Quintino

  • PI File Adapter variable substitution

    Hi everybody,
    I do have the following message:
    <?xml version="1.0" encoding="utf-8"?>
    <ns:MT_FileIn_Budget xmlns:ns="urn:rlp.de:test:budgeting">
         <BudgetRecord>
              <Monat>Pa</Monat>
              <Jahr>b_Lie</Jahr>
                                               ................. etc.
    I want to extract the "Monat"  variable in the Receiver File Adapter as a substitution variable in the "Advanced" Tab  in the
    Receiver File Adapter configuration.
    I have the following value in the Substitution table :
    var1     payload:BudgetRecord,1,Monat,1
    (and then use var1 in the filename)
    If I use Header Mapping instead , everythings works.
    Any ideas? something misspelled?
    cheers hs

    Hi Michael,
    maybe you can clarify a better solution for my problem:
    The reason why I am using variable substitution is, that I am not using graphical mapping here.
    I am using a XSLT style sheet translation (PI 7.11) as a mapping step. 
    I need to set the file name depending on the operation mapping.
    For every specific situation (about 10) , there is one OM. This OM (XSLT, no SAP Graphical Mapping) should set a specfic filename.  for every specific situation there is an integration scenario with the specific OM.
    The Business Component with one comm channel should only be there once (we don't want 10 communication channels)
    Do you have a recommendation ?
    thx
    hs

  • Mapping Adapter Variables form: OIM 11g

    I have created a Rule Generator adaptor. Which Form should I attach this adapter to if I want it to process the Xellerate users?
    I tried using the Users form, the Users.User Defined Tasks, Data Object Manager form and a few others. I don't see the option to Map the variables to values from the User Definition fields (i.e. User Login, User Key etc.) in any of these forms. The only options available are Literal or Entity Field.

    I see a form called Event Handler Manager...is that the one? When I include my adapter in there for this form, I still see the same options (Literal or Entity Field).
    My Rule Generator adapter is checking if a user being created or updated is a manager. (So if his USR_KEY exists as USR_MANAGER_KEY in the db). The Variable USR_KEY is set to Resolve as Runtime. I just need to map it in the right form.
    In the older versions of OIM I could simply map this in the Users form. Don't see that option in 11g.
    Any suggestions?

  • Can't receive headers from JMS Adapter - "Variable is not initialized"???

    I'm using JDeveloper Studio 10.1.3.4.0.4270 to try to build a BPEL process that is initiated by a JMS Adapter. I want this process to access the headers of the incoming message. Despite what Adapter Technical Note #005 says, JDeveloper says I can't do it! Despite the fact that the Receive activity is set up to store the header to a variable, JDeveloper says the variable is not initialized when I try to access it. (At least this is consistent with BPEL Process Manager's behavior -- the runtime also says it's not initialized.) In the following simple code, it looks initialized to me. What am I missing? Thanks.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Mon Jun 22 18:10:17 CDT 2009
      Author:  memeyer
      Purpose: Empty BPEL Process
    -->
    <process name="BPELHello3" targetNamespace="http://xmlns.oracle.com/BPELHello3"
             xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/jms/ToHello3/"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/jms/"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:client="http://xmlns.oracle.com/BPELHello3"
             xmlns:ora="http://schemas.oracle.com/xpath/extension"
             xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
      <!--
          PARTNERLINKS                                                     
          List of services participating in this BPEL process              
      -->
      <partnerLinks>
        <partnerLink myRole="Consume_Message_role" name="ToHello3"
                     partnerLinkType="ns1:Consume_Message_plt"/>
      </partnerLinks>
      <!--
          VARIABLES                                                       
          List of messages and XML documents used within this BPEL process
      -->
      <variables>
        <variable name="inputVariable"
                  messageType="ns1:BPELHello2ProcessResponse_msg"/>
        <variable name="header" messageType="ns2:InboundHeader_msg"/>
      </variables>
      <!--
         ORCHESTRATION LOGIC                                              
         Set of activities coordinating the flow of messages across the   
         services integrated within this business process                 
      -->
      <sequence name="main">
        <receive name="Receive_1" partnerLink="ToHello3"
                 portType="ns1:Consume_Message_ptt" operation="Consume_Message"
                 variable="inputVariable" createInstance="yes"
                 bpelx:headerVariable="header"/>
        <assign name="Assign_1">
          <copy>
            <from variable="header" part="inboundHeader"
                  query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
            <to variable="header" part="inboundHeader"
                query="/ns2:JMSInboundHeadersAndProperties/ns2:JMSInboundProperties"/>
          </copy>
        </assign>
        <bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
          <![CDATA[/*Write your java code below e.g. 
         System.out.println("Hello, World");
    System.out.println("Hello, Whatever");]]>
        </bpelx:exec>
      </sequence>
    </process>

    Hi,
    Your code looks correct to me. However, you should name your durable subscriber: topicSession.createDurableSubscriber(topic, "myDurableSubscriber");
    Then it should be possible to use your JMS provider administration API to check that your durable subscriber is registered with your topic. Once the durable subscriber is registered it will start receiving message.
    To double check that your code is correct, you should test your code with another provide.
    Hope this helps
    Arnaud
    www.arjuna.com

  • Variable creation error

    Hello gurus,
    I want to create some reports.
    Report requirement documents are there but i want your views with it.
    In there it says create
    Selection criteria when u execute a query
    => We have to create variables for those.
    After that it says
    Sold to Customer    with
    Selection options of   SINGLE VALUE, RANGE & LIST..
    Like wise i have lots of characteristics with SAME SELECTION OPTION
    So what type of variable shall i create.
    Any suggestions will be really appreciated.
    pOINTS WILL BE AWARDED

    Hi,
    You can create the variable as a Selection Option variable. This lets the user enter a single value, a range and list as well.
    http://help.sap.com/saphelp_nw04/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm
    Hope this helps...
    p.s. There is no need to add that you will award points. Be assured that you will get helpful replies even if you do not mention this

  • File adapter: Variables in OS command

    Hi All,
    Is it possible to put variable (from variable substitution) into OS command line? I need to create a specific filename, that issues from its payload. But substitution doesn't work - filename appears with percentage symbols and var names.
    Thank you.

    Guys,
    Let me explain situation in details.
    I have on source message split into several target messages. Then these messages are written as xml files. Finally, these files should be packed into zip archive, and zip archive should be named according to payload values.
    In this scenario I can't use payloadzipbean - it creates many archives for each final message, while I need many in one. That's why I've decided to use os command to archive files:
    jar -cvf pack_%var1%_%var2%.zip file_xml*
    And it works, but at the end archive's name is pack_%var1%_%var2%.zip.
    So, I know how variable substitution works, and how os command does... I just need to know if their collaboration is possible...

  • File Adapter Variable structure Issue

    I have a requirement where i get a flat file in the format mentioned below:
    01,1218324735,73038740,021205,0601,464,80,1/
    02,73099000,12100035,1,021204,2359,/
    03,12998877650,USD,010,0,015,0,020,0,040,0,045,0,050,0,057,0,072,0,074,0/
    88,075,0,079,0,080,0,100,48930701,110,48930701,400,48930701,570,48930701/
    16,115,48930701,S,0,0,48930701,00051100896,0074014000,/
    16,577,48930701,,00722103104,1233333649/
    88,XXX TO 1233333649
    49,293584206/
    03,12332342319,USD,010,0,015,0,020,0,040,0,045,0,050,0,057,0,072,0,074,0/
    88,075,0,079,0,080,0,100,0,400,0/
    49,0/
    03,1233233772,USD,010,21311449,015,1255572,020,23673363,040,1255572/
    88,045,200000,050,190464,057,0,072,1055572,074,0,075,0,079,0,080,0,100,0/
    88,400,20055877,490,20055877/
    16,508,20055877,,00370004755,/
    88,XXX:021204004755
    88,ZZZ ZZ YYYYZ
    49,109109623/
    98,23827387079,3/
    99,754273628739,4,203/
    The description of the above file:
    Example 1 – List of multiple groups within a file and multiple accounts within a group:
    01 FILE HEADER Begins File
    02 GROUP HEADER Begins First Group
    03 ACCOUNT IDENTIFIER First Account
    16 TRANSACTION DETAIL First Account Detail
    49 ACCOUNT TRAILER Ends First Account
    03 ACCOUNT IDENTIFIER Second Account
    49 ACCOUNT TRAILER Ends Second Account
    98 GROUP TRAILER Ends First Group
    02 GROUP HEADER Begins Second Group
    03 ACCOUNT IDENTIFIER Begins Third Account
    88 CONTINUATION Continues Previous
    49 ACCOUNT TRAILER Ends Third Account
    98 GROUP TRAILER Ends Second Group
    99 FILE TRAILER Ends File
    How to read this kind of variable structure file in File Content Conversion?
    What kind of parameters should i configure in the content conversion parameters?
    Should i use user defined functions otherwise?
    Thanks for your help in advance.
    Regards
    Sudha

    Hi Sudha,
    Please do these in content conversion:
    Your structure which contains these fields
    Take paramater like this:
    <Structure>.fieldNames = allfields separated by commas
    <Structure>.fieldSeparator = ,
    <Structure>.endSeparator = '\n' means newline
    <Parent of this Structure>.endSeparator = '\n'
    use all field names in 1 variable whether they are being used in mapping or not.
    Reward with points if helpful.
    BR,
    Alok

  • Variable creation on navigational attribute?

    HI all ,
    Can we create navigational  variable on navigational atribute .
    regards,
    Srinivas .

    Hi,
    When we make an attribute as navigational..then that attribute behaves exactly like any other characterstics.so
    you can create variables for the same in order to drilldown the query for detailed analysis on navigational attribute level.
    hope this is clear for you.
    Regards
    Ramsunder

Maybe you are looking for

  • Column order in screen painter

    Hello all, After creating a form in screen painter the column are not showing in the order they are shown in screen painter. I checked the .srf file and the order of the columns is correct, but when SAP B1 opens the form the matrix has the order of t

  • Dynamic tabs not firing disclosure event

    Hi, I am using a af:panelSpringboard with showDetailItems dynamically created using af:iterator bound to collection model. Lets consider each element in the collection model is referred by variable "row". I see that tabs getting created properly with

  • Providers: MSDAORA vs MSDAORA.1

    Hello, Can someone tell me the difference between these two providers?: MSDAORA and MSDAORA.1 Is MSDAORA used for COM/ADO and MSDAORA.1 used with ADO.NET? Thanks!

  • Unitofwork in a stateful architecture

    Hi there, we're designing the particulars of how we'll use Toplink domainobject instances and UnitOfWork in our OC4J-Spring Webflow-JSF architecture that does not use the Transfer Object pattern but directly references domain object instances from JS

  • Ideas for 3 tables joins

    Hi all, We will need to join 3 tables: Bidder_table, key_person_table, and contact_person_table. The requirements: 1. All the data in the Bidder_table should display; 2. For key_person_table, only display first name, last name, and title; 3. For cont