How to retrieve data from this XML
Hi
I am getting below XML file and I need to get data from the file into table in a database ( SQL SERVER ). Please kindly help to shred and load the data into a table
<claimInvoice xmlns="http://www.XYZ.com">
<INum>INum1</INum>
<dueAmount xmlns="">1</dueAmount>
<Billadd xmlns="">Billadd1</Billadd>
<remittance xmlns="">
<RemCom>RemCom1</RemCom>
</remittance>
<summary xmlns="">
<title>title1</title>
<accountAging>
<totalDue>1</totalDue>
</accountAging>
</summary>
</claimInvoice>
How Can i get data for the following :
INum,
dueDate,
Billadd,
RemCom,
title,
totalDue
Thanks
Kodi
see illustration below
declare @x xml='<claimInvoice xmlns="http://www.XYZ.com">
<INum>INum1</INum>
<dueAmount xmlns="">1</dueAmount>
<Billadd xmlns="">Billadd1</Billadd>
<remittance xmlns="">
<RemCom>RemCom1</RemCom>
</remittance>
<summary xmlns="">
<title>title1</title>
<accountAging>
<totalDue>1</totalDue>
</accountAging>
</summary>
</claimInvoice>'
;WITH XMLNAMESPACES ('http://www.XYZ.com' AS def)
SELECT t.u.value('def:INum[1]','varchar(50)') AS INum,
t.u.value('dueAmount[1]','int') AS dueAmount,
t.u.value('Billadd[1]','varchar(10)') AS Billadd,
t.u.value('(remittance/RemCom)[1]','varchar(50)') AS RemCom,
t.u.value('(summary/title)[1]','varchar(50)') AS title,
t.u.value('(summary/accountAging/totalDue)[1]','int') AS totalDue
FROM @x.nodes('/def:claimInvoice')t(u)
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Similar Messages
-
How to retrieve data from catsdb table and convert into xml using BAPI
How to retrieve data from catsdb table and convert into xml using BAPI
Points will be rewarded,
Thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
This is not your requirment but u can try this :
CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
GRANT READ ON DIRECTORY text_file TO fah;
GRANT WRITE ON DIRECTORY text_file TO fah;
DROP TABLE load_a;
CREATE TABLE load_a
(a1 varchar2(20),
a2 varchar2(200))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY text_file
ACCESS PARAMETERS
(FIELDS TERMINATED BY ','
LOCATION ('data.txt')
select * from load_a;
CREATE TABLE A AS select * from load_a;
SELECT * FROM A
Regards
Faheem Latif -
How to retrieve data from a view.
HI,
I want to retrieve the values of the <b>Field MNTXT from the view V_T530</b>.
Please let me know how i can retrieve data from this view.The Select statement doesnt work on a view.
Regards,
BhavikaHi kumar,
By using select stattement you can fetch from view.
Here viaufkst is view.
For it is working. please check.
select (g_selfields_tab) from viaufkst
into corresponding fields of table order_itab
for all entries in order
where "(g
aufnr in order and
equnr in equip and
priok in prior and
iphas = '3' and
ilart in acttyp and
qmnum in notif and
werks = plant and
auart in ortyp and
getri in date.
please try.
with Regards, -
How to Retrieve data from Variant Table
Can anyone help me by telling how to retrieve data from variant table which was created by user. I am able to see data of variant table only thru cu60 transaction but not se11. I s there any function module to do this?
Hello Mohan,
if u already have data and u want to populate it in F4 help then use below code -
u Have to make use of FM - 'F4IF_INT_TABLE_VALUE_REQUEST'
REPORT ZGILL_VALUE_REQUEST .
data: begin of lt_all occurs 0.
include structure DYNPREAD.
data end of lt_all.
data: begin of lt_selected occurs 0.
include structure DDSHRETVAL.
data: end of lt_selected.
DATA: BEGIN OF lt_code OCCURS 0,
code LIKE zgill_main-PERNR,
END OF lt_code.
data no_dyn like sy-dynnr.
Parameters : ECODE like zgill_main-PERNR.
*parameters: pernr like pa0001-pernr .
no_dyn = sy-dynnr. "give the scren no directly or sy-dynnr in case of report.
At selection-screen on value-request for ECODE.
select PERNR into table lt_code from zgill_main.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ECODE'
dynpprog = sy-repid
dynpnr = no_dyn
dynprofield = 'ECODE'
window_title = 'Employee Details'
value_org = 'S'
DISPLAY = 'F'
TABLES
value_tab = lt_code
RETURN_TAB = lt_selected.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*if sy-subrc eq '0' .
write: 'success'.
*endif.
read table lt_selected index sy-tabix.
move lt_selected-fieldval to ECODE. -
How to retrieve data from edcauditentity table?
Hello!
I am interested how to connect to edcauditentity table and retrieve data from this table.
I have sql query but i don't have idea how to start. For now i can connect to LiveCycle and retrieve policy name.
Thank in advance!Hello Mohan,
if u already have data and u want to populate it in F4 help then use below code -
u Have to make use of FM - 'F4IF_INT_TABLE_VALUE_REQUEST'
REPORT ZGILL_VALUE_REQUEST .
data: begin of lt_all occurs 0.
include structure DYNPREAD.
data end of lt_all.
data: begin of lt_selected occurs 0.
include structure DDSHRETVAL.
data: end of lt_selected.
DATA: BEGIN OF lt_code OCCURS 0,
code LIKE zgill_main-PERNR,
END OF lt_code.
data no_dyn like sy-dynnr.
Parameters : ECODE like zgill_main-PERNR.
*parameters: pernr like pa0001-pernr .
no_dyn = sy-dynnr. "give the scren no directly or sy-dynnr in case of report.
At selection-screen on value-request for ECODE.
select PERNR into table lt_code from zgill_main.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ECODE'
dynpprog = sy-repid
dynpnr = no_dyn
dynprofield = 'ECODE'
window_title = 'Employee Details'
value_org = 'S'
DISPLAY = 'F'
TABLES
value_tab = lt_code
RETURN_TAB = lt_selected.
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*if sy-subrc eq '0' .
write: 'success'.
*endif.
read table lt_selected index sy-tabix.
move lt_selected-fieldval to ECODE. -
How to retrieve data from URL or querystring in bsp pages
hi
how to retrieve data from URL or querystring in bsp pages.
thanks
Edited by: Vijay Babu Dudla on Mar 23, 2009 7:35 AMHello Friend,
Vijay is correct.
REQUEST is a system object available in runtime of BSP application.
It is the object of interface IF_HTTP_REQUEST.
Use methof REQUEST -> GET_FORM_DATA( )
Regards
Krishnendu -
How to retrieve data from domain(Value Range) of the table
hi
how to retrieve data from domain(Value Range) of the table
thanksHello,
You can try using the FM: DOMAIN_VALUE_GET TB_DOMAINVALUES_GET.
BR,
Suhas
Edited by: Suhas Saha on Mar 24, 2009 10:08 AM -
How to retrieve data from excel sheet
Hi,
How to retrieve data from excel sheet into a java file.janu05 wrote:
If we append a $ in the end of the table name it is showing an error saying "invalid name,should not contain any invalid character or punctuation"Great, I'm very happy for you.
Unless that was a question. In which case you might what to tell us a little more.
Like which API you are using (assuming we are still on "reading an Excel sheet". -
How to retrive data from this inernal table
hi,
could u please explain clearly how to retrive the records from this structure
data: begin of itab.
include structure sflite.
data:end of itab.
how to retrive data from this structure could u plz give me a code with example.Hi,
TYPES: BEGIN OF struc1,
val1 TYPE c,
val2 TYPE c,
END OF struc1,
BEGIN OF struc2,
val type struc1,
val3 TYPE c,
val4 TYPE c,
END OF struc2.
DATA: l_f_str1 type struc1,
l_f_str2 type struc2.
START-OF-SELECTION.
l_f_str2-val-val2 = 'a'.
write : / l_f_str2-val-val2.
END-OF-SELECTION. -
How to retrieve data from table(BOM_ITEM)
Hi All,
I wrote webservices using axis1.4 to get BOM information from SAP.. funtional module is CAD_DISPLAY_BOM_WITH_SUB_ITEMS
webservices works fine..I'am able to retrieve data from Export Parameter..But not able to retrieve data from table
How to retrieve data from table(BOM_ITEM)..?
Cheers, all help would be greatly appreciated
VijayHi,
1. Create Page Process.
2. Select Data Manipulation
3. In category select "Automated Row Fetch"
4. Specify process name, sequence, select "On Load - Before Header" in point.
5. Specify owner, table, primary key, and the primary key column(Item name contains primary key).
6. Create a process.
7. In each item select "Database Column" in "Source Type".
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to retrieve data from MDM using java API
hi experts
Please explain me the step by step procedure
how to retrieve data from MDM using java API
and please tell me what are the
important classes and packages in MDM Java API
thanks
ramuHi Ramchandra,
You can refer to following links
MDM Java API-pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
webinr of java API
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
Following Fourm Threads will also help.
Java API
Java API
Re: usage of java API ,
Matching Record
Need Java API for Matching Record
Thanks and Regards,
Shruti.
Edited by: Shruti Shah on Jul 16, 2008 12:35 PM -
How to retrieve data from a web service
Hi
i am at very beginner level about web services.
I am searching for a simple example of retrieving data from a web services, but cant find.
How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
Can somebody point out or give an example?
Thanks in advanceHi,
just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
Frank -
How to retrieve data from inside the folders in SharePoint SSRS
Hi ,
How to get the data from inside the folders and subfolders.
How can I do that.
https://social.msdn.microsoft.com/Forums/en-US/15451351-4ee2-428c-a0b7-135810e4cbfa/action?threadDisplayName=ssrs-reports-sharepoint-list-datasource-how-to-retrieve-items-from-subfolders
Here the information is not given.
Regards
VinodHi Vinodaggarwal87,
According to your description, you want to retrieve data from sharepoint list in a sub folder. Right?
In this scenario, we should select the XML data source type and in the connection string provide the
List.asmx service URL when creating data source. Then we need to use the List web Service and specify "recursive" for ViewAttribute in Lists.asmx. For detail steps, please refer to the links below:
Generate SSRS report on SharePoint List with folders using List Service.
SSRS: how to specify ViewAttributes when creating a report against a SharePoint's list
If you want to set the ViewAttribute on CAML query level. You need add the view tag outside of query tag:
<View Scope="RecursiveAll">
<Query>
<Where>...</Where>
</Query>
</View>
Reference:
View Element (List)
ViewAttributes Recursive Scope not working SharePoint 2013 CAML Query to fetch all files from document library recursively
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
How to Retrieve data from database into another form ?
Good Day!
Am currently new at JSP. I've been studying it for awhile and still getting the hang of it. We are working on a project.
Editing a given data. We have to retrieve the given data and post it to another form "Editing form".
Since we can retrieve data using JSP but how are we going to post it to another form? I mean how are we going to transfer data from one form to another?
Can anyone help me with codes please..The client is a web browser.
The client submits a request (click a link, visit a form)
The server gets to respond to this
- look at request parameters from the client
- access database
- produce resulting html page
- send page back to client.
The standard pattern is to retrieve data from the database in java code, and then load that data into a bean.
You then make that bean available as an attribute
It is then available for use in your JSP - either <jsp:useBean> tag or using ${ELexpressions}
All you can pass from the client to the server is request parameters - which are always strings.
Draw a picture of where the information is, and the information flows. Very rarely does it go directly from one "form" to another.
Cheers,
evnafets -
How to retrieve data from virtual infotype?
Hi.
I'm trying to write an ABAP program that's retrieving data from infotype 2501.
If i'm looking at this table PA2501 from SE16, i can see that it's empty, but...
I have an HR program that's using the PNP and i can see in debbuging mode allot of data over there.
So, my question is: how can i get this data with a simple SELECT command? where is the data?
Thanks!
Barak.There may be no data physically stored in table PA2501, it may reside in other tables but programatically pulled by the infotype into internal tables. Surender has given a good example, there are many more examples like some fields are stored in another table. Like for infotype 105, some fields are stored in PA0105 and some are stored in PA0106 which are pulled and displayed on one infotype screen i.e. 105 and hence we do not have a screen for 106. It may be same situation.
If you have to have a SELECT access, then only way is to debug the code and see how it is pulling the data, which tables etc.
Maybe you are looking for
-
Can I authorize mulitple apple ids on the same device so that what is purchased on either account will be loaded in both devices without having to use the same ID? My wife has a laptop and an iphone 4s, I have a laptop and and iphone 4s, our two sons
-
System Monitoring for Satellite System in Solution Manager
Hi, I configured satellite system in solution manager through SMSY,and i created solution in dswp.I want to configure system monitoring through ccms agent,how to install ccms agent,how to configure system monitoring for satellite system in solution
-
Hi all, Is there a table (-s) that collect Profit Center Report or it should be get directly from JDT1 (profitcode)? What about marketing documents that do not make a Journal entry (e.g. Sales Quotation)? Thanks in advance, Vangelis
-
Hi, We are about to activate SD for business process with advertisement industry. We do not use IS Media since FI went live already. The business is to cove: 1. Advertisement in telephone book 2. Call center Since I am very new into this kind of indu
-
Hello there, 1. MDM with biztalk ... It's possible? or i need XI/PI? 2. Licenses? Goodbye, and thanks!