PO selection criteria doesnt return the correct values!
Hi all,
We are working on SRM 5.0 (SP11),standalone scenario.
The problem we are facing is that when some users execute the trasncn PROCESS PURCHASE ORDERS and enter any selection criteria,only the PO's with status 'held' are displayed.Also this problem occurs only for some of the users.For other users,the search returns all the PO's.
The roles/authorizations/profiles are same for all the users who are using this transaction.
The notes Note 1138911 - BBP_POC - Search issue in purchase order,Note 1128758 - BBP_POC: Search Issue in Purchase Order are applicable in our case as we are on SP11 but we are not able to understand why the search criteria is working for some users while for others the list is not displayed properly.
Has anybody faced a similar issue.All responses will be rewarded.
Thanks for the feedback.
I have created this as a report and therefore the subscreen is defined in a report include - not sure this is the best way to do this. I would be interested to knw how you got this to work?
Did you create a function group and then a function module to create the subscreens?
In this case did the search helps relating to the subscreen selection screen work?
Appreciate your thought <<text removed by moderator>>.
Cheers,
Dannyboy?
Edited by: Matt on Dec 7, 2008 8:23 PM
Similar Messages
-
V$session prev_hash_value not returning the correct value?
Hello,
I am executing a plsql package (which has the following query) in two modes: through Toad and through a deployed web application. I get two results.
SELECT sa.sql_text,
sa.sql_id,
ss.sid
FROM v$session ss,
v$sqlarea sa
WHERE ss.status = 'ACTIVE'
AND sa.hash_value = ss.prev_hash_value
AND ss.username = USER;
Toad gives me the correct result. The query above pulls the correct SQL statement. But when running through the web application it gives me
some random SQL statement executed during that session. I thought it might have something to do with pooled JDBC connections so I made sure for that
execution I created a new dedicated JDBC connection. Still did not work. I used the function SYS_CONTEXT('USERENV', 'SID') to report the session id
from my java program and from the query above. Both return the same SID. I've tried different variations of that query above (removing status = ACTIVE, removing username = USER, etc...)
and I still get the same result.
So any thoughts on what's going on?
Thanks,
PiyushI believe I figured it out. My testing was flawed. The testing in Toad was directly calling my package (e.g., pkg_b). The web app doesn't do that. It calls pkg_a which does a bunch of setup and then calls the target package (pkg_b) using EXECUTE IMMEDIATE. Apparently the v$session stops collecting info at that point. The current statement always shows as 'BEGIN :b1 := pkg_b; END;'. But it's still confusing why it would do that. Is there another way to access SQL statements from within that dynamic block?
-
I am using TABLE(CAST()) operation in PL/SQL and it is returning me no data.
Here is what I have done:
1. Created Record type
CREATE OR REPLACE TYPE target_rec AS OBJECT
target__id NUMBER(10),
target_entity_id NUMBER(10),
dd CHAR(3),
fd CHAR(3),
code NUMBER(10),
target_pct NUMBER,
template_nm VARCHAR2(50),
p_symbol VARCHAR2(10),
pm_init VARCHAR2(3),
target_name VARCHAR2(20),
targe_type VARCHAR2(30),
target_caption VARCHAR2(30),
sort_order NUMBER (4)
2. Created Table type
CREATE OR REPLACE TYPE target_arr AS TABLE OF target_rec
3. Created Stored procedure which accepts parameter of type target_arr and runs the Table(Cast()) function on it.
Following is the simplified form of my procedure.
PROCEDURE get_target_weights
p_in_template_target IN target_arr,
p_out_count OUT NUMBER,
IS
BEGIN
SELECT count(*) into p_out_count
FROM TABLE(CAST(p_in_template_target AS target_arr)) arr;
END;
I am calling get_target_weights from my java code and passing p_in_template_target with 10140 records.
Scenario 1: If target_pct in the last record is 0, p_out_count returned from the procedure is 0.
Scenario 2: If target_pct in the last record is any other value(say 0.01), p_out_count returned from the procedure is 10140.
Please help me understand why the Table(Cast()) is not returning the correct results in Scenario 1. Also adding or deleting any record from the test data returns the correct results (i.e. if keep target_pct in the last record as 0 but add or delete any record).
Let me know how can I attach the test data I am using to help you debugging as I don’t see any Attach file button on Post Message screen on the forum.I am not able to reproduce this problem with a small data set. I can only reproduce with the data having 10140 records.
I am not sure if this is the memory issue as adding a new record also solves the problem.
This should not be the error because of wrong way of filling the records in java as for testing purpose I just saved the records which I am sending from java in a table. I updated the stored procedure as well to read the data from the table and then perform TABLE(CAST()) operation. I am still getting 0 as the output for scenario 1 mentioned in my last mail.
Here is what I have updated:
1. Created the table target_table
CREATE Table target_table
target_id NUMBER(10),
target_entity_id NUMBER(10),
dd CHAR(3),
fd CHAR(3),
code NUMBER(10),
target_pct NUMBER,
template_nm VARCHAR2(50),
p_symbol VARCHAR2(10),
pm_init VARCHAR2(3),
target_name VARCHAR2(20),
target_type VARCHAR2(30),
target_caption VARCHAR2(30),
sort_order NUMBER (4)
2. Inserted data into the table : The script has around 10140 rows. Pls let me know how can I send it to you
3. Updated procedure to read data from table and stored into variable of type target_arr. Run Table(cast()) operation on target_arr and get the count
PROCEDURE test_target_weights
IS
v_target_rec target_table%ROWTYPE;
CURSOR wt_cursor IS
Select * from target_table;
v_count NUMBER := 1;
v_target_arr cws_target_arr:= target_arr ();
v_target_arr_rec target_rec;
v_rec_count NUMBER;
BEGIN
OPEN wt_cursor;
loop
fetch wt_cursor into v_target_rec; -- fetch data from table into local record.
exit when wt_cursor%notfound;
--move data into target_arr
v_target_arr_rec := cws_curr_pair_entity_wt_rec(v_target_rec target_id,v_target_rec. target_entity_id,
v_target_rec.dd,v_target_rec.fd,v_target_rec.code,v_target_rec.target_pct,
v_target_rec.template_nm,v_target_rec.p_symbol,v_target_rec.pm_init,v_target_rec.template_name,
v_target_rec.template_type,v_target_rec.template_caption,v_target_rec.sort_order);
v_target_arr.extend();
v_target_arr(v_count) := v_target_arr_rec;
v_count := v_count + 1;
end loop;
close wt_cursor;
-- run table cast on target_arr
SELECT count(*) into v_rec_count
FROM TABLE(CAST(v_target_arr AS target_arr)) arr;
DBMS_OUTPUT.enable;
DBMS_OUTPUT.PUT_LINE('p_out_count ' || v_rec_count);
DBMS_OUTPUT.PUT_LINE('v_count ' || v_count);
END;
Output is
p_out_count 0
v_count 10140
Expected output
p_out_count 10140
v_count 10140 -
Function to return the Entry Value based on Assignment, Element and Date
Hi Guys,
Is there a function that returns the Entry Value for the Assignment Element, based on the Assignment Number, Element Name, Entry Segment and the End of Period date?
Example:
==============
Input Parameters:
Employee: Iana
Assignment Num: 123
Element: D480
Element Entry: Fund Name
Output Parameter:
Element Entry Value: MLC Super Fund
Thanks,
IanaFor element entry values you can use:
select petf.element_name, nvl(peevf.screen_entry_value,0) screen_entry_value
from
pay_element_entries_f peef, pay_element_types_f petf,
pay_element_entry_values_f peevf, pay_input_values_f pivf,
per_all_assignments_f paaf
where petf.element_type_id = peef.element_type_id
and :p_date_earned between pivf.effective_start_date and pivf.effective_end_date
and :p_date_earned between petf.effective_start_date and petf.effective_end_date
and peevf.input_value_id = pivf.input_value_id
and paaf.assignment_id = peef.assignment_id
and petf.business_group_id = :p_business_group_id
and peevf.element_entry_id = peef.element_entry_id
and :p_date_earned between peef.effective_start_date and peef.effective_end_date
and :p_date_earned between peevf.effective_start_date and peevf.effective_end_date
and :p_date_earned between paaf.effective_start_date and paaf.effective_end_date
and pivf.name = :p_input_value_name
and petf.element_name = :p_element_name
and peef.entry_type = 'E'
and peevf.effective_start_date = peef.effective_start_date
and peevf.effective_end_date = peef.effective_end_date
--and peef.assignment_id = :p_assignment_id
and paaf.assignment_number = :p_assignment_number;
For payroll results you can use:
select sum(prrv.result_value)
from pay_run_results prr, pay_run_result_values prrv,
pay_assignment_actions paa, pay_payroll_actions ppa,
pay_element_types_f petf, pay_input_values_f pivf,
per_all_assignments_f paaf, per_all_people_f papf
where
petf.element_type_id = pivf.element_type_id
and :p_pay_date between petf.effective_start_date and petf.effective_end_date
and :p_pay_date between pivf.effective_start_date and pivf.effective_end_date
and paa.assignment_action_id = prr.assignment_action_id
and petf.element_type_id = prr.element_type_id
and ppa.payroll_action_id = paa.payroll_action_id
and prrv.input_value_id = pivf.input_value_id
and prr.run_result_id = prrv.run_result_id
and petf.element_name = :p_element_name
and pivf.name = :p_input_value_name
and ppa.date_earned = :p_pay_date
and papf.person_id = paaf.person_id
and nvl(prr.start_date,ppa.effective_date) between paaf.effective_start_date and paaf.effective_end_date
and nvl(prr.start_date,ppa.effective_date) between papf.effective_start_date and papf.effective_end_date
and paaf.assignment_id = paa.assignment_id
and papf.employee_number = :p_employee_number; -
Return Into. Can I return the old value in an update statement?
Hello - I have an update statement and I need the value of a field, prior to the update. Is it possible to use the Return Into to do this? Or do I have to have a separate select statement prior to the update statement in order to store that value in a variable?
Thanks!RETURNING INTO is valid for an UPDATE, but it returns the new value, not the old value.
SCOTT @ nx102 Local> select * from a;
COL1
4
Elapsed: 00:00:00.00
SCOTT @ nx102 Local> ed
Wrote file afiedt.buf
1 declare
2 l_old_col1 number;
3 begin
4 update a
5 set col1=col1+1
6 returning col1 into l_old_col1;
7 dbms_output.put_line( l_old_col1 );
8* end;
SCOTT @ nx102 Local> /
5
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00If you are trying to track historical changes, have you looked at Workspace Manager? That can be far easier than writing your own change tracking code...
Justin -
How do I display the correct value when using SELECT_LIST_FROM_QUERY
I have an updatable report that displays the possible values for a field.
I'm using HTMLDB_ITEM.SELECT_LIST_FROM_QUERY, so obviously I have to process the record manually.
However, I need the trick to display the correct value as selected before processing the records.
I appreciate your help.
Thanks
JuanThank you.
So, I just need to put the field name in the second argument.
I have it working now.
Thanks again
Juan -
GUID generation issue, SYSUUID always returns the same value.
Hi,
I'm using "SELECT SYSUUID FROM DUMMY" to get a guid value but it always return the same value.
What should I do to get a unique value each time I execute the query above.
Thanks.I thought I had the same problem and I found that if you generate multiple UUID's in the same SQL, it they will be the same. If you make multiple calls, you should get multiple UUID's.
Try this:
SELECT SYSUUID as UUID1 FROM DUMMY;
SELECT SYSUUID as UUID2 FROM DUMMY;
I get the following results:
UUID1 = 538632FD7EA20426E10000000A3F10A9
UUID2 = 538632FE7EA20426E10000000A3F10A9
Notice that the strings look almost identical, but the 8th character on UUID1 is a D and the 8th on UUID2 is a E.
Jim -
Recursion:returning the largest value in a linked list
import java.io.*;
import java.util.*;
class Node{
int num;
Node next;
Node(int n){
num = n;
next = null;
class RecursivePrint{
public static void main(String[] args){
Node np, last;
Node top = null;
last = null;
for(int i = 1; i <11; i++){
np = new Node(i);
if(top==null)top = np;
else
last.next = np;
last = np;
int x =Largest(top);
System.out.println("large is "+ x);
}//end main
public static int Largest(Node top){
int large = 0;
if(top==null){
return 0;
while(top!=null){
if(top.num > large){
large = top.num;
//top = top.next;
Largest(top.next);
}//while
return large;
}//end class
I am trying to return the largest value in a linked list (10) in this case. when I do it withour recurrsion it works ok, but when I try it with recurrsion it dies. The logic seems ok to me, cannot figure why it dies.chetah wrote:
public static int Largest(Node top){
int large = 0;
if(top==null){
return 0;
if(top.num > large){
large = top.num;
//top = top.next;
Largest(top.next);
return large;
Initially I had the above, it return only 1 that was the reason for puting the loop.You don't seem to understand recursion or variable scope.
int large = 0;large is a different variable inside each instance of the method.
So when you get back up to the value 1 from the recursive calls its just comparing 1 to 0
Here's a solution...
public static int Largest(Node top){
if(top.next != null){
if(Largest(top.next) > top.num)
return Largest(top.next);}
return top.num;
} -
How to filter certificate templates in Certificate Authority snap-in with the correct values
How to filter certificate templates in Certificate Authority snap-in with the correct values
I have a 2012 R2 server running Microsoft Certificate Authority snap-in.
I want to do a filter on a specific Certificate Template which i know exists in the 'Issued Certificates' folder.
All the documentation i can find seems to suggest i copy the certificate name and use this in the View Filter.
1). I add the 'Certificate Template' option into the Field drop-down.
2). I leave the Operation as the '=' symbol
3). I paste in just the name of the template in question. for example: 'my computers'
The search results always come back blank 'There are no items to show in this view.' even when i know there are many instances of this template. I've tried on a win 2008 server and same issue.
Is there a correct value to enter for the Certificate Template name?
Can this be done easier using certutil commands?
When i run the certutil tool i can confirm i have several issued templates. Certutil -catemplates -v > c:\mytemplate_log.csv
Anybody know what i'm doing wrong?
I seem to be getting nowhere with this one.> But its important you are using the template name, not the display name
this is incorrect. OIDs are mapped to *display name*, not common name (it is true for all templates except Machine template). That is, in order to translate template name to a corresponding OID, you need to use certificate template's display name. And, IIRC,
template name in the filter can be used only for V1 templates. For V2 and higher, OID must be used.
My weblog: en-us.sysadmins.lv
PowerShell PKI Module: pspki.codeplex.com
PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
Check out new: SSL Certificate Verifier
Check out new:
PowerShell FCIV tool. -
The same selection doesn't return the same result in 2 identical systems
Hi,
After a copy we have 2 systems with same data.
In a program the same selection doesn't returns the same result, it seems that the sort is different.
I have checked indexes but they are ok in both systems.
Here is the selection:
SELECT but000~partner
INTO TABLE lt_partner
*UP TO 50 ROWS
FROM but000
JOIN but020
ON but020partner = but000partner
JOIN adrc
ON adrcaddrnumber = but020addrnumber
JOIN but100
ON but100partner = but000partner
WHERE but020~addr_valid_from LE '20100727000000'
AND but020~addr_valid_to GE '20100727000000'.
Is there a customizing point to define how the database must be sorted ?
Thanks.
Edited by: julien schneerberger on Jul 27, 2010 4:18 PMHi,
Thank you for your answer.
Result is the same and I don't sort data after the selection.
Do you think the system copy has "broke" the records order in database ?
If it is the case it will be impossible to reproduce the same sort, is it right ?
Edited by: julien schneerberger on Jul 27, 2010 5:19 PM
Edited by: julien schneerberger on Jul 27, 2010 5:20 PM -
How do I return the displaysleep value from the console?
I know that I can do pmset -g to list all the settings, including displaysleep, but I was hoping there was a command similar to that for the screensaver which only returns the numerical value:
defaults -currentHost read com.apple.screensaver idleTime
Any possibility there is a console function that will return the value only?
Thanks.Hi RavensFan,
Thank you for your help.
I have seen this Max/Min function, and I tried it, but I get an error becuase my signal is apprently "dynamic data" and the max/min function accepts double precision data, so thats the problem I am encountering at this moment. I have modified the block diagram to convert the "dynamic data" into a double and then do the same thing you suggested, but I will test it tomorrow in the lab.
I am currently working around this by using a numeric input, which the user would simply watch the sensor output over the calibration period and manually input that value into the formula.
Thanks again!
PackersFan btw...
Cheers -
Control not outputting the correct value
Hello,
I have a producer consumer architecture with a queue to pass values. I want to push a new value onto the array using "Insert into Array" when a button is pressed, but when I do the previous value is being read the first time and the correct value on the second press.
I'm self taught and it's my first time using the queue so maybe something I'm not seeing/thinking about there?
Version 8 VI Attached.
Do this to see the problem:
1. Run
2. Click "Master Read"
3. Change "Value"
4. Click "Master Read"
5. Click "Master Read"
Any help is appreciated including block diagram critique.
Thanks!
Solved!
Go to Solution.
Attachments:
Untitled 1.vi 16 KBIt all depends on how you change the value of "Value". If you use the increment and decrement buttons it works as you expected.
If however, you type in a new value and click the button without clicking somewhere else first, it doesn't work - and here's why:
When you type in a value that modified value doesn't show up in the code untill the control loses "key focus". The problem is that clicking the button does cause the numeric input to lose key focus but only after the code has responded to the mouse up event.
To fix the problem put a property node in the mouse down event to set the numeric's KeyFocus property to false before the value is enqueued.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
COPA Derivation Rules are not assigning the correct values
COPA Derivation Rules are not assigning the correct values when we process billing documents in batch. We currently have derivation rules defined to take the ship to country and refer to custom tables were we identify custom geographic groups (INT/DOM and EAM, AP, etc.). The derivation rules work accurately when the billing documents are created individually, and more than 75% of them are accurate when generated in batch, but in some circumstances, it populates the derived values with the wrong field and we can not identify where or why that's happening. It looks like it may have something to do when the ship to customer number account group is different, but that's not consistent.. Does anyone know how or where these values get populated, or have any ideas why incorrect values are appearing sporadically throughout the billing run? Thanks!!!
Leigh,
Apparently the function module is changing the values for some billing docs. Check one of the following user exits, if it gets triggered and the values are changed:
COPA0001 Enhancement for derivation in Profitability Analysis (CO-PA)
Function Module: EXIT_SAPLKEDRCOPA_001
COPA0002 Enhancement for valuation in Profitability Analysis (CO-PA)
Function Module: EXIT_SAPLKEAB_001
COPA0003 Enhancement for assignment to profitability segment (CO-PA)
Function Module: EXIT_SAPLKEAK_001
COPA0005 Enhancement for actual data update (CO-PA)
Function Module: EXIT_SAPLKEII_001
Function Module: EXIT_SAPLKEII_002
Award suitable points if the above helps. You can also reach me at [email protected]
Thanks
Ajay -
Ldapsearch does not return the correct result
We are using the Netscape Directory server 4.12. We try to use the Radiator Radius server to query the Directory server for authentication.
When we use the filter:
uid=itkychan
to query if the user is in the Directory, it returns the correct result.
However, we would like to query if the username is in a specified group, e.g. tss_ns_grp, in the Directory, we try to use the following command:
#./ldapsearch -b "o=The xxx University,c=HK" -h hkpu19
"(&(cn=tss_ns_grp)(|(&(objectclass=groupofuniquenames)(uniquemember=uid=itkychan))(&(objectclass=groupofnames)(member=uid=itkychan))))"
but no result is returned.
itkychan is a member of the group tss_ns_grp. The following is a portion of the LDIF file:
dn: cn=tss_ns_grp, o=The xxx University, c=HK
objectclass: top
objectclass: groupOfUniqueNames
objectclass: mailGroup
cn: tss_ns_grp
mail: [email protected]
mailhost: abcd.xxxu.edu.hk
uniquemember: cn=xxxxxxxxxxxxxx, uid=itkychan, ou=xxxu_ITS, o=The xxx University, c=HK
uniquemember: cn=xxxxxxxxxxxxxx, uid=itjcheng, ou=polyu_ITS, o=The xxx University, c=HK
uniquemember: .....You will have to use the full DN for the member and uniquemember e.g.
(...(uniquemember=cn=xxxxxxxxxxxxxx, uid=itkychan, ou=xxxu_ITS, o=The xxx University, c=HK)...) -
FileReader does not return the correct byte value of the characters
I have some text in a very old persian code page and all I have from this code page is numerical table of the characters(like ASCII table).
With a HashMap, the equivalent Unicode characters are mapped to the numerical values. With using FileInputStream and its read() method, it converts corretly;
but by using the FileReader (following code snippet), just a few characters cannot be read correctly so it cannot be mapped correctly either.(I tryed several encodings too)
FileReader in = new FileReader("inputFile");
BufferedReader b = new BufferedReader(in);
Stirng s = b.readLine();
byte[] by = s.getBytes("encoding");
I need to work with strings for conversion; so is ther any solution for it?I have some text in a very old persian code page and
all I have from this code page is numerical table of
the characters(like ASCII table).
With a HashMap, the equivalent Unicode characters are
mapped to the numerical values. With using
FileInputStream and its read() method, it converts
corretly;
but by using the FileReader (following code snippet),
just a few characters cannot be read correctly so it
cannot be mapped correctly either.(I tryed several
encodings too)
FileReader in = new FileReader("inputFile");
BufferedReader b = new BufferedReader(in);
Stirng s = b.readLine();
byte[] by = s.getBytes("encoding");
I need to work with strings for conversion; so is ther
any solution for it?Use FileInputStream to read the data into bytes, then use your mapping to convert bytes to characters. Then create a string representation by appending the characters to a StringBuffer. You can't use FileReader because readers convert bytes to characters using a character encoding, which you don't have.
Maybe you are looking for
-
Another "itunes Sync *app* Failed to install" thread
Hi, I am having some major provisioning problems, and i dont want to hijack the other thread. My Macbook Air crashed after trying to install a thunderbolt driver in July and i lost my dev environment. I reinstalled OS, downloaded my sources and i can
-
Lightroom 5.5 can't open nef files in photoshop cc 2014
I have a subscription to both Lightroom 5.5 and Photoshop CC 2014 through the Cloud. Today I attempted to open a .nef file from Lightroom in Photoshop by the usual method of right-clicking on the file in Lightroom and selecting Edit In> Edit in Adobe
-
JScroller on JTable and table size
Hi everyone... I have a small problem...i added JScrollPane to my JTable...but if i do the following... JScrollPane contentScroller= new JScrollPane(myJTable,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); myJTable.
-
Help - LCM Utility Error - Could not connect to source - Null
Has anyone successfully used LCM to extract BI+ objects to files under 9.3.1? I've configured it as per the doc, and it seems to connect to HSS Ok, but fails to connect to BI+ even though I've used the Project name and App ID as shown in Shared Servi
-
Shortcuts: Change brightness to F1 and F2 key from
Good morning All. The F1 and F2 keys on my Apple Wireless Keyboard no longer control the brightness settings for my LED Cinema Display. The shortcut has changed to F14 and F15. The keyboard itself still works fine - and the F1 and F2 buttons do sti