Display spool output i.e a single row in a single line
hello All,
I have report that outputs many columns is single row , when run in the background.
The problem that I am facing that the the single row of columns is wrapped into second line when certain limit of chararcters is reached. That is the single row of data is placed into two lines.
While running the job in the background I choose the LOCL or LP01 printer with format X_65_255.
Also note that I have other SAP systems but in that systems when I use the same procedure(printer and format also the same) for the same report the outputf for single row is not warpped into 2 lines but appears in the same line.
Please provide your input. Points will be rewrded for helpful answers
regards
Sachin
Note that this solution is for downloading wide formats only - not printing...
Here is what I did:
To create format Y_1024_1023 (New name!)
1) Transaction SPAD
2) Click "Full Administration" button
3) Click on "Device Types" tab
4) Click "Display" button next to "Format Types" field
5) Place cursor on X_65_255
6) Click in menu Format --> Create using template (F5)
7) Change Number of rows to 1023 (if set to 65, you will have more pages and hence more headers)
9) Change Number of Columns to 1023 (as wide as can be displayed in SP01)
8)Give new name to format e.g. Y_1023_1023
To create spool device YSPOOL:
1) Transaction SPAD
2) Click on "Device/Servers" tab (first tab!)
3) Click 'Display" button next to Output Devices field
4) Click "Create" button (Shift-F1)
5) Give output device long name (e.g.YSPOOL) and short name (e.g.YSPO)
6) Device attributes tab --> Device type = ASCIIPRI (Some generic ASCII printer) - I actually used a ZU_ASCII created in our system but ASCIIPRI should also work.
7) Access method tab --> Host printer = some value (e.g. outfile2)
8) Save
Now assign Y_1024_1023 to Device type:
1) Transaction SPAD
2) Click on Device types tab
3) Enter "ASCIIPRI" in "Device types" field and click display button
4) Click on "Formats" button (F6)
5) Click on "Create' button (Shift-F1)
6) In popup, type Y_1023_1023 (or use drop-down to choose from)
7) Save
Per OSS Note 186603 --> Call SPAD and choose Settings -> Spool System -> Other. Select 'SP01: Number of Lines for List Display from Format'. You may have to clear cache via SPAD->Goto->Cache control -->Click "Reset Cache Settings".
Now, when you schedule your background job, choose YSPOOL as your output device and choose the format as Y_1024_1023. The spool generated from this job will be 1023 columns wide and 1024 lines long (less headers!). Note that opening such a large spool (long & wide) will consume lots of app server memory so exit out as soon as download to presentation server is complete.
Similar Messages
-
How to disable a single row of a multi-line text item
I am trying to disable a date and a price on each row where the date is current or in the past (on theory the user can't update reference data that is in effect or past, only data which is not yet in use). It appears that forms 6i will make this an all-or-nothing matter, all rows (for a given text item) are enabled or all rows are disabled - no mixing! I am hoping forms is smarter than that, can someone give me knowledge? note: this is not a problem of enabling or disabling at runtime, I have that figured out, only row-specific application of the concept. here is my code:
for c1rec in get_fees loop
:cfee_def_dtl.service_fee := c1rec.service_fee;
:cfee_def_dtl.eff_date := c1rec.eff_date;
go_item('cfee_def_dtl.holdx'); -- inncouous field, not visible to user, but navigable
IF trunc(c1rec.eff_date) <= trunc(sysdate) THEN
set_item_property('cfee_def_dtl.eff_date',ENABLED,PROPERTY_FALSE);
set_item_property('cfee_def_dtl.service_fee',ENABLED,PROPERTY_FALSE);
END IF;
next_record;
end loop;Hi,
move the logic in New-Item-Instance trigger and based on your condition
SET_ITEM_INSTANCE_PROPERTY update_allowed as property_false/true.
Monica -
Hi Team,
I have ran a batch job and in the o/p spool i was able to see only 15 columns. But the width is upto 40 cloumns. I tried in settings of batch jobs but it was only for no. of pages. please let me know how to view the other 25 columns.
Note: Even when i downloaded in excel format i was able to see only those 15 columns.
Looking forward for your answers.
CartheeHi,
Is your job related to ALV output?
If yes, I suggest to check on SPAD settings, see also links below:
Display spool output i.e a single row in a single line
Re: Spool ALV LIST
Regards,
Dominik Modrzejewski -
Spool Output Error - last 2 lines of the list were dropped on spool output
Hi,
I am having problem of printing a report in ALV format. The last 2 lines were dropped on the spool output. It was actually dropping the last 2 lines on every row break.
This problem occurs ever since we did a support pack upgrade to SAPKH47030 and SAPKB62064.
Please help.
Thanks
GianaApply OSS note 1100728 which was corrected in SAPKB62065.
Problem was caused by support pack SAPKB62063 and SAPKB62064. -
ALV list display in a Background job - Spool output
Hi,
We are currently working on a report scheduled to be run in the background job, and the ALV list is displayed in the spool output.
ALV list in the spool does not look the same as front run job, the column headers are all crowded together, and there is no grid in-between different columns or rows. It's hard to read.
Is there a way to add grid for this kind of output?
Thanks!Hi Deepak:
I expanded your report into two rows display, and the grid in the spool display simply gone!
report zzscratch line-size 120 no standard page heading.
type-pools slis.
tables pa0001.
data : li_field type standard table of slis_fieldcat_alv,
gi_events type standard table of slis_alv_event,
gr_layout_bck type slis_layout_alv,
gr_save like disvariant,
gr_events type slis_alv_event.
types : begin of gtt_emp,
pernr type persno,
ename like pa0001-ename,
uname like pa0001-UNAME,
end of gtt_emp.
data : lr_field type slis_fieldcat_alv.
data : lc_rep like syst-repid.
data : li_emp type standard table of gtt_emp,
lr_emp type gtt_emp.
data : gv_ref_table type lvc_rtname.
gv_ref_table = 'CATSDB'.
lr_field-fieldname = 'PERNR'.
lr_field-ref_tabname = gv_ref_table.
lr_field-inttype = 'N'.
lr_field-outputlen = 8.
lr_field-seltext_l = 'EMPLOYEE Number'.
append lr_field to li_field.
lr_field-fieldname = 'ENAME'.
lr_field-ref_tabname = 'PA0001'.
lr_field-inttype = 'C'.
lr_field-outputlen = 40.
lr_field-seltext_l = 'EMPLOYEE Name'.
append lr_field to li_field.
lr_field-fieldname = 'UNAME'.
lr_field-ref_tabname = 'PA0001'.
lr_field-inttype = 'C'.
lr_field-outputlen = 12.
lr_field-seltext_l = 'User Name'.
lr_field-row_pos = 2.
lr_field-col_pos = 1.
append lr_field to li_field.
lc_rep = sy-repid.
gr_layout_bck-edit_mode = 'D'.
gr_save-report = sy-repid.
lr_emp-pernr = '00000001'.
lr_emp-ename = 'abc'.
lr_emp-uname = 'testus'.
append lr_emp to li_emp.
lr_emp-pernr = '00000002'.
lr_emp-ename = 'def'.
append lr_emp to li_emp.
lr_emp-pernr = '00000003'.
append lr_emp to li_emp.
lr_emp-pernr = '00000004'.
append lr_emp to li_emp.
lr_emp-pernr = '00000005'.
append lr_emp to li_emp.
lr_emp-pernr = '00000006'.
append lr_emp to li_emp.
lr_emp-pernr = '00000007'.
append lr_emp to li_emp.
lr_emp-pernr = '00000008'.
append lr_emp to li_emp.
end-of-selection.
Function module for ALV grid display
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = 'X'
i_callback_program = lc_rep
is_layout = gr_layout_bck
it_fieldcat = li_field
i_save = 'A'
is_variant = gr_save
it_events = gi_events
TABLES
t_outtab = li_emp[]
EXCEPTIONS
program_error = 1
others = 2.
if sy-subrc <> 0.
clear gr_messages.
message e023 into gr_messages.
append gr_messages to gi_messages.
endif. -
How to display mutliple rows of database data in a single row
We are using XML Publisher 5.6.2. We have a requirement, where we need to display a multiple database rows for a single column in a single row.
Basically say a database column has 5 rows
A1
A2
A3
A4
A5
We want to display in the output in a single cell as
A1 A2 A3 A4 A5
Thanks,
- Vasu -Look at this blog,
http://blogs.oracle.com/xmlpublisher/2007/05/24#a325 -
How to display multiple lines of texts in a single rows in ALV
Hi,
I have a unique requirement in which i have to display multiple lines if texts for a single rows in ALV Grid. Right now in my output it is coming in single line which is not visible fully because that text is more than 255 character. So i want to display the test by splitting into multiple lines and show it on output. Please suggest some solution for this if this is possible in ALV.
Thanks,
RaghavHi Raghavendra,
Its not possible to display multiple line in one row of an alv, but i think you can acheive it by splitting the whole text into multiple sub-text.
For example, if your requirement is as below:
Field #1 Field #2
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(200 characters)
2 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy(220 character)
then you can break Field#2 value into say 50 character and then populate the internal table with repetative entries of Field#1 and the finally sort it by Field#1 value... as a result of which you output will be somewhat as below:
Field#1 Field#2
1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2 yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
yyyyyyyyyyyyyyyyyyyy
Hope it will help you in meeting your requirement.
Regards,
Shradha -
How to suppress line #s fr. rows in SPOOL output file when I use GET
I'm having difficulty suppressing line #s which show up in my SPOOL output. That is, when I run the following
SPOOL MySpoolOutputFile.txt
GET SpoolHeader.txt LIST
where MySpoolOutputFile is my spool output destination and SpoolHeader is what I'm getting and displaying in the console.
I get a result like the following:
1 This is my first row
2 This is my second row
3 This is my third row
4 This is my fourth row
5 This is my fifth row
I have my environmental variables set to the following:
SET FEEDBACK OFF
SET TRIMSPOOL ON
SET LINESIZE 100
SET SQLNUMBER OFF
SET SQLPROMPT ''
I'd like to suppress the line numbers but can't find any other SQL*PLUS environment variable that seems to let me do this....
Thanks, in advance, for any advice!
Chris
null1. Is the first column in the select clause "rownum"?
--Stephen
null -
How to display the vertical coloumns(records) in a single row?
Hi all,
I need a requirement in SAP where in the internal table records are in vertical placement as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1
1 2 3 4 5 | a2 b2 c2 d2 e2
1 2 3 4 5 | a3 b3 c3 d3 e3
and so on..........
now as per the requirement I need all the records to be displayed in a single row in the output as follows:
1 2 3 4 5 | a1 b1 c1 d1 e1 | a2 b2 c2 d2 e2 | a3 b3 c3 d3 e3 |.....so on
Any pointers on this would be of great help.
thanks in advance,
Vamsee.Loop at itab.
at new f1.
write : itab-f1. <--- here don't give '/' .. which will write in new line ...
endif.
write : itab-f2, <--- here don't give '/' .. which will write in new line ...
itab-f3,
itab-f4,
itab-f5,
itab-f6.
at end of f1.
write :/ ''.
endat.
endloop. -
Display of data in a single row
Hi
Here is my query:
SELECT
--Element Classification Details:
pec.CLASSIFICATION_ID,
pec.classification_name,
pec1.classification_id "Sub Classification Id",
DECODE(pec1.classification_name,'Other Deductions', 'Other Deductions',
'Others Voluntary Deductions', 'Other Deductions',
'Personal Deductions', 'Personal Deductions',
'Personal Voluntary Deductions', 'Personal Deductions',
'Car Loan Deductions') "Sub Classification",
pec1.parent_classification_id,
scr.sub_classification_rule_id,
--Element Details:
pet.element_name, pet.element_type_id, pet.reporting_name,
DECODE(pet.processing_type, 'R', 'Recurring', 'Nonrecurring') "Processing Type",
pet.EFFECTIVE_START_DATE, pet.EFFECTIVE_END_DATE,
--Run Result Details:
prr.run_result_id,
TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)) "Amount",
piv.NAME "Input Value",
--Assignment Details:
paa.assignment_id,
--Time Period
ptp.START_DATE, ptp.end_date,
ptp.period_name "Payroll Period"
FROM hr.pay_element_classifications pec,
hr.pay_element_classifications pec1,
hr.pay_sub_classification_rules_f scr,
hr.pay_element_types_f pet,
hr.pay_run_results prr,
hr.pay_run_result_values prrv,
hr.pay_input_values_f piv,
hr.pay_assignment_actions assact,
hr.per_all_assignments_f paa,
hr.pay_payroll_actions payroll,
hr.per_time_periods ptp
WHERE
pec.classification_id = pec1.parent_classification_id (+)
AND scr.classification_id = pec1.classification_id
AND pet.classification_id = pec.classification_id
AND scr.element_type_id = pet.element_type_id
AND pet.ELEMENT_TYPE_ID = prr.ELEMENT_TYPE_ID
AND prr.run_result_id = prrv.run_result_id
AND piv.input_value_id = prrv.input_value_id
AND assact.ASSIGNMENT_ACTION_ID = prr.ASSIGNMENT_ACTION_ID
AND paa.ASSIGNMENT_ID = assact.ASSIGNMENT_ID
AND payroll.payroll_action_id = assact.PAYROLL_ACTION_ID
AND ptp.TIME_PERIOD_ID = payroll.time_period_id
AND ptp.end_date BETWEEN scr.EFFECTIVE_START_DATE AND scr.EFFECTIVE_END_DATE
AND ptp.end_date BETWEEN pet.effective_start_date AND pet.effective_end_date
AND ptp.end_date BETWEEN paa.EFFECTIVE_START_DATE AND paa.EFFECTIVE_END_DATE
AND pec.CLASSIFICATION_NAME IN ('Voluntary Deductions', 'Pre-Tax Deductions')
AND pec1.classification_name LIKE '%Deduction%'
AND piv.name = 'Pay Value'
AND paa.payroll_id != 0
AND paa.pay_basis_id != 0
AND paa.ASSIGNMENT_ID = '560'
I needed to display the amounts as separate columns pertaining to different elements or rather different sub classification of the elements
This is the final expected result for the report:
Employee Personal Deductions PD Amount Other Deductions OD Amt
XYZ Element1 00000.00 Element3 0000.00
Element 2
Car Loan Deductions CLD Amt Total Deductions (Total of all three)
Element4 00000.00 00000000.00
Here Personal Deductions, Other, Car Loan etc. are grouping of elements (sub classifications)
I have used MAX function to display the results as separate columns like this:
SELECT
--Run Result Details:
prr.run_result_id,
MAX(DECODE(pec1.classification_name, 'Personal Deductions', TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) "Personal Deductions",
MAX(DECODE(pec1.classification_name, 'Personal Voluntary Deductions', TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) "Personal V Deductions",
MAX(DECODE(pec1.classification_name, 'Other Deductions', TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) "Other Deductions",
MAX(DECODE(pec1.classification_name, 'Others Voluntary Deductions', TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) "Others V Deductions",
MAX(DECODE(pec1.classification_name, 'Car Loan Deductions', TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) "Car Loan Deductions"
/*--Assignment Details:
paa.assignment_id,
--Time Period
ptp.START_DATE, ptp.end_date,
ptp.period_name "Payroll Period"*/
FROM hr.pay_element_classifications pec,
hr.pay_element_classifications pec1,
hr.pay_sub_classification_rules_f scr,
hr.pay_element_types_f pet,
hr.pay_run_results prr,
hr.pay_run_result_values prrv,
hr.pay_input_values_f piv
/*hr.pay_assignment_actions assact,
hr.per_all_assignments_f paa,
hr.pay_payroll_actions payroll,
hr.per_time_periods ptp*/
WHERE
pec.classification_id = pec1.parent_classification_id (+)
AND scr.classification_id = pec1.classification_id
AND pet.classification_id = pec.classification_id
AND scr.element_type_id = pet.element_type_id
AND pet.ELEMENT_TYPE_ID = prr.ELEMENT_TYPE_ID
AND prr.run_result_id = prrv.run_result_id
AND piv.input_value_id = prrv.input_value_id
/*AND assact.ASSIGNMENT_ACTION_ID = prr.ASSIGNMENT_ACTION_ID
AND paa.ASSIGNMENT_ID = assact.ASSIGNMENT_ID
AND payroll.payroll_action_id = assact.PAYROLL_ACTION_ID
AND ptp.TIME_PERIOD_ID = payroll.time_period_id
--and pet.element_NAME like 'IVTB%'
AND ptp.end_date BETWEEN scr.EFFECTIVE_START_DATE AND scr.EFFECTIVE_END_DATE
AND ptp.end_date BETWEEN pet.effective_start_date AND pet.effective_end_date
AND ptp.end_date BETWEEN paa.EFFECTIVE_START_DATE AND paa.EFFECTIVE_END_DATE*/
AND pec.CLASSIFICATION_NAME IN ('Voluntary Deductions', 'Pre-Tax Deductions')
AND pec1.classification_name LIKE '%Deduction%'
AND piv.name = 'Pay Value'
--and paa.PRIMARY_FLAG like 'Y%'
/*AND paa.payroll_id != 0
AND paa.pay_basis_id != 0*/
GROUP BY
prr.run_result_id
However, the fact is that my each element_type_id has each run_result_id, which means 1 element has 1 run result id. Thus, I cannot display the data in a single row.
Can someone guide me on this? How can I display the data for an employee as a single row?
Thanks and regards,
AparnaSELECT EMP_ID,
Sum(Decode(DECODE(pec1.classification_name,'Other Deductions', 'Other Deductions','Others Voluntary Deductions', 'Other Deductions'),'Other Deductions',TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) 'Other deduction',
sum(Decode(DECODE(pec1.classification_name,'Personal Deductions', 'Personal Deductions', 'Personal Voluntary Deductions', 'Personal Deductions'),'Personal Deductions'),TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) 'Personal deduction',
sum(DECODE(pec1.classification_name,'Car Loan Deductions',TO_NUMBER(NVL(prrv.RESULT_VALUE, 0)))) 'Car deduction'
FROM hr.pay_element_classifications pec,
hr.pay_element_classifications pec1,
hr.pay_sub_classification_rules_f scr,
hr.pay_element_types_f pet,
hr.pay_run_results prr,
hr.pay_run_result_values prrv,
hr.pay_input_values_f piv,
hr.pay_assignment_actions assact,
hr.per_all_assignments_f paa,
hr.pay_payroll_actions payroll,
hr.per_time_periods ptp
WHERE
pec.classification_id = pec1.parent_classification_id (+)
AND scr.classification_id = pec1.classification_id
AND pet.classification_id = pec.classification_id
AND scr.element_type_id = pet.element_type_id
AND pet.ELEMENT_TYPE_ID = prr.ELEMENT_TYPE_ID
AND prr.run_result_id = prrv.run_result_id
AND piv.input_value_id = prrv.input_value_id
AND assact.ASSIGNMENT_ACTION_ID = prr.ASSIGNMENT_ACTION_ID
AND paa.ASSIGNMENT_ID = assact.ASSIGNMENT_ID
AND payroll.payroll_action_id = assact.PAYROLL_ACTION_ID
AND ptp.TIME_PERIOD_ID = payroll.time_period_id
AND ptp.end_date BETWEEN scr.EFFECTIVE_START_DATE AND scr.EFFECTIVE_END_DATE
AND ptp.end_date BETWEEN pet.effective_start_date AND pet.effective_end_date
AND ptp.end_date BETWEEN paa.EFFECTIVE_START_DATE AND paa.EFFECTIVE_END_DATE
AND pec.CLASSIFICATION_NAME IN ('Voluntary Deductions', 'Pre-Tax Deductions')
AND pec1.classification_name LIKE '%Deduction%'
AND piv.name = 'Pay Value'
AND paa.payroll_id != 0
AND paa.pay_basis_id != 0
I hope this may help!
Brijesh -
Possible to exclude interactive report column from single row display?
hi -- I have an interactive report that I've added a column to (in addition to the table columns that are selected).
The added column is a link to a form for editing a single row. This column/link is in addition to the default link
that goes to a single row view. So, a row of the report has 1) the single row view link, 2) the Edit link,
3) the columns in the table.
The edit link column is named "Edit" (so Edit appears above the "pencil" link icon). Problem is that when the
user goes to the single row view, the Edit column is displayed. (I've set the label in the view to a blank space,
and the value is null (displayed as "-" in the single row view)... but it's generally ugly, and adds that nonsensical
line to the single row view.
Is there any way to never display that column in the single row view, but always display it in the report?
I've considered putting the edit link on the first column of the table... but I don't like that the link will move
if the user changes the column order. It seems it should always be at the left of the row, like the single row view
link.
Thanks,
CarolPlease disregard this thread. I see a flaw in the design of what I was attempting to do! Creating the link for Editing as a column means the user could inadvertently not display it, or move it, or... any number of problematic scenarios.
Thanks,
Carol -
Oracle query - Merging multiple rows into a single row output
Hi All,
I have to have a multiple row output to be converted into a single row output.My current output looks as follows:
ID YR INC_CODE OFFN SCHOOLNO
8006 2002 00175 SC03 12
8006 2002 00175 DC06 12
8006 2002 00175 DC03 12
8006 2002 00175 DC02 12
ID,INCIDENT CODE,OFFENSE are all Primary keys
So I need the output as follows:(IN ONE ROW)
ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 SCHOOLNO
8006 2002 00175 SC03 DC06 DC03 DC02 12
Can you help me on this since have been spinning the wheel and this has to be a query since will have couple of tables join to produce a materialized view.
Thanks in advanceHi Nigel,
Thanks for the reply I tested out the portion having the decode and I get the output as follows:
ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 OFFN5
8982 2002 2175 DOC01 -----------------------
8982 2002 2175 DOC02-------------------
8982 2002 2175 DOC03------------
8982 2002 2175 DOC06-------
8982 2002 2175 SCV03
There is no value as max for OFFN and each INC_CODE MAY HAVE UP TO A MAX OF 5 OFFN.My query is as follows:
select distinct STU_STUDENT_ID, INC_BEG_SCH_YR,INC_INCIDENT_CODE
, decode(rank() over (partition by INC_CODE order by OFFN),1,OFFN,null) as offn1
, decode(rank() over (partition by INC_CODE order by OFFN),2,OFFN,null) as offn2
, decode(rank() over (partition by INC_CODE order by OFFN),3,OFFN,null) as offn3
, decode(rank() over (partition by INC_CODE order by OFFN),4,OFFN,null) as offn4
, decode(rank() over (partition by INC_CODE order by OFFN),5,OFFN,null) as offn5
from stu_offn where
stu_offn.ID = '8982' and stu_offn.INC_CODE = '2175'
(****Where clause is just given to just check a value)
So as you know I need to just have all the OFFN in a single row ie as follows:
ID YR INC_CODE OFFN1 OFFN2 OFFN3 OFFN4 OFFN5
8982 2002 2175 DOC01 DOC02 DOC03 DOC06 SCV03
Can you just give me a step by step procedure to go through this and the table in this case is just 'STU_OFFN'
Thanks for the earlier reply appreciate it!
****Sending this again to show the exact way the output is coming -
How to display the multiple rows in a single column ?
Hi,
I have the Query like this :
SELECT MS.SUBJECT, MS.MESSAGEDESC, MS.MSGDATE, MAT.ATTACHMENT
FROM MESSAGES MS, MSESAGEATTACHEMTASSO MAA, (select pga.programid,
act.accountname,
row_number() over(partition by pga.programid order by act.accountname) rn
from accounttypes act, programpursesasso pga
where act.accounttypeid = pga.accounttypeid ) MSGATTACHMENTS
WHERE MS.MESSAGEID = MAA.MESSAGEID
AND MAA.MSGATTACHMENTID = MAT.MSGATTACHMENTID
AND MS.MESSAGEID = 1;
If i have multiple messageAttachments for single message ., i want to display them in a single row.,
like :
subject messagedesc msgdate attachment1 attachment2 .....attachmentn
test test 10/10/2007 test test test
can any one help me out ., how can i do this using simple sql query ?Hi,
Thanks for the Reply .,
I have the 2 table like :
DESC MESSAGES;
Name Type Nullable Default Comments
MESSAGEID NUMBER(16)
EMAILFROM VARCHAR2(50) Y
EMAILTO VARCHAR2(50) Y
SUBJECT VARCHAR2(500) Y
MESSAGEDESC VARCHAR2(2000) Y
MSGDATE DATE Y
MSGSTATUS NUMBER(1) Y
MSGDELETESTATUS NUMBER(1) Y
SQL> DESC MESSAGES;
Name Type Nullable Default Comments
MESSAGEID NUMBER(16)
EMAILFROM VARCHAR2(50) Y
EMAILTO VARCHAR2(50) Y
SUBJECT VARCHAR2(500) Y
MESSAGEDESC VARCHAR2(2000) Y
MSGDATE DATE Y
MSGSTATUS NUMBER(1) Y
MSGDELETESTATUS NUMBER(1) Y
SQL> DESC MSGATTACHMENTS;
Name Type Nullable Default Comments
MSGATTACHMENTID NUMBER(16)
ATTACHMENT CLOB
ATTACHMENTDATE DATE Y
SQL> DESC MSESAGEATTACHEMTASSO;
Name Type Nullable Default Comments
MSGATTCHID NUMBER(16)
MESSAGEID NUMBER(16) Y
MSGATTACHMENTID NUMBER(16) Y
What I need Is :
If One Msg is having multiple attachement , then i want to display all the attachment in a single row along with MsgSubject, MsgDate, MsgDesc like
I want to dipaly the MsgSubject, MsgDesc, MsgDate, Attachment1
MsgSubject MsgDate Msgdesc Attachment1 Attachment2 Attachment3 ...etc -
Customizing Sharepoint Calendar Week Group View to display multiple weeks in a single row
Hi,
SharePoint Calendar's Week Group View is useful for comparing multiple co-worker's schedule, and we have a business needs to be able to view the schedule for with the date range of more than one week at a time between co-workers for planning purposes, is
there a way (code or no-code) to manipulate the date/week range so that the calendar display more than 7 days in a single row?Hi,
As there is no such OOTB feature, I would suggest that you can change the calendar scope to “Month” or create a Gantt view to display more weeks in a view.
Or you can try to create a custom calendar web part to meet your requirement.
Here are some samples of custom calendar web part for your reference:
http://www.codeproject.com/Articles/108676/SharePoint-Custom-Calendar
http://gunnarpeipman.com/2009/01/creating-sharepoint-global-calendar/
https://blog.metrostarsystems.com/2013/10/21/creating-a-custom-sharepoint-calendar-rollup/
Best regards
Patrick Liang
TechNet Community Support -
Smartform Issue.. Displaying the fields in a single row
Hi All...
In my smartform, the data are displaying in 2 different rows, even thought they are placed in a single row of a table.
Its getting diplayed as follows..
mat-123 10 kg
100 2500.00 2500.00
Now i would like to print 100 and 2500.00 in above row where mat-123 is getting displayed....
Where to check and what to do ...????
Please help me....
Regards
PavanHi Pavan,
Try increasing the column width of the table for this 'mat-123 10 kg'. then it should display in the same row.
Regards,
Hema.
Reward points if it is useful.
Maybe you are looking for
-
I am asking for feedback on this design. Here is an example user story: As a group admin on the website I want to be notified when a user in my group uploads a file to the group. Easiest solution would be that in the code handling the upload, we just
-
How can I keep my iPhone 4 Mail from freezing & losing drafts?
I often send email from my iPhone (4 with iOS 5.0.1) only to find that the phone doesn't have a connection. Often once it has a connection again, the mail program will never load -- instead freezing, the "load wheel" forever circling, "Checking for M
-
External Hard Drive - Lacie D2 Quadra, Iomega Mac Companion or MiniMax??
I'm looking for suggestions on a 2TB FW800 external hard drive for my iMac (Mid 2010). I understand the quality/reputation of the Lacie products, but I am intrigued by the Iomega Mac Companion and Iomega Minimax. The companion and minimax look almo
-
Re-installing Photoshop CS6 on new iMac problem.
I transferred my Photoshop CS6 to a new iMac Retina running OSX 10.10.1, having taken care to deactivate on the old Mac first and then reactivated on the new. Photoshop comes up with an error message now each time I launch saying that "One or more f
-
Can I run Final Cut Pro 7 after upgrading to OS Mavericks?
I have not upgraded in a while (10.7.5), but have heard that FCP 7 crashes with other upgrades. I'm assuming such is the case here, but I would like confirmation one way or the other.