Writing If conditions....
Hi Experts,
I want to write nested if coniditions to get material description.
My requirement is as below
If Material description exists in EN and if material descritption exists in Z1 language then pick Z1 language material description.
If Material description exists in EN and if material descritption does not exists in Z1 language then pick EN language material description.
Below is the code i have written
<15B1F000(AND:01GT002SPTXT NE "English")>
<11BRG014(G,T:REGION,L,Z;*)>
M02EHS_MATNAMD:Material name> <11ERG014>
<15C1F000><11BRG016(G,T:REGION,L,E;*)>
<02EHS_MATNAMD:Material name> <11ERG016><15EIF000>
but it always showing english description only.
Please help me on this with you code.
Regards,
Rafi
Hi Rafi,
Did you try "EN" instead of "English"?
Ralph
Similar Messages
-
Writing 2 conditions on a table
Hi all
I need to impose one codition on the table
The following are the details
Tables
Classes(class, type, country, numguns, bore, displacement)_
Condition:
If a class of ships has more than 9 guns, then their bore must be no larger than 14 inches_
Could you please give me hint writing the above condition on a table using check constraint.....Dont put duplicate post your question has been answered here
Re: how to write constraints -
How to get the variable value in description if I am writing a condition
I have created a query for TOP N Customers and
and for N I am passing as a varaible
& I want the same value to be displayed in the description
I tried a lot but I dont know how to do it
can any one tell me the solution for this
Thx & regardsHi,
You have to define a Text Variable of type customer exit and pass the value of the Variable you have created for the condition in the Exit Code.
You have to use the correct I_Step = *.
Cheers.
Ranga. -
Help in writing a condition needed.
how do i state that my checkbox is checked?
eg:
if (checkbox is checked){
thanksprivate Checkbox checkbox;
private boolean checked = false;
// or the second way
private Ckeckbox(String label, boolean initial state);
// if you want it to be marked as checked
boolean checked = true;
if (checked == true) {
// do something
// or
if (!checked) { } -
No replies yet :( problem in writing 2 conditions for a form
in my form i have 2 text boxes......... my purpose is i should get data based on what i have entered in any of textboxes ...if i enter data in both texboxes data should be relevant to combination of those 2 texboxes.....
here is the code what i have written....
Try
oConditions = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_Conditions)
oCondition = oConditions.Add
oCondition.BracketOpenNum = 2
oCondition.Alias = "U_ShelfNumber"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("5").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 1
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
oCondition = oConditions.Add
oCondition.BracketOpenNum = 1
oCondition.Alias = "U_RentedAvailable"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("7").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 2
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND
oCondition = oConditions.Add
oCondition.BracketOpenNum = 2
oCondition.Alias = "U_ShelfNumber"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("5").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 1
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
oCondition = oConditions.Add
oCondition.BracketOpenNum = 1
oCondition.Alias = "U_RentedAvailable"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("7").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 2
oDBDataSource.Query([oConditions])
Edited by: Shenaz Sultana on Nov 2, 2009 3:43 PMHi,
What is the problem you have exactly ?
else you can try this :
oCondition.BracketOpenNum = 3
oCondition.Alias = "U_ShelfNumber"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("5").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 1
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
oCondition = oConditions.Add
oCondition.BracketOpenNum = 1
oCondition.Alias = "U_RentedAvailable"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("7").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 2
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND
oCondition = oConditions.Add
oCondition.BracketOpenNum = 2
oCondition.Alias = "U_ShelfNumber"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("5").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 1
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_OR
oCondition = oConditions.Add
oCondition.BracketOpenNum = 1
oCondition.Alias = "U_RentedAvailable"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = DirectCast(oForm.Items.Item("7").Specific, SAPbouiCOM.EditText).Value.ToString()
oCondition.BracketCloseNum = 3
Hope it's help you.
Regards,
Michael -
Condition issue in BI Bex Designer Report...
Hi
In BI Bex Designer while writing the condition, may times I observed that If my condition doesn't work having its Characteristic Assignment is set to "All Characteristics in the Drill-down Independently" which is default, but if I set the option to "Individual Chars and Char Combinations" & check all the fields, it works.
But most of the time default nature works unlike above. Just wanted to find out: what is the rule?
May someone help me in this issue.
Thanks...To my knowledge when you select All Characteristics in the Drill-down Independently, condition works with respect to the characteristics which are currently drilled down in your report.
But when you select Individual Chars and Char Combinations, condition works on the characteristics which are currently drilled down in your report and also the characteristics that are available in free charactritics.
So I think All Characteristics in the Drill-down Independently and Individual Chars and Char Combinations and selecting all the characteristic checboxes are not the same. All Characteristics in the Drill-down Independently and Individual Chars and Char Combinations and selecting the characteristics which are in your rows are the same. -
hi friends
I am new to PowerShell and i am studying hard since I've found it excellent to automate administrative tasks in my network.
I am trying to write an script whichchecks if ADDS service (which its service name is NTDS) exist & also if it is running, then my command which creates a set of objects in AD be executed (new-ADobject
I am familiar with get-service Cmdlet & also with basic "if statement", which is
if (my condition) {
do stuff
but I don't know how to combine these things to make the final code.
may someone please write me the code, so that a begin to study about the different parts of the final code?
thanks a lotI would start by studying hte very basic compnents of PowerShell.
You can write an if statement after only a few minutes of studying. Itis easy. Try it:
Start here:
http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx
For the absolute beginner:
http://www.powershellpro.com/powershell-tutorial-introduction/powershell-tutorial-conditional-logic/
¯\_(ツ)_/¯
hello thanks. I studied and I learned how to use multiple conditions in my code,
but still have problem with writing the condition itself in this certain circumstance.
so am I on the right way by this:
$myservice = get-service -name NTDS | select status
if ($myservice -eq "running") {
New-ADObject....... -
Hello All,
I have one requirement in which i want to show the total of three condition types of taxes section in one condition type in conditions tab.
for eg in PO in invoice tab> taxes there are three condition of taxes like jm0p,jiex,jecp and there values are 100 200 and 300 rupees.now i want to show the sum of these three in conditions tab under jip9 condition type.
Im using routine to calculate the same but not getting the desired result.
Pls let me knw any information on this.
Regards,
SunnyHi Friend,
Did you have activated the routine?
Through VOFM, after writing the condition value, select the routine; Edit -> Activate.
Put the routine name agains the main condition type in pricing procedure.
And i need to know how you are getting the value for other three condition types. Take values through sub total (give value like D,E,F); then it will be stored in XKWORD, XKWORE, XKWORF variables.
Hope it will solve the problem.
Regards
Krishnendu -
IF condition to return result from either matching strings
Hi All,
My Current Shell script condition
PRIM_CRS.log
testing1/localserver1-> cat log_PRIM_CRS.log
ora.asm asm 11.2.0.4.0 ONLINE on localserver1 (+ASM1) ONLINE NEVER STABLE
ora.localserver1.vip cluster_vip_net1 11.2.0.4.0 ONLINE on localserver1 ONLINE 03/20/2015 16:15:07 STABLE
ora.remoteserver1.vip cluster_vip_net1 11.2.0.4.0 ONLINE on remoteserver1 ONLINE 03/20/2015 16:40:06 STABLE
ora.cvu cvu 11.2.0.4.0 ONLINE on localserver1 ONLINE 02/26/2015 15:49:38 STABLE
ora.rdb1v001.db database 11.2.0.4.0 ONLINE on localserver1 (rdb1v0011) ONLINE 04/17/2015 11:04:35 STABLE
ora.testing.db database 11.2.0.4.0 ONLINE on localserver1 (testing1) ONLINE 04/30/2015 13:09:54 STABLE
ora.ASMU03.dg diskgroup 11.2.0.4.0 ONLINE on localserver1 ONLINE 03/20/2015 15:53:57 STABLE
ora.DATA.dg diskgroup 11.2.0.4.0 ONLINE on localserver1 ONLINE 03/20/2015 15:54:18 STABLE
From above file, i search for each component like 'asm' and return the entire row using following awk condition
awk -F";" '{for(i=1;i<=NF;i++){if ($i ~ /asm/){print $i}}}' PRIM_CRS.log > prim_asm.txt
After getting the entire row, i am trying to just return specific column value using $ as shown below
testing1/localserver1-> cat log_prim_asm.txt
ora.asm asm 11.2.0.4.0 ONLINE on localserver1 (+ASM1) ONLINE NEVER STABLE
awk '{print $2, $4, $7 }' prim_asm.txt --> this was standard command to get output like "asm ONLINE ONLINE", however some servers has 7th column different value like (+ASM1), so my output does not show as "asm ONLINE ONLINE"
So, Problem is 7 or 8 column is changing,so i have no idea how to get output like "asm ONLINE ONLINE" even if any changes in column 7 or 8.
testing1/localserver1-> awk '{print $2, $4, $7 }' log_prim_asm.txt
asm ONLINE (+ASM1)
testing1/localserver1-> awk '{print $2, $4, $8 }' log_prim_asm.tx
asm ONLINE ONLINE
I was thinking of writing if condition like this, but its NOT working. I tried 'awk' to search for strings 'asm ONLINE ONLINE' and return the respective column ,but i couldnt find any such solution out there..
testing1/localserver1-> cat crs_asm1.sh
#!/bin/sh
export PRIMARY_CRS_ASM_SV1=`awk '{print $2, $4, $7 }' log_prim_asm1.txt`
export PRIMARY_CRS_ASM_SV2=`awk '{print $2, $4, $8 }' log_prim_asm1.txt`
#echo $PRIMARY_CRS_ASM_SVC
if [ "${PRIMARY_CRS_ASM_SV1}" != "asm ONLINE ONLINE" ] && [ "${PRIMARY_CRS_ASM_SV2}" != "asm ONLINE ONLINE" ]; then
echo " "
echo -e "ASM Resource "$PRIMARY_HOST" is \x1b[37;41m NOT RUNNING \x1b[m"
${PRINTFCMD} "\e[${TAB_HEAD_COLR}";
elif [ "${PRIMARY_CRS_ASM_SV1}" == "asm ONLINE ONLINE" ] && [ "${PRIMARY_CRS_ASM_SV2}" == "asm ONLINE ONLINE" ]; then
echo " "
echo -e "ASM Resource on ($PRIMARY_HOSTNAME) is \x1b[42;30mRUNNING\x1b[m "
fi
Any thoughts or suggestion on this??
Thanks in advanceThanks for your suggestion, let me check how it works,
Meanwhile, i have troublesome to export of the 1st line from output from the below script
This script basically lists all SIDs and ORACLE_HOMEs and echo for selection.
I want to automatically to set to line 1 for +ASM instances without prompting. As part of my script, i want to source +ASM instance and run the command automatically without prompt
The below scripts automatically picks up the last line. How do i change it to pick up the 1st line??
Script
if [ `uname -s` = SunOS ]
then
ORATAB=/var/opt/oracle/oratab
else
ORATAB=/etc/oratab
fi
if [ -s "$ORATAB" ]
then
#echo "Standby Oratab Entries:"
#echo " # DATABASE NAME ORACLE_HOME"
#echo "----- ------------------ -----------------------------------"
set -x
CURSOR=1
while read LINE
do
case $LINE in
\#*) ;; #comment line
"") ;; #null line
LASTSID=`echo $LINE | cut -f1 -d":"`
LASTHOME=`echo $LINE | cut -f2 -d":"`
printf "%5s %20s %40s\n" $CURSOR $LASTSID $LASTHOME
CURSOR=`expr $CURSOR + 1`
#CURSOR=1
esac
done < $ORATAB
#if [ $CURSOR -eq 2 ]
#then
#echo""
#echo "only one database found in oratab..."
echo $LASTSID
echo $LASTHOME
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:/usr/lib64:/lib64:/lib:/usr/lib
SHLIB_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
SQLPATH=$ORACLE_HOME/rdbms/admin:$ORACLE_HOME/sqlplus/admin
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=/opt/oracle/local/bin:/usr/openwin/bin:/usr/sbin:/usr/bin:/usr/ucb:/etc:/bin:/sbin:$ORACLE_HOME/bin:$ORACLE_HOME/jdk/bin:$ORACLE_HOME/jdk/jre/bin:$ORACLE_HOME/Apache/Apache/bin:$ORACLE_HOME/Apache/perl/bin:/usr/local/bin:/bin:/sbin
`set -o vi`
PS1="$ORACLE_SID/`uname -n`-> "
alias rm="rm -f"
else
echo ""
echo " "
echo -n "Choose the Database [ 1 - "`expr $CURSOR - 1`" ] "
#export SELECTION=1
export $CURSOR=1
#read SELECTION
$CURSOR=1
fi
Output
1
+ASM1
/u01/app/11.2.0/grid
2
rdb1v001 /u01/app/oracle/product/11.2.0/dbhome_1
3
rdb1v001r /u01/app/oracle/product/11.2.0/dbhome_1
4
testrj /u01/app/oracle/product/11.2.0/dbhome_1
5
rdbp01 /u01/app/oracle/product/11.2.0/dbhome_1
6
rmb1r001 /u01/app/oracle/product/11.2.0/dbhome_1
rmb1r001
/u01/app/oracle/product/11.2.0/dbhome_1
Thanks in advance -
Iu2019m trying to create a new Tree type for INPUT DMEE. format. This is already working but Iu2019m having a problem in the tab conditions.
My input file has a field that can have u201C+u201D or u201Cu2013u201C and I want to transform in u201CDu201D and u201CCu201D.
My condition is:
Arg 1-1: ZDMEETYPE (structure)
Arg 1-2: SENTIDO02 (field)
Type: 2
Operator: =
Arg 2-1 : '+'
Type: 1
If I didnu2019t put this condition the field in output file will be u201C+u201D or u201C-u201C.
If I put this condition it will be always blank and it should only fill the u201C+u201D where it appears.
If I put this condition and in Mapping condition put flag u201CUse constant Instead of Source Valueu201D and put u201CDu201D all my records will have u201CDu201D.
My conclusion is that the condition is wrong or not working.
Can anyone help me ?
Best Regards,
Cláudio PereiraI am writing the condition inside the button
Ive picked,
Condition Type :
Value of Item / Column in Express 1 != Expression 2
Expression 1 :
P151_STATUS
Expression 2:
Completed
Thanks -
Help me to solve this. select statement!
hello alll
is there any functional module which gives me the BELNR(of bseg) by passing the vbeln.
yeah ...we can do tht by passing bseg table ,,,,but its taking loads of time to give me the output as its not a primary key or secondary key.....
when i m using this condition in the prog i cannot use inner join as its a cluster table . if i m writing a condition it is effecting my prog performance
this statement is really taking long time to process.
in bseg table as vbeln is not primary key or seconday key, i guess thz the reason it is taking so much time ,,,
can anyone help me to sort this out... ??
any fun mod to get the data of bseg cluster table by giving vbeln?/
or any other conditions to reduce the processing time?
clear t_vbrkvbrp.
sort t_vbrkvbrp by vbeln.
loop at t_vbrkvbrp.
at new vbeln.
select bukrs belnr vbeln
from bseg
into corresponding fields of table t_temp
where bukrs = t_vbrkvbrp-bukrs
and vbeln = t_vbrkvbrp-vbeln.
endat.
endloop.
SELECT bukrs belnr buzid koart shkzg dmbtr vbeln hkont kunnr werks
FROM bseg
INTO TABLE t_bseg
for all entries in t_temp
WHERE hkont IN s_hkont
AND bukrs = t_temp-bukrs
AND belnr = t_temp-belnr
AND buzid = ' '
AND koart = 'S'
AND shkzg = 'H'.
i need to get the g/l account number and belnr from bseg for the above condition type so i have to use bseg table
as there is no apporpriate index it is scanning the full table ,,,, so can anyone tell me how to create a index or like wise to get the data faster??Don't use BSEG, use BKPF and fields AWTYP, AWREF which link a financial document to the application and document that generated it. (The "original document" under transaction like FB03)
<i>Example: "RMRP" + invoice number for purchase invoice</i>
In some case you need an intermediate table
<i>Example: from EKPO, EKBE, you get the MKPF records and from them the BKPF/BSEG</i>
For a list of "referenced procedures" Look at TTYP (text table is TTYPT), you will get the code, structure used to build the key (if more than one field) and a function module used to display the origin
<i>Example : MKPF "Material document" structure MKPF_AWKEY function module MB_DOCUMENT_SENDER_MKPF</i>
You can also look at your accounting documents found with the "slow" BSEG version of your program and establish a list of AWTYP used in you company/customer.
An other way, used in some companies, is to append a structure with EBELN field to BSIS and BSAS table, these table are filled via a MOVE-CORRESPONDING statement, so the nesw records will be filled (You may write a program to update past records) then create an index on EBELN on these fields.
Regards
PS: BSEG is a cluster table, so the only real criteria are the primary keys, if you select via EBELN, the program read the whole table, may be correct in Development, but not in Production and there it will be more and more resources consuming. So NEVER select from BSEG vithout the primary keys, use the secondary tables : BSIS/BSAS, BSIM, etc. -
Timing of DAQmx Acquisition Vi and data write
I am acquiring data from a DAQ rack, using a 6251 PCI card. after acquiring a data set, i write it to a binary file. afterwards, i do a small calculation on one channel value and apply a condition on this value. the outcome of which is connected to the while loop surrounding the acquisition. So i (1.)grab 100 points, (2.) write, calc. and cond., and (3.) start over again. I stuck millisecond timers in between steps 1, 2, and 3 to determine if i was incurring much delay. So, if i have no delay, and i'm sampling at 100 Hz, the differences between the millisecond timing values (stuck into an array) should be
1000
0
0
1000
0
0
1000
0
0
etc.
This is usually the case. However, sometimes i get something like this
900
100
0
900
100
0
or
980
20
0
980
20
0
So if i measure a delay as a result of the writing/calculations/conditing, this time is subtracted from the acquisition time interval. I don't really understand this at all. Why a delay after the acquisition would speed up the acquisition, i have no idea. My only guess is that i start writing/calculating/conditioning before acquision has finished, but why would it do that? I've attached basically the setup. Any help would be great.
Attachments:
Concept.vi 61 KB...what is the "hw?"
That's short for "hardware." Specificially, in a buffered acquisition the data is sent into your memory buffer at regular times regulated by a hardware clock found in your data acq board. Your software interacts with this memory buffer via 'Read' calls.
...worry about delay?
That'll depend on your app. As you've described it, you Read 1 second worth of data all at once then do some processing and storage. As long as you can do that processing and get back around the loop in less than one second, then the processing is not a bottleneck. The speed is being regulated by the amount of data you request and the time it takes to acquire it.
If this behavior is sufficient for you, then no, you don't have to worry about the delay.
Other apps may need to read smaller amounts of data and make decisions more quickly than once per second. Or they may need to instantly read the most recent data without waiting for any and then quickly make a decision. These sorts of apps might cause you to worry about the processing time.
-Kevin P. -
Urgent:Error while deploying the BPEL process
Hi,
I am doing a BPEL process to insert some data into employees table depending upon the employee Number. Means before inserting data, a check should be made whether that employee number already exists or not.If it exists then we have to update the existing record. If it is not existing then we have to insert the new data into table.
While I deploy it in server it is building successfully . But when I go and check in BPEL console, Its saying Cannot Find the Specified Instance.When I checked the domain.log file its showing the following error.
<2008-04-16 11:36:42,096> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "finder": Instance not found in datasource.
The process domain was unable to fetch the instance with key "154a319e5bf910cf:-228bed1a:1195573997c:-7f93" from the datasource.
Please check that the instance key "154a319e5bf910cf:-228bed1a:1195573997c:-7f93" refers to a valid instance that has been started and not removed from the process domain.
ORABPEL-02152 Instance not found in datasource.
The process domain was unable to fetch the instance with key "154a319e5bf910cf:-228bed1a:1195573997c:-7f93" from the datasource.
Please check that the instance key "154a319e5bf910cf:-228bed1a:1195573997c:-7f93" refers to a valid instance that has been started and not removed from the process domain.
at com.collaxa.cube.engine.data.AdminFinder.__lookupInstanceMetaData(AdminFinder.java:327)
at com.collaxa.cube.engine.data.AdminFinder.__lookupInstanceMetaData(AdminFinder.java:275)
at com.collaxa.cube.engine.data.AdminFinder.lookupInstanceByConversationId(AdminFinder.java:248)
at com.collaxa.cube.ejb.impl.FinderBean.lookupInstanceByConversationId(FinderBean.java:179)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at com.evermind.server.ThreadState.runAs(ThreadState.java:618)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at FinderBean_RemoteProxy_4bin6i8.lookupInstanceByConversationId(Unknown Source)
at com.oracle.bpel.client.Locator.lookupInstance(Locator.java:448)
at displayInstance.jspService(_displayInstance.java:109)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
I have searched in forum itself to find any solution for this . I found many people had same error. But its not given a solution for those posts..
It will be very helpful if anyone could resolve this issue.
Thanks,
NasiyaNow that error got solved. Thanks
I am using a switch case in my BPEL process.In the first case I am writing the condition
bpws:getVariableData('CheckEmployeeIdSelect_OutputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp/ns2:empno') = 'null'
and in the second case I am writing the condition
bpws:getVariableData('CheckEmployeeIdSelect_OutputVariable','EmpCollection','/ns2:EmpCollection/ns2:Emp') != 'null'
If it satisfies the first case then an insert to a table should be performed. And if it satisfies the second case an update should be performed in the table. But only the second case is working.
Can anyone suggest what could be the problem..
Thanks,
Nasiya -
Hi,
I have a problem with call-template. I have passed some parameter with call-template tag and used that parameter in the conditional check tag <xsl:if> i am getting the error. Can any body tell how to use this? I actuall want to dynamically pass the tag name as the parameter and check the attribute value of the tag passed in the if condition and then i want to person some action. How can i do it?
Here is the call-template code:
<xsl:call-template name="selected-unselected">
<xsl:with-param name="currentTag">motor-carrier</xsl:with-param>
</xsl:call-template>
Here is the template definition:
<xsl:template name="selected-unselected">
<xsl:param name="currentTag">Quick-Quote</xsl:param>
<xsl:if test="./{$currentTag}/@selected='true'">
<xsl:text>checked</xsl:text>
</xsl:if>
<xsl:if test="./{$currentTag}/@selected='false'">
<xsl:text>Unchecked</xsl:text>
</xsl:if>
</xsl:template>
Here is the sample xml code:
<motor-carrier selected="true"/>
<motor-truck selected="false"/>
<sched-mobile-equip selected="false"/>
Here instead of writing the condition check for every tag i want to write it once and dynamically pass the tag name as parameter to the template. If the attribute of the tag has value true then one message should be displayed otherwise a different message should be displayed.Hi,
I have a problem with call-template. I have passed
sed some parameter with call-template tag and used
that parameter in the conditional check tag <xsl:if>
i am getting the error. Can any body tell how to use
this? I actuall want to dynamically pass the tag name
as the parameter and check the attribute value of the
tag passed in the if condition and then i want to
person some action. How can i do it?
Here is the call-template code:
<xsl:call-template name="selected-unselected">
<xsl:with-param
ram name="currentTag">motor-carrier</xsl:with-param>
</xsl:call-template>
Here is the template definition:
<xsl:template name="selected-unselected">
<xsl:param
m name="currentTag">Quick-Quote</xsl:param>
<xsl:if test="./{$currentTag}/@selected='true'">
<xsl:text>checked</xsl:text>
</xsl:if>
<xsl:if test="./{$currentTag}/@selected='false'">
<xsl:text>Unchecked</xsl:text>
</xsl:if>
</xsl:template>
Here is the sample xml code:
<motor-carrier selected="true"/>
<motor-truck selected="false"/>
<sched-mobile-equip selected="false"/>
Here instead of writing the condition check for every
tag i want to write it once and dynamically pass the
tag name as parameter to the template. If the
attribute of the tag has value true then one message
should be displayed otherwise a different message
should be displayed.try this:
<xsl:template name="selected-unselected">
<xsl:paramm name="currentTag">Quick-Quote</xsl:param>
<xsl:if test="./*[name()=$currentTag]/@selected='true'">
<xsl:text>checked</xsl:text>
</xsl:if>
<xsl:if test="./*[name()=$currentTag]/@selected='false'">
<xsl:text>Unchecked</xsl:text>
</xsl:if>
</xsl:template> -
Current_date -2 in Case Statement
Hi,
When i am writing this Conditional Statement in OBIEE Answers.
CASE WHEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment" > CURRENT_DATE
THEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment"
ELSE
CURRENT_DATE-2
END
I am getting this error Help Me...................
[nQSError: 10058] A general error has occurred. [nQSError: 22023] An arithmetic operation is being carried out on a non-numeric type. (HY000)
SQL Issued: SELECT "Business Unit"."Company (0006)", "Item - Item Branch"."Planner Number", "Item - Item Branch"."Stocking Type", "Item - Item Master"."Item Number 2nd", "Orders - Sales Order Detail"."SOD_Amount Extended Cost", "Orders - Sales Order Detail"."SOD_Amount Price per Unit", "Orders - Sales Order Detail"."SOD_Business Unit (MCU)", "Orders - Sales Order Detail"."SOD_Buyer Number", "Orders - Sales Order Detail"."SOD_Date Order Transaction", "Orders - Sales Order Detail"."SOD_Date Promised Shipment", "Orders - Sales Order Detail"."SOD_Item Description", "Orders - Sales Order Detail"."SOD_Item Number 2nd", "Orders - Sales Order Detail"."SOD_Order Type", "Orders - Sales Order Detail"."SOD_Status Code Last", "Orders - Sales Order Detail"."SOD_Status Code Next", "Orders - Sales Order Detail"."SOD_Units Qty Backordered Held", CASE WHEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment" > CURRENT_DATE THEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment" ELSE CURRENT_DATE-2 END , CASE WHEN "Orders - Sales Order Detail"."SOD_Units Qty Backordered Held" > 0 THEN "Orders - Sales Order Detail"."SOD_Amount Price per Unit" *"Orders - Sales Order Detail"."SOD_Units Qty Backordered Held" ELSE "Orders - Sales Order Detail"."SOD_Amount Extended Cost" END FROM "RT ODS Order Management ROW - Orders"
Kind Regards,
MohanHi,
use
CASE WHEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment" > CURRENT_DATE
THEN "Orders - Sales Order Detail"."SOD_Date Promised Shipment"
ELSE
TIMESTAMPADD(SQL_TSI_DAY,-2,current_date)
END
Thanks,
Saichand.v
Maybe you are looking for
-
Adding T-code to Role Area Menu which doesn't exist in box
Hello, We are using a SAP system called QIM which has "jumplink" functionality, which is a web based linked (NWBC) which will launch you into a ERP system transaction when clicked. For example, in QIM we will display a outbound delivery, and if we cl
-
Low memory message with camera
sometimes i still get the low memory message while using camera even with the latest update for nokia 500 what should i do? sometimes i need to upload somehing instantly while using check in, and i cant restarat and do so !!! what should i do? Solved
-
I'm installing Acrobat 9 Pro for Windows on a virtual machine on my Mac (running Parallels). I successfully installed the same program using the same discs on the same Mac previously, but that virtual machine became corrupt and can no longer be laun
-
How to pick(or consume) messages from Woblogic JMS Queue only when DB is UP
Hi, I have a requirement to pick(or consume) messages from Woblogic JMS Queue only when DB is UP. When DB is down, messages should remain in queue. When DB is up, messaged should be picked on scheduler basis. We are using SOA suite 11g(BPEL or mediat
-
SAP PM Direct Certification Question model.
Hi Experts, Could you please provide me SAP PM Direct Certification Question model. Thanks in advance. Chandru.