How to use Meta Data in List Definition

Hi there, In Custom List , I could create a Meta Data Column by UI, but don't know how to create a Meta Data column in my list definition by programming anyone has experiense? -Regards, Chi

Yeah, it's tricky creating a metadata column in CAML. You can do it, but it still requires a bit of code to wire up the column during feature activation. 
Basically, you need to define your taxonomy field (and a hidden field for the label), include the taxonomy catchall fields (in your list definition), add an event handler to the list definition (that will update the taxonomy catch all fields when items are
added and updated), and then wire up your taxonomy field during feature activation (this is when you would check if the termset has been created, and assign the termset id to the field, etc).
Here's an example from a test project I created (with help from others). I've posted the whole project up to the TechNet Gallery, here:
http://gallery.technet.microsoft.com/Declaratively-Adding-c4dc6c81.
Column Markup:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field
ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType"
Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3" ShowField="Term1033">
<Customization>
<ArrayOfProperty>
<Property>
<Name>TextField</Name>
<Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
</Property>
</ArrayOfProperty>
</Customization>
</Field>
<Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE"
RowOrdinal="0"/>
</Elements>
Content Type:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Item (0x01) -->
<ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
<FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
<FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
<FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
</FieldRefs>
</ContentType>
</Elements>
List Definition (Elements.xml):
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
<ListTemplate
Name="ldAnimal"
Type="14000"
BaseType="0"
OnQuickLaunch="TRUE"
SecurityBits="11"
Sequence="410"
DisplayName="Animals"
Description="List for recording animals"
Image="/_layouts/images/itgen.png"/>
</Elements>
List Definition (Schema.xml)
<?xml version="1.0" encoding="utf-8"?>
<List xmlns:ows="Microsoft SharePoint" Title="ldAnimal" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ldAnimal" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
<MetaData>
<ContentTypes>
<ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
<FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
<FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
<FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
</FieldRefs>
</ContentType>
</ContentTypes>
<Fields>
<Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
<Field ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType" Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3">
<Customization>
<ArrayOfProperty>
<Property>
<Name>TextField</Name>
<Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
</Property>
</ArrayOfProperty>
</Customization>
</Field>
<Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE" RowOrdinal="0"/>
</Fields>
<Views>
<View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="LinkTitleNoMenu"></FieldRef>
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
</ParameterBindings>
</View>
<View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
<Toolbar Type="Standard" />
<XslLink Default="TRUE">main.xsl</XslLink>
<RowLimit Paged="TRUE">30</RowLimit>
<ViewFields>
<FieldRef Name="Attachments"></FieldRef>
<FieldRef Name="LinkTitle"></FieldRef>
<FieldRef Name="inceAnimal" />
</ViewFields>
<Query>
<OrderBy>
<FieldRef Name="ID"></FieldRef>
</OrderBy>
</Query>
<ParameterBindings>
<ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
<ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
</ParameterBindings>
</View>
</Views>
<Forms>
<Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
<Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
</Forms>
</MetaData>
</List>
Taxonomy List Event Receiver Markup:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="14000" ListUrl="Lists/ldAnimal">
<Receiver>
<Name>TaxonomyItemSynchronousAddedEventReceiver</Name>
<Type>ItemAdding</Type>
<Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
<Synchronization>Synchronous</Synchronization>
<SequenceNumber>10000</SequenceNumber>
</Receiver>
<Receiver>
<Name>TaxonomyItemUpdatingEventReceiver</Name>
<Type>ItemUpdating</Type>
<Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
<Synchronization>Synchronous</Synchronization>
<SequenceNumber>10000</SequenceNumber>
</Receiver>
</Receivers>
</Elements>
Feature Activation Code:
[Guid("8b0a27ee-22dd-4a4e-940e-9cce3a596c49")]
public class AnimalFieldsandContentTypeEventReceiver : SPFeatureReceiver
private const String TermGroupName = "Zoology";
private const String TermSetName = "Animals";
private readonly Guid _termSetId = new Guid("{8CC56BE3-93A0-4007-81AF-30EB39A42959}");
private readonly Guid _animalFiedId = new Guid("{14c4e3ff-5d11-4412-a7ae-287f187d5eef}");
private const String ClassName = "AnimalFieldsandContentTypeEventReceiver";
public override void FeatureActivated(SPFeatureReceiverProperties properties)
try
Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Activating feature."), LogType.Information);
var site = properties.Feature.Parent as SPSite;
if (site == null)
Logging.Log(ClassName, "The Site is null. Feature not activated.", LogType.Error);
throw new NullReferenceException("The Site is null. Couldn't activate the feature.");
var termStore = Taxonomy.GetDefaultTermStore(site);
if (termStore == null)
Logging.Log(ClassName, "The Taxonomy Termstore is null. Feature not activated.", LogType.Error);
throw new NullReferenceException("The Taxonomy Termstore is null. Feature not activated.");
var termGroup = Taxonomy.GetTermGroup(termStore, TermGroupName, true);
var termSet = Taxonomy.GetTermSet(termGroup, TermSetName, _termSetId, true);
Taxonomy.ConnectTaxonomyTerm(site, termSet, termGroup, _animalFiedId);
Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Successfully activated feature."), LogType.Information);
catch (Exception e)
Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Unexpected error activating the feature. Error: {0}", e.Message), LogType.Error);
throw;
Taxonomy Helper Class:
namespace TaxonomyTesting
public class Taxonomy
private const String ClassName = "Taxonomy";
public static TermStore GetDefaultTermStore(SPSite site)
var taxonomySession = new TaxonomySession(site);
var termStore = taxonomySession.DefaultSiteCollectionTermStore;
if (termStore != null) return termStore;
return taxonomySession.TermStores.Count == 0 ? null : taxonomySession.TermStores[0];
public static TermSet GetTermSet(Group group, String termsetName, Guid termsetId, Boolean createIfMissing)
try
foreach (var termSet in @group.TermSets.Where(set => set.Name.ToLower().Equals(termsetName.ToLower())))
return termSet;
if (createIfMissing)
Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Termset does not exist. Creating termset: {0}", termsetName), LogType.Information);
var termSet = group.CreateTermSet(termsetName, termsetId, 1033);
group.TermStore.CommitAll();
Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Successfully create termset: {0}", termsetName), LogType.Information);
return termSet;
return null;
catch (Exception e)
Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Unexpected error getting a termset. Error: {0}", e.Message), LogType.Error);
throw new Exception("[GetTermSet] Exception getting term set.");
public static Group GetTermGroup(TermStore store, String groupName, Boolean createIfMissing)
try
foreach (var termGroup in @store.Groups.Where(termGroup => termGroup.Name.ToLower().Equals(groupName.ToLower())))
return termGroup;
if(createIfMissing)
Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Termgroup does not exist. Creating term store group: {0}", groupName), LogType.Information);
store.CreateGroup(groupName);
store.CommitAll();
Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Successfully create term store group: {0}", groupName), LogType.Information);
return store.Groups[groupName];
return null;
catch (Exception e)
Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Unexpected error getting a term store group. Error: {0}", e.Message), LogType.Error);
throw new Exception("[GetTermGroup] Exception getting term store group.");
public static void ConnectTaxonomyTerm(SPWeb web, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
if (web.Fields.Contains(taxonomyFieldId))
var field = web.Fields[taxonomyFieldId] as TaxonomyField;
if (field == null)
throw new ArgumentException(String.Format("The field with id {0} is not a TaxonomyField.",taxonomyFieldId));
field.SspId = termSet.TermStore.Id;
field.TermSetId = termSet.Id;
field.TargetTemplate = String.Empty;
field.AnchorId = Guid.Empty;
field.Update(true);
return;
throw new ArgumentException(String.Format("The field with id {0} could not be found on the current web, {1}", taxonomyFieldId, web.Url));
public static void ConnectTaxonomyTerm(SPSite site, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
ConnectTaxonomyTerm(site.RootWeb, termSet, termGroup, taxonomyFieldId);
Logging class (just a helper class, that isn't required if you don't want to log to the ULS)
namespace TaxonomyTesting
public static class Logging
private const String SolutionName = "TaxonomyTesting";
public static void Log(String callingClass, String message, LogType logType)
switch (logType)
case LogType.Error:
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Unexpected, EventSeverity.ErrorCritical), TraceSeverity.Unexpected, String.Format("[{0}][{1}] [Error] {2}", SolutionName, callingClass, message), message);
return;
case LogType.Warning:
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.High, EventSeverity.Warning), TraceSeverity.High, String.Format("[{0}][{1}] [Warning] {2}", SolutionName, callingClass, message), message);
return;
case LogType.Information:
SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Medium, EventSeverity.Information), TraceSeverity.Medium, String.Format("[{0}][{1}] {2}", SolutionName, callingClass, message), message);
return;
public enum LogType
Information,
Warning,
Error
Regards, Matthew
MCPD | MCITP
My Blog
View
Matthew Yarlett's profile
See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos

