Retrieving Model's metadata using OdiRef

Folks,
Does anyone knows how to get the "resource name" from a file type model, using odiRef?
Let me be more specific: in a interface, when mapping a value to a target column, I have to insert the file name of a model's resource name. Have to note that the interface's target model is not the same model from which the resource name is being sought.
The idea here is not harcoding strings in a mapping. Instead, take the string from a model's metadata.
I've looked the "Introduction to the Substitution API" (http://docs.oracle.com/cd/E25178_01/integrate.1111/e12645/api_intro.htm) and the "A.2.33 getModel() Method" (http://docs.oracle.com/cd/E25178_01/integrate.1111/e12645/odiref_reference.htm#CIAJGCDG) but none of them gave me clues. Worse, the getModel() method refers to the current model that's being worked on, not an arbitrary model.

Not sure if you will have an API for that or not.
But even the file name is hardcoded inside the File Datastore and once you generate the scenario, it is going to be hardcoded.
Another way to accomplish what you need is by using a Variable in the Resource name of the file datastore. And refresh this name from a DB table or something like that.
Use this variable in your mapping.
This way you will have your requirement fulfilled while keeping the process clean of hard codings

Similar Messages

  • How to retrieve the content type used in a document library (C# - Client Model).

    Hello,
    I need to know if it's possible to retrieve the content type used in a document library, so I can know the columns active and used in this document library. I am using the Client Model in C#.
    Thanks

    First, retrieve your document library as a List object. Then, use the
    List.ContentTypes property to iterate through all the content types assigned to the list.
    Blog:
    blog.beckybertram.com |
    RSS | @beckybertram |
    SharePoint 2010: Six-in-One

  • Exception when retrieving the WS invoker using the execution destination

    We got exception when we had tried to call WS in Web Dynpro for Java (NWDS 7.1 SP 5):
    "Exception when retrieving the WS invoker using the execution destination".
    We imported model as Adaptive Web Service Model with destination and
    implemented Component Controller using document
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
    We used:
    1. Netweaver 7.1 CE
    2. Backend R/3 system with RFC wrapped by Web Service without autorization on R/3
    3. In our CE system we created two logical destinations (metadata and execution) to R/3 Web Service

    Hi Yuriy,
    It would be great if you can say how exactly you solved the problem as i am encountering the same error.
    Regards,
    Tekumalla

  • Model and Metadata in JCO creation

    Hi all,
    I am having dout regarding Modeldata and Metadata.For example i am having 2 function modules.Is it that the name given to the fields " Default logical name for model instances " and
    "Default logical name for metadata instances " should be same for both the function modules as WD_BAPI_MODELDATA_DEST and WD_BAPI_RFC_MODELDATA_DEST so that JCO connection created for the above 2 names can be used for all the function modules
    Regards
    Padma N

    Hi Chaitanya,
                 For example i want to work with 5 function modules in my application.So while creating model i used model data and metadata as
    Modeldata Name : WD_BAPI_MODELDATA_DEST
    MetaData : WD_BAPI_RFC_MODELDATA_DEST
    and i selcted all the 5 function modules and i clicked finish.
    If i delpoy the application now and tried to create JCO connection the above 2 names are visible with red button besides them.
    If i create JCO connection for the above model and metaData instances will the 5 function modules will work fine or not
    Regards
    Padma N

  • Question about  Jco conenctions/Logical name of the model and metadata

    Is it common to use the same logical name of the model and metadata across different enviroments?
    For example,  MODEL_DATA_DEST, META_DATA_DEST is used for DEV, QAS and PRD? Because i seem to have some trouble using code built in DEV to another environment if the logical name of the model and metadata is different.
    Thanks in advance

    Hi,
    No for every environment the logical name of the model and metadata are different...
    for eg: some logical names, 
    WD_RFC_METADATA_DEST
    WD_MODELDATA_DEST
    USERINFO_WD_RFC_METADATA_DEST
    USERINFO_WD_MODELDATA_DEST
    About JCo Details,
    SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
    http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
    Creating Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
    Maintaining Jco destination:
    http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
    The SAP JCo Repository :
    http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
    Dynamic Jco creation Blogs:
    /people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
    /people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3

  • HT201343 My MacBook Pro is a 15 inch Early 2011 Model i was using airplay for a while and now suddenlly i dont see it on my status bar?

    My MacBook Pro is a 15 inch Early 2011 Model i was using airplay for a long time and i could always turn it on from my status bar and now recently i cant seem to find it on my status bar and it says Apple TV is not connected

    Hi LoganXDasz,
    If you are having issues with AirPlay availability, you may find the following article helpful:
    Apple Support: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    Cheers,
    - Brenden

  • How to set cookie value in one page and retrieve in another page using setA

    How to set cookie value in one page and retrieve in another page using setActionListener?
    I have tried with following code srcpage.jspx->destpage.jspx
    srcpage.jspx
    <af:table value="#{bindings.DepartmentsView1.collectionModel}"
    var="emp" rows="#{bindings.EMPView1.rangeSize}"
    first="#{bindings.EMPView1.rangeStart}"
    emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
    <af:column sortProperty="EmployeeName" sortable="false"
    headerText="Cookie Testing">
    <af:commandLink text="#{emp.EmployeeName}" action="success">
    <af:setActionListener from="#{emp.EmployeeName}"
    to="#{cookie}"/>
    </af:commandLink>
    </af:column>
    </af:table>
    espage.jspx
    <af:outputText value="Test Cookie Value: #{cookie}"/>
    ,Here Test Cookie Value prints the following instead of its original String value
    {JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
    I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
    Thanks in advance
    Kalee

    Hi,
    "cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
    #{cookie.cookieName}
    Note that #{cookie} writes to and returns a map
    check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
    Frank

  • Getting error while importing metadata using View Objects

    Hi All,
    I am trying to create a repository using View Object in OBIEE 11.1.5.1 but getting error while viewing the data, after importing the metadata in the repository "[nQSError: 77031] Error occurs while calling remote service ADFService11G. Details: Runtime error for service -- ADFService11G - oracle/apps/fnd/applcore/common/ApplSession".
    I am also getting error "žADFException-2015: The BI Server is incompatible with the BI-ADF Broker Servlet: BI Server protocol version = null, BI-ADF Broker Servlet protocol version = 1" during testing my sample which is deployed to Admin server. I followed BI Adminstrator help file guide in order to create the sample for creating repository using view object.
    Admin server log says
    [2011-09-27T02:59:03.646-05:00] [AdminServer] [NOTIFICATION] [] [oracle.bi.integration.adf] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: b260b57746aa92d3:-1f9ca26:1328fcfd3e6:-8000-0000000000006744,0] [APP: BIEEOrders] [[
    QUERY:
    <?xml version="1.0" encoding="UTF-8" ?><ADFQuery><Parameters></Parameters><Projection><Attribute><Name><![CDATA[Deptno]]></Name><ViewObject><![CDATA[AppModule.DeptViewObj1]]></ViewObject></Attribute><Attribute><Name><![CDATA[Dname]]></Name><ViewObject><![CDATA[AppModule.DeptViewObj1]]></ViewObject></Attribute><Attribute><Name><![CDATA[Loc]]></Name><ViewObject><![CDATA[AppModule.DeptViewObj1]]></ViewObject></Attribute></Projection><JoinSpec><ViewObject><Name><![CDATA[AppModule.DeptViewObj1]]></Name></ViewObject></JoinSpec></ADFQuery>
    [2011-09-27T02:59:04.199-05:00] [AdminServer] [ERROR] [] [oracle.bi.integration.adf.v11g.obieebroker] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: b260b57746aa92d3:-1f9ca26:1328fcfd3e6:-8000-0000000000006744,0] [APP: BIEEOrders] java.lang.NoClassDefFoundError: oracle/apps/fnd/applcore/common/ApplSession[[
         at oracle.bi.integration.adf.ADFDataQuery.makeQueryBuilder(ADFDataQuery.java:81)
         at oracle.bi.integration.adf.ADFDataQuery.<init>(ADFDataQuery.java:70)
         at oracle.bi.integration.adf.ADFReadQuery.<init>(ADFReadQuery.java:15)
         at oracle.bi.integration.adf.ADFService.makeADFQuery(ADFService.java:227)
         at oracle.bi.integration.adf.ADFService.execute(ADFService.java:136)
         at oracle.bi.integration.adf.v11g.obieebroker.ADFServiceExecutor.execute(ADFServiceExecutor.java:185)
         at oracle.bi.integration.adf.v11g.obieebroker.OBIEEBroker.doGet(OBIEEBroker.java:89)
         at oracle.bi.integration.adf.v11g.obieebroker.OBIEEBroker.doPost(OBIEEBroker.java:106)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassNotFoundException: oracle.apps.fnd.applcore.common.ApplSession
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         ... 38 more
    Please suggest how to make it work.

    Hi,
    Thanks for providing the online help URL, i have already completed the steps mentioned in URL
    I am able to import metadata using view object but getting above error("[nQSError: 77031] Error occurs while calling remote service ADFService11G. Details: Runtime error for service -- ADFService11G - oracle/apps/fnd/applcore/common/ApplSession".") while validating the data.
    It fails at step 5 of "To import metadata from an ADF Business Component data source:" section of above URL.

  • How to get columns comments metadata using JDBC

    I want to get the columns comments metadata using JDBC, I tried using the OracleMetaDataObject but failed. Looks like the OracleMetaDataObject API does not support it using the latest ojdbc6.jar driver as well. Please help. I need to display the column comments to the users in a J2ee application.

    Duplicate, locking.

  • How can I get Adobe Bridge to show XMP metadata using Adobe Drive 4 CMIS Connector?

    I have successfully connected to an Alfresco Enterprise Edition 4.1.0 repository, using the Adobe Drive 4, created a test folder and uploaded a jpeg file containing XMP metadata into it.
    When I view the image's metadata (using Adobe Bridge), I observe that only part the standard file properties are displayed.
    When I view a local copy of the image using the same, I see all fields of the standard file properties plus available metadata.
    My question: what should I do in Adobe Bridge to be able to see all available XMP metadata?
    Kind Regards and Appreciation
    Don Greenwood
    Pixelboxx GmbH
    Dortmund

    How did you get through to customer service?  They've changed the website and I can't even find phone numbers or a chat button any more.
    Here's my story that I posted on discussion yesterday, but no one has replied:
    I am screaming and pulling my hair out right now!  The last six months with Adobe has been a nightmare.
    Once again I am completely locked out of Creative Cloud and cannot use the apps even though my automatic monthly deduction for payment was just made a couple of days ago.  Creative Cloud continues to reset itself to the trial version which runs out in 30 days and after that I am locked out once again.
    Now it looks like it is harder to access support than before.  Where are chat and the phone numbers now?  This was a nightmare with countless hours spent on chat and the phone over the last six months, and now I don't even know how to access support in order to spend even more time that does not solve the problem.  What am I to do?
    I cannot use the product I have paid for!
    Please help!

  • How to retrieve  Del. No. using MBLNR

    Hi Guyz..
    One quick Qn !
    I have MBLNR in my I_MSEG, now I want to retrieve Del. doc. no. using MBLNR. Now I tried to select VBELV as Del doc. using VBELN as subsequent doc. from  VBFA table. I am using FOR ALL ENTRIES in ITAB,
    The prob is the select on VBFA takes 5 mins for 5 record in I_MSEG.
    So how can I make this select fast or , what alternative I can use.
    here the code is
        SELECT mblnr
               line_id
               matnr
               charg
          FROM mseg
          INTO TABLE i_mseg
         WHERE matnr IN s_matnr
           AND charg IN s_charg.
       IF NOT i_mseg[] IS INITIAL.
        SELECT vbelv
               vbeln
               vbtyp_v
               vbtyp_n
          INTO TABLE i_vbfa
          FROM vbfa
           FOR ALL ENTRIES IN i_mseg
         WHERE vbeln   = i_mseg-mblnr
           AND posnn   = i_mseg-line_id
           AND vbtyp_n = 'R'
           AND vbtyp_v = 'J'.
    please help !
    Thanks
    Jaif

    Hi
    If you use all key fields in selection then you can get faster than present perfamence.
    In MSEG, below two fields also key fields.
    MJAHR
    ZEILE
    In VBFA,  VBELV, POSNV, VBTYP_N are key fields.
    Reward if it dose.
    Thanks
    Siva Kumar

  • OS41: data modeler,  how to use it?

    Hi,
    I'd like to know how to use T-code OS41: data modeler, when do I need to use it? and How to use? Please kindly help.
    Thanks and Regards.

    Hi Steve
    <b>SD11-Data Modeler</b> is used, as its name implies, to model your processes.
    You can create entity types, connect tables or views to those entities, implement connections between entities and if needed, you can also insert business objects all in a hierarchical way. You can connect data models to each other as well.
    By this way, you document your own processes containing also some technical perspective.
    Hope this small piece will give some basic understanding.
    *--Serdar

  • Multiple File Upload With Metadata Using REST

    hi all
    I want to upload multiple files with metadata to document library using REST API. I am using this msdn article
    http://msdn.microsoft.com/en-us/library/office/dn769086(v=office.15).aspx for uploading file. I am able to upload single file to document library but it is not working for multiple file. when I select multiple file it is uploading last selected file. can
    anyone help with this. I am using office 365 environment.
    Thanks in advance

    Hi,
    According to your post, my understanding is that you wanted to use the REST to upload multiple files.
    Per my knowledge, the REST API is not supported for uploading multiple files via a single call.
    You can write your own loop to upload multiple files via an individual call.
    http://sharepoint.stackexchange.com/questions/108525/multiple-file-upload-with-metadata-using-rest/108532#108532
    More reference:
    http://sharepointfieldnotes.blogspot.com/2014/04/uploading-documents-and-setting.html
    http://www.shillier.com/archive/2013/03/26/uploading-files-in-sharepoint-2013-using-csom-and-rest.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Problem With Uploading IDOC Metadata using IDX2

    Hi Experts,
    While i am uploading IDoc metadata using IDX2 it is showing
    "I::000" information.
    Anybody please help me why i am getting this problem?

    Hi Bhuvan,
    Basicall this problem arises when  user Id being used in the SM59 to trigger the IDoc's from the R3 system , i,e , the XI user id being used in SM59 of R3 does not have the authorizations to post the Idoc.
    Note : 837595 describes the authorizations needed to post and Idoc. Make sure that the user id has the authorizations in this note.
    Activate the authorization check in transaction ST01.
    And also it may be due to insufficient roles for the user which ur using in RFC connection to SAP system.
    Check with the  port in IDX1 whether u have configured corectly.
    Check this link
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    PAGE - 11
    Regards,
    Vinod.

  • Model and Metadata JCo Destination Config in WD

    Hi!
    I just want to ask or verify if this is a correct JCo setup:
    Logical System Name: WD_APT_MODELDATA_UIP_GDC
    Model Instance Logical System Name: WD_APT_METADATA_GDC
    Thanks!

    Hi,
    Thanks for that link. Yup, I think the project's JCO is interchanged somehow based on the link that you gave me. To give a background, this is just a transitioned project to me and the JCO was set up in that way...
    I don't know why that was the case, but when I reversed the two JCO, it gave me an RFC authorization error. However, when I interchanged the MODEL and METADATA JCO, it worked fine again.
    Would you know why this is the case? I just want to verify if it is alright to interchange JCOs and ensure that the conifgurations are correct.

Maybe you are looking for

  • [Ask] Error While Provisioning New User Into RACF

    Dear All, I have a problem in provisioning user into RACF zOS. This is the error displayed below: Feb 29, 2012 11:08:00 AM com.identityforge.idfserver.util.ServerLogger error SEVERE: NamingException processing add request! Error message received: ICH

  • How do I combine two iTunes accounts into one?

    I was having trouble logging into my initial iTunes account so I wound up creating TWO different iTunes accounts and I want to have only one with  all transactions and music purchases from both in just one Apple  ID. How can I do that?

  • VisualAdmin: No Changes possible

    Hello. I want to setup a XI system. ABAP instance alread installed, client copy finished (client 100), Java Add-In installed (used DDIC @clnt 100 as RFC user). Now i want to to execute the steps mentioned on page 16 ff. of Installation Guide XI SR1 (

  • Validating JTable Cell

    For a particular project I'm working on the specs say that as a user types a value into a particular cell in a table, I must validate that each character is valid and that they are typing a valid code. Example: Say valid codes are "01", "02", "10", 1

  • Can you help with hotmail on iPad?

    For 3 days, Hotmail has not worked on my iPad although it works fine on my computer. I see this problem has been adressed in the past and has been a problem for many people in the last few days, but I don't see a solution to the problem. Please help.