What is the use of XML data collections

Dear all,
I have open the Adventure works database sample and have few technical design question about it :
1- I have seen that seen that some function has been define. IN which case we should use function vs Store procedure ? so far I always have used SP.
2- I have notice also that in some table, there is a field which contains XML content and this XML content is coming from the XML Schema collections. Some shemas has been define here for different tables.
    - What are those shema used for in here ?
    - How they are created ?
    - how they get inserted to Table colum ?
I am not a DBA and knows some basics but not all so thanks for simple explaination :-)
regards

Hi wakefun,
About your questions, I recommend you review the following articles for understanding user function , Store procedure and XML Schema collections in Adventureworks database.
1. Stored Procedures in AdventureWorks;
2.
User-Defined Functions in AdventureWorks;
3. XML Schema Collections (SQL Server).
The XML schema collection is a metadata entity like a table in the database. You can create, modify, and drop them.
the XML stored in a column or variable that a schema is associated with is referred to as typed XML, because the schema provides the necessary data type information for the instance data.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support

Similar Messages

  • What is the use of inverted date format

    In table TCURR - Exchange rates, the field GDATU - Date As of Which the Exchange Rate Is Effective is stored as an inverted date. So 01/01/2008 is actually stored as 79919898.
    What is the use of inverted dates. Why does SAP use them. Why not just use normal date format? If I want the latest record from the table, instead of sorting by descending, I actually have to sort by ascending because the date is stored in inverted format.

    Hi,
    Inverted date is a old concept which helps in soring the dates sometimes. but now ASCENDING and DESCENDING sorting is more easy and quick. Check this application help. maybe useful for you
    1. CONVERT DATE f1 INTO INVERTED-DATE f2.
    2. CONVERT INVERTED-DATE f1 INTO DATE f2.
    Effect
    Calculates the nine's complement of the internal date format (YYYYMMDD - for more information about internal display, meaning and initial values of types, see TYPES) and places it in the field f2. For example, 19950511 becomes 80049488 and 80049488 becomes 19950511.
    In the inverse date format, the most recent date has the numerically smallest value. You can make use of this effect when sorting dates.
    Note
    The technique of manipulating the sort sequence of dates by inverting the internal date format is now rarely used. You can sort internal tables in order of ascending or descending date values much more efficiently using the ... ASCENDING or ... DESCENDING additions to the SORT statement.
    Example
    DATA DATE_INV LIKE SY-DATUM.
    CONVERT DATE SY-DATUM INTO INVERTED-DATE DATE_INV.
    Suppose, for example, SY-DATUM contains the date 11.05.1995 in its internal format 19950511. After execution of the CONVERT statement, DATE_INV would contain the internal format 80049488.
    //Kothand

  • What is the use of XML file in EJB

    Hi,
    Generally EJB contains
    1) Home Interface
    2) Remote Interface
    3) Bean class
    4) XMl file
    In xml file we will mention something like
    <home>name of home interface </home>
    <remote?name of remote interface</remote>
    what is the use of this xml file and how it works.
    Thanks.

    It's called the deployment descriptor and it's used by the container to support your bean's configuration. For instance, if you want container managed persistence for an entity bean then you need to tell the container which table to use in which database with the column mappings, etc.

  • What is the use of XML as a transfer syntax for network protocols

    I do not quite understand the use of XML as a transfer syntax of wire protocols. What is its use over binary encodings?

    Also, see ASN.1
    XML is used because decision makers, usually managers, think that because it's human readable, that makes it simple to process. Unfortunately, this is far from true. It is very costly to process, because parsing it involves examining every character.
    It's also incredibly wasteful of bandwith. In due course someone will propose a compression scheme for it, and then someone else will ask why we don't just use the compressed form as the protocol, and forget the text representation.
    Sylvia.

  • What is the use of Oracle Data Masking?

    Hi,
    Iam using HCM 9.2, PT 8.53, DB.11.2.0.2.
    What is this particular navigation does??
    PeopleTools >Utilities> Administration >Oracle Data Masking
    does this encrypts the value in the specified field??
    Suggestions welcomed !!
    Aravind.

    Repeated start/stop or redeploy causes memory leak (7393267)
    Repeated start/stop or redeploy of an application causes memory to leak and the server has to be restarted to clean up the memory. New applications created in JDeveloper 11.1.1.0.1 will be configured with a Weblogic Application Lifecycle Listener to handle this scenario. For older applications migrated to 11.1.1.0.1, the listener will need to be manually added to the weblogic-application.xml of the application to solve this issue.
    <listener>
    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
    </listener>
    From : http://www.oracle.com/technetwork/developer-tools/jdev/knownissues-096030.html

  • What is the use of master data listed in infoprovider?

    Dera sirs,
    I noticed that some master data is listed in infoprovider. If someone  can explain me in which cases this master data listed in infoprovider is used for report.
    sorry to post this question but I don't find the response in this forum.
    Thanks in advance for you help.

    Hi Santo,
    Welcome to the SAP world.
    Take your thread data/question data of SDN for example
    Master dara here is: User ID ( your user id ) Name, Country etc which can not be changed
    Transaction data here is: Number of Views on this thread by other users ( daily increases)
                                         Points given by you etc.
    With the help of master data we can easily find out who is this user of this question and his contact details etc.
    Post as many threads as you can your master details will not be changed in the SAP SDN.
    Thanks,
    Ram.

  • What is the use of # in data declaration

    hi experts,
    i am working in one of the old programs, where in data declaration they have used -
    data: matnr like mara-matnr,##
             mfrpn like mara-mfrpn,##
    and when i work in front end editor (4.7c), these data come in red colour. i know when i comment any line with (*), that line comes in red colour.
    i want to know why these lines comes in red colour.
    is it any pseudo comment of older version or what.
    plz rectify my doubt.
    Thanks.
    Sri.

    Hi Sakthi,
    means a character that cannot be displayed. Probably thes are control characters from you old system, e.g. linefeed, tab, carriage return or the like.
    The lines are displayed in red because the editor does not know how to handle. So # is ignored. You can delete the characters to have a better look or you can do the same as the editor does: Ignore them. There is definitely to syntactcal meaning at all.
    Regards,
    Clemens

  • What is the use of Data packet dim with Virtual cube with services

    Hi Friends,
    Could anybody tell me what is the use of Packet dimension in Virtual cube with services , It cannot contain data persistently ,Just fetch at runtime,Then there is no Physical load happening,Then why it should be automatically created for this??
    Message was edited by: Pradeep choudhari

    Hi Maik,
    Unit dimension will not be created automatically until and unless you have keyfigure referning units..
    But my question is : Why should we have data pack dimension , which is useless in this case of Virtual cube with services.It should not be created automatically!! What do you say??

  • What are the uses of diffrent concepts in data warehousing

    What are the uses of diffrent concepts in data warehousing? Why?
    naveen

    Hi,
    Your statement is correct. To be crisp, the portal offers a single point of access to SAP and non-SAP information sources, enterprise applications, information repositories, databases and services in and outside your organization—all integrated into a single user experience. It provides you the tools to manage this knowledge, to analyze and interrelate it, and to share and collaborate on the basis of it.
    With its role-based content, and personalization features, the portal enables users—from employees and customers to partners and suppliers—to focus exclusively on data relevant to daily decision-making processes
    To read more visit,
    http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
    Regards
    Srinivasan T

  • What is the use of security-constraint tag in web.xml

    what is the use of following tag , and how to use that, and where to use that tag.
    <web-resource-collection>
    <web-resource-name>SecureOrderJSP</web-resource-name>
    <descrip<url-pattern>/order/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name></role-name>
    </auth-constraint>
    </security-constraint>tion>Protect the Order JSP Pages </description>

    Hi,
    You can refer this link
    http://www.whizlabs.com/tutorial/scwcd/j-scwcd-7-5.html
    give the complete description of your doubt
    Thanks,
    Snigdha Sivadas

  • What is the use of hsqldb-ds.xml in jboss

    Hi Guys,
    What is the use of hsqldb-ds.xml in jboss deploy folder
    i have my ds file atg_ds.xml in same folder how it will identify our ds file

    Oracle ATG Web Commerce - Configuring Databases and Database Access
    Quoting from link:
         JBoss comes with its own demo database, Hypersonic (note the datasource hsqldb-ds.xml in the /deploy directory).
    I am not sure how it's working in ur case.
    Thanks,
    Nitin.

  • What is the use of jsp when compare with Struts

    what is the use of jsp when compare with Struts

    JSP Tag Libraries are great for reusable content formatting and ligic.
    For example, let's say you have this Shopping site. Each item you sell is stored in a database, and you get them out depending on Catagories, creating a List of ItemBeans. You allways want to display the items with a catagory header, then a <table> with the item number, the description and the price.
    Instead of creating a bunch of logic in the JSP that does this, you can pass it on to a Tag that might look like this in your JSP:
    <shopping:itemTable catagory="${selectedCatagory}" items="${itemsForCatagory}" />
    This would make the JSP easier to read and work with.
    The actual uses are incredible. Have you used the <jsp:useBean ...> tag? That is an example of a use of the Custom Tag Libraries.
    Furthermore, look into JSTL (JSP Standard Tag Libraries). They are a collection of tags (API by Sun, coding by Apache) used to do many of the standard actions you might want/need to do in JSPs, like a conditional tag (c:if only do something if the test is true), multiple-conditional tags (c:choos c:when c:otherwise) like an if [else if] else construct. Looping through an array or Collection (c:forEach), storeing values in scopes (c:set) formating numbers and dates (the fmt library), xml transformations (xml library), and lots of other things that you could replace scriptlet code with.

  • What is the use of T. code cj8g

    Hi All,
    Can anybody explain me what is the use of T.code CJ8G.If we execute this transaction. what is the effect on cost center and wbs element.before executing this Actual settlement. what configuration is to be done pior.
    Thanks in Advance.
    Chandu

    CJ8G is a T Code which processes the settlement collectively. You create a varaint (group of projects) and the execute the settlement, which then moves the cost out of the WBS elements to any receiver such as cost centres etc.,
    CJ88 processes the settlement individually.
    For settlement to run, you need to do certain configuration and maintain the master data;
    Configuration:
    Allocation Structure (Source Cost Elements, Settlement cost element/By Cost Element)
    Settlement Profile
    Master data:
    Maintain the settlement rules (receiver i.e, CTR-Cost Centre etc) on the WBS.
    Regards
    Sreenivas

  • What is the use of t-code MD74 - Reorganising independant requirements

    what is the use of t-code MD74 - Reorganising independant requirements

    basically it to delete the unwanted PIR for the last period.
    Let us say you planned PIR for 100.
    At the end of Period the total salae order were 90, PIR shows 10 excess, this has to be deleted. We can do it manually, but this can be done collectively
    pl go through the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/cb/7f9b7043b711d189410000e829fbbd/frameset.htm
    With the reorganization function, you can delete planned independent requirements for which there are no sales orders in the database. You can delete the planned independent requirements history.
    A key date is required to carry out reorganization which is calculated as follows: the system checks whether a reorganizing interval is maintained in Customizing for the plant that you want to reorganize. If an interval is maintained for this plant, the system uses this information to calculate the key date. If no interval is maintained for this plant, the system checks whether intervals are maintained for any other plants, and selects the largest interval to calculate the key date. You can change the key date proposed in the initial screen for reorganization.
    You can change the proposed key date when deleting the history. You can set a shorter interval for deleting histories than for deleting the requirements records.

  • What is the use of FOLDER NODE in SMARTFORMS?

    what is the use of FOLDER NODE in SMARTFORMS?
    please explain.

    Hi,
    By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Reward all helpfull answers
    Regards
    Omkar

