Integrating number of records into a single record
Hi
I have a table where we store trainees with certifications, it stores trainees address, id, pass/fail flag, course codes, competetion date and certificate expiration date. WHat I need is to display a single record for each trainee in my query. In this case, what we have currently in the table is we might have 11 certificates for a trainee or 1 or maybe 5 etc. All I need is to display all his information, address, trainee id, courrse code..course code11 in a signle record. Is it possible and how? Please help
Try this one - it points to the same page and looks like it works:
Re: How to show the SELECT result in a certain form?
Similar Messages
-
Put more than number of rows into a single row
i have to insert data frm source table to destination table ,bellow i mention the source table and in wich format i want the output also mention it,i want some plsql procedure or function to insert data right format in destination table .
one thing u can not apply appno in destination table.
thanx in advance .
for example appno 3 used 2 times in source thatwhy in destination table i hav 2 put
share1,rate1,share2and rate2,
for application (appno 5) column it used 3 times so
i have 2 put first one share1,rate1,second one share2 ,rate2 , thrid one share3 and rate 3
hope problem u people understand very well.
source table
appno share ammt
1 10 12
2 12 15
3 15 34
3 10 45
4 12 55
5 12 56
5 11 56
5 13 24
Destination table
appno share1 rate 1 share2 rate2 share3 rate3
1 10 12
2 12 15
3 15 34 10 45
4 12 55
5 12 56 11 56 13 24
u cannot apply appno as a primary key in destination table.
regards
amitHere's one way (modify to your needs):
SQL> col d1 format a20
SQL> col d2 format a20
SQL> col d3 format a20
SQL> select location_id
2 , max(decode(rn,1,department_name)) d1
3 , max(decode(rn,2,department_name)) d2
4 , max(decode(rn,3,department_name)) d3
5 from ( select row_number() over ( partition by location_id order by department_id ) rn
6 , location_id
7 , department_name
8 from departments
9 )
10 group by location_id
11 /
LOCATION_ID D1 D2 D3
1400 IT
1500 Shipping
1700 Administration Purchasing Executive
1800 Marketing
2400 Human Resources
2500 Sales
2700 Public Relations
7 rows selected.MHE -
I have merged a number of jpgs into a single pdf but for some reason it ends up being a strange page dimension - 23.6 in x 30.6 in. The jpgs were saved at a resolution so that they might print an 8.5 x 11 at 200 dpi. Is there a place you can set these dimensions? I know it is quite easy to still make it print on a letter sized sheet but the ppl who I am sending the dosument to might be thrown off by the dimensions.
I had a difficult time finding the answer on the web. Finally found a forum with my answer to share with others facing the same issue. Last entry worked for me.
http://community.spiceworks.com/topic/213722-acrobat-9-pro-doesn-t-see-ms-office-files-whe n-combining-files -
How to insert sales text (MM02) into a single record of a Ztable.
Hi,
I'm extracting data from different data base tables and populating a Ztable which has Matnr as primary key and sales text as a field.
I have already used READ_TEXT to display the text and it is displayed in multiple records which in turn leads to duplication of Material numbers.
Now I want to avoid duplication of records (Matnr) as this being a primary record, and display the sales text of a particular material number into one single record.
Can anyone tell me how to insert sales text (MM02) transaction into one single record.
Thanks,
Govindsorry i am not enough clear about your requirement...
as i can understand i am explaining to you.
suppose your itab contains repaeating matnr.
matnr
1
1
2
2
2
3
3
like this.
data : text(200),
matnr like mara-matnr.
loop at itab.
call READ_TEXT fnmodule.
loop at tline.
concatenate text tline-tdline into text.
endloop.
matnr = itab-matnr.
at end of matnr.
itab1-matnr = matnr.
itab1-text = text.
append itab1.
clear text.
endat.
endloop.
NB change the code as per your requirement
regards
shiba dutta -
Record Working Time task merging multiple employees into a single task
Hi Everyone,
I'm going to check our configuration again to see if this is standard behaviour, config, or a problem with EHP 3's version of record working time.
So if employee A submits to manager A 1 task is created. Then when employee B submits to manager A we were expecting 2 tasks. However, we've been noticing manager A is getting 1 task with several line times.
We are ok with it merging tasks for employee A over multiple weeks. That is ideal actually.
The problem is that employee B's task should be separate.
Is there a quick fix?
Thanks,
Doug RobbinsI did try 31000007 and noticed the same behavior. Are you saying I should use an older version of the task to get back to grouped by employee number and not merging everything?
Well this causing us issues for a few reasons. The main one we developed a work around because we had to make sure emails were not being sent to 1 person for all the employees with their data. That would cause obvious security concerns.
But when forward tasks out managers want to be able to forward a specific employee's requests and not all of them. If some customers want this it should be a configurable option. To allow companies that want 1 single task or companies that want 1 task/employee/week.
This is inconsistent with the other portal applications. It would be nice if Germany picked 1 way of doing things or provided more configuration options. I'm hoping that OSS gives us something because merging everything into a single task for all employees is not the behaviour we want or expected.
I always appreciate your input because you have been very helpful as I learn about portal.
Thanks,
Doug R
Thanks you -
Concatenate multiple records into one single record
Hello everyone,
Can anyone guide me how to merge multiple records into one single record
like......... I am getting the data in the file like
aaaaa/bbbbbbb/ccccccccccc/dddddddddddd/eee
ffffff/gggg/hhhhhhhhhhhhhh
/123/4567/55555/99999999/kaoabfa/eee
fffff/kkkkkkkk/llllllllllllllllllllllll
when i use gui_upload I am getting the data into the internal table in the above format.
My main intension is to split the record at / to multiple lines and dowload it into another file.
What i am planning to do is... if the line does not start with / then i want to concatenate the multiple lines into single line and then split it into multiple records. Can anyone guide me how to achieve this.Yes, it should work.
In my example
Loop at itab.
concatenate i_text itab into i_text.
endloop.
You change that loop for the loop of your internal table with the file records
So if you have this three records
'aaaa/bbb/ccc'
'/dddd/efg'
'hijk/lmn'
i_text will look like this at the end
'aaaa/bbb/ccc/dddd/efghijk/lmn'
then in this part of the code
split i_text at '/' into table itab2.
itab2 will have the records looking like this
aaaa
bbb
ccc
dddd
efghijk
lmn' -
Change number of record displayed for a single item alone
Hi,
I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.
Is this achievable?
Or should i have to put that item in a separate data block and choose the data block property to "Number of records displayed" as 10?
Thanks,
Yuvaraaj.983448 wrote:
Hi,
I have a single data block with few items. Is it possible to make one item in the block as non-database item and make the display of record in the item alone to show multiple lines.
i.e. All other items in the Data block shows single record, whereas this particular item should shows 10 records.Yes you can. But i will say re-check your design.
Hamid
Mark correct/helpful to help others to get right answer(s).* -
How to restrict the number of Records into the Table?
Is there any way that I can restrict the number of records can be entered into the table?
For example I have created a table TAB1 with size category 0( zero).
User dont want to enter more than 100 values, How to restrict the number entries? Whether Basis can do it?
Regards,
PrathapHi Prathap,
You can write a code in table maintenance events to restrict the number of Records added into the Table to constant.
Solution:
Se11 -> enter table name (TAB1) -> F6 -> Utlities -> Table maint. generator -> Envirnment -> modification -> events -> write here the form routine name.
Double click on routine name. You will get into include section of the code. Write here code like:
IF current_rec_num > 100.
messgae error 'Entry restriceted to 100'
ENDIF.
Somewhat this way you can achieve your target.
Regards,
Sachin -
Total number of records loaded into ODS and in case of Infocube
hai
i loaded some datarecords from Oracle SS in ODS and Infocube.
My SOurceSytem guy given some datarecords by his selection at Oracle source system side.
how can i see that 'how many data records are loaded into ODS and Infocube'.
i can check in monitor , but that not correct(becz i loaded second , third time by giving the ignore duplicate records). So i think in monitor , i wont get the correct number of datarecords loaded in case of ODS and Infocube.
So is there any transaction code or something to find number records loaded in case of ODS and Infocube .
ps tell me
i ll assing the points
bye
rizwanHAI
I went into ODS manage and see the 'transferred' and 'added' data records .Both are same .
But when i total the added data records then it comes 147737.
But when i check in active table(BIC/A(odsname)00 then toal number of entries come 1,37,738
why it is coming like that difference.......
And in case of infocube , how can i find total number of records loaded into Infocube.(not in infocube).
Like any table for fact table and dimension tables.
pls tell me
txs
rizwan -
Setting a sequential number to records placed into groups?
Hello I have one table with records which can be grouped and I want to know if I can set an ordinal number to each record and when the group breaks set 1 again to the first record of the group and then 2 to next...3 to next....until group breaks again.....
the first thing I need is order the records according the group then number each record inside the group sequentially from 1 to ..n (numbers or records of the group).
Can I do this???
Thanks in advanceHello
you can use the row_number analytic function
WITH gp AS
( SELECT 1 id, 1 family_id,to_date('29/06/1966','dd/mm/yyyy') dob from dual union all
SELECT 2 id, 1 family_id,to_date('22/06/1986','dd/mm/yyyy') dob from dual union all
SELECT 3 id, 2 family_id,to_date('04/03/1975','dd/mm/yyyy') dob from dual union all
SELECT 4 id, 3 family_id,to_date('01/04/1990','dd/mm/yyyy') dob from dual union all
SELECT 5 id, 3 family_id,to_date('10/01/1996','dd/mm/yyyy') dob from dual union all
SELECT 6 id, 3 family_id,to_date('21/09/2000','dd/mm/yyyy') dob from dual
SELECT
id,
family_id,
dob,
ROW_NUMBER() OVER(PARTITION BY family_id ORDER BY DOB) rn,
ROW_NUMBER() OVER(PARTITION BY family_id ORDER BY DOB DESC) rn_desc
FROM
gp
ID FAMILY_ID DOB RN RN_DESC
1 1 29-JUN-1966 00:00:00 1 2
2 1 22-JUN-1986 00:00:00 2 1
3 2 04-MAR-1975 00:00:00 1 1
4 3 01-APR-1990 00:00:00 1 3
5 3 10-JAN-1996 00:00:00 2 2
6 3 21-SEP-2000 00:00:00 3 1
6 rows selected.which gives you the ability to generate the numbers as you have requested. The important parts are the PARTITION which is the group of rows over which the function will be applied, and the ORDER BY which will determine the order in which the function is applied to those rows. You can see that I called the function twice, once with ORDER BY DOB and the other with ORDER BY DOB DESC and the difference in the output.
HTH
David -
Total number of records in given range.
total number of records in given range.
Hi all ,
I have the Requirement as follows.
I Have a Table which Contains Duplicate Dates like
22.11.2006
15.11.2006
31.10.2006
15.09.2006
15.09.2006
14.09.2006
15.09.2006
14.09.2006
16.09.2006
etc...
The input is monday of any week of a Year. Suppose 3 rd week starts from 15.11.2006 and ends to 21.11.2006. Weekly 5 days are working days. If i ienter the 15.09.2006 as input.....
The Required out put is : 5 Records ( In above example 15.09.2006 to 21.09.2006 total Number of records is 5. I mean 15.09.2006 is Found 4 times + 16.09.2006 is found 1 time in the Specied Range.
total: 4+1 = 5 records.)
Simply...my requirement is to find total number of Records(with Duplicates) in the Given range .
thanks in Advance
sivaranga& Krish...this is the code. Where i have to make changes..
this is the program which they given
Report Title: /GIL/ZZKWKBKS
Author: XNIMKARP
Creation Date: 29.09.2006
ZSAO System: <&system> (blue)
ZSAO System Fct.: <&sf> (green)
DER: DER&
HLD: HLD&
Request number:
Description (technical)
===================================================================
Modification History (recent on top / refs: MODnnn+ or MODnnn-)
Modification Number: MODnnn
Modifier: &userid
Modification Date: &
Change object: DER, TPR, Clarify number
Request number:
Description
Modification Number: MOD001
Modifier: &userid
Modification Date: &
Change object: DER, TPR, Clarify number
Request number:
Description
REPORT /GIL/ZZKWKBKS
MESSAGE-ID ?? "....
NO STANDARD PAGE HEADING
LINE-COUNT 65(0)
LINE-SIZE 132.
eject*******************************************************
Data Declaration Section *
TABLE declarations for select-options only *
TABLES: /GIL/ZZKDERMAST ,
/GIL/ZZKCOMBOOK ,
/GIL/ZZKWEEKID .
SELECT-OPTIONS and PARAMETERS *
SELECT-OPTIONS:
S_STRWK FOR /GIL/ZZKWEEKID-STRWK NO INTERVALS . "....
"PARAMETERS:
" P_???? TYPE ????-????? DEFAULT ?, "description ????
" PX_??? AS CHECKBOX "description ????
TYPES *
TYPES:
begin of T_IT_OUTTAB ,
STRWK like /GIL/ZZKCOMBOOK-STRWK ,
CSTMZ like /GIL/ZZKDERMAST-CSTMZ ,
NAME_TEXT like ADRP-NAME_TEXT ,
DERNO like /GIL/ZZKCOMBOOK-DERNO ,
BNAME like /GIL/ZZKCOMBOOK-BNAME ,
HRSBK like /GIL/ZZKCOMBOOK-HRSBK ,
STATS like /GIL/ZZKDERMAST-STATS ,
CLSDT like /GIL/ZZKDERMAST-CLSDT ,
MNTHI like /GIL/ZZKWEEKID-MNTHI ,
QRTRI like /GIL/ZZKWEEKID-QRTRI ,
end of T_IT_OUTTAB .
TYPES:
begin of T_IT_WEEKSUM ,
STRWK like /GIL/ZZKCOMBOOK-STRWK ,
MNTHI like /GIL/ZZKWEEKID-MNTHI ,
QRTRI like /GIL/ZZKWEEKID-QRTRI ,
DEVHRS like /GIL/ZZKCOMBOOK-HRSBK ,
CUSHRS like /GIL/ZZKCOMBOOK-HRSBK ,
TOTHRS like /GIL/ZZKCOMBOOK-HRSBK ,
DVMHRS like /GIL/ZZKCOMBOOK-HRSBK ,
CSMHRS like /GIL/ZZKCOMBOOK-HRSBK ,
TOMHRS like /GIL/ZZKCOMBOOK-HRSBK ,
DVQHRS like /GIL/ZZKCOMBOOK-HRSBK ,
CSQHRS like /GIL/ZZKCOMBOOK-HRSBK ,
TOQHRS like /GIL/ZZKCOMBOOK-HRSBK ,
TOTDER like /GIL/ZZKCOMBOOK-HRSBK ,
TOMDER like /GIL/ZZKCOMBOOK-HRSBK ,
TOQDER like /GIL/ZZKCOMBOOK-HRSBK ,
end of T_IT_WEEKSUM .
TYPES:
begin of T_IT_DEVSUM ,
NAME_TEXT like ADRP-NAME_TEXT ,
HRSBK like /GIL/ZZKCOMBOOK-HRSBK ,
end of T_IT_DEVSUM .
"TYPES: T_FL_??? TYPE ????-?????. "description ???
"TYPES: T_IT_??? TYPE ????-?????. "description ???
VARIABLES *
"DATA: V_??? TYPE ????-?????. "field description
"DATA: VX_??? TYPE ????-?????. "flag description
DATA: VIT_DATATAB TYPE T_IT_OUTTAB occurs 0 with header line.
DATA: VIT_WEEKSUM TYPE T_IT_WEEKSUM occurs 0 with header line.
DATA: VIT_DEVSUM TYPE T_IT_DEVSUM occurs 0 with header line.
constants *
CONSTANTS: C_BR1 TYPE C VALUE '(' ,
C_BR2 TYPE C VALUE ')' ,
C_DASH TYPE C VALUE '-' ,
C_005 TYPE I VALUE '5' ,
C_006 TYPE I VALUE '6' ,
C_030 TYPE I VALUE '30' ,
C_031 TYPE I VALUE '31' ,
C_055 TYPE I VALUE '55' ,
C_056 TYPE I VALUE '56' ,
C_080 TYPE I VALUE '80' ,
C_081 TYPE I VALUE '81' ,
C_105 TYPE I VALUE '105' ,
C_106 TYPE I VALUE '106' ,
C_125 TYPE I VALUE '126' ,
C_130 TYPE I VALUE '130' ,
C_150 TYPE I VALUE '150' .
eject*******************************************************
program section (EVENTS) *
start of database access *
START-OF-SELECTION.
PERFORM FETCH_BOOKING_DATA .
PERFORM FETCH_USER_DATA .
PERFORM WEEKLY_CUMULATION .
TOP-OF-PAGE.
PERFORM WRITE_HEADER .
*& Form FETCH_BOOKING_DATA
text
--> p1 text
<-- p2 text
FORM FETCH_BOOKING_DATA .
select a~STRWK
a~DERNO
a~BNAME
a~HRSBK
b~STATS
b~CLSDT
b~CSTMZ
c~MNTHI
c~QRTRI
into corresponding fields of table VIT_DATATAB
from /GIL/ZZKCOMBOOK as a
inner join /GIL/ZZKDERMAST as b
on bBNAME = aBNAME
and bDERNO = aDERNO
inner join /GIL/ZZKWEEKID as c
on cSTRWK = aSTRWK
where a~STRWK in S_STRWK .
if SY-SUBRC <> 0 .
WRITE /10 TEXT-001.
EXIT .
endif .
ENDFORM. " FETCH_BOOKING_DATA
*& Form FETCH_USER_DATA
text
--> p1 text
<-- p2 text
FORM FETCH_USER_DATA .
DATA:
BEGIN OF LIT_USER OCCURS 0 ,
BNAME like /GIL/ZZKCOMBOOK-BNAME ,
NAME_TEXT like ADRP-NAME_TEXT ,
END OF LIT_USER .
DATA : L_SY_TABIX LIKE SY-TABIX .
LOOP AT VIT_DATATAB .
MOVE-CORRESPONDING VIT_DATATAB TO LIT_USER .
APPEND LIT_USER .
ENDLOOP .
DELETE ADJACENT DUPLICATES FROM LIT_USER COMPARING BNAME .
if LIT_USER[] is not initial .
SELECT BBNAME ANAME_TEXT
INTO corresponding fields of table LIT_USER
FROM ADRP AS A
INNER JOIN USR21 AS B
ON BPERSNUMBER = APERSNUMBER
for all entries in LIT_USER
WHERE B~BNAME = LIT_USER-BNAME .
endif.
loop at VIT_DATATAB .
L_SY_TABIX = SY-TABIX .
read table LIT_USER with key BNAME = VIT_DATATAB-BNAME .
if sy-subrc = 0 .
VIT_DATATAB-NAME_TEXT = LIT_USER-NAME_TEXT .
modify VIT_DATATAB index L_SY_TABIX .
endif .
endloop.
ENDFORM. " FETCH_USER_DATA
*& Form WEEKLY_CUMULATION
text
--> p1 text
<-- p2 text
FORM WEEKLY_CUMULATION .
DATA:
L_PREV_MNTHI like /GIL/ZZKWEEKID-MNTHI ,
L_PREV_QRTRI like /GIL/ZZKWEEKID-QRTRI ,
LFL_DATATAB_WA TYPE T_IT_OUTTAB .
SORT VIT_DATATAB BY STRWK CSTMZ NAME_TEXT .
loop at VIT_DATATAB .
move-corresponding VIT_DATATAB to LFL_DATATAB_WA .
AT END OF NAME_TEXT .
SUM .
VIT_DEVSUM-NAME_TEXT = VIT_DATATAB-NAME_TEXT .
VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
APPEND VIT_DEVSUM .
ENDAT .
AT END OF CSTMZ .
SUM .
if LFL_DATATAB_WA-CSTMZ IS INITIAL .
VIT_DEVSUM-NAME_TEXT = TEXT-011 .
else.
VIT_DEVSUM-NAME_TEXT = TEXT-012 .
endif.
VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
APPEND VIT_DEVSUM .
ENDAT .
AT END OF STRWK .
CLEAR: VIT_WEEKSUM-DEVHRS ,
VIT_WEEKSUM-CUSHRS ,
VIT_WEEKSUM-TOTHRS .
VIT_WEEKSUM-STRWK = LFL_DATATAB_WA-STRWK .
VIT_WEEKSUM-MNTHI = LFL_DATATAB_WA-MNTHI .
VIT_WEEKSUM-QRTRI = LFL_DATATAB_WA-QRTRI .
SUM .
VIT_WEEKSUM-TOTHRS = VIT_DATATAB-HRSBK .
VIT_DEVSUM-NAME_TEXT = TEXT-013 .
VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
APPEND VIT_DEVSUM .
SELECT SUM( HRSBK )
INTO VIT_WEEKSUM-CUSHRS
from /GIL/ZZKWEKBK
where STRWK = LFL_DATATAB_WA-STRWK
AND CSTMZ NE SPACE .
VIT_WEEKSUM-DEVHRS =
VIT_WEEKSUM-TOTHRS - VIT_WEEKSUM-CUSHRS .
IF LFL_DATATAB_WA-MNTHI <> L_PREV_MNTHI .
if week falls in differnet month .
L_PREV_MNTHI = LFL_DATATAB_WA-MNTHI .
CLEAR: VIT_WEEKSUM-DVMHRS ,
VIT_WEEKSUM-CSMHRS ,
VIT_WEEKSUM-TOMHRS .
SELECT SUM( HRSBK )
INTO VIT_WEEKSUM-DVMHRS
from /GIL/ZZKWEKBK
where MNTHI = LFL_DATATAB_WA-MNTHI
AND CSTMZ EQ SPACE .
SELECT SUM( HRSBK )
INTO VIT_WEEKSUM-CSMHRS
from /GIL/ZZKWEKBK
where MNTHI = LFL_DATATAB_WA-MNTHI
AND CSTMZ NE SPACE .
VIT_WEEKSUM-TOMHRS =
VIT_WEEKSUM-DVMHRS + VIT_WEEKSUM-CSMHRS .
ENDIF .
IF LFL_DATATAB_WA-QRTRI <> L_PREV_QRTRI .
L_PREV_QRTRI = LFL_DATATAB_WA-QRTRI .
SELECT SUM( HRSBK )
INTO VIT_WEEKSUM-DVQHRS
from /GIL/ZZKWEKBK
where QRTRI = LFL_DATATAB_WA-QRTRI
AND CSTMZ EQ SPACE .
SELECT SUM( HRSBK )
INTO VIT_WEEKSUM-CSQHRS
from /GIL/ZZKWEKBK
where QRTRI = LFL_DATATAB_WA-QRTRI
AND CSTMZ NE SPACE .
VIT_WEEKSUM-TOQHRS =
VIT_WEEKSUM-DVQHRS + VIT_WEEKSUM-CSQHRS .
ENDIF .
APPEND VIT_WEEKSUM .
NEW-PAGE .
PERFORM WRITE_WEEKLY_STATISTICS .
PERFORM WRITE_DEVELOPER_STATISTICS .
ENDAT .
endloop .
ENDFORM. " WEEKLY_CUMULATION
*& Form WRITE_DEVELOPER_STATISTICS
text
--> p1 text
<-- p2 text
FORM WRITE_DEVELOPER_STATISTICS .
SKIP 2.
WRITE AT: /C_005 TEXT-014 .
ULINE AT /C_005(C_125) .
WRITE AT:/C_005 SY-VLINE ,
C_006 TEXT-014 ,
C_080 SY-VLINE ,
C_081 TEXT-015 ,
C_130 SY-VLINE .
WRITE AT: C_005 SY-VLINE ,
C_080 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT /C_005(C_125) .
loop at VIT_DEVSUM .
CASE VIT_DEVSUM-NAME_TEXT .
WHEN TEXT-011 .
WRITE AT:/C_005 SY-VLINE ,
C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_NEGATIVE ,
C_080 SY-VLINE ,
C_081 VIT_DEVSUM-HRSBK COLOR COL_NEGATIVE ,
C_130 SY-VLINE .
WHEN TEXT-012 .
WRITE AT:/C_005 SY-VLINE ,
C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_NEGATIVE ,
C_080 SY-VLINE ,
C_081 VIT_DEVSUM-HRSBK COLOR COL_NEGATIVE ,
C_130 SY-VLINE .
WHEN TEXT-013 .
WRITE AT:/C_005 SY-VLINE ,
C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_TOTAL ,
C_080 SY-VLINE ,
C_081 VIT_DEVSUM-HRSBK COLOR COL_TOTAL ,
C_130 SY-VLINE .
WHEN OTHERS .
WRITE AT:/C_005 SY-VLINE ,
C_006 VIT_DEVSUM-NAME_TEXT ,
C_080 SY-VLINE ,
C_081 VIT_DEVSUM-HRSBK ,
C_130 SY-VLINE .
ENDCASE .
WRITE AT: C_005 SY-VLINE ,
C_080 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT /C_005(C_125) .
endloop .
REFRESH VIT_DEVSUM .
CLEAR VIT_DEVSUM .
ENDFORM. " WRITE_DEVELOPER_STATISTICS
*& Form WRITE_WEEKLY_STATISTICS
text
--> p1 text
<-- p2 text
FORM WRITE_WEEKLY_STATISTICS .
SKIP 2.
ULINE AT C_005(C_125) .
WRITE AT: /C_005 SY-VLINE ,
C_006 TEXT-003 ,
C_030 SY-VLINE ,
C_031 TEXT-004 ,
C_055 SY-VLINE ,
C_056 TEXT-005 ,
C_080 SY-VLINE ,
C_081 TEXT-006 ,
C_105 SY-VLINE ,
C_106 TEXT-007 ,
C_130 SY-VLINE .
WRITE AT: /C_005 SY-VLINE ,
C_030 SY-VLINE ,
C_031 /GIL/ZZKWEEKID-STRWK ,
41 C_DASH ,
43 /GIL/ZZKWEEKID-ENDWK ,
C_055 SY-VLINE ,
C_056 VIT_WEEKSUM-MNTHI ,
C_080 SY-VLINE ,
C_081 VIT_WEEKSUM-QRTRI ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
WRITE AT: /C_005 SY-VLINE ,
C_030 SY-VLINE ,
C_055 SY-VLINE ,
C_080 SY-VLINE ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT C_005(C_125) .
WRITE AT: /C_005 SY-VLINE ,
C_006 TEXT-008 ,
C_030 SY-VLINE ,
C_031 VIT_WEEKSUM-DEVHRS ,
C_055 SY-VLINE ,
C_056 VIT_WEEKSUM-DVMHRS ,
C_080 SY-VLINE ,
C_081 VIT_WEEKSUM-DVQHRS ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
WRITE AT: /C_005 SY-VLINE ,
C_030 SY-VLINE ,
C_055 SY-VLINE ,
C_080 SY-VLINE ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT C_005(C_125) .
WRITE AT: /C_005 SY-VLINE ,
C_006 TEXT-009 ,
C_030 SY-VLINE ,
C_031 VIT_WEEKSUM-CUSHRS ,
C_055 SY-VLINE ,
C_056 VIT_WEEKSUM-CSMHRS ,
C_080 SY-VLINE ,
C_081 VIT_WEEKSUM-CSQHRS ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
WRITE AT: /C_005 SY-VLINE ,
C_030 SY-VLINE ,
C_055 SY-VLINE ,
C_080 SY-VLINE ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT C_005(C_125) .
WRITE AT: /C_005 SY-VLINE COLOR COL_TOTAL,
C_006 TEXT-010 COLOR COL_TOTAL,
C_030 SY-VLINE COLOR COL_TOTAL ,
C_031 VIT_WEEKSUM-TOTHRS COLOR COL_TOTAL,
C_055 SY-VLINE COLOR COL_TOTAL,
C_056 VIT_WEEKSUM-TOMHRS COLOR COL_TOTAL,
C_080 SY-VLINE COLOR COL_TOTAL,
C_081 VIT_WEEKSUM-TOQHRS COLOR COL_TOTAL,
C_105 SY-VLINE COLOR COL_TOTAL,
C_130 SY-VLINE COLOR COL_TOTAL.
WRITE AT: /C_005 SY-VLINE ,
C_030 SY-VLINE ,
C_055 SY-VLINE ,
C_080 SY-VLINE ,
C_105 SY-VLINE ,
C_130 SY-VLINE .
ULINE AT C_005(C_125) .
ENDFORM. " WRITE_WEEKLY_STATISTICS
*& Form WRITE_HEADER
text
--> p1 text
<-- p2 text
FORM WRITE_HEADER .
SKiP 1 .
SELECT SINGLE *
FROM /GIL/ZZKWEEKID
WHERE STRWK = VIT_WEEKSUM-STRWK .
WRITE AT: 5 TEXT-002 INTENSIFIED ON .
WRITE AT: 47 /GIL/ZZKWEEKID-MNTHI ,
55 /GIL/ZZKWEEKID-WEEKI ,
65 C_BR1 ,
67 /GIL/ZZKWEEKID-STRWK ,
78 C_DASH ,
80 /GIL/ZZKWEEKID-ENDWK ,
91 C_BR2
INTENSIFIED ON .
ENDFORM. " WRITE_HEADER -
Less number of Records while loading data from one cube to another
Hi,
We are in the process of doing major changes in the existing InfoCube.
Before making any changes, we had planned to make a copy of the cube with data.
For this we did the following steps :
1. Created the new cube from the original cube.
2. Generated Datasource on the Orignal cube.
3. Made a update rule on the new cube by selecting the Orinal cube.
4. Made a InfoPack on Infosouce which got created with 8<original cube>.
5. Uploaded the data into the new cube.
We have uploaded the data successfully from the original cube to the new cube.
However, New cube shows less number of records as compared to the original cube.
But the query is showing the same figures from both the cubes.
Can anyone please advise what could be the reason for this less number of records and how the figures are showing same when we run the query from both the cubes.
Please help.
Thanks
Ramesh GanjiHi Ramesh,
this is possible coz when u have loaded yr original cube, it may be loaded on daily/weekly basis. so in the cube there are many requests. Also if in the same request, if there are two records with same dimension keys ther are automatically added aggregating them.
if req 1 has following records
cust mat amt
1 1 100
1 1 50
it will add
1 1 150
and if the records are seperated by different req, then both will b added individually.
therefore when u r loading yr new cube from original cube, all records that has same dimension key gets aggregated coz they are loaded into single request. so it showing less no of records as added.
hope this helps.
Regards,
Purvang
Assigning Point is to say Thanks in SDN * -
Total number of record in database??
Hi,
How to find total number of record in database using Single Query/Statement?
ThanksHere we go, in a Single Statement Block
SQL> ed
Wrote file afiedt.buf
1 DECLARE
2 v_cnt NUMBER := 0;
3 v_tot NUMBER := 0;
4 CURSOR cur_tables IS
5 SELECT table_name FROM user_tables;
6 BEGIN
7 DBMS_OUTPUT.ENABLE(1000000);
8 FOR t IN cur_tables
9 LOOP
10 EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||t.table_name INTO v_cnt;
11 v_tot := v_tot + v_cnt;
12 END LOOP;
13 DBMS_OUTPUT.PUT_LINE('Total Table Rows: '||v_tot);
14* END;
SQL> /
Total Table Rows: 5850553
PL/SQL procedure successfully completed.
SQL>What use it is is anybody's guess.
Note: This only works on the users own tables, not all the system tables or tables from other schemas in the database. -
How do know the number of records ina cube for particular restriction
Hello all,
When you do right click on cube and display data then you have option to choose the fields. Lets say I restrict show me all the records for fiscal year "2006" then wgere can I see actually how many records there are of 2006.
ThanksHi Raj,
By using LISTCUBE you can put a check mark for Output Number of Hits:
If you do not select all fields in the field selection for output and have activated the database aggregation, several records may be collected together into a single record. If you select the option 'No. of Hitsoutput', an additional key figure is generated in the output table that specifies how many records the current record is made up of, that is, how many database records have been made into the output record.
You can also use this option to determine how many records there are in a particular selection condition in the InfoCube. Specify a selection condition, but do not select any characteristics or key figures. In the return list, you only get the column return with the number of hits and the number of entries that are relevant for this selection condition.
Hope this helps... -
How to find the number of records per months in cube
Hi,
how to find the number of records per months for my all cubes?
Can i use the ListCube transaction to find totl number f records per cube monthwise ?
JimmyHi,
Here is a program to generate no of records and list of ODS and Cubes in Active version.Schedule this program in background and create a cube to load this information and schedule to the data from the file generated by the program. Schedule this all per you requirement.
1.Copy the code into your Z<programname> from Se38.
2.change the FILENAME in CALL FUNCTION 'GUI_DOWNLOAD' in the program to the location from where you can pick the information to load data to cube(eg Application server).
3.Save program.
4.Schedule the program in background as required
5.Create cube with infoobjects to hold no of records and Infoprovider name
6.Load this cube based on event after the program job is done.
Hence you can report on this cube to see no of records in CUBE or ODS in your box.
Please find the code below.
Cheers,
Kavitha Kamesh.
types: begin of itabs ,
tabname type dd02l-tabname,
end of itabs.
data: itab type itabs occurs 0 with header line.
data: counter type i.
data: begin of itab1 occurs 0,
tabname type dd02l-tabname,
counter type i,
end of itab1.
DATA: ITABTABNAME TYPE STRING.
DATA: LENGTH TYPE I.
DATA: OBJECT(30).
data: str(6) type c.
select tabname from dd02l into table itab where ( tabname LIKE '/BIC/F%' or tabname LIKE '/BIC/A%00' )
and TABCLASS = 'TRANSP' and AS4LOCAL = 'A'.
loop at itab.
select count(*) from (itab-tabname) into counter.
str = itab-tabname.
if str = '/BIC/F'.
LENGTH = STRLEN( ITAB-TABNAME ).
SHIFT itab-tabname BY 6 PLACES LEFT.
ELSEIf str = '/BIC/A'.
SHIFT itab-tabname BY 6 PLACES LEFT.
LENGTH = STRLEN( ITAB-TABNAME ).
LENGTH = LENGTH - 2.
endif.
itab1-tabname = itab-tabname(LENGTH).
append itab1.
itab1-counter = counter.
clear itab-tabname.
clear: COUNTER.
endloop.
*********** itab1
loop at itab1.
write:/ itab1-tabname, itab1-counter.
endloop.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
FILENAME = 'c:records.xls'
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = ','
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = itab1
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Maybe you are looking for
-
Interactive Reports - how to add a link to a document?
Hi there, I have an interactive report that displays a list of items, I would like to add a column which displays a link for each item in the report, the link should display the Word/Excel document which is located somewhere on our network. The path
-
Java.lang symbols not found when compiling package classes
I have a set of classes that I have wrapped up in a package. The package name and directory structure follow the standard required for each. These classes contain many java.lang.Math functions and java.lang.Double calls. Am I correct in that the java
-
Just tried out the Photoshop CC Image Asset Generation and it rocks. However, I can only add up to so many characters for names of the layers. Is there a way that the limit can be lifted. I think this would be beneficial especially for all the differ
-
Html template change and refresh on ITS Admin
hi all, I need to change the HTML templates sent via email to the users. I found the files on the ITS server and changed them but when I view the same templates in ITS Admin then it is still showing the previous version. The mentioned HTML templates
-
Is there a way to make a video clickable?
I've had a few clients ask me this and I just wanted to verify it. Is there a way in Premiere to make part of a video "clickable", where the viewer can click on the video and it goes to a web site? I know this is possible with custom players, Flash,