Extract Value after period
Hi,
I am trying to extract value of after each period.
I the table data is stored in this fashion 172.168.15.10 which is a IP address,
My Requirement is, I need first value in a query with must return 172
If I need value after second period it must return 168
Please suggest me how to write a sql query for the above requirement and using oracle 11i Enterprise edition as the database.
Thanks
Sudhir
This way
with data as
select '172.168.15.10' col from dual
mod_data as
select col || '.' col from data
select substr(col, 1, instr(col, '.') - 1) col1,
substr(col, instr(col, '.', 1, 1) + 1, instr(col, '.', 1, 2) - instr(col, '.', 1, 1) - 1) col2,
substr(col, instr(col, '.', 1, 2) + 1, instr(col, '.', 1, 3) - instr(col, '.', 1, 2) - 1) col3,
substr(col, instr(col, '.', 1, 3) + 1, instr(col, '.', 1, 4) - instr(col, '.', 1, 3) - 1) col4
from mod_data;
COL1 COL2 COL3 COL4
172 168 15 10
Similar Messages
-
Extracting data with zero values for periods without data
Hello Together,
i extracted data from our hfm application from period 1 to 3.
Now i found that some rows begin with period 2 or 3 because there are no data in period 1 or 2.
So my question is, how i can get zero values for periods with no data.
Hope someone can help me.
Many thanks in advance.
Martin
P.S.: Our actual hfm version is 11.1.1.3
editFor the periods with no data, HFM does not have a "0" to offer for the data extraction. Since the default data extract from HFM has each period on it's own row in the *.dat file, I don't understand your comment about rows starting with period 2 or 3. In the *.dat file the row for period 1 simply won't exist. Are you using a custom approach/tool for data extraction?
The only time HFM will offer a "0" where there is indeed no data, is if you extract derived data. You must include calculated data, and even then I believe HFM will only extract a "0" for the first period after a period where there was data, and only for flow accounts (Revenue/Expense). so if you have "100" in period 1, and no data in period 2, such that the derived value YTD for period 2 is "0", then you must include calculated values in the extract and you should see "0" for period 2. However, I don't believe HFM will extract "0" for period 3 - instead it will be blank/missing.
In general it could be very dangerous to force HFM to give zeros where there is no data.
--Chris -
For some business requirements, users want to extract values from a multi-value enabled lookup column
and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
How to extract values from a multi-value enabled lookup column and add items to another list based
on each separate value using SharePoint Designer 2013.
Important actions: Loop Shape; Utility Actions
Three scenarios
Things to note
Steps to create Workflow
How to merge values to a multi-value enabled column and add item to another list based on the
merged value using SharePoint Designer 2013.
Important actions: Call HTTP Web Service; Build Dictionary
Things to note
Steps to create Workflow
How to
extract values from a multi-value enabled lookup column and
add items to another list based on each separate value using SharePoint Designer 2013.
For example, they have three lists as below. They want to
extract values from the Destinations column
in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
Lookup1:
Title (Single line of text)
Lookup2:
Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
Lookup3:
Title (Single line of text), Country (Single line of text).
Important action
1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
Loops must also conform to the following rules:
Loops must be within a stage, and stages cannot be within a loop.
Steps may be within a loop.
Loops may have only one entry and one exit point.
2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
Three scenarios
We need to loop through the string returned from the look up column and look for commas. There are three
scenarios:
1. No comma but string is non-empty so there is only one country.
2. At least one comma so there is at least two or more countries to loop.
3. In the loop we have consumed all the commas so we have found the last country.
Things to note
There are two things to note:
1. "Find string in string (output to Variable:index)" will return -1 if doesn't find
the searched for string.
2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
field as "Lookup Values, Comma Delimited".
Steps to create Workflow
Create a custom list named Lookup1.
Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
Create a custom list named Lookup3, add column: Country (Single line of text).
Create a workflow associated to Lookup2.
Add conditions and actions:
Start the workflow automatically when an item is created.
Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
See the below in workflow History List:
How to merge values to a multi-value enabled column and add item to another list based on the
merged value using SharePoint Designer 2013
For example, they have three lists as below. They want to find duplicate values in the Title column in
Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
Lookup1:
Title (Single line of text)
Lookup3:
Title (Single line of text), Country (Single line of text).
Lookup2:
Title (Single line of text), Test (Single line of text).
Important actions
"Call HTTP Web Service"
action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
“Build Dictionary"
action:
The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
Things to note
The
HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
Use Get
d/results(0)/Id form
Variable: ResponseContent (Output to
Variable: maxid) to get the Max ID.
Use Set
Variable: minid to Current List:ID to get the Min ID.
Use Copy from
Variable: destianation , starting at
1 (Output to
Variable: destianation) to remove the space.
Steps to create Workflow
Create a custom list named Lookup1.
Create a custom list named Lookup2, add column: Test (Single line of text).
Create a custom list named Lookup3, add column: Country (Single line of text).
Create a workflow associated to Lookup3.
Add a new "Build Dictionary" action
to define the http request header:
Add a Call HTTP Web Serviceaction, click on
this and paste your http request.
To associate the
RequestHeader variable, select the Call action property,
set the
RequestHeaders property to
RequestHeader:
In the Call action, click on
response and associate the response to a new
variable: ResponseContent (of type Dictionary).
After the Call action add Get item from Dictionary action to get the Max ID.
Add Set Workflow Variable action to get the Min ID.
Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
Create item in Lookup2.
The final Stage should look like this:
Start the workflow automatically when an item is created.
Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
See the below in workflow History List:
References
SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
Workflow actions quick reference (SharePoint 2013 Workflow platform):
http://msdn.microsoft.com/en-us/library/jj164026.aspx
Understanding Dictionary actions in SharePoint Designer 2013:
http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
cancel). I only found this out when recreating your workflow on a similar, but much more complex list set.
To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace. I configured it as "Copy from
Variable: Countries, starting at
1 (Output to Variable: Countries), which takes care of this issue in those few cases.
Otherwise, WOW! AWESOME JOB! Thanks! :) -
Calculation of Depreciation on Net Book Value after posting Revaluation on
How to calculate the depreciation on Net book value after posting Balance sheet revaluation ABAW? The depreciation is been calculated on APC and not on NBV, as the APC of asset has been revalued after the revalution posting, ideally the next period depreciation should be calculating on the new NBV, but the system is not doing this. Is there any specific configuration that Iam missing here.
Kindly Reply.
JyotiThe forum [FPM - General|Enterprise Performance Management (SAP EPM); in which you originally posted your question deals mainly with the financial performance applications otherwise known as Enterprise Performance Management (EPM) carrying the BusinessObjects brand. Your question pertains to SAP [ERP Financials - Asset Accounting|SAP ERP Financials - Asset Accounting; which is covered by another forum. Therefore your message has been moved. Please adjust any bookmarks you might have and post to the appropriate area in the future, that way you are assured you will have the right audience reading your posts.
Thanks and best regards,
[Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
SAP Labs, LLC
BusinessObjects Division
Americas Customer Solutions Adoption (CSA) team -
Depreciation Stops after period 10 FY 2009
The asset has stop depreciation after period 10 FY 2009 and the remaining FY 2009 depreciation(2 months) go to FY 2010.
The particular asset has been created as a sub-asset and it has LINR as the depreciation key and the capitalization date is 31.01.2004 and first acquisition on 01.10.2005. The useful life for 01 Depreciation Area is 5 years and ordinary dep starts from 31.01.2004.The acquisition valuse of asset is 49635.66 USD.
It has been depreciating asset since 2006 i.e . 9927.13 USD per year. till 2008 but now in 2009 it is depreciating asset only for 10 months and remaining 2 months are being added up in next year.
Plzs. help me out in analysing the calculation and if any other information reqd. in this regard plzs. let me know.
Thanks in advance.Hi,
as it seems the useful life ends with period 10/2009. If you do not allow the depreciation to be calculated after end of the useful life, then the system will stop at the end of useful life. Check the depreciation phase used in 2009 and then you can check the base method assigned to your depreciation key.
In the Asset Explorer you can show the depreciation calcualtion on the planned values tab. In the depreciation trace there should be period factor used visible. If you use the old depreciation calculation there should be a perioc factor 10/12 (if your fiscal year uses 12 periods) in your fiscal year 2009.
According to your description I assume that you have a changeover method in the current depreciation phase assigned which is "changeover after end of useful life", what results in the continuation of depreciation in the next following fiscal year. You can find detailed documentation about changeover methods [here|http://help.sap.com/erp2005_ehp_03/helpdata/en/4f/71ddac448011d189f00000e81ddfac/frameset.htm]. And there is also an [Example for changeover after end of useful life|http://help.sap.com/erp2005_ehp_03/helpdata/en/4f/71ddb9448011d189f00000e81ddfac/frameset.htm] where your described system behaviour is documented.
Hope this help.
Regards,
Markus -
Consingment stock report with values and periods..
hello guys,
i have an issue here.. consignmet stock are "managed" within SD. Is there a standard report which cointains info about consigment stock, its amounts (values) and periods ?
Main point here - consingment stock is processed within SD, so for example t.code MB54 is not useful here .
Thanks guys !
Best regards,
LaimonasHi......MB54 wont help since that shows the Vendor consignment stocks.
Use MB52 creatively like this.
Goto MB52
Put your plant name.
In the section 'Selection : Special stock', Mark the check box and put 'W' in Special Stock indicator.
Choose the other settings as per your choice.
Execute.
Now you will see a whole lot of stocks along wioth the Consignment stocks. If you only want to see the consignment stocks, do like this
In the list, put you cursor on the column 'S' which is special stock (i think the 4th colm in the list). Now choose the filter icon and put the filter criteria a 'W' i.e. customer consignment stock.
You can save this is a variant with a name, say /ZCONS.
Now come back to the initial MB52 screen. In the bottom section for display options, put this variant name in the field Layout.
So now when you next run the report with this variant, you will only get the customer consignment stocks with their values.
Hope this helps. -
Extracting Values of a Field from a Database Table in SAP ECC System
Hi,
I downloaded Extracting Values of a Field from a Database Table in SAP ECC System Using MII 12.0
senario from sdn. I'm trying to do that senario in MII 12.05. But I have problem with section 6 in page 7 (you can supply senario from sdn)
"6- Under the loop of Repeater, use action u2018Rowu2019 to append just the string part of the WA which will display only values for field u2018Batchu2019"
I did not find WA elemen in Output element of Repeater_0
How can I create WA element?
Thanks.Cemil,
Set up a SAP JCo Interface action block. Use the RFC name RFC_READ_TABLE.
In the link editor map the table to "MARA", set RowCount to something small (20 is good sample size) and create an xml transaction property named FIELDS and copy the following into it:
<?xml version="1.0" encoding="UTF-8"?><FIELDS>
<item>
<FIELDNAME>MATNR</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>MTART</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>BSTME</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>XCHPF</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
<item>
<FIELDNAME>DATAB</FIELDNAME>
<OFFSET/>
<LENGTH/>
<TYPE/>
<FIELDTEXT/>
</item>
</FIELDS>
Then link the Transaction.FIELDS to SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/TABLES/FIELDS}. You may run into problems with two other fields and optionally they can be removed (set link type to remove xml). I usually remove them initially for testing. The two fields are:
SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/NO_DATA}
SAP_JCo_Interface_0.Request{/RFC_READ_TABLE/INPUT/DELIMITER} (or you can set this to something like a semicolon,";" or tilda,"~". I find it easier to caclulate position by length, but that is my own idiosyncrasy.)
Once you get this one working, we can explore how to do filtering on the dataset. Your output should be something like this:
<?xml version="1.0" encoding="utf-8"?>
<RFC_READ_TABLE>
<INPUT>
<DELIMITER />
<NO_DATA />
<QUERY_TABLE>MARA</QUERY_TABLE>
<ROWCOUNT>20</ROWCOUNT>
<ROWSKIPS>0</ROWSKIPS>
</INPUT>
<TABLES>
<DATA>
<item>
<WA>000000000000000023ROH 00000000</WA>
</item>
<item>
<WA>000000000000000038HALB 00000000</WA>
</item>
<item>
<WA>000000000000000043HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000058HIBE 00000000</WA>
</item>
<item>
<WA>000000000000000059HIBE 00000000</WA>
</item>
<item>
<WA>000000000000000068FHMI 00000000</WA>
</item>
<item>
<WA>000000000000000078DIEN 00000000</WA>
</item>
<item>
<WA>000000000000000088FERT 00000000</WA>
</item>
<item>
<WA>000000000000000089FERT 00000000</WA>
</item>
<item>
<WA>000000000000000098HALB 00000000</WA>
</item>
<item>
<WA>000000000000000170NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000178NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000188NLAG 00000000</WA>
</item>
<item>
<WA>000000000000000288HALB 00000000</WA>
</item>
<item>
<WA>000000000000000358HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000359HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000521HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000578FERT 00000000</WA>
</item>
<item>
<WA>000000000000000597HAWA 00000000</WA>
</item>
<item>
<WA>000000000000000598VERP 00000000</WA>
</item>
</DATA>
<FIELDS>
<item>
<FIELDNAME>MATNR</FIELDNAME>
<OFFSET>000000</OFFSET>
<LENGTH>000018</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Material Number</FIELDTEXT>
</item>
<item>
<FIELDNAME>MTART</FIELDNAME>
<OFFSET>000018</OFFSET>
<LENGTH>000004</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Material Type</FIELDTEXT>
</item>
<item>
<FIELDNAME>BSTME</FIELDNAME>
<OFFSET>000022</OFFSET>
<LENGTH>000003</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Purchase Order Unit of Measure</FIELDTEXT>
</item>
<item>
<FIELDNAME>XCHPF</FIELDNAME>
<OFFSET>000025</OFFSET>
<LENGTH>000001</LENGTH>
<TYPE>C</TYPE>
<FIELDTEXT>Batch management requirement indicator</FIELDTEXT>
</item>
<item>
<FIELDNAME>DATAB</FIELDNAME>
<OFFSET>000026</OFFSET>
<LENGTH>000008</LENGTH>
<TYPE>D</TYPE>
<FIELDTEXT>Valid-From Date</FIELDTEXT>
</item>
</FIELDS>
<OPTIONS />
</TABLES>
</RFC_READ_TABLE>
Add a repeater sourced on:
SAP_JCo_Interface_0.Response{/RFC_READ_TABLE/TABLES/DATA/item}
Link your repeater output to a tracer with this:
Repeater_0.Output{/item/WA}
What you will see in each tracer message is a single line of data with all the fields contents concatenated together. You can look up what each field in the string represents by the length of the field as returned in the Response segment of the RFC_READ_TABLE rfc. Then you can parse out the data you are interested in.
Give this a try and let me know how you succeeded.
By the way, I could not find the scenario you referred to. Can you post a link?
Regards,
Mike
Edited by: Michael Appleby on Jan 12, 2009 5:16 PM -
I recently installed a Netgear Wireless router for improved reception, but now my macbook loses connection through Airport after periods of inactivity. We have another older Macbook in the house, and it never loses connection. I never had this problem with the previous Linksys router, just limited range. Any ideas what is causing this? It's frustrating to have to frequently shout down and re-boot. That so far is the only way I can re-connect.
Adjust the Wireless Settings on your linksys router...
Open an Internet Explorer browser page.In the address bar type - 192.168.1.1
Leave username blank & in password use admin in lower case...
For Wireless Settings, please do the following : -
Click on the Wireless tab on the Setup page- Here Wireless Network mode should be mixed- Provide any non linksys network name ....
Name (SSID) box- Set wireless channel to 11- And wireless SSID broadcast should be Enabled and then click on "Save Settings" >>
Click on the Sub tab under Wireless > Wireless Security...
Change the Wireless security mode to WPA, For Encryption, select AES...For Passphrase input your desired WPA Key. For example , MySecretKey , This will serve as your
network key whenever you connect to your wireless network.
Do NOT give this key to anyone.
Click on Advanced Wireless settings>>
Change the Beacon Interval to 75 >>Change the Fragmentation Threshold to 2304 Change the RTS Threshold to 2304 >>Click on "Save Settings" ...
Try to look for the Wireless Network on your laptop and attempt to connect... -
How to print extract value in dbms_output.put_line
CREATE OR REPLACE PROCEDURE pr_srch_data
AS
xml_data_val xmltype:=null;
vPropertyName clob;
vstr varchar2(1000);
operation varchar2(1000);
vQuery VARCHAR2(4000):=NULL;
vQry VARCHAR2(4000):=NULL;
vPartyid VARCHAR2(2000):=NULL;
vPerson varchar2(4000);
BEGIN
FOR I IN (SELECT EAPP_XML_DATA
FROM binary_xml
WHERE extractvalue(eapp_xml_data,'/OLifE/Party[@id="Party1"]/Person/LastName') Like 'Rajesh%'
LOOP
BEGIN
SELECT extractvalue(value(t),'/Relation/@RelatedObjectID')
INTO vPartyid
FROM TABLE (XMLSEQUENCE (EXTRACT (xml_data_val,'/OLifE/Relation'))) t
WHERE extractvalue(value(t),'/Relation/RelationRoleCode')='Owner'
AND existsnode(value(t),'/Relation/@RelatedObjectID')=1 ;
END;
SELECT extract(value(t),'/OLifE/Party[@id='''||vPartyid ||''']/Person')
INTO vPerson
FROM TABLE (XMLSEQUENCE (EXTRACT (I.EAPP_XML_DATA,'/OLifE')))t;
dbms_output.put_line('vPerson'||'--'||vPerson);
END LOOP;
END;
But when i am printing vPerson i am getting error. I need to print that extract value.Things to remember (that you should know by now)
Please remind us of which version of 11g you are using in this post and all future posts.
Look at the FAQ under your sign-in name to see how to use the tag to retain formatting of your code as you have seen our examples to you look like.
We can't see your screen or your data so how about the error message and some data from your table?
Please start using either XMLTable or XMLCast/XMLQuery as odie_63 as shown you.
What are you trying to do? -
Using XSLT to extract value of a XML node with namespace
I have a XML source code here.
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:job="http://www.pageuppeople.com">
<channel>
<title>SMH Jobs</title>
<link>internalrecruitment.smhgroup.com.au/jobsrss.ashx?stp=di</link>
<description>A listing of jobs available here</description>
<item>
<title>eCommerce Optimisation Advisor</title>
<description>A new and exciting opportunity exists for an experienced eCommerce Advisor to join</description>
<job:location PUReferenceID="3711">Sydney - Inner Suburbs & CBD</job:location>
</item>
</channel>
</rss>
I want to use XSLT to extract value of a XML node with namespace <job:location>, and the returned value should be string 'Sydney - Inner Suburbs & CBD'. I tried a few XSL code below, but failed with error or nothing was returned.
<xsl:value-of select="job:location" disable-output-escaping="yes"/>
<xsl:value-of select="job/location" disable-output-escaping="yes"/>
<xsl:value-of select="job\location" disable-output-escaping="yes"/>
<xsl:value-of select="location" disable-output-escaping="yes"/>
This might be an easy question for you, but I would appreciate if anyone can help.Hi Suncorp IT Learner,
We need to tell the XSLT that some elements are in another namespace. Copy the xmls declarations for the prefixes you need to use. Then use the xsl format as:
<xsl: value-of select=”job:location/@PUReferenceID”/>
In following issue, Chriztian has a good explanation:
http://our.umbraco.org/forum/developers/xslt/33353-XSLT-reading-XML-attribute-value
Thanks,
Qiao Wei
TechNet Community Support -
How Can i retain the Shared Variable Values after PC rebooting
Hi all,
I am facing a paculiar problem with Shared Variables. I have an application in which shared variables are used for data communication.
One of the application requirement is to retain the variable values eventhough PC is rebooted or started after crashing.
As per the my understanding, the variable values will retain eventhough the PC is rebooted. But here i can observe a paculiar problem like some library variables are retaing the values while some others not. I enabled logging for all the variables.
I tried many ways. like logging enabled, logging disabled, changing variable names, changing process names etc... But i am not getting a consistent behaviour.
I hope some you can help me in solving this issue.. "How Can i retain the Shared Variable Values after PC rebooting"
Thanks and Regards,
MirHi Blackperl,
Thanks for the post and I hope your well.
What do you mean by not getting consistent behaviour.. this will all depend on excatly when the crash happens i.e. before the write or after.
Surely a better method would be to log the data to a file during the reboot...
I beleived the value read back
will be the default value for the shared variable's data type.
The LabVIEW DSC 8.0 module adds more functionality to the shared variable, including initial values and alarms.
If you enable an initial value on a shared variable, when the variable
engine comes back on-line it will default to this value. Setting a bad
status alarm for the shared variable is also a good way of handling
this type of event. Additionally, if you are using a LabVIEW Real-Time
target such as Compact RIO or Compact FieldPoint, it is appropriate to
consider hosting the shared variable engine on the real-time target.
These devices have watch-dog capabilities and are typically the
hardware controlling the critical pieces of an application. Most
Windows or PC-based targets do not have these fail-safes.
I guess, if you could explain to me again that would be great. From my point of view, if I have a cRIO and a Windows PC. If the windows PC crashes, the cRIO will still update its shared variables. Then once the PC has started up its own shared variable engine, and the bindings are loaded, it will once again continue to update its copies of the variables.
Please let me know what you think,
Kind Regards,
James.
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! -
Extract abends after sometime without any errors in logs
Hi Folks,
I am implementing unidirectional simple replication for one schema (DDL & DML) without GG data pump and I am newer to GG.
Extract abends after sometime without any errors in logs. I doubt I did not configure exttrail/rmttrail properly.
What should be the commands to configure trails in this scenerio ?
Any suggestions ?
Regards
Edited by: LazyDBA11g on Aug 22, 2012 1:00 AMThanks Paddu for reply but I can not use DBLOGREADER as it is not compatible in my env
Use the TRANLOGOPTIONS parameter with the DBLOGREADER option in the Extract parameter file if the ASM instance is one of the following versions:
Oracle 10.2.0.5 or later 10g R2 versions
Oracle 11.2.0.2 or later 11g R2 versionsLastly I dont have connectivity issue with ASM.
Regards
Edited by: LazyDBA11g on Aug 22, 2012 1:03 AM -
Receiver Determination, condition to select receiver doesn't extract values
Dear all!
I have SAP PI 7.1
I am facing problem in Receiver Determination while using Condition to select receiver based on the values in the payload.
I need, if Identificador = 1 then receiver BC_1 and if Identificador = 2 then the receiver BC_2
My payload has the value:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p1="http://pruebas.endesa.es/AME4S_2">
<soap:Body>
<p1:MT_WS_SENDER_Q>
<IDENTIFICADOR>1</IDENTIFICADOR>
<OBJECT_ID>7600000009</OBJECT_ID>
</p1:MT_WS_SENDER_Q>
</soap:Body>
</soap:Envelope>
But, the trace shows following:
<Trace level="2" type="T">......extracting (new) for Extractor: XP /p1:MT_WS_SENDER_Q/IDENTIFICADOR </Trace>
<Trace level="2" type="T">......extracting values found: 0 </Trace>
I tried with double quotes, simple quotes, without quotes...
I tried too with a Receiver Rule (with context) and local rule with xpath....
Can someone please advise?
Thanks in advanced!!Hello,
/p1:MT_WS_SENDER_Q/IDENTIFICADOR = 1
Can you try //p1:MT_WS_SENDER_Q/IDENTIFICADOR = 1 ? I'm sure I read it somewhere here in SDN regarding the xPath difference for stateless and stateless XI 3.0 compatible version is an additional /. It's worth to try
Hope this helps,
Mark -
Manipulating condition value after being returned from IPC
Hi all,
How can we manipulate the condition rate data after the value is returned from IPC?
We tried using CRM_PRICING_I_BADI calling the method CRM_PRICING_I_MERGE. But it did not solve the issue.
Requirement is to read the data of a particular condition type from a preceedign document and then overwirte the conditon value of condition type in the current transaction with that old value from previous document.
Can this be achieved without using Java coding and manipulate the value after IPC has returned the conditon value and before it is being presented on GUI?
Please help me with your suggestions.
Regards,
David.Hello david,
You might ned to use the user Exit provided by the Pricing Engine to work this out. this will require Java coding.
Regards,
Tanu -
And operation in extract value
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Solaris: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
This is my input xml
- <OLifE>
- <SourceInfo>
<SourceInfoName>Client Profile</SourceInfoName>
</SourceInfo>
- <Activity id="Act1" PartyID="Party1">
<ActivityStatus tc="2">In Progress</ActivityStatus>
<UserCode>123456</UserCode>
<Opened>2010-08-17</Opened>
<ActivityCode>CP10001</ActivityCode>
- <Attachment>
<Description>LastScreenName</Description>
<AttachmentData>CP Create</AttachmentData>
<AttachmentType tc="2">OLI_ATTACH_COMMENT</AttachmentType>
<AttachmentLocation tc="1">OLI_INLINE</AttachmentLocation>
</Attachment>
- <OLifEExtension VendorCode="05" ExtensionCode="Activity">
- <ActivityExtension>
<SubActivityCode>CP20001</SubActivityCode>
</ActivityExtension>
</OLifEExtension>
</Activity>
- <Relation OriginatingObjectID="Holding1" id="Relation4" RelatedObjectID="Party1">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>
<RelationRoleCode tc="8">Owner</RelationRoleCode>
</Relation>
Here xml_data_val is the input xml.
BEGIN
SELECT extractvalue(value(t),'OLifE/Activity[@PartyID=/OLifE/Relation[RelationRoleCode/@tc=8]/@RelatedObjectID]/ActivityStatus/@tc'),
extractvalue(value(t),'/OLifE/Activity[@PartyID=/OLifE/Relation[RelationRoleCode/@tc=8]/@RelatedObjectID]/Opened'),
extractvalue(value(t),'/OLifE/Activity[@PartyID=/OLifE/Relation[RelationRoleCode/@tc=8]/@RelatedObjectID AND /OLifE/Activity/ActivityCode=CP10001]/UserCode'),
extract(value(t),'/OLifE'),
extractvalue(value(t),'/OLifE/Relation[RelationRoleCode/@tc=8]/@RelatedObjectID')
INTO nActstat,
vDate,
vUsercreated,
xml_data_val,
vPartyid
FROM TABLE
XMLSEQUENCE
EXTRACT (xml_data_val,'/TXLife/TXLifeRequest/OLifE')
)t;
dDate:=TO_DATE(vDate,'YYYY-MM-DD');
Exception
WHEN OTHERS THEN
ncode:=5;
nErrcode:=2003;
vStatus:='FAILURE';
vStatusinfo:='Required Element Missing';
Raise_application_error(-20201,'Required information not available');
END;
I am facing problem here is i am not able to retrive UserCode value.
Edited by: user13444979 on Dec 13, 2010 8:09 AMIs this what you are looking for ?
SQL> column ACTIVITY format A80
SQL> --
SQL> set lines 256 long 10000
SQL> --
SQL> VAR XMLTEXT CLOB
SQL> --
SQL> begin
2 :XMLTEXT :=
3 '<TXLife Version="2.15.00" xmlns="http://ACORD.org/Standards/Life/2">
4 <UserAuthRequest>
5 <UserLoginName>CPUser</UserLoginName>
6 </UserAuthRequest>
7 <TXLifeRequest>
8 <TransRefGUID>10bc80e7d60e59b0:a134d0:10d7c4674ad:-7ffc</TransRefGUID>
9 <TransType tc="301">OLI_TRANS_SRCPAR</TransType>
10 <TransExeDate>2010-08-24</TransExeDate>
11 <TransExeTime>12:01:01</TransExeTime>
12 <InquiryLevel tc="3">OLI_INQUIRY_OBJRELOBJ</InquiryLevel>
13 <InquiryView>
14 <InquiryViewCode>CS-301-002</InquiryViewCode>
15 </InquiryView>
16 <MaxRecords>20</MaxRecords>
17 <CriteriaExpression>
18 <CriteriaOperator tc="2">AND</CriteriaOperator>
19 <Criteria>
20 <ObjectType tc="6">Party</ObjectType>
21 <PropertyName>LastName</PropertyName>
22 <PropertyValue>AXA</PropertyValue>
23 <Operation tc="1">OLI_OP_EQUAL</Operation>
24 </Criteria>
25 <Criteria>
26 <ObjectType tc="6">Party</ObjectType>
27 <PropertyName>GovtID</PropertyName>
28 <PropertyValue>123456789</PropertyValue>
29 <Operation tc="1">OLI_OP_EQUAL</Operation>
30 </Criteria>
31 <Criteria>
32 <ObjectType tc="6">Party</ObjectType>
33 <PropertyName>GovtIDTc</PropertyName>
34 <PropertyValue>1</PropertyValue>
35 <Operation tc="1">OLI_OP_EQUAL</Operation>
36 </Criteria>
37 <Criteria>
38 <ObjectType tc="6">Party</ObjectType>
39 <PropertyName>ResidenceState</PropertyName>
40 <PropertyValue>AL</PropertyValue>
41 <Operation tc="1">OLI_OP_EQUAL</Operation>
42 </Criteria>
43 <CriteriaExpression>
44 <CriteriaOperator tc="2">AND</CriteriaOperator>
45 <Criteria>
46 <ObjectType tc="7">Activity</ObjectType>
47 <PropertyName>ActivityTypeCode</PropertyName>
48 <PropertyValue>CIH10028</PropertyValue>
49 <Operation tc="1">OLI_OP_EQUAL</Operation>
50 </Criteria>
51 <Criteria>
52 <ObjectType tc="7">Activity</ObjectType>
53 <PropertyName>ActivityDescription</PropertyName>
54 <PropertyValue>CIH50167</PropertyValue>
55 <Operation tc="1">OLI_OP_EQUAL</Operation>
56 </Criteria>
57 <Criteria>
58 <ObjectType tc="7">Activity</ObjectType>
59 <PropertyName>UserCode</PropertyName>
60 <PropertyValue>123456</PropertyValue>
61 <Operation tc="1">OLI_OP_EQUAL</Operation>
62 </Criteria>
63 </CriteriaExpression>
64 <CriteriaExpression>
65 <CriteriaOperator tc="2">AND</CriteriaOperator>
66 <Criteria>
67 <ObjectType tc="7">Activity</ObjectType>
68 <PropertyName>ActivityTypeCode</PropertyName>
69 <PropertyValue>CIH10028</PropertyValue>
70 <Operation tc="1">OLI_OP_EQUAL</Operation>
71 </Criteria>
72 <Criteria>
73 <ObjectType tc="7">Activity</ObjectType>
74 <PropertyName>ActivityStatus</PropertyName>
75 <PropertyValue>4</PropertyValue>
76 <Operation tc="1">OLI_OP_EQUAL</Operation>
77 </Criteria>
78 </CriteriaExpression>
79 <CriteriaExpression>
80 <CriteriaOperator tc="2">AND</CriteriaOperator>
81 <Criteria>
82 <ObjectType tc="7">Activity</ObjectType>
83 <PropertyName>ActivityTypeCode</PropertyName>
84 <PropertyValue>CIH10028</PropertyValue>
85 <Operation tc="1">OLI_OP_EQUAL</Operation>
86 </Criteria>
87 <Criteria>
88 <ObjectType tc="7">Activity</ObjectType>
89 <PropertyName>Closed</PropertyName>
90 <PropertyValue>2010-08-16</PropertyValue>
91 <Operation tc="4">OLI_OP_GREATERTHAN</Operation>
92 </Criteria>
93 <Criteria>
94 <ObjectType tc="7">Activity</ObjectType>
95 <PropertyName>Closed</PropertyName>
96 <PropertyValue>2010-08-24</PropertyValue>
97 <Operation tc="3">OLI_OP_LESSTHAN</Operation>
98 </Criteria>
99 </CriteriaExpression>
100 </CriteriaExpression>
101 <OLifE>
102 <SourceInfo>
103 <SourceInfoName>Client Profile</SourceInfoName>
104 </SourceInfo>
105 <Activity id="Act1" PartyID="Party1">
106 <ActivityStatus tc="2">In Progress</ActivityStatus>
107 <UserCode>123456</UserCode>
108 <Opened>2010-08-17</Opened>
109 <ActivityCode>CP10001</ActivityCode>
110 <Attachment>
111 <Description>LastScreenName</Description>
112 <AttachmentData>CP Create</AttachmentData>
113 <AttachmentType tc="2">OLI_ATTACH_COMMENT</AttachmentType>
114 <AttachmentLocation tc="1">OLI_INLINE</AttachmentLocation>
115 </Attachment>
116 <OLifEExtension VendorCode="05" ExtensionCode="Activity">
117 <ActivityExtension>
118 <SubActivityCode>CP20001</SubActivityCode>
119 </ActivityExtension>
120 </OLifEExtension>
121 </Activity>
122 <Relation OriginatingObjectID="Holding1" id="Relation4" RelatedObjectID="Party1">
123 <OriginatingObjectType tc="4">Holding</OriginatingObjectType>
124 <RelatedObjectType tc="6">Party</RelatedObjectType>
125 <RelationRoleCode tc="8">Owner</RelationRoleCode>
126 </Relation>
127 </OLifE>
128 </TXLifeRequest>
129 </TXLife>';
130 end;
131 /
PL/SQL procedure successfully completed.
SQL> column XML FORMAT A128
SQL> set heading on lines 256 pages 20 long 10000
SQL> --
SQL> with TXLIFE_TABLE
2 as
3 (
4 select XMLTYPE(:XMLTEXT) as OBJECT_VALUE
5 from DUAL
6 )
7 select NACTSTAT, VPARTYID, VDATE, VUSERCREATED,
8 XMLSERIALIZE(DOCUMENT ACTIVITY AS CLOB INDENT SIZE=2) ACTIVITY
9 from TXLIFE_TABLE,
10 XMLTable
11 (
12 xmlNamespaces
13 (
14 default 'http://ACORD.org/Standards/Life/2'
15 ),
16 'for $OLifE in $TX/TXLife/TXLifeRequest/OLifE
17 for $RELATION in $OLifE/Relation[RelationRoleCode/@tc=8], $ACTIVITY in $OLifE/Activity[@PartyID=$RELATION/@RelatedObjectID and ActivityCode="CP10001"]
18 return
19 <Result>
20 {
21 <ACTSTAT>{fn:data($ACTIVITY/ActivityStatus/@tc)}</ACTSTAT>,
22 <PARTYID>{fn:data($RELATION/@RelatedObjectID)}</PARTYID>,
23 $ACTIVITY/Opened,
24 $ACTIVITY/UserCode,
25 $ACTIVITY
26 }
27 </Result>'
28 passing OBJECT_VALUE as "TX"
29 columns
30 NACTSTAT NUMBER(2) PATH 'ACTSTAT',
31 VPARTYID VARCHAR2(10) PATH 'PARTYID',
32 VDATE DATE PATH 'Opened',
33 VUSERCREATED VARCHAR2(20) PATH 'UserCode',
34 ACTIVITY XMLTYPE PATH 'Activity'
35 ) t
36 /
NACTSTAT VPARTYID VDATE VUSERCREATED ACTIVITY
2 Party1 17-AUG-10 123456 <Activity xmlns="http://ACORD.org/Standards/Life/2" id="Act1" PartyID="Party1">
<ActivityStatus tc="2">In Progress</ActivityStatus>
<UserCode>123456</UserCode>
<Opened>2010-08-17</Opened>
<ActivityCode>CP10001</ActivityCode>
<Attachment>
<Description>LastScreenName</Description>
<AttachmentData>CP Create</AttachmentData>
<AttachmentType tc="2">OLI_ATTACH_COMMENT</AttachmentType>
<AttachmentLocation tc="1">OLI_INLINE</AttachmentLocation>
</Attachment>
<OLifEExtension VendorCode="05" ExtensionCode="Activity">
<ActivityExtension>
<SubActivityCode>CP20001</SubActivityCode>
</ActivityExtension>
</OLifEExtension>
</Activity>
NACTSTAT VPARTYID VDATE VUSERCREATED ACTIVITY
SQL>
Maybe you are looking for
-
this morning I ask to a sales person about the requirement to download the adobe Creative Cs6 before i buy the product and the salesperson told me that my computer met the requirement for that particular software, so my surprise now when i open the f
-
How to disable Multi-selection thing in slicer.
Hello, I am using Slicer in Excel Sheet and i want to disable Multi-selection thing in slicer. Is it possible to throw an exception or doesn't allow to do a multiple selection in excel slicer using VBA or without? Quick help ll be appreciated :) Tha
-
Firefox will not open full screen
Firefox will not maximize. I can mouse over it on the task bar and see it opened. But it will not display full screen or even part of the screen.
-
Hello, Recently I purchased a 1.33 iBook on ebay for my wife. Upon receiving it I swapped out the 40GB with a Seagate 100GB. I then installed OS 10.4 (not the iBook grey discs, but the retail version which was 10.4.2) Well this caused problems, no mo
-
Hi I wondered if someone could help. I am working on an app that allows people to manipulate images and have them passed to the server to be sent or stored. I have all the basics working here and the jpeg encoded data being passed to the server etc.