Maybe you are looking for

  • This XML file does not appear to have any style information...

    hello, i am a new oracle spatial developer and also i am new in XML. i want to see the demos in oracle 10g enterprise edition. i imported the necessary dump files and i created the necessary user defined as mvdemo/mvdemo. when i want to see the demos

  • DTW giving '65171' error?

    Hi Everyone, I am using the DTW in an attempt to upload Special Prices for Business Partners. I have opened the relevant template files (from Start > All Programs > SAP Business One > Data Migration > Templates) and re-saved these as my 'work' files.

  • EXIF Information while in Safari?

    Is there any way (via customization or add-in) to allow Safari to display EXIF information from a jpeg photograph? I know that I could safe the image and load it into iPhoto or use some other piece of software (like CocoView) but I was curious if the

  • Restricted access to nodes in SOLAR01

    Hi I have setup restricted access to the nodes in SOLAR01 (details shared below in the for "information area") - now I need to enter the team members who are allowed to update documentation in each business process & step. It seems that access to a h

  • Best lens for T4i for shooting at night with bright lights?

    I am looking for a lens for my Canon Rebel T4i. I am a news photographer and I shoot fire, police, and ambulance scenes at night where there are flashing lights like this: https://farm4.staticflickr.com/3857/15157183675_9500a2f415_b.jpg. My current l