Hw to generate e report which provides me output in bold and italic format
reply soon
Hi,
Use the below code
DATA: ls_line TYPE slis_listheader.
data tab(50).
REFRESH p_gt_top_of_page.
ls_line-typ = 'H'.
ls_line-info = 'TATA Motors Finance Limited '.
APPEND ls_line TO p_gt_top_of_page.
concatenate 'WAR : ' t_war into tab.
ls_line-info = tab.
APPEND ls_line TO p_gt_top_of_page.
clear : tab, t_fin2 .
t_fin2 = t_fin1.
concatenate ' Total Finance Amount : ' t_fin2 into tab.
ls_line-info = tab.
APPEND ls_line TO p_gt_top_of_page.
ls_line-typ = 'H'.
will help you do the same,
Reward points
Similar Messages
-
Generated a report which gives PR(Purchase Requisition) analysis using ALV.
hi experts,
please give me tables and fields for following report, and also exlain me briefly,
Generated a report which gives PR(Purchase Requisition) analysis using ALV.
thanks in advance,
radhakrishnaHi
please find this report which link SO PO PR and Prd Ord and there status.
>
REPORT z_so_info.
TABLES: vbak, vbap, afko, afpo.
*Field catalog
TYPE-POOLS: slis.
DATA: lv_repid TYPE sy-repid VALUE sy-repid,
xfield TYPE slis_t_fieldcat_alv,
afield TYPE slis_fieldcat_alv.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(25) text-002.
SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
PARAMETERS:
p_kunnr LIKE vbak-kunnr, " sold-to
p_kunwe LIKE vbak-kunnr. " ship-to
SELECTION-SCREEN END OF BLOCK b2.
*Constants
CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
c_we TYPE vbpa-parvw VALUE 'WE',
c_ag TYPE vbpa-parvw VALUE 'AG'.
c_space TYPE space.
*Ranges
RANGES: ra_parvw FOR vbpa-parvw,
ra_kunnr FOR vbpa-kunnr.
*Tables
DATA: BEGIN OF gt_output OCCURS 0,
vbeln LIKE vbak-vbeln, " sales order number
posnr LIKE vbap-posnr, " SO item number
matnr LIKE vbap-matnr, " material number
sh LIKE vbpa-kunnr, " Ship-to
sp LIKE vbpa-kunnr, " Sold-to
lifnr LIKE ekko-lifnr, " Vendor
bstnk LIKE vbak-bstnk, " PO number
banfn LIKE vbep-banfn, " Purchase requi
po_st TYPE char30, " PO status text
pstyv TYPE vbap-pstyv, " Item catagory
aufnr LIKE afpo-aufnr, " Production Order
prd_stat TYPE string, " Prd order status
END OF gt_output.
DATA: wa_output LIKE gt_output.
FIELD-SYMBOLS: <fs_output> LIKE gt_output.
*Table for sales order and PO
TYPES : BEGIN OF gs_data,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
pstyv TYPE vbap-pstyv,
matnr TYPE vbap-matnr,
END OF gs_data.
DATA: gt_data TYPE STANDARD TABLE OF gs_data,
wa_data TYPE gs_data.
*Table for Production Orders
TYPES: BEGIN OF gs_prd,
aufnr TYPE afpo-aufnr,
posnr TYPE afpo-posnr,
kdauf TYPE afpo-kdauf,
kdpos TYPE afpo-kdpos,
wepos TYPE afpo-wepos, "Goods Receipt Indicator
elikz TYPE afpo-elikz, "Delivery Completed Indicator
objnr TYPE aufk-objnr, "Object number
getri TYPE afko-getri, "Confirmed Order Finish Date
gltri TYPE afko-gltri, "Actual finish date
END OF gs_prd.
DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
wa_prd TYPE gs_prd.
*Table for partner data
TYPES: BEGIN OF gs_partner,
vbeln TYPE vbak-vbeln,
posnr TYPE vbap-posnr,
parvw TYPE vbpa-parvw,
kunnr TYPE vbpa-kunnr,
END OF gs_partner.
DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
wa_partner TYPE gs_partner.
TYPES: BEGIN OF gs_po,
ebeln TYPE ekkn-ebeln,
ebelp TYPE ekkn-ebelp,
vbeln TYPE ekkn-vbeln,
vbelp TYPE ekkn-vbelp,
END OF gs_po.
DATA: gt_po TYPE STANDARD TABLE OF gs_po,
wa_po TYPE gs_po.
TYPES: BEGIN OF gs_preq,
vbeln TYPE vbep-vbeln,
posnr TYPE vbep-posnr,
banfn TYPE vbep-banfn,
END OF gs_preq.
DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
wa_preq TYPE gs_preq.
TYPES: BEGIN OF gs_po_stat,
ebeln TYPE ekko-ebeln,
procstat TYPE ekko-procstat,
lifnr TYPE ekko-lifnr,
END OF gs_po_stat.
DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
wa_po_stat TYPE gs_po_stat.
*Field symbols
FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
<fs_temp> TYPE tj02t-txt04,
<fs_stat> TYPE char30.
START-OF-SELECTION.
PERFORM fr_build_range.
PERFORM fr_get_data.
PERFORM fr_build_fc.
PERFORM fr_output.
*& Form fr_get_data
text
--> p1 text
<-- p2 text
FORM fr_get_data.
*Get SO
SELECT avbeln aposnr apstyv amatnr
FROM vbap AS a
JOIN vbak AS b
ON avbeln = bvbeln
JOIN vbpa AS c
ON bvbeln = cvbeln
INTO TABLE gt_data
WHERE b~vbeln IN so_so
AND b~auart EQ c_zor "Only Sales Orders
AND c~kunnr IN ra_kunnr. "from selection screen
DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
*get data of the production order
IF NOT gt_data[] IS INITIAL.
SELECT aaufnr aposnr akdauf akdpos awepos aelikz
b~objnr
FROM afpo AS a
JOIN aufk AS b
ON aaufnr = baufnr
INTO TABLE gt_prd
FOR ALL ENTRIES IN gt_data
WHERE a~kdauf EQ gt_data-vbeln
AND a~kdpos EQ gt_data-posnr.
ENDIF.
*Get partner data
IF NOT gt_data[] IS INITIAL.
SELECT vbeln posnr parvw kunnr
FROM vbpa
INTO TABLE gt_partner
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln.
ENDIF.
*Get Purchase Order
IF NOT gt_data[] IS INITIAL.
SELECT ebeln ebelp vbeln vbelp
FROM ekkn
INTO TABLE gt_po
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln
AND vbelp EQ gt_data-posnr.
SELECT vbeln posnr banfn
FROM vbep
INTO TABLE gt_preq
FOR ALL ENTRIES IN gt_data
WHERE vbeln EQ gt_data-vbeln
AND posnr EQ gt_data-posnr.
ENDIF.
IF NOT gt_po[] IS INITIAL.
SELECT aebeln aprocstat a~lifnr
FROM ekko AS a
JOIN ekpo AS b
ON aebeln = bebeln
INTO TABLE gt_po_stat
FOR ALL ENTRIES IN gt_po
WHERE b~ebeln EQ gt_po-ebeln
AND b~ebelp EQ gt_po-ebelp.
ENDIF.
*Move data to output table
LOOP AT gt_data INTO wa_data.
wa_output-vbeln = wa_data-vbeln.
wa_output-posnr = wa_data-posnr.
wa_output-pstyv = wa_data-pstyv.
wa_output-matnr = wa_data-matnr.
READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
vbelp = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-bstnk = wa_po-ebeln.
READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
IF sy-subrc EQ 0.
wa_output-lifnr = wa_po_stat-lifnr.
CASE wa_po_stat-procstat.
WHEN '01'.
wa_output-po_st = 'Version in process'.
WHEN '02'.
wa_output-po_st = 'Active'.
WHEN '03'.
wa_output-po_st = 'In release'.
WHEN '04'.
wa_output-po_st = 'Partially released'.
WHEN '05'.
wa_output-po_st = 'Released Completely'.
WHEN '08'.
wa_output-po_st = 'Rejected'.
ENDCASE.
ENDIF. "inner read subrc
ENDIF. "outer read subrc
READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
posnr = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-banfn = wa_preq-banfn.
ENDIF.
READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
kdpos = wa_data-posnr.
IF sy-subrc EQ 0.
wa_output-aufnr = wa_prd-aufnr.
*get the purchase requisition for production order as well
SELECT SINGLE banfn
FROM ebkn
INTO wa_output-banfn
WHERE aufnr EQ wa_prd-aufnr.
*Get the status of the production order
PERFORM fr_get_prd_stat USING wa_prd-objnr
CHANGING wa_output-prd_stat.
ENDIF. " sy-subrc
READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
parvw = c_we.
IF sy-subrc EQ 0.
wa_output-sh = wa_partner-kunnr.
ENDIF.
READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
parvw = c_ag.
IF sy-subrc EQ 0.
wa_output-sp = wa_partner-kunnr.
ENDIF.
APPEND wa_output TO gt_output.
CLEAR: wa_data, wa_prd,wa_partner,wa_output.
ENDLOOP.
ENDFORM. " fr_get_data
*& Form fr_build_range
text
--> p1 text
<-- p2 text
FORM fr_build_range .
*Range for partner function
MOVE 'I' TO ra_parvw-sign.
MOVE 'EQ' TO ra_parvw-option.
MOVE 'SH' TO ra_parvw-low. " we
APPEND ra_parvw.
CLEAR ra_parvw.
MOVE 'I' TO ra_parvw-sign.
MOVE 'EQ' TO ra_parvw-option.
MOVE 'SP' TO ra_parvw-low. " ag
APPEND ra_parvw.
CLEAR ra_parvw.
*Range for ship-to and sold-to
MOVE 'I' TO ra_kunnr-sign.
MOVE 'EQ' TO ra_kunnr-option.
MOVE p_kunnr TO ra_kunnr-low.
APPEND ra_kunnr.
CLEAR ra_kunnr.
MOVE 'I' TO ra_kunnr-sign.
MOVE 'EQ' TO ra_kunnr-option.
MOVE p_kunwe TO ra_kunnr-low.
APPEND ra_kunnr.
CLEAR ra_kunnr.
ENDFORM. " fr_build_range
*& Form fr_build_fc
text
--> p1 text
<-- p2 text
FORM fr_build_fc .
sales order number
afield-fieldname = 'VBELN'.
afield-seltext_s = 'Sales #'.
afield-ref_tabname = 'VBAK'.
APPEND afield TO xfield. CLEAR afield.
sales ITEM number
afield-fieldname = 'POSNR'.
afield-seltext_s = 'Item #'.
afield-ref_tabname = 'VBAP'.
APPEND afield TO xfield. CLEAR afield.
Material Number
afield-fieldname = 'MATNR'.
afield-seltext_s = 'Material #'.
afield-ref_tabname = 'VBAP'.
afield-outputlen = 10.
APPEND afield TO xfield. CLEAR afield.
*Vendor Number
afield-fieldname = 'LIFNR'.
afield-seltext_s = 'Vendor Num.'.
afield-ref_tabname = 'EKKO'.
APPEND afield TO xfield. CLEAR afield.
ship-to-party
afield-fieldname = 'SH'.
afield-seltext_s = 'Ship-to'.
afield-ref_tabname = 'VBPA'.
APPEND afield TO xfield. CLEAR afield.
sold-to-party
afield-fieldname = 'SP'.
afield-seltext_s = 'Sold-to'.
afield-ref_tabname = 'VBPA'.
APPEND afield TO xfield. CLEAR afield.
*PO number
afield-fieldname = 'BSTNK'.
afield-seltext_s = 'PO NUM'.
afield-ref_tabname = 'EKKO'.
APPEND afield TO xfield. CLEAR afield.
*PO status
afield-fieldname = 'PO_STAT'.
afield-seltext_s = 'Step'.
afield-ref_tabname = 'zbacklog_v2'.
APPEND afield TO xfield. CLEAR afield.
*PO step status
afield-fieldname = 'PO_ST'.
afield-seltext_s = 'PO.Status'.
afield-ref_tabname = 'zbacklog_v2'.
APPEND afield TO xfield. CLEAR afield.
*Purchase requisition
afield-fieldname = 'BANFN'.
afield-seltext_s = 'Pur. Req.'.
afield-ref_tabname = 'VBEP'.
APPEND afield TO xfield. CLEAR afield.
*Item catagory
afield-fieldname = 'PSTYV'.
afield-seltext_s = 'Itm. Catg'.
afield-ref_tabname = 'VBAP'.
APPEND afield TO xfield. CLEAR afield.
*Prodcution Order number
afield-fieldname = 'AUFNR'.
afield-seltext_m = 'Prod.Order'.
afield-ref_tabname = 'AFKO'.
APPEND afield TO xfield. CLEAR afield.
*PRODCUTION status
afield-fieldname = 'PRD_STAT'.
afield-seltext_s = 'Prd. Step'.
afield-ref_tabname = 'zbacklog_v2'.
afield-outputlen = 20.
APPEND afield TO xfield. CLEAR afield.
*PRODUCTION step status
afield-fieldname = 'PRD_ST'.
afield-seltext_s = 'Prd. Status'.
afield-ref_tabname = 'zbacklog_v2'.
APPEND afield TO xfield. CLEAR afield.
ENDFORM. " fr_build_fc
*& Form fr_output
text
--> p1 text
<-- p2 text
FORM fr_output .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT =
it_fieldcat = xfield[]
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " fr_output
*& Form fr_get_prd_stat
text
-->P_WA_PRD_OBJNR text
FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
DATA: lt_status TYPE STANDARD TABLE OF jstat,
wa_status TYPE jstat,
lv_status TYPE tj02t-txt04,
lv_temp2 TYPE char5,
lv_buff TYPE string.
CALL FUNCTION 'STATUS_READ'
EXPORTING
client = sy-mandt
objnr = p_objnr
only_active = 'X'
TABLES
status = lt_status
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
LOOP AT lt_status INTO wa_status.
IF wa_status-stat(1) EQ 'I'.
SELECT txt04 FROM tj02t
INTO lv_status
WHERE istat EQ wa_status-stat
AND spras EQ 'E'.
ENDSELECT.
lv_temp2 = lv_status.
CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
SEPARATED BY ','.
ENDIF.
CLEAR: wa_status, lv_status, lv_temp2.
ENDLOOP.
lv_buff = p_prd_stat.
*Status of Production Order
IF lv_buff CS 'CRTD'.
p_prd_stat = 'Not Active'.
ENDIF.
IF lv_buff CS 'REL'.
IF lv_buff CS 'GMPS'.
p_prd_stat = 'Printed In Prod'.
ELSE.
p_prd_stat = 'Printed'.
ENDIF.
ENDIF.
IF lv_buff CS 'TECO'.
p_prd_stat = 'Technically Compt.'.
ENDIF.
ENDFORM. " fr_get_prd_stat
> -
Hi Experts,
I need to create a report which includes records of current month and last 7 days of previous month.
I will get records of current month by this formula :- month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate)
Please tell me how to add the records of last 7 days of previous Month for the same report.
Thanks in Advance.Hi Ajay,
If you have more than a year data in your database then your formula will return wrong results. ie. If your data consist of 2012,2013,2014 data then below formula will return all 8th month data irrespective of year. So, you need to check year also here
month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate) and
Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate)
Now add Abhilash second statement in OR so, your formula should look like :
(month({PROBSUMMARYM1.OPEN_TIME})=month(currentdate) and
Year({PROBSUMMARYM1.OPEN_TIME})=Year(currentdate))
OR
Date({PROBSUMMARYM1.OPEN_TIME}) IN [DateAdd('d',-7,Maximum(LastFullMonth)), Maximum(LastFullMonth)
-Sastry -
A report which shows the purchase order MM and the linked vendor invoice
Hi All,
I wonder if ther's a SAP standard report which shows the purchase order MM and the linked vendor invoice (the FI document) with the Net due date.
Could anyone help me?
Thanks
G.RossiHi,
ME80FN with PO History View
ME2N with Scope of List "ALLES" -
With Reports 10G can you customize you message and stop formatting?
Oracle, states to come here for answer. they said, OTN should be able to help.
If any one knows how this can be done can you please help me out?
thanks,
We were told this was fixed with 10G so we upgraded to 10G. We have a
report and we want it to execute if it's less than 10 records if not we want a
message to come up that the report needs to be scheduled.
Well we run the report and it displays exceeded record count but the format
still runs so no time saved on the web.
If the record count was exceeded we want to HALT the system and not go any
farther.
Now if we could modify the system message 1825 we would be o.k. But we don't
know if that is going to work. If we could change the message we would be
o.k. with that. that would mean changing the system codes though.
### How is the Report being called (Command line, URL or via Oracle Forms): ###
If false comes back in the beginning then we don't want any report formatting
to be done. Right now the format is done it seems but no data is displayed
because criteria isn't met.
So we dont wnat the formatting to be run when criteria isn't met. But for
some
reason it still runs and takes time.
See we have some reports on the web that can only be ran by date range right
now the clients can only run the reports for a 6 months range.. Well some
clients have a lot smaller record count. So we want to change the way the
reports are ran to a records count. If the count is large than said amount
then a message comes up that states the report has to be scheduled. If the
amount is under said amount then the report runs.
So at this time in the report we do a count then we move onto will the report
run or not if over the amount we want to abort the process but we don't want
the client to see the abort. We definately don't want the client to sit and
wait for the format to run when NO Data is to be returned.
### Error messages and error scenario: ###
So what we want is too see a message "Schedule the report count exceeded" and
NO formatting done. If under amount we want the report to run.
### Provide a detailed step-by-step description of your problem or question: ###
Or is there a way to customize the messages the client / users will see. And
no formatting time for no records returned.
Contact me via : E-mail -> [email protected]
Text continued in next action...
20-SEP-04 18:39:53 GMT
Text continued from previous action...
20-SEP-04 19:18:51 GMT
New info : Is there a way if the error messages have to come up that we can
hide the message or have another screen cover that error message something to
cover the message so that the user doesn't see the error message.
20-SEP-04 19:30:23 GMT
Hi Darlene,
Thank you for using MetaLink. Iam currently working on a very critical issue.I shall review/research your issue at the earliest opportunity and w
ill update the SR / call you as soon as we have relevant information. Thank you
for your patience.
Best Regards,
Seema,
Oracle Support Services
STATUS
=======
@WIP -- Work In Progress
20-SEP-04 19:30:30 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 00:32:18 GMT
Hi Darlene!
If you are calling the report from a form, try using the EXIT_FORM line in your code.
Thanks and Regards,
Seema
21-SEP-04 00:33:01 GMT
Email Update button has been pressed: Sending email to [email protected]
21-SEP-04 14:09:20 GMT
New info : We will try it and let you know.
21-SEP-04 14:19:04 GMT
New info : We are not calling the report from a form so this won't work. Any
other way. We are needing to do this badly.
21-SEP-04 14:39:06 GMT
New info : Can I get detailed steps about how to customize the system message
or hide the message when we abort the report?
21-SEP-04 15:38:39 GMT
Hi Darlene!!
As talked to you on phone, here are the steps for you to try.
The below has been run as a test case using emp table in scott schema of a database
1) create a summary coloumn say cs_1 in the data model.
2) point the function to count.
3) Point the source to what ever's count you want it to be pointed to(say empno of emp table of
scott schema)
4) create a user parameter say NO_ROWS
5) in its property palette make its data type number and initial value as 1
6) I had teh following query for my report:
select empno, ename from emp
where rownum <= :no_rows
This means that the report that will be generated will consist of a total no of NO_ROWS(that we
shall be specifying at run time). The before report trigger(mentioned in 7 below) shall assure
that whenever we specify NO_ROWS greater than 5 then the report will display a customized pop up
message.
7) create a before report trigger as:
function BeforeReport return boolean is
user_excp EXCEPTION;
begin
if :cs_1 >5 then
raise user_excp;
return (false);
else
return true;
end if;
EXCEPTION
WHEN user_excp then
SRW.MESSAGE(30, 'Data is more please schedule this report:');
raise SRW.PROGRAM_ABORT;
return (false);
end;
This way when u run a report, an argument is asked whether how many rows do you want to be
displayed as in the parameter NO_ROWS. then you specify the number. If that number is greater
than 5(in this case, due to if :cs_1 > 5 then....) then it will pop up a message saying "Data is
more please schedule this report:"
In case you do not want to specify NO_ROWS..then you need not put that and modify the report
query as "select empno, empname from emp;" i.e. without where clause.
21-SEP-04 16:49:30 GMT
New info : we will try this then update the TAR.
21-SEP-04 16:58:09 GMT
ok you update the tar when you try the above steps.
STATUS:
@CUS
23-SEP-04 02:16:00 GMT
New info : Information from the person that did this suggestion step by step.
I tried this step by step, but unfortunately, it doesn't work the way we want.
First with this suggestion, the user needs to choose how many records they
want
to get, or we default a number of records, in order to run the report. The most
important thing is, whenever you specify the statement return false or raise
SRW.PROGRAM_ABORT in the before report trigger, the system message will pop up.
I really hope that people from Oracle would let us know how to customize the
system message or hide it.
23-SEP-04 14:23:04 GMT
New info : I just thought that we have some sort of message, which I guess is
from the database, when we do claim search on client inquiry. I am just
wondering if we could try the same thing to the report.
The some sort of message looks like this on dev box:
Your search exceeded 5000 records and will surpass the capabilities of this
connection. Please narrow the search criteria and resubmit.
It's just a thought, not sure if it's going to work.
When could we have the DBA Make this change. The servlet.properties???
23-SEP-04 17:30:55 GMT
REQUESTED INFORMATION PROVIDED
===============================
Hi Darlene,
Thank you for providing the requested information. I am currently reviewing/resea
rching the situation and will update the TAR / call you as soon as I have additi
onal information. Thank you for your patience.
Best regards,
Ajit
STATUS
=======
@WIP -- Work In Progress
23-SEP-04 18:04:31 GMT
UPDATE
=======
Hi Darlene,
We cannot modify the system messages nor do I think there is a method to hide the system message. The message that was coming is
due to the raise srw.program_abort command, which is the element through which
we can abort the program.
Thanks
Best Regards
Ajit
@CUS
23-SEP-04 18:29:26 GMT
New info : Can you please look into a way that we can get something to work?
23-SEP-04 18:49:28 GMT
Hi Darlene,
I am sorry to say that but I don't think there is any any workaround to this because the system message is what is generated by the oracle reports i
nternally. Still if you wish you may refer to the otn discussion forum which is
maintained by teh product management group and post a new thread on it. the link
to the forum is Reports
Also since nothing can be done on our side I don't see any reason to keep this TAR open an
d if you wish we can soft close this.
Thanks
Regards
Ajit.
New info : Shouldn't there always be a way to do something? I don't understand
why we were told in 10G that this could be done and now we are told it can't.K T wrote:
Yep - not nice...unless you do a TE 'Get Info' in the Finder and √ the 'Open in 32-bit mode' box and try again...then, all seems well in snow leopard land.
Really? I figure since I have a Core Duo chip, everything always opens in 32-bit mode. In any case, I did file a bug report and will give your suggestion a try later today. -
Hi Experts,
I am working on a report in Crystal (2008) which will prompt user to input a value, but if nothing is entered then it will select relevant database value.
I created a string parameter prompt called "{?Pack_Qty_Overide}" and used the following formula.
IF {?Pack_Qty_Overide} = ""
THEN {OITM.SalPackUn}
ELSE {?Pack_Qty_Overide}
However, when I check the formula in editor, it says that there should be a number at the end of "Else" clause.
What am I doing wrong?Hi Janos,
OITM.SalPackUn is Numeric(19.6). When I used parameter input type as number, my formula returned error that "A number is required here" at the "if .... " statement.
So I used the formula you provided and it worked, such that when I input a quantity in parameter prompt it would display that, but if no override value given, the field remains blank - i.e. it does not display the value stored in OITM.SalPackUn.
What am I doing wrong?
Thanks,
YP -
Need to generate report which executes automatically.
Dear gurus.
I like to generate a report which execute automatically when the probation of an employee expires or list of employees having birthday in current month and print automatically.
can this be done ? if so can you guide me
regards
Saad Nisar.hi Saad,
i think we can do this if you condition satisfies then use fm Job_open submit and job close
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_name
IMPORTING
jobcount = l_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT z_report1 VIA JOB l_name NUMBER l_number
AND RETURN .
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_number
jobname = l_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
endif.
endif.
so once your condition satisfies then open the job and run it in background mode.
Hope this helps.
Thanks,
Tanmaya -
Generating a Report to show the Tablespace Information
Hello,
I want to generate a report which gives me the amount of space left in the tablespaces and also the space allocated to that tablespace in the OS level.
Could anyone point me in the right direction.
Thanks954527 wrote:
Hello,
Thanks for the reply , along with the script you mentined I also want the space left in the OS level for that tablespace.
Thanksthe database won't know that. You will have to use commands for your -- unnamed -- operataing system. -
How to Generate a Report for a list of Users in Shared Services.
I am using Hyperion 9.3.1 version.
I have around 120 (MSAD) users in shared services and now i want to generate a report which tells what all access is given to a particular application for these users. Can anyone let me know the steps how to acheive this.
Regards,
Vijay Krishna.Hi,
Have you tried generating a provisioning report in Shared Services, have a read of :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_cas_help/provrep.htm
If that doesn't suit your requirements then you could always have a look at using CSSImportExportUtility to export provisioning to a csv file. The utility is located in hyperion\common\utilities and has a pdf on instructions how to use it.
Cheers
John
http://john-goodwin.blogspot.com/ -
Generating annual report and list the data into JTable
Hi, I am stuck with my project. I know that my logic is wrong, but I couldn't figure out the solution. Please help me.
I hava a database, one of the table is the booking information.
I need to generate a report which shows the number of booking for each companies for each month.
I have three data in my database, two different companies(XX and YY), with three different months(Jan, Feb, Jul).
The problem that I encountered is that the data shown is inaccurate. It showed 6 rows of data, and the number of booking is incorrect.
It showed :
Company Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
XX 1 0 0 0 0 0 0 0 0 0 0 0
XX 1 1 0 0 0 0 0 0 0 0 0 0
YY 1 1 0 0 0 0 1 0 0 0 0 0
How can I loop for different companies and add the number of booking each time and get the right output as follows?
Company Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
XX 1 1 0 0 0 0 0 0 0 0 0 0
YY 0 0 0 0 0 0 1 0 0 0 0 0
This is my partial code:
ArrayList stringList = dao.retrieveAllBooking();
for (int i = 0; i < stringList.size(); i++) {
ab = (AllBooking) stringList.get(i);
d = ab.getDATE_OF_USE_TO();
StringTokenizer ss = new StringTokenizer((String) d, "/");
String day = ss.nextToken();
String month = ss.nextToken();
String year = ss.nextToken();
Org = o.getORG_ID();
if(month.equals("JAN")){
JanDR++;
if(month.equals("FEB")){
FebDR++;
if(month.equals("MAR")){
MarDR++;
if(month.equals("APR")){
// Apr = ab.getNO_OF_REQ();
AprDR++;
if(month.equals("MAY")){
//MayDR = ab.getNO_OF_REQ();
MayDR++;
if(month.equals("JUN")){
// Jun = ab.getNO_OF_REQ();
JunDR++;
if(month.equals("JUL")){
JulDR++;
if(month.equals("AUG")){
AugDR++;
if(month.equals("SEP")){
SepDR++;
if(month.equals("OCT")){
OctDR++;
if(month.equals("NOV")){
NovDR++;
if(month.equals("DEC")){
DecDR++;
Object[] data={Org,JanDR, FebDR, MarDR, AprDR, MayDR, JunDR, JulDR, AugDR, SepDR, OctDR, NovDR, DecDR, JanSR, FebSR, MarSR, AprSR, MaySR, JunSR, JulSR, AugSR, SepSR, OctSR, NovSR, DecSR};
tableModel.addRow(data); //add the data to the table.
I'll appreciate for your help. Thanks.Off hand, it appears perhaps under certain circumstances you need to insert a new record, whereas under other circumstances you need to update (that is to say modify) the record by retrieving it, changing it, then updating it. If you pepper your code with System.out.println() statements, you can see where your problems occur in the code.
I say you may have inserted a record instead of updated due to your statement here. Looks like XX should have been one record rather than two.
Got:
XX 1 0 0 0 0 0 0 0 0 0 0 0
XX 1 1 0 0 0 0 0 0 0 0 0 0
YY 1 1 0 0 0 0 1 0 0 0 0 0
Expected:
XX 1 1 0 0 0 0 0 0 0 0 0 0
YY 0 0 0 0 0 0 1 0 0 0 0 0 -
Hi,
I created a report which just run a sql query and give the output correct. The code was
select target_name,target_type, column_label,
warning_threshold,critical_threshold,occurrence_count
from sysman.MGMT$TARGET_METRIC_SETTINGS
I added a drop down select box called P1_Target. And the report takes the input from the drop down and should give the output. but It seems there is something wrong in the code that is why i dont get any out put.
The code is
select target_name,target_type, column_label,
warning_threshold,critical_threshold,occurrence_count
from sysman.MGMT$TARGET_METRIC_SETTINGS
where target_name in (select MEMBER_TARGET_NAME from MGMT$TARGET_FLAT_MEMBERS
where upper(AGGREGATE_TARGET_NAME) like '%X || :P1_TARGET%')
'%X || :P1_TARGET%' does not work here ?
Please advise.
ThanksThanks Sven.
The query works but the other way. The output is for all the targets, not for the respective target which we select from :p1_target.
select target_name,target_type, column_label,
warning_threshold,critical_threshold,occurrence_count
from sysman.MGMT$TARGET_METRIC_SETTINGS@crmodem
where target_name in (select MEMBER_TARGET_NAME from MGMT$TARGET_FLAT_MEMBERS@crmodem
where upper(AGGREGATE_TARGET_NAME) like '%X' || :P1_TARGET || '%')
Thanks again. -
Download report to PDF at Output
Hi SDN's,
I am having a report which shows a output. Now my requirement is i need to download the Output of the Report as a PDF.
I would need to place a button on the appl tool bar, clicking on which should throw a popup of File Select Dialog.
Upon giving the filename, the output should be downloaded to the filepath mentioned.
I have already achieved the placing of button on the appl tool bar.
But my Question is how to show a popup of giving a File Select Dialog upon clicking the button.
And now Function module : CONVERT_OTF_2_PDF is used to convert to PDF. Is this right?
Is my approcah correct. Please suggest me if i am wroing at any point.
Regards
PratyushaHi,
I will give u sample code...
DATA: fm_name TYPE rs38l_fnam,control TYPE ssfctrlop, op TYPE ssfcompop,
p_form TYPE tdsfname VALUE 'ZTAX_COMPU',
errtab TYPE tsferror,spoolid TYPE ssfcrescl.
DATA:t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
* Internal table to hold OTF data recd from the SMARTFORM
*T_OTF_FROM_FM TYPE SSFCRESCL,
* Internal table to hold the data from the FM CONVERT_OTF
t_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
DATA:
*w_form_name TYPE tdsfname VALUE 'ZSURESH_TEST',
w_fmodule TYPE rs38l_fnam,
w_cparam TYPE ssfctrlop,
w_outoptions TYPE ssfcompop,
w_bin_filesize TYPE i, " Binary File Size
w_file_name TYPE string,
w_file_path TYPE string,
w_full_path TYPE string,pnrno(8),ldate TYPE sy-datum.
CLEAR control.
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = 'X'.
control-getotf = 'X'.
* control-DEVICE = 'A000'.
op-tddest = 'A000'.
op-tdnewid = 'X'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = p_form
* variant = ' '
* direct_call = ' '
IMPORTING fm_name = fm_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
* ARCHIVE_PARAMETERS =
user_settings = ' '
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJ =
output_options = op
control_parameters = control
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
control_parameters = control
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = op
user_settings = ' '
emp_no = itab-emp_no
proc_yyyymm = procyymm
category = itab-category
sp1 = wa
sp2 = wa1
itexem = exem
TABLES
it_etc = it_etc
it_f16 = it_f16
it_hrc = it_hrc
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SSF_CLOSE'
IMPORTING
job_output_info = spoolid
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
* error handling
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
REFRESH : it_etc,it_f16,it_hrc.CLEAR : it_etc,it_f16,it_hrc.
t_otf[] = spoolid-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 10
IMPORTING
bin_filesize = w_bin_filesize
* BIN_FILE =
TABLES
otf = t_otf
lines = t_pdf_tab
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CLEAR:w_full_path.
IF itab-pnrno NA sy-abcde.
UNPACK itab-pnrno TO itab-pnrno.
ENDIF.
pnrno = itab-pnrno+2(8).
* SHIFT pnrno LEFT DELETING LEADING '0'.
CONCATENATE path '\' pnrno '.pdf' INTO w_full_path.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = w_bin_filesize
filename = w_full_path
filetype = 'BIN'
TABLES
data_tab = t_pdf_tab.
CLEAR w_full_path.
CONCATENATE 'Download completed for Employee - ' itab-emp_no INTO w_full_path SEPARATED BY space.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
* PERCENTAGE = 0
text = w_full_path.
CLEAR : t_otf,spoolid, t_pdf_tab,pnrno.
REFRESH : t_otf, t_pdf_tab.
Regards,
V.Balaji
Reward if Usefull... -
Date Formatting and SSN Formatting from BIP Report
Hello,
I found out how to format phone numbers.
I just need help in formatting 2 fields from our report.
1. The Call Date (MM/DD/YYYY HH:MM:SS AM/PM)
2. SSN (123-45-6789)
First, I am using the command below to convert the date into canonical format after the namespace:psfn.
<?psfn:totext(ssWarrantyUpdatedDt, 'YYYY-MM-DDTHH:MI:SS')?>
I then tried formatting the date using the Microsoft Format Mask definitions but it didn't work.
On the SSN, I didn't see anything from the bookshelf that shows me how to do this formatting.
Can anyone please help me?
Thank youHi,
If you XML data is coming from Oracle Report (RDF), why dont you do date and SSN formatting in SQL itself. So that you will get directly the required format in XML. That is how I am doing in my report. Most of the time it is easy to make changes in Oracle Report SQL rather than in template bcoz BI publisher dont support so many MS Word properties.
Thanks,
Omkar -
How to generate a report for all Analyses which conatins a specific column
Hello Experts
I am trying to generate a report of all Analyses which contains a specific column. We are currently using OBIEE 11.1.1.7.0.
I have tried to use the command line options using ./runcat.sh, but did not find any arguments that can filter the analyses by a specific column used.
Any help is much appreciated.
Regards
RakeshHi Rakesh,
SampleApp has your answer: everything is available for free, just copy/paste and run on your own instance.
http://slc02ojw.oracle.com:7780/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2F10.%20Lifecycle%20and%20Admin%2F_port…
(as long as this instance will be up...)
In the dashboard named "10.31 Webcat Analysis" you have a columns to analysis report where you select the presentation column and you get all the reports using it.
This dashboard require a script to be run on your catalog, it will parse it and extract all the column info (and many other interesting things) and load it in a database. The scripts are simple and well documented, so you can easily adapt them to your own environment.
If you want the script there is no miracle solution: download SampleApp and extract it (it's not small, but with all the great content it has we can't complain about that ...). -
FIFO Query to generate report Which relates the out-quantity to in-quantity
Dear Experts,
I am trying to generate a report to find out the Inward documents of Items which are issued or transfered. Items are managed with FIFO. Certain Items are serially managed and certain not.
I am using the tables OIVL, OIVE and OIVQ for getting the details.
Now my problem is in certain situations the relation between OIVE and OIVQ returns more line items than required and not able to specifically found out the rows. (Same TreeID is used for several transactions)
Please help
Thanks and regards
Ajith GopalakrishnanHi,
This Query help you a lot as I made this query for displaying the recieve and out quantity of an item as per the date i.e. On which date you recieve how much quantity of an item and how much quantity you release of an item. and please amend the remaining transtype from the transaction table (OINM).
In case of FIFO you know that First IN First OUT is followed so you can easily see that which item on a particular date you recieve and which item on a particular date you release...and if any more further enhancement you required then please let me know ....if will definitely make out some time to help you out.
select distinct SUM(InQty)as InQty,SUM(OutQty)as OutQty,ItemCode,Dscription,DocDate, TransType,
case TransType
when '-2' then 'opening Balance'
when '20' then 'Goods Reciept PO '
when '59' then 'Reciept From Production/Good Reciept '
when '15' then 'Deliveries '
end as 'TransName'
from (
select ItemCode,Dscription,DocDate, InQty,OutQty,TransType from oinm ) as OINM
group by DocDate,ItemCode,TransType,Dscription order by docdate asc
Thanks
Randy
Maybe you are looking for
-
How do I connect my existing wifi network to a new Airport network?
Right now I have two wifi networks. The one that connects to the Internet and one that's for AirPlay and has no Internet connection. How do I connect the two? The desired outcome would be to have one network that connected to the Internet and also co
-
Setting Folder Pane in Screen Painter
Hi All, I have a question about setting a value of pane - folder's property. When I set this property in Screen Painter and choose form preview form's pane level changes, but when I save this form in xml file and load in my add on I have to add code
-
Hi, We are facing an issue in Manager's Inbox in MSS wherein the manager is unable to 'Approve' or 'Reject' any workitems like Time Sheet Entry'/ Absence Requests / Training Booking Requests as there is no button to do this in the Work item received
-
Dropped my phone in the toilet, screen won't come on and LED is staying constantly on.
Yesterday, my phone fell out of my back pocket into the toilet. I quickly picked it up, and wiped it off then tried to shake all the water out. A few minutes later, the LED flash light came on, but the screen (which was already cracked before i dropp
-
I would like the current iCal day notes to pop up on my screen when I open up. Presently I have to open up ICal from my dock, but would prefer an instant automatic reminder, so I wont forget to open it. Is this possible? Thanks Ellis