Similar Messages

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How to use Jquery Data Grid in HTML

    can anyone please tell me how to use JQuery Data grid in my HTML page with example.
    I have one HTML page i want the standard JQuery Data Grid with search and pagination functionality.

    Guys I have got the solution
    thanks a lot
    please refer this link for JQGrid
    http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET

  • How to use TRIM  DATA in CFFORM?

    How to use TRIM DATA in CFFORM? when data is retrieving from
    DATABASE. Wanna rtrim and ltrim while spaces.

    Better to trim those values after the form submission.
    Once you put them into form,
    user may also makes mistake by hitting space, right?
    Also, by trimming all form fields after submission, you will
    be sure that your DB is clean... no whitespaces on it.
    Well unless someone insert data directly onto it :)

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • LR is using meta data from previous edited photos on new imports

    LR is using meta data from previous edited photos on new imports-
    When I am importing new photos to a new catalog LightRoom gave all the photo settings that I had used on a previous catalogs photo I had to delete the catalog because I could not find an answer anywhere. Tried the deleteing and importing 3 times with same result.
    Once I did Start another new catalog and pressed reset on everything I could find it worked.
    What can I do if this happens again? Anybody know what setting that involves?

    On the right side of the Import screen, there's a heading "Apply during import". (If it doesn't show, right-click on the panel on the right and choose it from the menu.) One of its sub-fields is Metadata. That field and the Keywords field below it, I think are "sticky". You need to make sure that they contain the metadata that you want applied in your current import.
    It's almost always a bad idea to delete your catalogue or re-import images. Both those things fall at the very end of possible remedies because they cost you a lot of work, and there are almost always cheaper ways of solving your problem.
    Hal

  • How to use Sql data source from Essbase 9.3.1

    Hi All,
    How to use Sql data source from Essbase 9.3.1 for ASO cube.Are there any rules and limitations for that.
    Do we need to create any data source connection for this purpose. If there please let me know the dteps to create that connection.
    Regards

    Yes you need to create one DSN connection and you have to use DSN name and login details at the time of building/loading of the outline.
    Create DSN
    Goto Administrative tools -> DataSources (ODBC) and add the DSN name and specify the Server name of SQL and login details and database.
    goto data prep editor and click on File Menu and Click on Open SQL option Next window opens.
    There you have to enter the details of the DSN connection and SQL query to build/load.
    Thanks,
    Prathap

  • How to use XML data stored in table column in XML Data Definition

    Hi,
    We are using BIP 5.6.3 (Oracle EBS R12).
    We have a table which stores XML data in a column. Is there a way we can use this XML data through a SQL query in XML Data Definition of BI Publisher report instead or writing whole SQL query to fetch same data from Oracle EBS?
    Can some please provide a sample SQL query that we should use in Data Definition?
    Thanks!

    Mark,
    Thanks. This is exactly what I was looking for.
    After doing @Name in both places (SELECT and WHERE clause) it worked.
    Now I have one more question.
    There are multiple DIMENSION tags in my xml, and I want to see the NAME attribute values for all of those DIMENSIONs. The following query returns
    ORA-19025: EXTRACTVALUE returns value of only one node.
    Cause: Given XPath points to more than one node.
    Action: Rewrite the query so that exactly one node is returned.
    SELECT
    extractValue(value(x), '/AW/@Name') as "AW",
    extractValue(value(x), '/AW/Dimension/@Name') as "DIMENSIONS"
    from
    OLAP_AW_PRC,
    table(xmlsequence(extract (xmltype(AW_XML_TMPL_VAL), '/AWXML/AWXML.content/Create/ActiveObject/AW'))) x
    where
    extractValue(value(x) , '/AW/@Name') = 'OMCR4'

  • How to extract meta data of documents from SAP R/3

    dear all,
    i`am working in aproject where we connect the documents for SAP R/3 applications.we maintain our own repository for that purpose.it may be in bound or out bound according to customer needs.the meata data related to the documents is stored in SAP.our requirement now is to have that metadata available in our repository .can any one guide me how to write ABAP code for extracting meata data from SAP and enable even nonSAP users to have the access for the documents.
    thanks in advance
    ravi

    Hi,
    One way to do this is probably set a connection between SAP Database and an external database and store the meta data into external database from where a non-sap user will have an eccess to the data.
    Steps required are :
    1. we have to involve basis team also in that.
    2. they will make one entry
    in DBCON table
    (that entry will point to secondary database/external database)
    (suppose the name of this secondary connection is HRCON)
    3. Also they will make connection string
    in application server.
    4. After that,
    we should have
    the table definition in SAP dd dictionary
    and also
    the same defintion
    in the external database. 
    5. now in abap code,
    we have to use like this.
    DATA: mydbcon(30) TYPE c.
    mydbcon = 'HRCON'.
    INSERT ydev_msg_cur CONNECTION (mydbcon)
    FROM msg_cur .
    <b>Hope this helps.
    Please mark helpful answer.</b>
    Regards,
    Amit Mishra

  • How to get  meta data of business objects  in BOR

    i need to get all the meta data information of  business objects present in BOR.
    for example purchase order BUS2012
    1.  I need to get for example  the attributes information how to get it?
    2. if  business object contains further child business objects then how to get attributes of those child business objects  also? 
    I am writing ABAP code,  i want to retrieve all attributes with help of ABAP program .
    any ideas?

    Hi..
    You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
    All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
    Hope to help...

  • How to use a data link file (UDL)

    Hi,
    several times I developed applications using Crystal Reports 2008 which used a data base on my development PC and when I deployed them on a production server I had the problem to change the Data Source Location to reflect the new Server name and SQL Server Instance. Moreover, this had to be done on the server, because CR 2008 check the new data source location when you change it, and because I was not connected to the server I couldn't do it on my development pc.
    I thought that the data link file was the solution to this problem, meaning that CR2008 could use a data link file (UDL file) as a data source location, so when deploying the reports on the server I had only to point the data link file to the new server instance.
    With my surprise, I have seen that when using a data link file to define the data source in CR 2008, it copies the definition found in it, instead of using it at run time. SO when I deploy the reports on the server I still have the same problem to change the data source location for all the reports.
    Perhaps I didn't understand the data link file use. So, how do I solve the problem of using a data source location that can be valid when deploying the reports on a server?
    Thanks

    Hi Antonio,
    Go to our download page above, there you will find samples to test with:
    http://www.sdn.sap.com/irj/boc/samples
    Or to .NET samples: http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375 [original link is broken]
    Find any of them that sets database location/log on.
    Thank you
    Don

  • How to get Meta Data Extension value?

    Hello,
    I created a new property in KM and set "Meta Data Extension" field that points to some bundle class file for Labels for this property.
    How can I get the value of this "Meta Data Extension" field or, to be more exactly, this bundle class in my property renderer code?
    I'll be very much appreciated for your help.

    Hello Sergei,
    IMetaName getLabel will give you the label out your bundle file if you've set the metadata extension and the bundle key in the metadata property configuration. There is no API that exposes the metadata extension information. It's only used inside the property configuration service.
    For more information about how tho customize labels of KM attributes see the documentation:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm">Changing Labels for Properties</a>
    Regards
    Lars

  • How to get meta data for email attachments in iphone?

    Hi am new to iphone programming,i want to get the meta data for the emails attachments in the inbox of the iphone to be listed the emails with attachment.

    Hi..
    You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
    All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
    Hope to help...

  • How to use cursor data in more than one location in form?

    hi all.
    is it possible to make cursor as global or public in the form so i can use its data in more than location for testing like in buttons triggers.
    for example:
    if i declare the following cursor in "WHEN-NEW-FORM-INSTANCE" trigger
    CURSOR cur
    IS
    SELECT ID, NAME
    FROM PERSON;how can i use this cursor in other triggers in other buttons in the form?
    thanks

    kareem wrote:
    now i have the old data- from cursor and the new- from tableNo, you have not. When you open the cursor you get the state of the database at the current SCN.
    If you
    - open your cursor, fetch the data and close the cursor
    - update some data
    - open your cursor, fetch the data and close the cursor
    you will get the updated data from your cursor the second time (unless your update isn't a uncommited autonomous transaction but I wouldn't go down that route).
    You will have to save your data somewhere or you might take a look at flashback: http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i20759
    cheers

  • How to use cursor data in more than one location in the form?

    hi all.
    is it possible to make cursor as global or public in the form so i can use its data in more than location for testing like in buttons triggers.
    for example:
    if i declare the following cursor in "WHEN-NEW-FORM-INSTANCE" trigger
    CURSOR cur
    IS
    SELECT ID, NAME
    FROM PERSON;how can i use this cursor in other triggers in other buttons in the form?
    thanks

    kareem wrote:
    now i have the old data- from cursor and the new- from tableNo, you have not. When you open the cursor you get the state of the database at the current SCN.
    If you
    - open your cursor, fetch the data and close the cursor
    - update some data
    - open your cursor, fetch the data and close the cursor
    you will get the updated data from your cursor the second time (unless your update isn't a uncommited autonomous transaction but I wouldn't go down that route).
    You will have to save your data somewhere or you might take a look at flashback: http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i20759
    cheers

Maybe you are looking for

  • Help, web cam is not working properly with win vista

    Hii.. my web cam is not working properly with win vista..even if the icon appears bt it does nt start.. its lenovo easy capture 2.5...so if u cud suggest me anything... Moderator note; subject edited

  • Open item Management Hidden Field

    Dear Friends: When creating an GL Account, I am getting the following Error: Field 'Open item Management' contains an entry, although it is hidden.You cannot Save. How to overcome the problem?Please advise. Regards MSReddy

  • FPGA I/o node

    Hi, I was wondering if the following FPGA I/o node acquires Mod1/AI0, Mod1/AI1, Mod1/AI2, and Mod1/AI3 simultaneously.  I mean I don't know if they are at the same time or not.  Solved! Go to Solution.

  • Problem removing hard drive HP Pavilion a1228x

    I removed the two screws on the side and the HD will move back and forth an inch or so, but I cannot pull it out.  I don't know what else is holding it in place or what I need to do to remove it. Any suggestions would be appreciated.

  • Security Alert # 68 Question

    I have 8.1.7.4 on Windows 2000 server. Does patch 8.1.7.4.16 correct the Oracle Security Alert #68? The readme file does not state any information about this alert.