Extracting Part of Field
Hi,
I want to extract all data to the right where the field contains 'User:' and to include User:
I am using this formula which works great.
=Right([Opportunity Description];(Length([Opportunity Description])-Pos([Opportunity Description];"User:")+1))
However when the field has data in but not 'User:' it brings back the whole field, I just want this to be blank.
Any ideas?
Thanks,
Gwyn
Hi Gwyn,
Please use below formula and let me know:
=If Pos([Opportunity Description];"User:")=0 Then " " Else Right([Opportunity Description];(Length([Opportunity Description])-Pos([Opportunity Description];"User:")+1))
Thanks
Arvind Shukla
Similar Messages
-
SAP Query - Extract part of field
Hi,
I created a query with a local field. I want to extract only the last 3 characters of a field.
Is there a LEFT or RIGHT function I can use like in Excel?
The field I want to extract it from is 12 characters long.
Hope someone can help.
Thanks, LupeYou can not fetch only 3 characters directly
There are 3 ways you can achieve this
1> Create additional field in the infoset and code the logic. (If this report is used frequently, you should use this)
2> Download the output of query in the excel and perform excel actions (Use this if the report is not frequently required. Does not take much time to fetch 3 characters)
3> if the report format is fixed, you can create ABAP report and code yo fetch only 3 characters -
How can I extract part of a PDF file and copy it to a new PDF file?
How can I extract part of a PDF file and copy it to another PDF file?
You will need Adobe Acrobat for this.
-
Extract part of xml into CLOB or XMLType
I need to extract part of XML into CLOB or some another type. But I don't need only extract data, by whole part od xml with elements. How could I do it in PL/SQL?
For example from this xml:
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>
I need to get:
"<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>"
THXThat's why I need to process every book alone - to know which authors belongs to single book.For that specific requirement, a single query would do.
Assuming variable "v_xml_clob" holds the XML document :
<bookstore>
<name>nameOfBookstore</name>
<address>1st Avenue 24, SF</address>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>
<name>Giada De Laurentiis</name>
<birth>1956</birth>
</author>
<author>
<name>xxx</name>
<birth>1955</birth>
</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>
<name>Rowning</name>
<birth>1977</birth>
</author>
<author>
<name>xxx</name>
<birth>1955</birth>
</author>
<year>2005</year>
<price>29.99</price>
</book>
</bookstore>You can do :
SELECT *
FROM XMLTable(
'for $i in distinct-values($d//book/author/name)
where count($d//book/author[name=$i]) = 1
return $i'
passing xmltype(v_xml_clob) as "d"
columns author_name varchar2(80) path '.'
AUTHOR_NAME
Rowning
Giada De Laurentiis -
im trying to update it to OS 5.0.1 or whatever, and it gets through everything until the extracting part and an error pops up. i have the most recent iTunes, i temporarily disabled the antivirus and firewall, and i reset my whole ipad... what now!
If you continue and you lose everything, you will be able to download most of the content again for free as long as you use the same Apple ID. You can read this about downloading past purchases.
http://support.apple.com/kb/HT2519
But before you continue and lose everything, try this.
Eject your iPad, quit iTunes and restart your computer. Then launch iTunes and go to Edit>Preferences>Devices. See if you have mutliple iPad backups showing in there. If you have multiple backups, delete all but one of them. Also check the box at the bottom that turns off auto sync .... Prevent iPods ......Click OK and Then quit iTunes.
Connect the iPad again and launch iTunes. Right click on your iPad name on the left side of iTunes and select backup. See if the iTunes will create a backup. If it does, after it finishes, click on the Summary Pane on the right and click on check for update. Try to update again.
If it all goes OK, after you update the iOS you can back to Edit>Preferences>Devices and turn on atuo sync again - assuming that is how you want to sync. -
Extract part of image & save with transparent background
What is the best way to extract part of an image & save it with a transparent background? I had hoped to the extracted images in 2 different ways.
Firstly just to paste into another image.
Secondly I'd like to try to open both the extracted item as well as the whole original photo in different video editing programs including Premiere Elements & sony Vegas. What is the best way to do this?Here's what you could do.
First make sure you have both images open in editor
1. Open the image and select the area using the magnetic lasso/quick selection tool.
2. Select Layer -> New -> Layer Via Copy
3. Now in the layers palette, right click the layer and select 'Dulicate Layer'
4. In the duplicate layer dialog, in document - select the other image, where you would like to paste the image to.
5. You and ajust the poition of the pasted area/resize it using the move tool or transform tool (Ctrl + T).
6. Save the image with a new name
If you simply want to save the image with transparency (after step #2) - you may -
> hide the previous layer and Save the image as a png/gif so transparency is presereved.
Hope that helps.
When you have teh saved documents you can open them up in different editors.
Regards, -
BLS, extract parts of an XML
Hi.
I may have asked before, but can not find the answer anywhere. I have an XML which I want to extract parts of. It this possible an how?
I want to get the part
/ns1:GetProductionSchedule
/ns2:GetProductionSchedule
/ns2:DataArea
/ns3:ProductionSchedule
and everything below it....
The XML is as follows.
<?xml version="1.0" encoding="UTF-8"?>
<GetProductionSchedule xmlns="http://Wonderware.WWEI.Services">
<GetProductionSchedule xmlns="http://www.wonderware.com/wwei/v0201/schemas">
<ApplicationArea>
<Sender>
<LogicalID/>
<ComponentID/>
<TaskID/>
<ReferenceID/>
<ConfirmationCode/>
<AuthorizationID/>
</Sender>
<CreationDateTime/>
<BODID/>
<UserArea/>
</ApplicationArea>
<DataArea>
<ProductionSchedule xmlns="http://www.wbf.org/xml/b2mml-v02">
<ID>000003176585</ID>
<Description/>
<Location>
<EquipmentID/>
<EquipmentElementLevel OtherValue=""/>
<Location>
<EquipmentID/>
<Any/>
</Location>
<Any/>
</Location>
<PublishedDate/>
<StartTime/>
<EndTime/>
<EquipmentElementLevel OtherValue=""/>
<Any/>
</ProductionSchedule>
</DataArea>
</GetProductionSchedule>
</GetProductionSchedule>Poul,
Ignore my previous message. Still mentally working in 11.5.
I assume you are using a tracer to display the extracted xml? I built a little test transaction and you were right. There does not appear to be any extracted xml in the Tracer.Message property. So I did used an XML Saver to save it using the path: "db://ProjectA/WEB/test.xml". Lo and behold the xml was extracted just as Michael and I had expected. So the problem appears to be in the Tracer rather than in the method. This is apparently a problem similar to trying to use a Tracer to display the xml output of a repeater. Which should be fixed in 12.1.
Let me know what you find out. I am working in 12.0.5.
Good luck,
Mike
Edited by: Michael Appleby on Oct 14, 2008 5:17 PM -
Extracting part of a subject title
Hello,
I'm looking to extract part of a subject title sandwiched between two special characters ([ & ]) and use that to create a new subject title in a new e-mail.
So for example, if the subject title of the e-mail says "[This is the main subject title] but not this part", I want to extract the bit between the two brackets and create a new subject title in a new e-mail which in this case would say "This is the main subject title". Obviously this text can vary.
Can this be done by use of filters within a Cisco ESA? Would appreciate any pointers how to extract it if it can be done.You can use either a content filter or a message filter.
Search using a regex like this one... (?<=\[)[^]]+(?=\])
I got that from here:http://stackoverflow.com/questions/2403122/regular-expression-to-extract-text-between-square-brackets
You may have to fiddle with it...
Then for the action, set the subject to "$MatchedContent" (look at the online help for the content or message filters) -
In TXN CO03, extract value for field "To Confirm" under tab "Qty/Activity"
Hi,
Can anyone help to extract value for field "To Confirm" under tab "QTY/ACTIVITIES" in tansaction CO03 at operatin level. There are three Activiti (CC-Set-up,CC-Labor Time & CC-Var-OH) under table control Activities. I need value of the field "To Confirm" for CC-Labor Time.
From where I can fetch this value,
1. Is this field available in some table?
2. Is there any FM with which the same can be extracted.
3. Any other method?
Regards,
Bibhuti.
Edited by: bibhuti kumar on Feb 20, 2008 6:16 AMHi,
pls use below table's and get detals you want
AFKO - Order header details
AFVC - Order operation details
AFVV - Order operation value/date's/qty details
the relation is below
Step1: AFKO; AUFNR-->AFKO-AUFPL
Step2: AFVC; AFKO-AUFPL = AFVC-AUFPL
take filed to APLZL,VORNR
Step3: AFVV;AFKO-AUFPL=AFVV-AUFPL, AFVC-AUFPL = AFVV-AUFPL
take filed to MGVRG,LMNGA,XMNGA,VGW02
Step4: (MGVRG - (LMNGA+XMNGA)) * VGW02
hope this will solve your problem
Regards,
Sankaran -
How to extract part of a pdf page and save that as a pdf page on its own?
I need to extract part of a pdf page. I know how to extract full page, but that is not what I want. I need to extract part of it, ideally, using the mouse to select some rectangular area, and export the selected part to either separate pdf page, or to export to vector graphics such as .svg
Is there a tool to allow one to do this? Currently I take screen shot of the page, and use other tools to extract the parts I want. thanks.thank you. The crop tools helps. But I am still not sure what to do after I select the area I want. I looked at Acrobat Help | Crop PDF pages
So, after I select the crop tool and select the area. Now what to do?
If I double click the cropped area, as the help says, it will just delete everything on the page except the cropped area.
How do I tell it to either export the selected area to .svg, or save the selected area to a separate one page pdf file? I do not want to modify the original PDF file, I just want to make a copy of the cropped area, either to .svg image, or to separate pdf file, so I can include that in another document. -
Extracting parts for film score
I am scoring a film, and I need to record live strings over my sampled strings.
I have quantized most of the score, but when I was working with the director and editor, I had to sometimes manually slide the in-point of the cue to line up with a specific frame or spot. When this happens, I often fall off the beat- meaning, that when I am in the matrix edit window, the first note may appear between two 16th notes, or something like that. Is there any way to adjust the arrange/matrix window to have the first beat land exactly where my cue begins so when I extract parts, they will land on a down beat? Otherwise, my part is going to be all over the place. Hopefully this makes sense…
Best,
AdamHi Adam ... how about this for a solution:
1 - create a new document for the cue that needs to shift. Save your document as "Cue Experiment" or something..
2 - set your left locator at the very beginning of the document - bar 1 or OO.00 -
3 - Set the right locator at the very beat that you want to become the downbeat (select the note, go to it with SPL and then set right locator by Song Position Line. making sure you zoom in very big because you are making such a small change
4 - Select all then go to the Menu: Region>Cut/Insert Time>Snip: Cut time and move by locators ... this will shave off a fraction of the time and could move the whole cue forward onto the right beat.
This may or may not do the trick but I am sure the film scorers on the Forum will surely come up with the right answer -
Hi ,
sorry I am posting it again here as this section is more appropritate one I guess.
I am not an extensitve sql or pl/sql writer. I am basically java developer, I want help in extracting a part of xml in clob data field.
the Clob field has data like this
field name is messagedata and say the table name is messages
<message>
<rootcause>Short to Lead-Time Requirement</rootcause>
<contactphone>123456</contactphone>
<contactname>Jonathan Keen</contactname>
<partname>Test, Name</partname>
<shutdownsource>94in HT</shutdownsource>
<enginesn>123456</enginesn>
<partnumber>testpart</partnumber>
<comment>test</comment>
<promisedate>Today</promisedate>
<productcenter>CANMC-Nozzles</productcenter>
<enginemodel>GG-8</enginemodel>
</message>
I need to extract value within the xml tags <partname>Test, Name</partname>
I tried
SELECT dbms_lob.substr(messagedata,50,dbms_lob.instr(messagedata,'<partnumber>'))
from messages
I know above will give 50 characters from the word <partnumber>, but how to extract exact vaue
I also tried
SELECT regexp_substr( (dbms_lob.substr(messagedata,50,dbms_lob.instr(messagedata,'<partnumber>')) ), '[^</partnumber>]+') "REGEXP_SUBSTR"
from messages;
it is giving wiered values , some of them are exact partnumber values but some are not.
how to fix this.
thanks in advance.
SK.Are you dealing with a xml clob? If so why not simply
SQL> with t as (
select to_clob('<message>
<rootcause>Short to Lead-Time Requirement</rootcause>
<contactphone>123456</contactphone>
<contactname>Jonathan Keen</contactname>
<partname>Test, Name</partname>
<shutdownsource>94in HT</shutdownsource>
<enginesn>123456</enginesn>
<partnumber>testpart</partnumber>
<comment>test</comment>
<promisedate>Today</promisedate>
<productcenter>CANMC-Nozzles</productcenter>
<enginemodel>GG-8</enginemodel>
</message>') cl from dual
select extractvalue(xmltype(t.cl), '//partname') partname
from t
PARTNAME
Test, Name
1 row selected.? -
Help needed in extracting pipe delimited fields in a CLOB data type
hi
i Had a table with clob field as shown below.
CREATE TABLE TRANSACTION_INFO
TRASACTION_ID CLOB,
LOG_ID NUMBER
Insert into TRANSACTION_INFO
(TRASACTION_ID, LOG_ID)
Values
('354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123);
Insert into TRANSACTION_INFO
(TRASACTION_ID, LOG_ID)
Values
('354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456);
COMMIT;As you can see Clob field is a pipe delimited data.Now i am able to extract the first two fields using the below querry.But it may be the right solution as
substring function fails if there is missing character in any on the fields.
Also when there is a null value in any of the fields,how can i be able to get as null value ? Basically i want to get the values in a delimited manner.
how can we do this ?
Select Substr (TRASACTION_ID, 1, Instr (TRASACTION_ID, '|')-1) field1,
Substr (TRASACTION_ID, 17, Instr (TRASACTION_ID, '|')+2) field2
From TRANSACTION_INFO;
output should be like as shown
FIELD1 FIELD2 FEILD3 FEILD4
354502002020910 000000610214609663 09/27/09 08:02:37
354599892020910 000000610214609663 09/27/10 08:12:47Thanks
Redehi Michael
Thanks for the solution and its my bad not mention that there is a possibility of having a null value at the start of the record also which RPLACE function no longer works for this case.
For example
with transaction_info (trasaction_id, log_id)
as (
select '354502002020910|000000610214609663||09/27/09 08:02:37|RNEW|DC25|MOTOROLA|8802939198', 123 from dual union all
select '354599892020910|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual union all
select '|000000610214609663||09/27/10 08:12:47|SOLD|DC23||8802939198', 456 from dual
select trim(regexp_substr (trasaction_id, '[^|]+', 1, 1)) f1,
trim(regexp_substr (trasaction_id, '[^|]+', 1, 2)) f2,
trim(regexp_substr (trasaction_id, '[^|]+', 1, 3)) f3,
trim(regexp_substr (trasaction_id, '[^|]+', 1, 4)) f4,
trim(regexp_substr (trasaction_id, '[^|]+', 1, 5)) f5
from (select replace (trasaction_id, '||', '| |') trasaction_id from transaction_info)
F1 F2 F3 F4 F5
354502002020910 000000610214609663 09/27/09 08:02:37 RNEW
354599892020910 000000610214609663 09/27/10 08:12:47 SOLD
000000610214609663 09/27/10 08:12:47 SOLD Now the last record is wrongly created.... -
New G/L Line item Datasource 0FI_GL_14 not extracting exchange rate field
Hi,
We are implementing new G/L Line item datasource and standarad field of this datasource KURSE - exchange rate field not extracting data.
Debugged standard extractor function module but field for exchange rate is not populating even there is a value in the base table BKPF.
Please advise on this.
Thanks
UDAY
Edited by: Udaybi on Apr 12, 2011 5:30 AMDid you solve the issue? I am facing the same issue too.
-
How to extract the image field content?
Hi, experts
I placed an image fields on an interactive form , user can upload jpg file into this field.
Could you pls tell me how to extract that using programming languages with the help of XML DOM?
I built a sample program that can retrive the content of the field, which is of type string, then when i save it to local drive, the image can not be displayed correctly.
could you pls tell me how to solve that?
br.
JunJun,
Did you figure this out on your own? Any one out there have an answer?
Leti
Maybe you are looking for
-
Error while creating product group
hi, i am getting error while creating Product group. Required parameters missing when calling up module Message no. M3749 Please suggest me.. how to cop this Regards, amit
-
Problems processing a large batch of data within a Weblogic 5.1 cluster
I have about exhausted my sources of information on this, so I ask the experts: The project I am involved with is attempting to build a scheduled process on a 5.1 cluster which will retrieve hundreds to thousands of
-
View by when opening or saving pdf files
I am currently using Adobe Acrobat X Pro 10.1.4 on Windows XP. When attempting to open or save a file through Acrobat or the Acrobat plugins, the file dialog box will start in the list view. If I attempt to change the view to details, it will change
-
How to adjust power output of time capsule
I was told that the power output of the time capsule is adjustable and that Apple does not ship the units at full power. Is this correct?
-
Interactive elements and even article zoom sometimes freezes on first page of articles in Adobe Content Viewer release 31 (tested on iPad 3 and iPad Air). If user swipe to second page and return back to first page, all elements works normal again. In