FM for compairing The values of two TR
hi Experts,
FM for Compairing transport request (TR) based on the primary key values assosiated with that .
Regards
Amit kumar
Edited by: Amit Kumar on Sep 10, 2008 10:59 AM
Hi!
I don't think such FMs exist in a SAP system.
I suggest you to check out the tables E070 and E071 for the transport entries, and check these tables.
Regards
Tamá
Similar Messages
-
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
In BADi , How to pass the values between two Method
Hi Experts,
We have two methods in BADis. How to pass the value between two Methods. Can you guys explain me out with one example...
Thanks & Regards,
Sivakumar SHi Sivakumar!
Create a function group.
Define global data (there is a similiar menu point to jump to the top include).
Create one or two function modules, with which you can read and write the global data.
In your BADI methods you can access the global data with help of your function modules. It will stay in memory through the whole transaction.
Regards,
Christian -
How to avoid report running for all the values in roll up of guided naviga
Hi
Thanks in Advance
I have 3 reports on three different pages of a dashboard. (Implemented guided navigation on one column of each report).When I click on value of guided navigation column it guides me to report 2 for that particular value (is prompted), same way for 3 report also till here it works fine.
However when I return from report 3 to report 2 and 2 to 1, the reports are running for all the values instead for the value which was passed by guided navigation of previous report earlier (Value on which I clicked to pass to the next report).
Edited by: 808623 on Nov 9, 2010 2:10 AMYes
Example : If i click on values 'X' in report 1
Report 2 shows results for 'X' only. And if i click on Value say 'Y' in 2 then report 3 shows for only 'Y'. But when i rollup from 3 to 2, Report 2 is showing for all values rather than showing 'x'.
I'm using Link or Image Dashboard Object > Destination>Request or Dashboard (path of previous report)
Edited by: 808623 on Nov 9, 2010 2:37 AM -
I want to spit cell the value into two separate columns like f_name & l_nam
Hi Guys,
I have excel data in one cell with ',' separated data.
sample data:
empno ename
121 ravi,kann
232 ram,raman
here ename value in one provided in one cell.
Now i want to spit cell the value into two separate columns like first_name and last_name?
Thanks in advance
-LKwith sample_data as
select 121 empno, 'ravi,kann' ename from dual union all
select 232 empno, 'ram,raman' from dual
select empno,
substr(ename,1,instr(ename,',')-1) first_name,
substr(ename,instr(ename,',')+1) last_name
from sample_data; or with regular expressions:
with sample_data as
select 121 empno, 'ravi,kann' ename from dual union all
select 232 empno, 'ram,raman' from dual
select empno,
regexp_substr(ename,'^[^,]*') first_name,
regexp_substr(ename,'[^,]*$') last_name
from sample_data; Edited by: hm on 04.07.2012 06:22 -
Concatinating the values of two columns ???
Hi,
Can anyone help me out in concatenating the values of two columns ??
Please ASAP...
Thanks>
What's wrong with
select (col X || '-'|| Col y ) as Z from xyz_table;
test@ora>
test@ora>
test@ora> --
test@ora> with xyz_table as (
2 select 1 as col from dual)
3 --
4 select (col X || '-'|| Col y ) as Z from xyz_table;
select (col X || '-'|| Col y ) as Z from xyz_table
ERROR at line 4:
ORA-00907: missing right parenthesis
test@ora>
test@ora>
test@ora> --
test@ora> with xyz_table as (
2 select 1 as x, 2 as y from dual)
3 --
4 select (col X || '-'|| Col y ) as Z from xyz_table;
select (col X || '-'|| Col y ) as Z from xyz_table
ERROR at line 4:
ORA-00907: missing right parenthesis
test@ora>
test@ora>
test@ora> -- ==================================================
test@ora> --
test@ora> with xyz_table as (
2 select 1 as col from dual)
3 --
4 select (col || '-'|| Col) as Z from xyz_table;
Z
1-1
1 row selected.
test@ora>
test@ora>
test@ora> --
test@ora> with xyz_table as (
2 select 1 as x, 2 as y from dual)
3 --
4 select (X || '-'|| y ) as Z from xyz_table;
Z
1-2
1 row selected.
test@ora>
test@ora>isotope -
can't get the value from two variables when execute MDX : Anyone who can help ?
================================
with member [Measures].[APGC Replied Volume] as
([Measures].[Question],[Dim Replied By].[Replied By].&[APGC])
member [Measures].[APGC Moderated Volume] as
([Measures].[DashBoard Thread Number],[Dim Moderated By].[Moderated By].&[APGC])
member [Measures].[APGC Answered Volume] as
([Measures].[Question],[Dim Answered By].[Answered By].&[APGC])
SELECT
NON EMPTY
[Measures].[Forum Thread Number],
[Measures].[Reply In24 Hour],
[Measures].[Question],
[Measures].[Deliverale Minute],
[Measures].[Working minutes],
[Measures].[Answered],
[Measures].[1D Answer],
[Measures].[2D Answer],
[Measures].[7D Answer],
[Measures].[APGC Replied Volume],
[Measures].[APGC Moderated Volume],
[Measures].[APGC Answered Volume],
[Measures].[Avg HTR],
[Measures].[Avg HTA],
[Measures].[Total Labor]
} ON COLUMNS,
NON EMPTY { ([Dim Engineer].[SubGroup-Alias].[Alias].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM (
SELECT ( STRTOMEMBER(@FromDimTimeFiscalYearMonthWeekLastDateDay, CONSTRAINED) : STRTOMEMBER(@ToDimTimeFiscalYearMonthWeekLastDateDay,
CONSTRAINED) ) ON COLUMNS
FROM [O365]) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGSHi Ada,
According to your description, you can't get the member when using the strtomember() function in your MDX. Right?
In Analysis Services, while the member name string provided contains a valid MDX member expression that resolves to a qualified member name, the CONSTRAINED flag requires qualified or unqualified member names in the member name string. Please check if the
variable is a Multidimensional Expressions (MDX)–formatted string.
Reference:
StrToMember (MDX)
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support -
New solution for Limit the value in JSpinner with changable max/min value
I have ever stuck with a problem like that :
1. My application need to get two int value A and B that user input.
I use two JSpinner with Number format model.
named in jSpinnerFrom (A value get from) jSpinnerTo (B value get from)
2. The request is that :
two value can be any Integer, But the value of (B - A) can not more than 1000.
I use changeListener added into the JSpinner, when use set value make (B-A) larger than 1000, I set value back.
But when user press mouse on arrow button, the value will be increase automaticaly, and at last the value can not set back that make (B-A) not larger than 1000.
3. So I get the BasicArrowButton of the jSpinnerFrom and jSPinnerTo,
and add a mouselistener on the arrowbutton. When mouseReleased, then chen the value (B-A), if it is larger than 1000, then set it back the proper value.
Thus I can make the min/max value in the JSpinner be changable, and limit the two input value be in range of 1 - 1000
Post this wish be help for any one has thus familar request.
Good Luck!!Something like this might work
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
class Spin extends JFrame implements ChangeListener
JSpinner spinner1;
JSpinner spinner2;
JPanel jp;
public Spin()
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(200,75);
setLocation(400,300);
spinner1 = new JSpinner(new SpinnerNumberModel(1000, 1000, 9999, 5));
spinner1.addChangeListener(this);
spinner2 = new JSpinner(new SpinnerNumberModel(0, 0, 1000, 5));
jp = new JPanel();
jp.add(spinner1);
jp.add(spinner2);
getContentPane().add(jp);
public void stateChanged(ChangeEvent ce)
int s1 = ((Integer)spinner1.getValue()).intValue();
jp.remove(spinner2);
spinner2 = new JSpinner(new SpinnerNumberModel(s1-1000, s1-1000, s1, 5));
jp.add(spinner2);
validate();
public static void main(String[] args) {new Spin().setVisible(true);}
} -
Better approach for checking column values between two different rows
My requirement is to find best Approach to find difference between column values of two different rows.Below I've mentioned two different
approaches I'm thinking of,but I'd like to know is there any other better approach.
version details
SQL> SELECT *
2 FROM V$VERSION;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - ProductionTable creation script
CREATE TABLE R_DUMMY
(CA_ID VARCHAR2(16) NOT NULL ENABLE,
CA_VER_NUM NUMBER(4,2) NOT NULL ENABLE,
BRWR_SHORT_NAME VARCHAR2(25 CHAR),
sic_code number,
FAC_ID VARCHAR2(10) NOT NULL ENABLE
/ insert script
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 2.00, 'Nandu',1234, 'FA000008');
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 3.00, 'SHIJU',456, 'FA000008');Desired O/P :
ca_id fac_id column_name previous name after_modification
CA2001/11/0002 FA000008 BRWR_SHORT_NAME Nandu SHIJU
CA2001/11/0002 FA000008 sic_code 1234 456My approach
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,lag_brwr,ld_brwr,ld_sic,lag_sic
from
Select lead(brwr_short_name,1) over(partition by ca_id,fac_id) ld_brwr,
lag(brwr_short_name,1) over(partition by ca_id,fac_id) lg_brwr,
lead(sic_code,1) over(partition by ca_id,fac_id) ld_sic,
lag(sic_code,1) over(partition by ca_id,fac_id) lg_sic,
ca_id,fac_id
from r_dummy
where (ld_brwr != lg_brwr or ld_sic != lg_sic)
)2nd Approach :
=============
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,brwr_short_name,sic_code
from
Select ca_id,fac_id,brwr_short_name lg_brwr,sic_code lg_sic
from r_dummy
where ca_ver_num = '2.00'
)o,(
Select ca_id,fac_id,brwr_short_name ld_brwr,sic_code ld_sic
from r_dummy
where ca_ver_num = '3.00'
)n
where 0.ca_id = n.ca_id
and 0.fac_id = n.fac_id
and (ld_brwr != lg_brwr or ld_sic != lg_sic)
)Hi Experts,
I've provided sample data where I'm checking for just two columns viz brwr_short_name ,sic_code,but in real time
I've to check for 8 more columns so please suggest me with a better approach.
I appreciate your precious suggestions.Hi,
Thanks for posting the CREATE TABLE and INSERT statements; that really helps!
Here's one wa. Like your 2nd approach, this uses a self-join:
WITH got_r_num AS
SELECT ca_id
, ROW_NUMBER () OVER ( PARTITION BY ca_id
, fac_id
ORDER BY ca_ver_num
) AS r_num
, brwr_short_name
, TO_CHAR (sic_code) AS sic_code
, fac_id
-- , ... -- Other columns (using TO_CHAR if needed)
FROM r_dummy
, unpivoted_data AS
SELECT *
FROM got_r_num
UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, sic_code AS 'SIC_CODE'
-- , ... -- Other columns
SELECT p.ca_id
, p.fac_id
, p.column_name
, p.txt AS previous_name
, a.txt AS after_modification
FROM unpivoted_data p
JOIN unpivoted_data a ON p.ca_id = a.ca_id
AND p.fac_id = a.fac_id
AND p.column_name = a.column_name
AND p.r_num = a.r_num - 1
AND p.txt || 'X' != a.txt || 'X'
ORDER BY a.r_num
;To include other columns, add them in the 2 places where I put the comment "Other columns".
Ca_ver_num can have any values, not just 2.00 and 3.00.
This will show cases where a value in one of the columns changed to NULL, or where NULL changed to a value.
There ought to be a way to do this without a separate sub-query like got_r_num. According to the SQL Language manual, you can put expressions in the UPIVOT ... IN list, but when I tried
... UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, TO_CHAR (sic_code) AS 'SIC_CODE'
)I got the error "ORA_00917: missing comma" right after TO_CHAR. Perhaps someone else can show how to eliminate one of the sub-queries. -
Is there an easy way to filter a 2-d array based on the values of two of the fields?
Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
TimeStamp Ident Frame Type Bytes Data
10:57:07.621 3AD00016 CAN Data Frame 8 0000000000000000
10:57:07.622 3AD00017 CAN Data Frame 8 000005E000000000
10:57:07.624 3AD00018 CAN Data Frame 8 0000000003300000
10:57:07.625 2DC00000 CAN Data Frame 8 0000000000000000
10:57:07.626 3AD00019 CAN Data Frame 4 0000030000000000
I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
Thank you.
Solved!
Go to Solution.
Attachments:
CMM_SN_MULTI.vi 20 KBHi chuck72352,
after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
Mike
Attachments:
ArraySubset.PNG 25 KB -
Passing the values between two pages
hi all,
I am trying to pass the value from one page to another page. by referring the Link
http://www.youtube.com/watch?v=4eyzBiIf5MM&feature=related
I have created the code based on the demo. it is deployed without any issues. but when i press the hyperlink from the first page it is not moving to the second page.
Regards
C.KarukkuvelHi john,
My Requirement is to create a ADF page based on the Human Task with the Default payload. In that page when the user presses the empid link field, It will show all the information related to the employee id in a separate page.
so ,
1. i have created the View Object based on the Query with where clause
2. Create a bind variable for the where clause
3.Created s new page for displaying the employee details
4.drag and drop the both the pages (employee details, default page created by human task) into the adfcconfig file.
5.drag and drop the Execute with params into the adfcconfig file
6.wire it from human task page --> execute with params--> Employee details page
7.change the employee field in that human task page to a link field.
8.drag and drop the set property listener to that employee field.
Testing
Enter the input values for the Web service, logging to the BPM worklist, double click that task .it is showing the details when I press the employee id it is not navigating to the employee details page.
Thanks in advance
C.Karukkuvel -
How to pass the value between two screen in dialog programming.
hi everybody,
In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
Thanks
byeeAashish,
Welcome to SDN!!!!
SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
U donot want to worry abt Data Transfers!!!
If this does not solve ur requirement, let us know.
Thanks
Kam -
Function module for updating the values in table VTTK
Hi,
I am working on a report in which I need to update the value of field tdlnr of table vttk for a particular shipment number. I need to do this using functional module and I am not been able to find one. If anyone knows answer to this plz help.
Thanks in advance,
Priyanka.As noted above, RETURN table must be supplied empty, it is for BAPI to return the messages back to the calling program. You simply need to define an internal table, pass it to BAPI as is and then analyze this table after the BAPI call. For example:
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
<...>
TABLES
<...>
return = it_return.
LOOP AT it_return.
MESSAGE
ID it_return-id
TYPE it_return-type
NUMBER it_return-number
WITH
it_return-message_v1
it_return-message_v2
it_return-message_v3
it_return-message_v4.
ENDLOOP.
Hope this helps. -
Formule used in the transaction MP30 for calcolate the value ROP.
Dear gurus,
in the transaction MP30 we insert the value in the field "Corrected value" and the system calcolate a value of the parameter Reorder Point . What formule use for calcolated this value? How this value is calcolated.?
Thansk a lot
Daniele Pistilli
PP TEAMHi,
Check the OSS Note 415950 - Calculation of the safety stock in the forecast.
The caliculation is explained in details.
And also the below link:
[Calculating the Safety Stock and the Reorder Level|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7d/c27408454011d182b40000e829fbfe/content.htm]
[Reorder Level Calculation|http://help.sap.com/saphelp_erp60_sp/helpdata/en/7d/c27a3b454011d182b40000e829fbfe/content.htm]
Hope this helps.
Regards,
Siva -
K-Bits (1) : Interchange the values of two columns
Hi Everyone
I wanted to get started a mechanism of knowledge sharing in the way of a series of threads called “K-Bits” (Knowledge Bits).
In our day to day work, we learn some new things which can be useful for others. However we hardly get a chance to share it with others.
Here is the opportunity to share your knowledge in the form of “K-Bits”.
Here we start with the First Tip of this series.
You might face a situation where you need to interchange the values of 2 columns in an Oracle database table.
E.g. there is a table employee having columns EMPID, FIRST_NAME, LAST_NAME and SALARY. By mistake the values of FIRST_NAME and LAST_NAME have been interchanged. Now you need to bring the data in correct state.
You can think about following few options:
Option-1_
1. Alter table employee and add a new column TEMP_NAME to it.
2. Update the values of LAST_NAME to TEMP_NAME.
3. Update the LAST_NAME with the values of FIRST_NAME.
4. Update the FIRST_NAME with the values of TEMP_NAME.
5. Drop the column TEMP_NAME.
Option-2 (For Oracle version 9i or higher)_
1. Alter table employee and rename LAST_NAME column to TEMP_NAME.
2. Alter table employee and rename column FIRST_NAME to LAST_NAME.
3. Alter table employee and rename column TEMP_NAME to FIRST_NAME.
Probably you can go ahead with any other solution as well. However there is one very simple solution.
Option-3_
Let do it by example:
DROP TABLE EMPLOYEE;
CREATE TBALE EMPLOYEE
EMPID NUMBER
,FIRST_NAME VARCHAR2(30)
,LAST_NAME VARCHAR2(30)
,SALARY NUMBER
INSERT INTO EMPLOYEE VALUES (1,'Tendulkar','Sachin', 10000);
INSERT INTO EMPLOYEE VALUES (1,'Ganguli','Saurabh', 10000);
INSERT INTO EMPLOYEE VALUES (1,'Pathan','Irfan', 10000);
INSERT INTO EMPLOYEE VALUES (1,'Khan','Jaheer', 10000);
INSERT INTO EMPLOYEE VALUES (1,'Agarkar','Ajit', 10000);
INSERT INTO EMPLOYEE VALUES (1,'Dravid','Rahul', 10000);
SELECT *
FROM EMPLOYEE;
UPDATE EMPLOYEE
SET FIRST_NAME = LAST_NAME
,LAST_NAME = FIRST_NAME;
SELECT *
FROM EMPLOYEE; The update statement above solves the purpose. Is not it simple? But how does it work??
For any DML (Insert, Update or Delete) oracle internally fires the row level triggers. You can read more about triggers at
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96524/c18trigs.htm
and
http://download-east.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg13trg.htm#431
As you know in row level triggers the values of each column is stored in :OLD and :NEW parameters. For the above UPDATE statement oracle stores the old values of FIRAT_NAME and LAST_NAME in :OLD.FIRST_NAME and :OLD.LAST_NAME parameters respectively and then update FIRST_NAME with :OLD.LAST_NAME and LAST_NAME with :OLD.FIRST_NAME.
Regards
Arun Kumar GuptaFor any DML (Insert, Update or Delete) oracle internally fires the row level triggers.Any pointer to the documentation supporting this ?
Edited by: Saubhik on Dec 7, 2010 5:58 PM
Maybe you are looking for
-
My ipad is locked up. A message stating that an icloud backup has not been done for 5 weeks. How can I get rid of this and prevent this from happening again?
-
Customer Re-Imbursement in F110 issue
Hi, I have raised customer credit memo and trying to do F110 for payment program. In Edit proposl screen i am not able to do Re-Allocate transaction there. It is giving the below error. Payment method not defined in company code 1000 Payment method a
-
HELP! I'm getting error messages when I try to update all of my podcasts.
The message I get for each podcast I try to update is "There was a problem downloading "Episode Name". An unknown error occurred (-50). Please check that the URL is correct and the connection to the network is active and try again." I tried checking
-
I have a Lucid 2 LG. I have been having trouble with insuffient storage. I have a 8G phone and have spent hours with Tier 2 tech trying to move info from the internal storage to the SD card with no luck, When I go to storage in the settings it sta
-
Error - "... unable to find your response..."
When I click on the 'curly arrow', indicating my reply to an e-mail in my InBox, for another look at it, I (mostly) get this: "Mail was unable to find your response to the message "xxxx". You may have deleted the message" The reply might have been se