Extracting data from a field
Hi,
I have a comment field with manay information on it. One record will have text and date and numbers to it. I would like to pull the codes from 1001, 1002 up to 1012 from the field. Example comment:
1. 1005 9-30-09 update only
2. EDC 1008 9-15-09 changes
I would like to extract the data 1005 and add in a separate column or create a new field for Code. The second example, I would like to get the data 1008. The date that follows the number 1005 in example 1, I also would like to put in another field called Received Date except for codes 1001 - 1004.
Can you please give me suggestions on how to handle this? I am using Crystal 10.
Thank you!
Marinette,
Try this:
left(right(split({field},'-')[1],5),4)
I hope that helps,
Regards,
Zack H.
Similar Messages
-
How to extract data from the fields present in two or three tables
Hi Experts,
I have a scenario where i have to extract data from the fields of different tables. e.g. let there 2 tables which have some number of fields . I want the data of 3 fields each from these 2 tables. How can i get that??
SamHi
You can create view in tcode se11..
here you include all tables from which you want to fetch the data..
you need to give selection condition here
eg..
say select empname from table A, select empadd from table B.. where empno(from A)=empno(from B)
(note that you dont need to write queries like this.. i have just given u the example)
After creating the view you can create datasource in RSO2..
Regards
Swati -
Extracting data from XMLType field
Sorry, I don't know XMLQuery very well, this is probably a simple question. I'm trying to extract data into a tablular form from an XMLTYPE field. I'll use the following example to illustrate my question:
WITH a as (
select xmltype('
<bugStatus>
<status>
<bugCode>111</bugCode>
<bug number="12345" description="Low severity bug"/>
</status>
<status>
<bugCode>222</bugCode>
<bug number="67890" description="High severity bug"/>
</status>
</bugStatus>
') xmldata from dual)
SELECT x.*
FROM a, xmltable('bugStatus/status'
passing a.xmldata columns
status_code number path 'bugCode'
) x;
Running that code block extracts the "bugCode" fields successfully. But I'd like to also similarly extract the "bug number" and "description" fields. Ideally as independent columns. But even if only as a single line showing "bug number=.... description=....." I could then still parse it with SQL.
Can someone please point me in the right direction of how I can also extract that additional data?
Thanks!Thanks Marco, that was a great and simple solution to my original question.
However let me change the data slightly. I've tried to do something similar with this slightly modified XML data and I think I'm close, but not quite there. Can you assist with this new scenario?
WITH a as (
select xmltype('
<bugStatus>
<bugCode REF_ID="XYZ">
<status>
<bug number="12345" description="Low severity bug"/>
<bug number="67890" description="High severity bug"/>
</status>
</bugCode>
</bugStatus>
') xmldata from dual)
SELECT /*x.bugCode,*/ y.bugNumber, y.bugDescription
FROM a,
xmltable('/bugStatus'
PASSING a.xmldata
COLUMNS
bugCode char(3) path 'bugCode/@REF_ID',
mystatus xmltype path 'bugCode/status'
) x,
xmltable('/status'
PASSING x.mystatus
COLUMNS
--row_number for ordinality,
bugNumber number path 'bug/@number',
bugDescription varchar2(80) path 'bug/@description'
) y;
I think I'm close on this one but still getting the error:
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
Thank you! -
Monitoring using a Dashboard - How do you extract data from different fields?
I have a situation where a Dashboard needs to be made to monitor the state of different SAP systems.
Within individual Systems I know its easy to monitor the systems using CCMS (rz20), but my question is, How do you get to pull out the data that is displaying on the CCMS screen so that it could be taken and displayed on a dashboard. A dashboard could be a JAVA program that displays data from various such fields and displays maybe on a TV screen.
What I found so far was,
in rz20
Click on Performance Overview.
click on CPU Utilization
So, I place my mouse pointer on Value '2' for User CPU Utilization and hit F1 and then click on Technical Details
Now even if I place my mouse pointer on Value '1'' for User CPU Utilization and hit F1 and then click on Technical Details I get the same screen as above.
So, My question is, How do we determine what data sits in what field?
The aim again is to read these data and populate an external Dashboard.
The current Systems are not connected to SolMan as we do not have a SolMan setup yet. I am just trying to make a Dashboard using the existing CCMS tool.
Any thoughts or suggestions would be greatly appreciated.
Regards,
BevinHello Bevin,
There are other transactions : ST06N/OS07N to check performance data, see note:
#371023 - OS07/ST06: Monitoring operating system data
#1084019 - OS07N: New operating system monitor
All CCMS agents can copy data from the SAPOSCOL shared memory segment to the CCMS monitoring segment and transfer it to a central
monitoring system. This means that the data is visible in the CCMS monitoring architecture and is displayed both in the familiar transactions ST06
and OS07 and in the Alert Monitor (transaction RZ20)
Operating System Collector SAPOSCOL:
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/c4/3a6bff505211d189550000e829fbbd/frameset.htmk
Kind regards,
Tamas Istenes SAP Support Engineer
AGS Primary Support, Global Support Center Hungary -
How to extract data from xml field to dropdown list?
Hi,
I have designed a form and connected to a SQL server database using a web service. The XML data retrieved from wsdl connection is currently hold in a text field called 'XMLfield'. I need to extract the data such as 'PersonnelName' from XMLfield into a dropdown list. I used the following code and I do not get any error, but nothing come up and all my fields in the forms become bank when i click the dropdown list.
I would appreciate it if anyone can help me with this issue.
form1.DropDownList::click - (JavaScript, client)
xfa.datasets.data.loadXML(form1.XMLfield.rawValue,0,1);
form1.XMLfield.rawValue = xfa.datasets.data.saveXML();
var dataGroup = xfa.resolveNode("xfa.data.Timesheet.Personnel.PersonnelName");
var dataGroupLength = dataGroup.nodes.length;
if (dataGroupLength == 0) {
xfa.host.messageBox("There are no parts in the XML doc");
else {
for (var i=0; i < dataGroupLength; i++){
this.addItem(dataGroup.nodes.item(i).nodes.item(0).value);
Thanks,
RoyaHi Roya,
I think the loadXML will override your form data, so blanking out your fields. You could try loading the xml data at the xfa.datasets level (that is xfa.datasets.loadXML(form1.XMLfield.rawValue,0,1);) or using E4X to process the XML.
Another option though might be more rework is to use the Acrobat SOAP api which will return you a JavaScript object so you wont have to do any XML work.
There's a good intro to the SOAP api here, http://www.avoka.com/blog/page/11/.
Regards
Bruce -
Extract data from the fields in Acrobat Reader 7.0 using VB
I am looking for a way to extract fields values from the pdf file using VBA for Excel. I have Acrobat Reader 7.0. I have a script that would extract fields values from the PDF using Aformaut.fields.... But this script only works with Acrobat.Standard or PRO. When I am trying to instantiate/create Aformaut.app object I am getting an error message stating that ActiveX cannot create such object. Please advise.
Five months have passed, so it's unlikely this reply will help the
original poster. But should anyone be searching the archives, here's a
reply anyway.
Aformaut.app is part of Acrobat Professional. You have to buy that,
you can't script this in the free Adobe Reader.
Aandi Inston -
How to extract data from structures or create a datasource using structures
Hello Friends , I have a requirement to extract data from ECC fields, but when i go look the table i found only "structures" REBD_CONTRACT_REL_L and i confirmed with ecc team that there are no table available with these fields so how do i now extract the data in BI using the fields in ecc that exist only in these Structures.
Please help me to resolve this
Thanks
Regards
Soniyacheck tables
VIOBOV
(VIBDPLANOCC certainly not)
VICNCN table of the contrat
VIOROF table of the offers
VIBDOBJASS affectation of objects.
VICAINTRENO Affectation INTRENO / OBJNR / IMKEY
that will be a good start but ask again your functional persons.
If you want to upload data to BI you have to know the tables
bye
by the way a structure do not hold data. -
What key fields should i set in DSO extracting data from 2LIS_02_ITM
hi experts
i extract data from 2LIS_02_ITM into a DSO, i know the DSO isn't a must, becoz the 2LIS_02_ITM delta type is ABR, but i want to keep the info in change log.
so, what the key fields should i set in the dso? just ebeln and ebelp is enough?
hunger for ur advice and thanks a lot!If you extract ITM toa DSO you cannot maintain a log of every change....the data will come ....but when the data must be activated the reference of the ebelp ebeln will remain only a single record....if you want to maintain all the data you must create another field in extractor with you can difference all the changes for one single ebelp ebeln...
Regards -
Unable to extract data from an AS/400 system.
Hello experts.
We are trying to extract data from an AS/400 system but not having any success until now.
I´ll write down you the stepts that we have followed until now:
1.- Create a DB Connect between both systems
2.- Create a Source System from AS400 in the workbench under DB Connect Directory
3.- Generate datasources from tebles specified in the schema of the connection
break point -
At this point, we had a problem with some tables with at least one fieldname containing character "Ñ".
After asking some possible solutions to SAP, the told us this is not supported, as the system can´t have any object with character "Ñ", so the transfer structure was unable to activate with this fields in the datasource.
--- end of brek point --
4.- After those issues, we´ve decided to implement, in another schema, views from those tables which had the fieldnames with that character "Ñ", changing them to an "N".
5.- We´ve created another source system with that schema, and user than can see that schema.
6.- To be able to see those views, in transaction RSDBC, we had to deactivate the two checkboxes in the first window ( Choose tables and Choose views) .
7.- Right afeter, we could generate correctly the datasources from this logical tables.
8.- We have designed the hole dataflow for this datasources and everithing went rigth.
9.- But wen we tried to execute the infopackage to extract data from those logic tables, we cannot get any registers. Acctualy the charge remains yellow after the job have finished.
Please, I would appreciate any help you could give us on this problem.
Thank you very much
Regards
JoaquinI´d like ti add something to this thread, and maybe clarify a littel bit the question.
The only way that the BW system recognizes those logical tables, through transaction RSDBC is checking out the two boxes on this transaction, "Select Tables" and "Select Views".
I don´t know haw these logical tables have been created, bus does this mean that the are not neither tables or views as BW understand them.
Please, if someone knows anythin about this, answer to this thread.
Thank you very much.
Joaquin Sobrido -
Extracting data from Z-table from SAP R/3 to BW
Hi all
I want to extract data from a Z-table from SAP R/3 system to Bw system. Currently I am on BW 3.5. Since it is a Z table I dont have a standard extractor for it & I dont knw how to create it. Can anyone provide me with the step-by-step documentation of how to extract data from a non standard SAP table????Hi
You need to create Generic Datasource on the Z-Table you want to get data from
Go to RSO2 transaction to create generic datasource .
You need to give technical name of datasource under datasource type you want and click on create. Then you can give descrption and Application component under which u want see the datasource,
enter the z table name under view/ table and save.
here you can click on check boxes to make fields hidden or selection fields.
Regards
Ravi
Edited by: Ravi Naalla on Aug 25, 2009 8:24 AM -
How to extract data from 12 tables ?
Hi experts,
I want to extract data from 12 tables into bi.
How can we do this. And also can we extract some fields from
a structure?
Full points will be assigned.
Regards,
V N.Hi,
First you need to check if the tables are standard tables or custom tables. If they are standard tables check which extractors are using those tables.
If they are not being used by any of the standard extractors then you you need to create generic datasource for the same. The same hold true for custom tables as well. For custom tables, you'll need to create generic datasource. If you search the forum for generic datasources you'll get a lot of information.
Its very important that you understand the table relationships, data volumes, if delta is possible or not, data granularity, etc for your datasource design.
Cheers,
Kedar -
How to extract data from custom made Idoc that is not sent
Hi experts,
Could you please advise if there is a way how to extract data from custom made idoc (it collects a lot of data from different SAP tables)? Please note that this idoc is not sent as target system is not fully maintained.
As by now, we would like to verify - what data is extracted now.
Any help, would be appreciated!Hi,
The fields that are given for each segment have their length given in EDSAPPL table. How you have to map is explained in below example.
Suppose for segment1, EDSAPPL has 3 fields so below are entries
SEGMENT FIELDNAME LENGTH
SEGMENT1 FIELD1 4
SEGMENT1 FIELD2 2
SEGMENT1 FIELD3 2
Data in EDID4 would be as follows
IDOC SEGMENT APPLICATION DATA
12345 SEGMENT1 XYZ R Y
When you are extracting data from these tables into your internal table, mapping has to be as follows:
FIELD1 = APPLICATIONDATA+0(4) to read first 4 characters of this field, because the first 4 characters in this field would belong to FIELD1
Similarly,
FIELD2 = APPLICATIONDATA+4(2).
FIELD3 = APPLICATIONDATA+6(2).
FIELD1 would have XYZ, FIELD2 = R, FIELD3 = Y
This would remain true in all cases. So all you need to do is identify which fields you want to extract, and simply code as above to extract the data from this table.
Hope this was helpful in explaining how to derive the data. -
How to Extract data from a transaction..
Hi All
There are some transactions and report programs which are used daily to produce some results and the requirement is to extract that data into BW
so how can we extract information from a transactions and programs
Any help will be really appreciated and ofcourse rewarded ...
Regards
LisaYou can use the following methods
Method 1:
1> Create another ABAP program with logic to calculate all the fields, but instead of writing the result data to screenm, it should store it in a internal table and pass it to the extract structure.
2>Create a InfoSet query based on your ABAP program and use that InfoSet
3> Create a DataSource based on this InfoSet query and extract data from the DS to you ODS/Cube
In this method there is no Intermediate storage used.
Method 2:
1> Modify the report/transaction program to store the required data into a Transparent Table (u can create one from SE11) in addition to displaying on the screen.
2> Create a View on this transparent table (from SE11)
3> Create a DataSource on that view and extract data from that into your ODS/Cube.
Here, the required data is stored in the Table in addition to the DataTarget.
But, to implement either of these solution, you will need a decent ABAP knowledge. Else, it will give you a tough time!
Good luck!
Regards,
Sree -
Error while extracting data from data source 0RT_PA_TRAN_CONTROL, in RSA7
Hi Gurs,
I'm getting the below error while extracting data from data source 0RT_PA_TRAN_CONTROL, in RSA7. (Actullly this is IS Retail datasource used to push POSDM data into BI cubes)
The error is:
Update mode "Full Upload" is not supported by the extraction API
Message no. R3011
Diagnosis
The application program for the extraction of the data was called using update mode "Full Upload". However, this is not supported by the InfoSource.
System Response
The data extraction is terminated.
Procedure
Check for relevant OSS Notes, or send a problem message of your own.
Your help in this regd. would be highly appreciated.
Thanks,
David.Hi David,
I have no experience with IS Retail data sources. But as message clearly say this DS is not suppose to be ran in Full mode.
Try to switch you DTPs/Infopackages to Delta mode.
While to checking extraction in source system, within TA RSA3 = Extractor checker, kindly switch Update mode field to Delta.
BR
m./ -
Error while extracting data from ODS using Infospokes - URGENT
Hi all,
I am extracting data from an ODS using infospokes and nothing fancy, no selection criteria but I am getting an error message saying
Syntax error in row3(-> long text) Msg id = "RG" and msgno is 102
Any ideas on how I can see what is the exact error and how to debug this?
thanks
Sabrina.Hi Sabrina
service.sap.com can help you getting the details of your mesg.
I found one OSS note suitable to your mesg. So just check out OSS note # 671097. I hope this note will be some help to you. If not go and chk in the OSS you can find some more.
Here is the note details also
<i>Symptom
Error message RG102: 'Syntax error in &1, row &2 (-> long text)' appears in the request log of an InfoSpoke.
Reason and Prerequisites
The data source is an ODS object and the extraction mode is 'delta'. The cause of the error message is that the ODS extractor is unable to select the request ID (InfoObject 0REQUID) from the change log of the ODS object. However, the request ID is mistakenly provided in the field list of the ODS object on the InfoSpoke maintenance screen. --
Solution
Delete the 0REQUID InfoObject from the field list of the InfoSpoke and activate the InfoSpoke. As of the patch mentioned below, the request ID in the template tab is no longer provided.
BW 3.0B
Import Support Package 16 for 3.0B (BW3.0B Patch 17 or SAPKW30B16) into your BW system. The Support Package will be available once note 571699 with the short text "SAPBWNews BW 3.0B Support Package 16", which describes this Support Package in more detail, has been released for customers.
BW 3.1 Content
Import Support Package 10 for 3.1 Content (BW3.10 Patch 11 or SAPKW31010) into your BW system. The Support Package will be available once note 571747 with the short text "SAPBWNews BW 3.1 Content Support Package 10" has been released for customers.
To provide information in advance, the notes mentioned above may already be available before the Support Package is released. In this case, however, the short text still contains the words "preliminary version".
Refer to note 110934, which contains information about BW Support Packages.</i>
Regards,
Rohini
Maybe you are looking for
-
As a professional PS artist who works on files with sometimes hundreds of layers, I often need to transform many layers or groups at once. It is a nightmare to find that after the transformation, a mask did not get included in the transformation, (es
-
The bulk of my music is held on an external hard drive. The balance is music I have purchased off ITunes. About 8years ago I selected songs from all this music on the hard drive and the playlists are held in ITunes on this computer that I used 8 year
-
Very Urgent...problem while creating SQ01
Hi Friends, When I'm trying to create sq01 it is throwing the error like"the User Nanditha is not assigned to any user group". Pl help me to resolve this issue. Thanks in advance. Nanditha
-
Tnsnames not working for connction creation
1.1.0.22 I believe this was working for me x.x.97 the previous release. Not working now. If I enter manually all is well.
-
Use of old 3gs plus a new 4s ?
After buying a new 4s I first want to migrate all data and apps to it from my old 3GS This seems to be no problem. Thereafter - giving the old 3GS to someone in the family, who has a sim-card of his own 1. Can he keep all Contacts? 2. Can he use all