What will be the query to generate this reports ?
Dear Exparts,
Here is my banner
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
"CORE 10.2.0.3.0 Production"
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - ProductionHere is the sample data
TId TDate TName TCol1 TCol2 TCol3 TCol4 TCol55 TCol56 TCol N
1 01-aug-2012 Abc Ab Bc aa bb TT
2 05-aug-2012 abc A A aa bb TT
3 20-aug-2012 bcd AA AA BB bb C D TTI want to produce the following report
Revision Date Revision Field Previous Value Revised Value
05-aug-2012 TCol1 Ab A
TCol2 Bc A
20-aug-2012 TName Abc Bcd
TCol1 A AA
TCol2 A AA
TCol3 Aa BB
TCol55 C
TCol56 DHow can i do this... ?
Here is the script for create table
CREATE TABLE TB_TEST
TID NUMBER(5)
, TDATE DATE
, TNAME VARCHAR2(20)
, TCOL1 VARCHAR2(20)
, TCOL2 VARCHAR2(20)
, TCOL3 VARCHAR2(20)
, TCOL4 VARCHAR2(20)
, TCOL55 VARCHAR2(20)
, TCOL56 VARCHAR2(20)
, TCOLN VARCHAR2(20)
);Script for sample data
INSERT INTO TB_TEST (TID,TDATE,TNAME,TCOL1,TCOL2,TCOL3,TCOL4,TCOLN)
VALUES (1,TO_DATE('01-AUG-2012','DD-MON-RRRR'),'ABC','AB','BC','AA','BB','TT');
INSERT INTO TB_TEST (TID,TDATE,TNAME,TCOL1,TCOL2,TCOL3,TCOL4,TCOLN)
VALUES (2,TO_DATE('05-AUG-2012','DD-MON-RRRR'),'ABC','A','A','AA','BB','TT');
INSERT INTO TB_TEST (TID,TDATE,TNAME,TCOL1,TCOL2,TCOL3,TCOL4,TCOL55,TCOL56,TCOLN)
VALUES (3,TO_DATE('20-AUG-2012','DD-MON-RRRR'),'BCD','AA','AA','BB','BB','C','D','TT');Thanks..
Edited by: Asked to Learn on Sep 9, 2012 6:57 PM
Hi,
Asked to Learn wrote:
Dear Exparts,
Here is my banner ...Thanks; that's helpful.
Here is the sample data
Id Date Name Col1 Col2 Col3 Col4 Col55 Col56 Col N
1 01-aug-2012 Abc Ab Bc aa bb TT
2 05-aug-2012 abc A A aa bb TT
3 20-aug-2012 bcd AA AA BB bb C D TT
That's not so helpful. Whenever you have a question, post CREATE TABLE and INSERT statements for the sample data. See {message:id=9360002}
I want to produce the following report
Revision Date Revision Field Previous Value Revised Value
05-aug-2012 Col1 Ab A
Col2 Bc A
20-aug-2012 Name Abc Bcd
Col1 A AA
Col2 A AA
Col3 Aa BB
Col55 C
Col56 DHow can i do this... ?First, Unpivot the data so that, instead on having 8 columns of comparison data on 1 row, you have 1 column on 8 rows. Since you're using Oracle 10.2, you can't use the SELECT ... UNPIVOT feature, but there are other ways to unpivot. See {message:id=10562807} for a technique that works in Oracle 9.1 or higher.
Then, use the anlytic LAG function to compare each vlaue to its previous value. You can do the same sort of thing with the revision_date column, to display NULL when it's the same as the previous row.
If you'd like help, post CREATE TABLE and INSERT statmements for the sample data, and your best attempt. Simplify the problem at first. Just unpivot name and col1: forget about col2 through coln for now. Once you have a solution for 2 columns, modifying it for 8 (or 9, or 89) columns will be easy. When you can unpivot the 2 columns, see if you can use LAG to compare them.
Similar Messages
-
What are all the tables used for this report:
hi
what are all the tables used for this report:
report:
<b>Stock Report, which will give opening balance, receipt, issue, and closing balance for any given Duration for any material.</b>
thanks in advanceTables: MSEG, MKPF, MARD.
FOR REFERENCE SEE TRANSACTION : MB5B.
Message was edited by: Sharath kumar R -
What r all the tables used for this report. please reply
hai,
what r all the tables used for this report.
report :
<b>
Report to display all finished goods that go out-of-stock. Developed a drill down report for materials details (totals and subtotals for material stock values by material group and material type).</b>
thanks in advancehi Ashok,
Check this out
http://www.allsaplinks.com/tables.html
http://www.sapgenie.com/abap/tables.htm
Regards,
Santosh -
What will be the query for the below stated problem..??
Dear Sir
I want that in Incoming payment after selecting a Customer when we right click and select payment means under checks tab the bank details of that customer should be there i.e. According to Bank Code its Branch and Account no be shown with the help of a query. If anyone knows the query for this please let me know...Hello jyotasna ,
Let me try explain
SAP Process :-
When you make incoming payment with Cheque or bank then this is not complete sale cycle.
Bank Offset Account Debit
Customer Account Credit
You should make deposit(Banking>Incoming Payment>Deposit) for which you have made incoming payment.and here we put all info for bank account
Bank Account Debit
Bank Offset account Credit
Why :-
Suppose your client said that he deposit your cheque in bank in this date but due same bake issue or cheque issue the same cheque deposited in next day.
In this senario if i made this entry in SAP then we need to modify it based on Bank Reconciliation Statement(BRS)
We also have bank reconciliation set for same
Is there any confusion ?
Thanks
Manvendra Singh Niranjan
Edited by: Manvendra Singh Niranjan on Jul 13, 2011 1:10 PM -
What are all the tables used for this report ? please reply
hai
i have practcing reports,
so any one give me the name of the tables used for the below report
<b>Created report for invoice details, shipping details and partner function.</b>
thanks in advance.
by
ashokHi Ashok,
I am sending you the code which will display tables present in SAP with the description and jump to datadic or SE16 by selecting plus F2 or F8.
REPORT ZZBGS044 MESSAGE-ID Z1 LINE-COUNT 65 LINE-SIZE 132
NO STANDARD PAGE HEADING.
Description: This program list all tables in regards to the *
selection criteria. *
Customizing: You need not to make any customizing to use this program*
Change of You only have to check that tables, functions and *
release: includes till exists. Bedst just to check and run the *
program. *
Programmer: Benny G. Sørensen *
Date: July 1995 *
SAP R/3 2.2F *
Corrections----
Date Userid Correction *
xx-xx-xxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx *
TABLES: DD02V "SAP tables view
DATA: BEGIN OF DYNTAB OCCURS 2000.
INCLUDE STRUCTURE BDCDATA.
DATA: END OF DYNTAB.
DATA: BEGIN OF TABLES OCCURS 100.
INCLUDE STRUCTURE DD02V.
DATA: END OF TABLES.
DATA: L TYPE I,
REPL(30) TYPE C VALUE '????????????????????????????'.
FIELD-SYMBOLS:
PARAMETERS:
TABLE(30) TYPE C,
TITLE(74) TYPE C LOWER CASE DEFAULT ' ',
DOWNLOAD(1) TYPE C DEFAULT ' ',
FILENAME(65) TYPE C DEFAULT 'c:SAPDOC?',
EXCEPT(30) TYPE C DEFAULT ' '.
START-OF-SELECTION.
IF TABLE = ''.
TABLE = '*' .
ENDIF.
IF TITLE = ''.
TITLE = '*' .
ENDIF.
TRANSLATE TABLE USING '*%'.
TRANSLATE TITLE USING '*%'.
CONDENSE EXCEPT NO-GAPS.
L = STRLEN( EXCEPT ).
IF L > 0.
ASSIGN REPL(L) TO
ENDIF.
SELECT * FROM DD02V INTO TABLES
WHERE DDLANGUAGE = SY-LANGU
AND TABNAME LIKE TABLE
AND DDTEXT LIKE TITLE.
HIDE DD02V-TABNAME.
IF EXCEPT NE ''.
REPLACE EXCEPT LENGTH L WITH
INTO TABLES-TABNAME.
ENDIF.
TRANSLATE TABLE USING '% '.
CONDENSE TABLE NO-GAPS.
IF TABLES-TABNAME CS TABLE.
WRITE:/ TABLES-TABNAME, ' ', TABLES-DDTEXT.
APPEND TABLES.
ENDIF.
ENDSELECT.
IF DOWNLOAD NE ''.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
FILETYPE = 'WK1' "ASC, WK1, DBF, DAT, bin
TABLES
DATA_TAB = TABLES.
ENDIF.
AT LINE-SELECTION.
SET PARAMETER ID 'DOB' FIELD SY-LISEL(30) .
CALL TRANSACTION 'SE12' AND SKIP FIRST SCREEN.
AT PF8.
CHECK SY-LISEL <>
SET PARAMETER ID 'DTB' FIELD SY-LISEL(10) .
REFRESH DYNTAB.
PERFORM DYNPRO USING:
'X' 'SAPMSTAZ' '0100' "Selection screen
,' ' 'DD02V-TABNAME' SY-LISEL(10).
CALL TRANSACTION 'SE16' USING DYNTAB MODE 'A' .
FORM DYNPRO USING DYNBEGIN NAME VALUE.
IF DYNBEGIN = 'X'.
CLEAR DYNTAB.
MOVE : NAME TO DYNTAB-PROGRAM,
VALUE TO DYNTAB-DYNPRO,
DYNBEGIN TO DYNTAB-DYNBEGIN.
APPEND DYNTAB.
ELSE.
CLEAR DYNTAB.
MOVE: NAME TO DYNTAB-FNAM,
VALUE TO DYNTAB-FVAL.
APPEND DYNTAB.
ENDIF.
ENDFORM.
Regards,
Azaz Ali. -
How to find the query that generates print preview?
Hello,
How can I find the query that gets executed to generate print preview? On SAP Business One client if I open a Sales Quotation and click on print preview a report is generated. What queries are run in the background to generate this report?
Thanks for your help.
Regards,
SheetalHi Sheetal,
In such cases i am using a Profiler which is connected to my company's database. If you are using SQL-Server, the start the "Profiler", connect it to your database server and start the trace. When the trace is running, execute the SBO action. After you executed this action you will see in the profiler the excuted SQL-Statements.
Regards,
Christian -
Hi,
I have an (iPad 2) and an iMac (2012). I have one apple ID used for both the itunes and appstore on the iPad, and on the iMac a different apple ID used for the appstore and itunes. What will be the consequences of changing my email ID on the ipad to the one used on the imac? I don't want to delete the iPad apple ID, just never use it again. I just want to work with 1 apple ID over the 2 devices.
I have purchased apps on the iPad and other documents/movies/books etc and if I sync to the iMac will all that be deleted? How can I just use the one apple ID for all? Does it mean that every time I connect my iPad to the iMac that I have to login to itunes using the iPad apple ID? Maybe it is that simple I don't know.
What will be the consequences of doing this and is it possible?
Thanks.settings->itunes & app stores->click appleID and choose logout
-
Sql query to generate this output
Hi,
I have a table as follows;
SET_MASTER
ID set_id attribute_id attribute_value
1 1 2 10
2 1 3 20
3 1 4 50
4 1 5 60
5 2 2 10
6 2 3 30
7 2 4 40
8 2 5 50
I want to generate an output as folllows;
Attr_id Set1_attr_value Set2_attr_value min_attr_value max_attr_value
2 10 10 10 10
3 20 30 20 30
4 50 40 40 50
5 60 50 50 60
Please provide the query to generate this output.
Thanks.SQL> create table set_master (id,set_id,attribute_id,attribute_value)
2 as
3 select 1, 1, 2, 10 from dual union all
4 select 2, 1, 3, 20 from dual union all
5 select 3, 1, 4, 50 from dual union all
6 select 4, 1, 5, 60 from dual union all
7 select 5, 2, 2, 10 from dual union all
8 select 6, 2, 3, 30 from dual union all
9 select 7, 2, 4, 40 from dual union all
10 select 8, 2, 5, 50 from dual
11 /
Tabel is aangemaakt.
SQL> select attribute_id attr_id
2 , max(decode(set_id,1,attribute_value)) set1_attr_value
3 , max(decode(set_id,2,attribute_value)) set2_attr_value
4 , least(max(decode(set_id,1,attribute_value)),max(decode(set_id,2,attribute_value))) min_attr_value
5 , greatest(max(decode(set_id,1,attribute_value)),max(decode(set_id,2,attribute_value))) max_attr_value
6 from set_master
7 group by attribute_id
8 order by attribute_id
9 /
ATTR_ID SET1_ATTR_VALUE SET2_ATTR_VALUE MIN_ATTR_VALUE MAX_ATTR_VALUE
2 10 10 10 10
3 20 30 20 30
4 50 40 40 50
5 60 50 50 60
4 rijen zijn geselecteerd.Regards,
Rob. -
what will be the peoplesoft query to calculate voluntary termination count and involuntary termination count? I am working on OBIA HR analytics workforce deployment reports and need to validate the reports. I also want to know the tables involved
Hi Andrew,
Part A:
I've done some restating of the question, and distributed the calculations among several fields, not all of which need to be included on the visible layout. Other than formatting the Date fields and moving the 'Completed Date' field and its label, I've left this in the default "Layout 1" produced by AppleWorks.
Field List:
Priority: Popup menu with six items: 00, J, D, 1, 2, 3 Defaults to 00
TL (time limit in months): Calculation: CHOOSE('Priority',0,1,3,4,6,12)
Received: Date. Option: Automatically insert today's date (ie. Date Record created) (may be edited)
Target Date: Calculation:
DATE(YEAR('Received')+INT(MONTH('Received')+'TL')/12,MOD(MONTH('Received')+'TL', 12),DAY('Received'))
Remaining (Days): Calculation: INT('Target Date'+1-NOW()) (see revision below)
Completed: Checkbox. Set default value to Unchecked.
Completed Date: Date: Entered manually
OnTarget: Calculation: IF('Completed',IF('Completed Date'<'Target Date',"On Target","Over"),IF(INT(NOW())>'Target Date',"Over","On Target"))
The On Target field shows the current status of the case while still open, and the state on the closing date when it was closed.
Having done that, I was unhappy with the Remaining field continuing to calculate an ever larger negative number after the case had been closed. Hence this revision below:
Remaining: Calculation: IF('Completed','Target Date'-'Completed Date',INT('Target Date'+1-NOW()))
Shows the number of days remaining while the case is open, the days remaining at completion if the case has been marked Completed and the completion date entered.
Rsults (and some further formatting of the Layout) below.
Part B:
You will need Subsummary parts when sorted on Completed and on On Target. Fields can appear on a Layout only once, so each subsummary part will need a separate Summary type field for each field to be summarized.
Regards,
Barry -
Cannot build the query or generate the report - BI4.0 Dashboard on WebService Error
Hello All,
I am trying to create a Dashboard with WebService connections in SAP BI4.0 SP04. While running the dashboard I am receiving the error, Cannot build the query or generate the report. I have already set the refresh parameter to TRUE (bound to an excel cell and I have tried with 1 also). Back end WebI Reports of the BIWS connections are created from BEx queries through BICS connection. I have two prompts to run the Web Service and the report. Please share your thoughts regarding this.
Thanks and Regards,
Debajyoti DanHi All,
I have found the issue. The problem is coming only when I am receiving prompts from BEx query and trying to use them through dashboard. I replaced these BEx prompts with the same in WebI report. Then the entire functionality started working correctly from dashboard.
But, this is only a work around and can not be applied at all times. So I have raised a message for the same to SAP. I will update the thread based on what I receive from SAP Support. -
what will be the cost of replacing a battery in the apple store..??
Apple has a battery replacement program for some devices sold between Dec 12 and Jan 13.
Check your device if it's eligible for this program or not https://www.apple.com/support/iphone5-battery/other_countries.html
Besides, go to any App Store and ask them to run ADR test for your device and will see the battery life. If it seems fail or consumed then you should replace the battery. If seems pass, then restore your device if you think battery drains too fast.
see the pricing Apple - Support - Service Answer Center
choose the country from list and will see the all info upon service costs -
What r the tables used for this report.
hi all..
i am a fresher for ABAP. i need the help.
what r the tables used for this report.
Reports provide pending order details according to Material wise and customer wise for particular month.
thanks in advance
RK.Ashokkumar.Hi Ashok,
this is easy to do.
Open Two SAP Screen with same user ID.
Run SQL trace using ST05 transaction.Open ST05 transaction in One and make
Trace on ,Run the report in another screen.
Once report run is over.End the trace process and click on display trace in same ST05 transaction.There is a click button on ST05 Transaction screen to start trace
process,End trace process and Display track process.
The SQL trace will give you all the table details which is used in that particular report.
You have not mentioned about the report name so I have suggested this way.
regards,nishant
Please reward if this helps -
If BW system is down for several hours, what will be the status of the Jobs
Hello Gurus,
I don't know where i should post this issues! anyways .....! i need some information. One of our BW production system will be down for about 12 hours tomarrow to move it on to new hardware and this current system has lots of scheduled jobs with run daily and hourly..! so my question is ..what will be the status of this jobs which fall in between this down time?
as per our basis team information....they said that all these jobs will be queued up and when once the system is online ...these jobs will access all the avalable processess and if this thing happen....! then the system will have a VERY BAD performance and user cannot use this BW system...they cannot even open the bex analyzer.
so...i thought of deleting these queued jobs. can any one tell me WILL THESE JOBS WILL BE SCHEDULED FOR NEXT DAY??? OR IS THERE ANY OTHER WHY TO CONTROL THIS SITUATION?? our process chains are locked for modification..so, we cannot even re-schedule them in prod system.....
aaaaaah! can any one HELPP MEEEEE@
I will award full points for your suggestionHi,
when you'll restart you SAP system all jobs will be displayed with a delay since they didn't run during your downtime.
And that's true that they will be queued and fired as soon as a system resource will be available. That means a lot of paralel processes with system overload and usually subsequent errors in loading data.
As per suggested already, the best would be to shift the scheduling.
Another option is to execute the report BTCTRNS1 before shutting the system down. This will change all background job status to a "suspended" mode.
when your system is up again you will be able to release (or reschedule or cancel or any other action) single jobs in a controlled manner.
When you've finished with this task then don't forget to run BTCTRNS2 in order to enable background jobs to be executed.
hope that helps...
Olivier. -
Mac book pro hanging very often what will be the possible cause for it?
hi my mac book pro is 3months old and nowadays its hanging very often like when iam surfing, and some times when i dont use it for 10 to 15min.
can anybody suggest me what will be the possible cause for it.
ThanksStart with this comprehensive troubleshooting article:
https://discussions.apple.com/docs/DOC-3521
Look at this one for possible solutions:
https://discussions.apple.com/docs/DOC-3353
Ciao. -
If you have two public class in a java file what will be the error ?
Q:If you have two public class in a java file what will be the error and how will you remove that.?
Kannan_S wrote:
I dont want you to be on that list . Here goes my explanation..
A class is well defined with members and functions
An abstract class is not defined well as compared to a full fledged class (talking more generically)
An interface is more abstract.
I was asking the author who has posted this question to be like a class(very clear)
and not either as an abstract class or an interface
Hope i have made it clear..Not in the slightest. This has absolutely no bearing whatsoever on the question asked. Not to mention that classes are classes, and all equal in the eyes of the compiler, be they abstract, concrete or interfaces. It's difficult to see what your point is, to be honest, but I suspect it wouldn't be worth seeing anyway
Maybe you are looking for
-
Nothing but problems with the cloud! All apps stopped working.
I think I may cancel my Creative Cloud Subscription! I am on a windows 7. All of my apps stopped working. Photo shop quit a couple of days ago had to unistall then re install. Now they have all quit. I am very fustrated that everything I go to do wor
-
Very frustrated with poor customer service and lack of integrity
Earlier today my wife and I bought a TV from your Huntsville, AL store (removed per forum guidelines). We were looking at your 32" TVs and had several questions about them. After flagging down a sales associate, we questioned the pricing of several T
-
403 Forbidden You are not authorized to view the requested resource.
Hello all I am getting this error when I perform a full CPA CACHE refresh. I have already check those steps : HTTP 403 during cache refresh of the adapter framework - Refer SAP Note -751856 Because of Inactive Services in ICF Go to SICF transac
-
it is the blue line from the header to the footer which separates the two dividers on the sides
-
What is it? Exit Code: 34 Please see specific errors below for troubleshooting.
Exit Code: 34 Please see specific errors below for troubleshooting. For example, ERROR: -------------------------------------- Summary -------------------------------------- - 1 fatal error(s), 0 error(s) FATAL: Payload 'Camera Profiles Installer 8.0