Link between XML table and a resource

I have registered an XML Schema in Oracle and the tables were automatically generated. I can access the data in these tables via "SELECT extractValue(value(i),'/factureExterne/codeTypeFacturation')
FROM <xml_table> i". I use WebDAV + ftp to upload my XML-files.
How can I retrieve the name of the file in the WebDAV folder that corresponds with the row in my table?
Regards,
Vincent Botteman

Vincent:
I found a way to get de conexion using the undocumented funcion sys_op_r2o.
sys_op_r2o transforms an XMLRef to the object_id of the target row, then its possible to join the XML Schema based table to the resource_view or path_view information.
The XDB$RESOURCE, store an XMLRef to the target row of the table and is available using extractValue(res,'/Resource/XMLRef') function.
Here the example:
SELECT r.path,extractValue(value(i),'/factureExterne/codeTypeFacturation')
FROM <xml_table> i,path_view r
where ref(i)=extractValue(res,'/Resource/XMLRef');
If you need to do this inside a trigger of the target table look at the example of the thread:
Undocumented function sys_op_r2o
Best reagards, Marcelo.

Similar Messages

  • Link Between OINV Table And OBTN Table

    I want to create relationship b/w A/R Invoice and Batch Number transaction Reports table.
    sap point out two tables of Batch Number Transaction Report RBTN and OBTN,Problem is that i never found any  table with name of RBTN.
    plz tell me what is RBTN table???why its not in sql database  and how i can create link b/w A/R invoice and Issue for production  .

    Hi Vinu.........
    Welcome to SAP Business One Forum............
    Please check the link between these tables........
    SELECT Distinct T1.BatchNum
    FROM IBT1 T0
    Inner Join OIBT T1 On T0.BatchNum=T1.BatchNum AND T1.ItemCode=T0.ItemCode
    INNER JOIN DLN1 T2 ON T2.DocEntry=T0.BaseEntry AND T2.ItemCode=T0.ItemCode
    inner join ODLN T3 on T2.DocEntry = T3.DocEntry LEFT JOIN INV1 T4 On T4.BaseEntry=T2.DocEntry Left Outer Join OINV T5 On T5.DocEntry=T4.DocEntry
    WHERE T0.BaseType = 15
    Hope this will help you........
    Regards,
    Rahul

  • Link between technical table and datasource - SE16

    Hi,
    I'm looking for the table in SE16 that gives me the association between my technical tables and my datasources/infosources:
    for example:
    I have table /BIC/B0000161000 and I want to know for which datasource this is the PSA table...
    Kind regards
    Joke

    already found the link: rstsods

  • Link between COMM_PRODUCT table and Pricing Reference Material

    Hello
      In CRM we have in transaction COMMPR01 the material, and in the Sales and Distribution tab, the field Pricing Ref. Prod. fille with a reference material. We are looking in the tables for this link, but have not found it. We have table CRMM_PRODUCT for the 1st material, and have looked in others, such as CRMV_PROD_SALESG, CRMM_PR_SALESA, but have been unable so far to find the link. Any answers on this?
    Thanks,
      George

    Hello George,
    Check PRICE_PRODUCT field of table CRMM_PR_SALESA .
    Also you can refer to table CRMM_PR_SALESG.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • How  to link between these tables and get the bom explosion

    tables : mast,stpo,makt
      SELECT AMATNR BMAKTX CIDNRK CMENGE C~MEINS  INTO CORRESPONDING FIELDS OF TABLE IT_COMP_IDEL FROM
                       MAST AS A INNER JOIN MAKT AS B ON AMATNR = BMATNR
                                 INNER JOIN STPO AS C ON ASTLNR = CSTLNR
                       WHERE AMATNR IN S_MATNR AND AWERKS IN S_WERKS.
    using cs13 to get the bom summary
    using these table to but i got only few materials only,
    but cs13 got more materials
    how can i solve that one
    Regards
    ds

    Hi,
    Just go through this program i think it will help u out.
    TABLES: MARA, MARC.
    TYPE-POOLS : fibs,stree.
    TYPES: BEGIN OF STRUCT_BOM,
            MATNR TYPE MATNR,          " Material Number
            WERKS TYPE WERKS_D,        " Plant
            IDNRK TYPE IDNRK,          " BOM Item
            STLAL TYPE STLAL,          " Alternative BOM
            STUFE TYPE HISTU,          " BOM Level
            OJTXB TYPE OJTXB,          " Object description (assembly)
           END OF STRUCT_BOM.
    *- table types
    types: t_bom type table of struct_bom.
    *Internal Tables to hold the BOM data.
    DATA: ITAB_BOM type table of STRUCT_BOM.
    DATA: WA_BOM TYPE STRUCT_BOM,
          wa_stb type stpox,
          wa_matcat type stpox.
    DATA: IT_STB       type standard table of STPOX,
          IT_STBC      type standard table of STPOX,
          IT_MATCAT    type standard table of CSCMAT.
    *-- to enter BOM DATA
    *Selection Options
    select-options: s_matnr for V_matnr,       "BOM Material
                    s_plant for V_werks.       "BOM Plant
    *Input Parameters
    parameters:     p_alter type stko-stlal,      "Alternate BOM
                    p_usage type stzu-stlan,      "BOM usage
                    p_appli type tc04-capid,      "BOM Application
                    P_CATE  TYPE STKO-STLTY DEFAULT 'M'.      "BOM Category
    INITIALIZATION.
    REFRESH ITAB_BOM.
    CLEAR WA_BOM.
    REFRESH IT_STB.
    REFRESH IT_MATCAT.
    START-OF-SELECTION.
    SELECT matnr
           werks
           stlal
           INTO CORRESPONDING FIELDS OF TABLE itab_bom
           FROM mast
           WHERE matnr IN s_matnr
           AND werks IN s_plant
           AND stlan = p_usage
           AND stlal = p_alter.
    CLEAR V_MATNR.
    CLEAR V_WERKS.
    DATA: WA_STB TYPE STPOX,
          WA_MATCAT TYPE CSCMAT.
        v_matnr = wa_bom-matnr.
        v_werks = wa_bom-werks.
        CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
          EXPORTING
            capid                 = p_appli
            datuv                 = sy-datum
            mktls                 = 'X'
            mehrs                 = 'X'
            mtnrv                 = v_matnr
            stlal                 = p_alter
            stlan                 = p_usage
            werks                 = v_werks
          TABLES
            stb                   = it_stb
            matcat                = it_matcat
          EXCEPTIONS
            alt_not_found         = 1
            call_invalid          = 2
            material_not_found    = 3
            missing_authorization = 4
            no_bom_found          = 5
            no_plant_data         = 6
            no_suitable_bom_found = 7
            conversion_error      = 8
            OTHERS                = 9.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Then just print whatever data u want it_stb, it_matcat tables.
    reward points if u find my answer helpfull.

  • Link between PDS name and resource

    Hi folks,
    I've established a link between /SAPAPO/TRPROD and Setup Matrices using PDS name and resource to use in a custom extractor for BI. This works well starting out at /SAPAPO/TRPROD and working my way over to the Setup Matrix tables using function modules BAPI_PDSSRVAPS_GETLIST and BAPI_RSSRVAPS_GETLIST.
    Now I want to validate that it's correct that I'm getting 0 results in a test system. Since /SAPAPO/TRPROD has some 3000 entries and /SAPAPO/SET_MID only 2, I figured it'd be easier if I take those two matrices and see if I can link them back to /SAPAPO/TRPROD (where I won't get any results). Does this make sense so far?
    Moving on ... I've found that in table /SAPAPO/RES_HEAD I can find the resource associated with a Setup Matrix. I can't figure out though how to link the resources to the PDS. Any ideas?

    Hi Jan!
    You say that you want to link the resources with the PDS, right? Do you mean that you want to find a way to discover the resource associated with the PDS activities? If so, you can do that by reading the activity information of the PDS and getting the resource maintained there...
    But I don't fully understand your business requirement... So let me know if I got your issue wrong.
    Will

  • Table link between contract document and billing document

    Hi,
    Please let me know the table link between contract data and its billing plan nnumber.
    Regards,
    bhaarathi.

    VBKD is the Table name
    if Ordertype "G"  <--- that means It is a contract
    From VBAK and VBAP you can get the Contract Details for the Order Type "G"
    Go to Table VBKD, with the contract and get the billing plan .
    FPLNR <--- is the Billing plan
    Here you get the relation Between Contract and Billing Plan

  • Is the transformation between XML document and 2 dimensions table important?

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks!

    To everyone:
    I am trying to write a paper on this topic.first ,i want to ask whether the transformation between XML data and table in RDBMS is important,because xml data is suitable to transfer from a point to another,but not for storage,so when the transfer begin a program(in DB2,the program is DB2 extender)should change the data format in table into a xml document.And vice versa,the destination point receive the xml document,maybe the same program would store it in table.
    so i wonder if such a program exists in the Oracle8i or later version,and the detail about how the program realizes above funciton.please tell me where can i find related paper or materials.
    thanks! That is all oracle XDK is for. You can transform query results to xml and xml back into RDBMS. Infact Oracle provides much more flexible way than a DB2 extender does. In DB2 you need to give a DAD before you get any XML. Oracle relies on the direct transformation of query results into XML and adds flexibility of XSL ontop of the data.
    You can get more information on XML technology section of OTN.
    Once you write the article can we get a chance to see it.

  • TABLE link between RPM Item and corresponding cProject

    Is there a table that shows exact link between RPM Item and corresponding cProject that is created automatically?
    Thanks

    use Table RPM_OBJ_LINK
    select on
    PROJECT_GUID= Item GUID
    OBJECT_TYPE = '0INMCPROJECT'
    Get cProject GUID from OBJECT_KEY.

  • Table for link between Accounting document and Billing document

    Which is the table for link between Accounting document and Billing document ?
    Thanks & Regards

    Ø Go to SE16N, enter table BSAD
    Ø In the Reference Field (VBELN) enter the Billing Document no. 
    Tips:
    Ø Make sure that only those billing documents will be considered whose accounting documents actually exists
    Ø No Accounting documents will be displayed for Credits, Free of charge orders and those acc. Documents which have been cancelled.

  • Table for link between Expense receipts and G/L account

    Hello,
    Could you give me the table where we we can see for all "expense receipt" the account of finance (G/L account associated to each expense)
    Thank you in advance

    Hi Tarek,
    Thatu2019s correct what Nandagopal is saying, there is no table where you can see all G/L account associated to each expense.
    However you can see the all your expense type relation to Wage type in view V_T706B4 and then respective wage type relation to symbolic account in view V_T706K.
    Then you can check the link of symbolic account to particular GL account at below IMG Path.
    Financial Accounting / Travel Management / Travel Expenses / Transfer to Accounting
    Please note that the link happens in below manner and we cannot get any direct link between Expense type and GL account.
    Expense Type -> Wage type -> Symbolic Account -> GL Account
    Do let us know for any query.
    Thanks,
    Vaibhav

  • Link between Fixed Asset and Purchase Order Tables

    Hi,
    I am working in Fixed Asset Report. I have a folllowing Doubts.Please clarify.
    1. How to link the Fixed asset tables with PO_HEADERS_ALL
    2. I took the Asset_Account field from FA_ASSET_DISTRIBUTIONS_V . But how to link with this table to other Fixed asset tables.
    Please give me the link between these tables. It will be grate helpful for me.
    Thanks,
    Prakash

    Hi,
    This should be mentioned/explained in [Oracle eTRM|http://etrm.oracle.com/] website (which is down for now). Others who already know the exact link may be able to help.
    Regards,
    Hussein

  • Difference between Temp table and Variable table and which one is better performance wise?

    Hello,
    Anyone could you explain What is difference between Temp Table (#, ##) and Variable table (DECLARE @V TABLE (EMP_ID INT)) ?
    Which one is recommended to use for better performance?
    also Is it possible to create CLUSTER and NONCLUSTER Index on Variable table?
    In my case: 1-2 days transactional data are more than 3-4 Millions. I tried using both # and table variable and found table variable is faster.
    Is that Table variable using Memory or Disk space?
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Check following link to see differences b/w TempTable & TableVariable: http://sqlwithmanoj.com/2010/05/15/temporary-tables-vs-table-variables/
    TempTables & TableVariables both use memory & tempDB in similar manner, check this blog post: http://sqlwithmanoj.com/2010/07/20/table-variables-are-not-stored-in-memory-but-in-tempdb/
    Performance wise if you are dealing with millions of records then TempTable is ideal, as you can create explicit indexes on top of them. But if there are less records then TableVariables are good suited.
    On Tables Variable explicit index are not allowed, if you define a PK column, then a Clustered Index will be created automatically.
    But it also depends upon specific scenarios you are dealing with , can you share it?
    ~manoj | email: http://scr.im/m22g
    http://sqlwithmanoj.wordpress.com
    MCCA 2011 | My FB Page

  • One to One link between VBRP items and BSEG items

    Hi All,
    I am working on a program where I have to link between VBRP table items against BSEG table items.
    But in BSEG, the invoice items are summarised based on Material Number, profit center etc..
    Is there a way to divide them, like any other table which holds the data transferred to accounting from sales exactly as it is in the invoice tables (VBRP).
    If there is no such table, can any one help me figure out a logic where I can didvide the items of BSEG table exactly like the items of table  VBRP.
    Any help or input will be very highly appreciated.
    Thanks in advance
    Phani

    Thanks for the Replies Ramani and Monika...
    I alraedy have a relation between the Accounting Doc and Billing Doc (VBRP-vbeln to BSEG-belnr).
    what I am looking for is the Item wise one to one mapping.
    i.e  Assume that we have 4 items in VBRP under one Billing Doc....
    2 items have Similar Materials (Assume XYZ) and same Profit center (eq..MNO123)
    and the Other 2 items have material (ABC) and Profit center (PQR6789).
    Now these appear in Bseg as only 2 items, all the items with similar materials, profit center etc will be clubbed in Bseg (While Accounting). I.e In BSEG you will only find 2 entries for the above 4 items of VBRP.
    I need to divide the data that I am getting from BSEG exactly as they are in VBRP.
    Pls suggest if you know of any table where I can find this.....If not a table.., then a way to figure out the division of these BSEG items exactly as the VBRP items.
    Brgds
    Phani

  • Link Between Service Notification and Sales Order

    Hi All,
    In our business process, we will create sales order from Service Notification and we can see the same in the Document flow. But when i check in the VBFA table, there are no entries. I would like to know how the document flow is updated without updating the VBFA Table or is there any other table gets updated for this flow.
    Please guide me.
    With Regards
    Vinu.N

    Hello Vinu
    For one Sales Order # figures in Notification header table- VIQMEL-VBELN.
    Similarly Notification # figures in Sales Order Header table- VBAK-QMNUM
    That is a solid link right there.
    I Also guess technical objects like Equipment, Serial number also form link between the Sales and Service Documents.
    Also check out the logic in document flow program RIBELF20, may be it will give you the clues to the problem.
    Hope this helps.

Maybe you are looking for

  • WHERE DO I STA

    Ok, i plug in my mp3 player and computer picks up that something is detected. Come up with three options to open folder to veiw files so i can do that but noithing on player so pointless, second option is to sync stuff to it click on that but media p

  • IP over fiber channel

    Idle curiosity question: Does anyone know whether or not Netware or OES supports IP over fiber channel?

  • I want to maximize front panel having tab control and tab control should be in centre programati​cally

    i tried this using panel bounds property of front panel using height width of tab tried to set position of tab but if the reference 0,0 on front panel is changed the tab goes to out of sight can any one help me in this regard i want to use this for h

  • User assigned to the process instance

    How to get in an automatic activity in PBL code, the user assigned to the process instance. In other words, if a previous activity is this.participant.next = Participant.findByName ( "ereyes") in the activity that follows I want to get that user. Can

  • IPhone - PDF Page Display Problem

    I am trying to display pages from a PDF included in my application to a Quartz context. I can get the first page to display correctly, but am having trouble displaying subsequent pages. In essence I am using the example shown in the Quartz 2D program