Need LIS Extraction Step by Step
Hi ,
Any one can give me a LIS Extraction Step by Step.
Already i've got some LIS Extraction steps, but i haven't clear with that.
MC18 – create field catalog
How to create this field catalog?
THanks,
Arun.M.D
Hi,
LIS
lis
Steps in LIS EXTRACTION:
T.code - :MC18 create field catalog
1. Characteristic Catalog
Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory Controlling, etc..
Catalog category 1. Characteristic catalog, 2. Key figures catalog 3. Date catalog Select characteristic catalog and enter, click on characteristic select the source table and it will be display the relevant source field and select the source field, copy + close, copy.
Save, similarly create key figures catalog
T.code : MC21 create infostructure
Example
Inforstructure : S789
Application 01
Choose characteristic select the catalog, select the fields, copy + close Choose key figures catalog select the key figures ,copy + close, save and generate
T.code MC24 create updating
Infostructure : S789
Update group : 01- Sales document, delivery, billing document ,enter Select the key figures click on rules for key figures give suggest rules, copy save and generate Click on updating (activate updating) Select the infostructure set periodic split 1. Daily, 2. Week, 3. Month, 4. Posting period Updating 1)No updating,2)Synchronous updating (V1), 3)As synchronous updating (V2), 4)As synchronous updating (V3),
T.code LBW0 - Connection of LIS Information structures to SAPBW Information structure : S786 Select the radio button-Setup LIS environment and Execute.
Select the radio button-Generate data source and Execute.
For Delta update:
Select the radio button-Generate updating and Execute Select the radio button -Activate / deactivate and Execute.
T.code SBIW Display IMG (implementation guide) Setting for applications specific data source logistics Managing transfer information structure setup of statistical data applications specific setup of statistical data perform statistical setup sales.
Choose activity
Setup Orders, deliveries, billing
Choose the activities enter the infostructure (S789), give name of the run, date of termination, time of termination, No. of tolerated faulty documents. Then execute
T.code RSA3 Extractor checker
Give the data source name eg. 2LIS 01S789 and execute, result will get some records Go to BW side replicate data source Assign infosource Create infocube Create update rules create infopackage and schedule the package with initialize delta process.
For delta update :
In R/3 side
T.code MC25, set update (V1) or (V2) or (V3)
T.code LBW0, choose generate updating and execute then choose activate / deactivate and execute
BW side - create infopackage and schedule the package with delta update.
First time if your scheduling the infopackage -in R/3 side T.code :MC25 -Udating set to No update,insted of selecting the update V1,V2,V3.
If your doing the Delta update:in R/3 side T.code :MC25-Updating set to either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button Active/deactivate and Execute.
and schedule the infopackage with delta update.
Modules for LIS : SD,MM, PP,QM.
Deltas for LIS:
After setting up the LIS environment, 2 transparent tables and 1 extract structure is generated for this particular info structure. Within transaction SE11 you can view the tables SnnnBIW1, SnnnBIW2 and the structure SnnnBIWS and the InfoStructure itself Snnn
The tables S5nnnBIW1 & SnnnnBIW2 are used to assist the delta update process within BW.
Extract structure SnnnnBIWC is used as an interface structure between OLTP InfoStructure and BW
The OLTP system has automatically created an entry in the control table TMCBIW. Within transaction SE16 youll see, that for your particular InfoStructure the field BIW active has the value X and the field BIW status is filled with value 1 (refers to table SnnnBIW1).
The orgininal LIS update program RMCX#### will be enhanced within the form routines form Snnnbiw1_update_.... and form Snnnbiw2_update
With the transaction SE38 youll see at the end of the program starting at line 870 / 1006, that the program is enhanced within a BIW delta update coding
Within the flag Activate/Deactivate the update process into the delta tables (SnnnBIW1/Sn5nnBIW2) is swichted on/off. In the table TMCBIW is defined, which table is active for delta update.
Note: The delta updating is client dependent !
Thanks,
JituK
Similar Messages
-
LIS Extraction Step by step instructions
Hello,
If any body will have LIS extraction step by step instruction. Could you please provide me
Thanks in Advance
Srilis
-
hi friends
i want some information on lis extraction in step by step
thanks in advance
regards
shafeeqDear Shafeeq ,
Look at the following steps :
LIS EXTRACTION
T.code - :MC18 create field catalog
1. Characteristic Catalog
Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory
Controlling, etc..
Catalog category 1. Characteristic catalog, 2. Key figures catalog 3.
Date catalog
Select characteristic catalog and enter, click on characteristic select
the source table and it will be display the relevant source field and
select the source field, copy + close, copy.
Save, similarly create key figures catalog
T.code : MC21 create infostructure
Example
Inforstructure : S789
Application 01
Choose characteristic select the catalog, select the fields, copy +
close
Choose key figures catalog select the key figures ,copy + close, save
and generate
T.code MC24 create updating
Infostructure : S789
Update group : 01- Sales document, delivery, billing document ,enter
Select the key figures click on rules for key figures give suggest
rules, copy save and generate
Click on updating (activate updating)
Select the infostructure set periodic split 1. Daily, 2. Week, 3.
Month, 4. Posting period
Updating 1)No updating,2)Synchronous updating (V1), 3)As synchronous
updating (V2), 4)As synchronous updating (V3),
T.code LBW0 - Connection of LIS Information structures to SAPBW
Information structure : S786
Select the radio button-Setup LIS environment and Execute.
Select the radio button-Generate data source and Execute.
For Delta update:
Select the radio button-Generate updating and Execute
Select the radio button -Activate / deactivate and Execute.
T.code SBIW Display IMG (implementation guide)
Setting for applications specific data source logistics Managing
transfer information structure setup of statistical data applications
specific setup of statistical data perform statistical setup sales.
Choose activity
Setup Orders, deliveries, billing
Choose the activities enter the infostructure (S789), give name of the
run, date of termination, time of termination, No. of tolerated faulty
documents. Then execute
T.code RSA3 Extractor checker
Give the data source name eg. 2LIS 01S789 and execute, result will
get some records
Go to BW side replicate data source Assign infosource Create
infocube Create update rules create infopackage and schedule the package
with initialize delta process.
For delta update :
In R/3 side
T.code MC25, set update (V1) or (V2) or (V3)
T.code LBW0, choose generate updating and execute then choose
activate / deactivate and execute
BW side - create infopackage and schedule the package with delta
update.
First time if your scheduling the infopackage -in R/3 side T.code :MC25
-Udating set to No update,insted of selecting the update V1,V2,V3.
If your doing the Delta update:in R/3 side T.code :MC25-Updating set to
either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button
Active/deactivate and Execute.
and schedule the infopackage with delta update.
***its been taken from one of the thread in SDN by RAJ , Thanks Raj
Hope it helps..
Thanks,
Krish -
Hi,
can somebody help me with the prerequisite steps for Extraction like - assigning logical system and RFC destination for BW and R/3.
also the step-by-step for all types of Generic and Business content...
extraction steps.
thanks.Hi Sunil,
Pls do check the link for step by step for generic xtraction
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
check the following
http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
business content
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
https://websmp203.sap-ag.de/co
http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
(navigate with expand left nodes)
also co-pa
http://help.sap.com/saphelp_nw04/helpdata/en/53/c1143c26b8bc00e10000000a114084/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fb07ab90-0201-0010-c489-d527d39cc0c6
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1910ab90-0201-0010-eea3-c4ac84080806
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff61152b-0301-0010-849f-839fec3771f3
LO Extraction
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
Check these links:
/people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
/people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
/people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
/people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
/people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
Re: LO-Cockpit V1 and V2 update
Also Refer this link:
http://www.sap-img.com/business/lo-cockpit-step-by-step.htm
FI-CO 'Data Extraction -Line Item Level-FI-CO
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a7f2f294-0501-0010-11bb-80e0d67c3e4a
FI-GL
http://help.sap.com/saphelp_nw04/helpdata/en/c9/fe943b2bcbd11ee10000000a114084/frameset.htm
http://help.sap.com/saphelp_470/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
http://www.sapgenie.com/sapfunc/fi.htm
FI-SL
http://help.sap.com/saphelp_nw2004s/helpdata/en/28/5ccfbb45b01140a3b59298c267604f/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/41/65be27836d300ae10000000a114b54/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/ee/cd143c5db89b00e10000000a114084/frameset.htm
How to do basic LO extraction for SAP-R3-BW
1. Go to transaction code RSA3 and see if any data is available related to your DataSource. If data is there in RSA3 then go to transaction code LBWG (Delete Setup data) and delete the data by entering the application name.
2. Go to transaction SBIW --> Settings for Application Specific Datasource --> Logistics --> Managing extract structures --> Initialization --> Filling the Setup table --> Application specific setup of statistical data --> perform setup (relevant application)
3. In OLI*** (for example OLI7BW for Statistical setup for old documents : Orders) give the name of the run and execute. Now all the available records from R/3 will be loaded to setup tables.
4. Go to transaction RSA3 and check the data.
5. Go to transaction LBWE and make sure the update mode for the corresponding DataSource is serialized V3 update.
6. Go to BW system and create infopackage and under the update tab select the initialize delta process. And schedule the package. Now all the data available in the setup tables are now loaded into the data target.
7.Now for the delta records go to LBWE in R/3 and change the update mode for the corresponding DataSource to Direct/Queue delta. By doing this record will bypass SM13 and directly go to RSA7. Go to transaction code RSA7 there you can see green light # Once the new records are added immediately you can see the record in RSA7.
8.Go to BW system and create a new infopackage for delta loads. Double click on new infopackage. Under update tab you can see the delta update radio button.
9.Now you can go to your data target and see the delta record.
find your scenario and find what data sources do you need on R3 side and ensure they are active as well:
http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm
find your scenario -> data sources -> go to R3 -> sbiw and activate required data source
replicate data sources in BW:
RSA1 -> source systems -> right click on your source system -> replicate
then activate your BC:
service.sap.com/bi -> BI Business Content -> General Information -> SAP BW Business Content - Activation
and execute infopackage (it should be delivered with BC)
Useful links:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
service.sap.com/bi -> BI InfoIndex
sdn.sap.com -> Business Information Warehouse -> How-To guides (under Quick Links)
Hope This Helps.
****Assign Points If Helpful****
Regards,
Ravikanth -
0CO_OM_NWA_1 Extraction Steps
I am working on some PS data and wish to extract data from 0CO_OM_NWA_1. I would like to know the extraction steps. Tried doing RSA3 in ECC but didn't get any records.
Can anybody help ?
Regards,
AJ.Ajay,
Thanks, that make a lot clearer.
basically the InfoSource 0CO_OM_NWA_1 contains all costs and quantities of the network activity i.e. actual, plan and commitment.
but the InfoSource 0CO_OM_NWA_2 contains the actual costs and quantities of the network activity.
So on top of this difference, the Datasource 0CO_OM_NWA_2 also Delta enable.
In that case, if our requirements is to capture all the costs and quantities of network activity, does it mean we only need to use 0CO_OM_NWA1? So we would have to schedule this to run as Full LOad in the Process Chain?
At the moment, I can see that 0CO_OM_NWA_1 and 0CO_OM_NWA_2 is setup in our system.
0CO_OM_NWA_1 run as Full Load in Process Chain, and 0CO_OM_NWA_2 run as Delta Load in Process Chain.
What I confuse with this is if I have network 1000, with cost $2000 and Quantity 30.
When 0CO_OM_NWA_1 is run, the records will be picked up.
AND
When 0CO_OM_NWA_2 is run, the records will be picked up also.
Isn't this coz duplicate record in the cube then?
Please help. -
Need detail information, steps would be nicer, to upgrade from Exchange 2003 to Exchange 2010 to setup in test system first then try on production, since not much room for downtime, thanks bekir
Hi,
Overview of the upgrade progress from Exchange 2003 to Exchange 2010 including the following steps:
Installing Exchange 2010 within your organization on new hardware.
Configuring Exchange 2010 Client Access.
Creating a set of legacy host names and associating those host names with your Exchange 2003 infrastructure.
Obtaining a digital certificate with the names you'll be using during the coexistence period and installing it on your Exchange 2010 Client Access server.
Associating the host name you currently use for your Exchange 2003 infrastructure with your newly installed Exchange 2010 infrastructure.
Moving mailboxes from Exchange 2003 to Exchange 2010.
Decommissioning your Exchange 2003 infrastructure.
For more details, please refer to this following document.
http://technet.microsoft.com/en-us/library/ff805040(v=exchg.141).aspx
Best Regards. -
I have Adobe Bridge CS5 Vers.4.00.529.Can I update directly to Vers. 4.5?? Or do I need to go step by step 4.1 to 4.2 ect.??
Add some blank-mp3s to the playlist. Note you can trim residual silence from the start or end of tracks using Get Info, Options tab, but if they weren't orignally sequential tracks ripped from a gapless album you may still have some disjoint between tracks 2 & 3.
tt2 -
need a quick step by step how to use home share to import 500 songs in my Libruary into my little girls libruary; her birthday is today - my five min action item has had me up since 2am - help me not be a failure today
Hi there,
So, is your daughter's library on a separate computer and running on the same Wifi as yours? Just need to establish the scenario.
Cheers,
GB -
How to get LIS Extraction run on SD/ERP
Hi,
what steps to take to get LIS Extraction run on SD/ERP
for 2LIS_11_VAITM, 2LIS_11_VAHDR, 2LIS_11_VASTI, 2LIS_11_VAKON, 2LIS_11_VASTH ?
ThanXs
MartinHi,
take a look at
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50326ace-bac2-2b10-76bb-bd1a20ed2b57 -
Need to Extract the Data From "0BBP_TD_CONTR_2"
Hi,
I need to extract the data from SRM extractor "0BBP_TD_CONTR_2". I do not have much knowledge in SRM. Can any one give me the steps how can i check the extractor its not like R3. All kind of help will be appreciated.
ThanksNever mind guys i figured it out. Thnaks
-
Hi,
can anyone share a document with detailed steps on how to use and activate LIS structures?
I´m trying to use standard inforsource 2LIS_01_S001and I´m lost.
Best Regards
WalterHi ,
Re: LIS extraction Will help you
Renjith Kumar -
Hi firends,
1) want to now why we go for the LIS EXTRACTIONS?
2) what r the steps for the LIS ?
3) What r the Modules used for the LIS ?
4)where we can put the DELTAS for the LIS?
thanks and regards
shafeeq ahmedhi
steps for LIS:
Step by Step for LIS Extraction
LIS EXTRACTION
T.code - :MC18 create field catalog
1. Characteristic Catalog
Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory Controlling, etc.
Catalog category 1. Characteristic catalog, 2. Key figures catalog 3. Date catalog
Select characteristic catalog and enter, click on characteristic select the source table and it will be display the relevant source field and select the source field, copy + close, copy.
Save, similarly create key figures catalog
T.code : MC21 create infostructure
Infostructure : S789
Application 01
Choose characteristic select the catalog, select the fields, copy + close
Choose key figures catalog select the key figures ,copy + close, save and generate
T.code MC24 create updating
Infostructure : S789
Update group : 01- Sales document, delivery, billing document ,enter
Select the key figures click on rules for key figures give suggest rules, copy save and generate
Click on updating (activate updating)
Select the infostructure set periodic split 1. Daily, 2. Week, 3. Month, 4. Posting period
Updating 1)No updating,2)Synchronous updating (V1), 3)As synchronous updating (V2), 4)As synchronous updating (V3),
T.code LBW0 - Connection of LIS Information structures to SAPBW
Information structure : S786
Select the radio button-Setup LIS environment and Execute.
Select the radio button-Generate data source and Execute.
For Delta update:
Select the radio button-Generate updating and Execute
Select the radio button -Activate / deactivate and Execute.
T.code SBIW Display IMG (implementation guide)
Setting for applications specific data source logistics Managing transfer information structure setup of statistical data applications specific setup of statistical data perform statistical setup sales.
Choose activity
Setup Orders, deliveries, billing
Choose the activities enter the infostructure (S789), give name of the run, date of termination, time of termination, No. of tolerated faulty documents. Then execute
T.code RSA3 Extractor checker
Give the data source name eg. 2LIS 01S789 and execute, result will get some records
Go to BW side replicate data source Assign infosource Create infocube Create update rules create infopackage and schedule the package with initialize delta process.
For delta update :
In R/3 side
T.code MC25, set update (V1) or (V2) or (V3)
T.code LBW0, choose generate updating and execute then choose activate / deactivate and execute
BW side - create infopackage and schedule the package with delta update.
First time if your scheduling the infopackage -in R/3 side T.code :MC25 -Udating set to No update,insted of selecting the update V1,V2,V3.
If your doing the Delta update:in R/3 side T.code :MC25-Updating set to either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button Active/deactivate and Execute.
and schedule the infopackage with delta update.
3.Modules:
SD,MM, PP,QM..
4. Deltas for LIS:
After setting up the LIS environment, 2 transparent tables and 1 extract structure is generated for this particular info structure. Within transaction SE11 you can view the tables SnnnBIW1, SnnnBIW2 and the structure SnnnBIWS and the InfoStructure itself Snnn
The tables S5nnnBIW1 & SnnnnBIW2 are used to assist the delta update process within BW.
Extract structure SnnnnBIWC is used as an interface structure between OLTP InfoStructure and BW
The OLTP system has automatically created an entry in the control table TMCBIW. Within transaction SE16 youll see, that for your particular InfoStructure the field BIW active has the value X and the field BIW status is filled with value 1 (refers to table SnnnBIW1).
The orgininal LIS update program RMCX#### will be enhanced within the form routines form Snnnbiw1_update_.... and form Snnnbiw2_update
With the transaction SE38 youll see at the end of the program [starting at line 870 / 1006], that the program is enhanced within a BIW delta update coding
Within the flag Activate/Deactivate the update process into the delta tables (SnnnBIW1/Sn5nnBIW2) is swichted on/off. In the table TMCBIW is defined, which table is active for delta update.
Note: The delta updating is client dependent !
Regards,
M Kalpana -
I need to extract Recipient Email Addresses - is it impossible?
Hi I spent way too much time tonight trying to solve this problem, I hope someone brilliant can help.
I have a web store, and am CC'd on the receipts sent to my customers. So I have accumulated a large mailbox full of emails addressed to recipients other than myself.
I now need to extract those recipient email addresses into a .txt file.
Through my travels I discovered the simple script below. It's awesome except that it only works for sender addresses! When I try to tweak the code to extract recipient addresses it gives me an error.
Can anyone either modify this code, or point me in the right direction?
I just can't believe this should be so hard! (And it probably isn't except for me.)
Thanks.
tell application "Mail"
set selectionMessage to selection -- just select the first message in the folder
set thisMessage to item 1 of selectionMessage
set theseMessages to (every message in (mailbox of thisMessage))
repeat with eachMessage in theseMessages
set theFrom to (extract address from sender of eachMessage)
do shell script "echo " & quoted form of theFrom & return & " >> ~/documents/extracted.txt"
end repeat
end tell
------------------Nice! Austin Kinsella1 your script works well but in some cases return this:
<Undisclosed-Recipient:;@studio.com>
I think this mail was sended with multiple addresses.
Try this one, I made some little changes.
Good Luck!
tell application "Mail"
set selectionMessage to selection -- just select the first message in the folder
set thisMessage to item 1 of selectionMessage
set theseMessages to (every message in (mailbox of thisMessage))
repeat with eachMessage in theseMessages
set headerMessage to all headers of eachMessage as string
set recipientMessage to {}
set start to false
set char_f to ""
set char_o to ""
set char_r to ""
set char__ to ""
set previousChar to ""
repeat with c in headerMessage
set c to c as string
if start is true then
if c is ">" then exit repeat
copy c to the end of recipientMessage
end if
if c is "<" " then set start to true
if char_r is "r" and previousChar is "r" and c is " " then set char__ to " "
if char_o is "o" and previousChar is "o" and c is "r" then set char_r to "r"
if char_f is "f" and previousChar is "f" and c is "o" then set char_o to "o"
if c is "f" then set char_f to "f"
set previousChar to c
end repeat
set recipientMessage to recipientMessage as text
do shell script "echo " & quoted form of recipientMessage & return & " >> ~/documents/recipients.txt"
end repeat
end tell -
Need to extract data from R/3 to BI...
Hi Friends,
We need to extract some data available in the R/3 side to BI. I have written code in a function module which brings the output into the table e_t_data. now by attaching this function module, we created a Data source also. and then from BI side we replicated this Datasource. when tried to extract the data at BI from R/3, the process keeps on running with out bringing any data into BI.
Regarding this, i referred some docs in the forums. They say that we have to go with the approach followed in the FM 'RSAX_BIW_GET_DATA_SIMPLE'. I have done all the coding and settings similar to this function module. there is no syntax error and code produces the required output in e_t_data.In that FM they used some Select statement under the Open Cursor statement. But in our requirement, we are not selecting anything from Table. but we generate some data by some calculations and these data will be our output. If it is the case, can't we use that open cursor approach...? we need to get the output data not by any select statement but the output will be some internal table entries which are created by some calculations.
Please suggest how to handle this. That would be very much helpful. <removed_by_moderator>
Thanks in advance...
Regards
Ram
Edited by: Julius Bussche on Jul 14, 2008 2:17 PMIf you dont require any coding, then why dont you extract the data using the DB view/table or DB query. why you are using the FM.
If you are using the FM, then for the first extraction call it will pass the selectoption data into ranges and in the next extraction call it will open the cursor based on the input data and fetch the data according to the package size per extraction call.
For the generic data sources using the FM, the main thing lies in Fetching the data. If you study the standard FM 'RSAX_BIW_GET_DATA_SIMPLE', it fetches the data according to the number of records per extraction call.
At the BI, entire data cant be picked up at once. it will pick packets of data.
Regards
Kannaiah -
Hi,
I have an xml in a blob column and I need to extract the xml resultset into the (specified below) row/column format. So that i created a custom blob_to_clob function for this conversion and extracted below specified xml. Now I am executing the below specified queries for this xml to extract PanelSet, PanelId, Link values & attributes. but the problem is, I am not been able to relate the parent and child nodes or may be not able to identify, who belongs to who (parent--child). for e.g if I extract all link i.e status1, status2 etc of a particular Panel then i am not been able to access its (parent) Panel identification.please suggest me any solution.
--query using
--to extract PanelSet
select
extractValue(value(t),'/PanelSet/@name') panelset_name
from
(Select blob_to_clob(grp_menu) blobval
from OUG
WHERE user_group_seqno =9) c,
table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet'))) t
--to extract PanelID
select
extractValue(value(t),'/PanelID/text()') panelid
from
(Select blob_to_clob(grp_menu) blobval
from oug
WHERE user_group_seqno =9) c,
table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/PanelSet/PanelID'))) t
--to extract Panel
select
extractValue(value(t),'/Panel/@id') Panel_id,
extractValue(value(t),'/Panel/@name') Panelname
from
(Select blob_to_clob(grp_menu) blobval
from oug
WHERE user_group_seqno =9) c,
table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel'))) t
--to extract link
select
extractValue(value(t),'/Link/@name') link_name,
extractValue(value(t),'/Link/@type') link_type,
extractValue(value(t),'/Link/text()') link_value
from
(Select blob_to_clob(grp_menu) blobval
from oug
WHERE user_group_seqno =9) c,
table(xmlsequence(extract(xmltype.createxml(c.blobval),'/Menus/Panel/Link'))) t
--XML
<Menus>
<PanelSet name="0_Data center_A">
<PanelID>1-1</PanelID>
<PanelID>1-2</PanelID>
<PanelID>1-3</PanelID>
<PanelID>0-0</PanelID>
<PanelID>1-6</PanelID>
<PanelID>1-7</PanelID>
</PanelSet>
<PanelSet name="1_Data center_B">
<PanelID>2-4</PanelID>
<PanelID>2-5</PanelID>
<PanelID>2-6</PanelID>
<PanelID>0-0</PanelID>
<PanelID>2-7</PanelID>
<PanelID>2-8</PanelID>
</PanelSet>
<PanelSet name="2_Data center_C">
<PanelID>3-2</PanelID>
<PanelID>3-4</PanelID>
<PanelID>0-0</PanelID>
<PanelID>3-9</PanelID>
<PanelID>3-10</PanelID>
<PanelID>3-11</PanelID>
</PanelSet>
<Panel id="1-1" name="Sts">
<Link name="status 1" type="Module">forbidden</Link>
<Link name="status 2" type="Module">/forbidden</Link>
<Link name="status 3" type="Module">/forbidden</Link>
<Link name="status 4" type="Module">/forbidden</Link>
<Link name="status 5" type="Module">/forbidden</Link>
</Panel>
<Panel id="1-2" name="Adm">
<Link name="View 1" type="Module">forbidden</Link>
<Link name="View 2" type="Module">forbidden</Link>
<Link name="View 3" type="Module">forbidden</Link>
<Link name="View 4" type="Module">forbidden</Link>
<Link name="View 5" type="Module">forbidden</Link>
<Link name="View 6" type="Module">forbidden</Link>
<Link name="View 7" type="Module">forbidden</Link>
</Panel>
<Panel id="2-4" name="Position">
<Link name="viewer 1" type="Module">forbidden</Link>
<Link name="viewer 2" type="Module">forbidden</Link>
</Panel>
<Panel id="3-2" name="Administration">
<Link name="inquiry 1" type="Module">forbidden</Link>
</Panel>
<Panel id="3-4" name="Reconciliation">
<Link name="reconciliation 1" type="Module">forbidden</Link>
<Link name="reconciliation 2" type="Module">forbidden</Link>
<Link name="reconciliation 3" type="Module">forbidden</Link>
</Panel>
</Menus>
--Structure
-----Link abc
- Link abd
- Link abe
-----Panel ID 1-1-
- Panel ID 1-2--------link a--z (more than one)
-------- - Panel ID 1-3--------link N...
|PanelSet 0|-
------PanelID 2-1--------link N...
- PanelID 2-2--------link N...
-------- - PanelID 2-3--------link N...
|PanelSet 1|-
------PanelID 3-1--------link N...
-------- - PanelID 3-2--------link N...
|PanelSet 2|- PanelID 3-1--------link N...
--resultset required
Panel_set Panel_id link
0_Data center_A 1-1 Status1
0_Data center_A 1-1 Status2
0_Data center_A 1-1 Status3
0_Data center_A 1-1 Status4
0_Data center_A 1-1 Status5
0_Data center_A 1-2 View 1
0_Data center_A 1-2 View 2
0_Data center_A 1-2 View 3
0_Data center_A 1-2 View 4
0_Data center_A 1-2 View 1
1_Data center_B 2-4 viewer 1
1_Data center_B 2-4 viewer 2Message was edited by:
Sachin.Singhwith t as
(select xmltype(
'... your xml here ...
') as xml from dual),
panel_sets as ( select extractvalue(t2.column_value, '//*/@name') as panel_set,
extractvalue(t3.column_value, '//*' ) as panel_id
from t, table(xmlsequence(extract(t.xml, '//Menus/PanelSet'))) t2,
table(xmlsequence(extract(t2.column_value, '//*/PanelID' ))) t3
panels as ( select extractvalue(t2.column_value, '//*/@id' ) as panel_id,
extractvalue(t3.column_value, '//*/@name') as link
from t, table(xmlsequence(extract(t.xml, '//Menus/Panel'))) t2,
table(xmlsequence(extract(t2.column_value, '//*/Link' ))) t3
select s.panel_set, s.panel_id, p.link
from panel_sets s, panels p
where p.panel_id = s.panel_id
PANEL_SET PANEL_ID LINK
0_Data center_A 1-1 status 1
0_Data center_A 1-1 status 2
0_Data center_A 1-1 status 3
0_Data center_A 1-1 status 4
0_Data center_A 1-1 status 5
0_Data center_A 1-2 View 1
0_Data center_A 1-2 View 2
0_Data center_A 1-2 View 3
0_Data center_A 1-2 View 4
0_Data center_A 1-2 View 5
0_Data center_A 1-2 View 6
0_Data center_A 1-2 View 7
1_Data center_B 2-4 viewer 1
1_Data center_B 2-4 viewer 2
2_Data center_C 3-2 inquiry 1
2_Data center_C 3-4 reconciliation 1
2_Data center_C 3-4 reconciliation 2
2_Data center_C 3-4 reconciliation 3
18 rows selected.
Maybe you are looking for
-
Silent Installation of Oracle 10g on Windows XP
Hi, I was trying out "SILENT INSTALLATION OF ORACLE 10g ON WINDOWS XP", where I was getting the following error. Can you please help me out. COMMAND GIVEN : D:\database>d:/disk1/setup.exe -responsefile d:/disk1/response/custom.rsp -silent -nowelcome
-
Dear all, does anybody know what report is to be used to produce the form 390 for Spain (Form 390 - Annual summary of VAT / tax)? Thank you very much in advance Kind regards Birgit
-
How do I save a Tab Session as a Bookmark?
I am using Firefox 4.0. I have several windows open, each with multiple tabs. Each time I restart Firefox, I am gratified to see all of the previous windows and tabs pop open and are restored, however, the reload time is agonizing at my bandwidth. Ea
-
Apple 17" M7649 LCD Monitor & iMac G5 iSight to Mirror
Hi Gang, Need to pick your brains. I have a studio that I need to run a second monitor off my iMac G5 iSight 2.1Ghz. I know I can only run it as a mirror. I have picked up an apple 17" M7649 HD LCD Display from ebay for $20 ... How do I connect it to
-
Backup VHD size is much more than expected and other backup related questions.
Hello,I have few windows 2008 server and i have scheduled the weekly backup (Windows Backup) which runs on saturday. I recently noticed that the actual size of the data drive is only 30 GB but the weekly backup creates a VHD of 65 GB.This is not happ