Output error on different reports
Hello friends,
I'm facing problem in report output on different requests. The requests are being completed successfully but when I click on view output it either tries to open a new webpage which get vanished without showing any output, shows xml code or error stating that the concurrent request didn't create a output file or is empty.
On another computer where a download manager was open it downloads a file with name FNDWRR.exe
We are you using EBS 12.1.1 on Redhat Linux 5 and client PCs have windows XP with IE. We have vision demo database.
Please help.
Regards
Aneel
I'm facing problem in report output on different requests. The requests are being completed successfully but when I click on view output it either tries to open a new webpage which get vanished without showing any output, shows xml code or error stating that the concurrent request didn't create a output file or is empty.What is the output type of those concurrent programs?
Please post the contents of the request log file here.
Can you find any errors in the CM/OPP log files?
On another computer where a download manager was open it downloads a file with name FNDWRR.exe
We are you using EBS 12.1.1 on Redhat Linux 5 and client PCs have windows XP with IE. We have vision demo database.Please make sure you have the application URL added to your trusted sites list (from the browser), and make sure all pop-up blockers are disabled.
How to Setup The Report Output to Different Viewer Types in Oracle Applications [ID 184375.1]
The File You are Trying to Open, 'FNDWRR.exe' is in a Different Format Than Specified By The File Extension [ID 467256.1]
Thanks,
Hussein
Similar Messages
-
Hello friends i need to show the following output in a query please advise :
Net Post----
Per1....Per2....Per3....Per4--so on.......Diff.....% Change
Post1
---Post2
Post3
Year1................x.......x.......x......x........
Year2................x.......x.......x......x........
Year3................x.......x.......x......x........
Now the user want to see the overall Difference in Netpost for Years
And user want to see the Overall Percentage Change in Netpost for different years.
So user doesnot want to see Difference between Netposts for Different period , but as it is Year by Year report, the user want to see the overall Difference in Netpost and same way Overall % change for 2 Years.
Please advise.
As i can use only 2 structures, 1 for keyfigure and 1 for Char..
How to achieve this ?Hi Kartikey,
<i>"Now as years are in different structures in rows, and my columns are in Keyfigure structures, so i cannot create formulae for the same."</i>
<b>This is true. you can not create formulae in keyfigure structure</b>
<i>Even if i use Cell editor, i will not be able to create formulae for the Different Years overall difference and percentage variance.</i>
I am not sure why you are not able to use cell editor?
If you have implimented all my steps your query out put should be as follows.
.............P1........P2........ P3..so on..P( Toal).... Diff......... % change
Year1....Y1P1....Y1P2....Y1P3........Y1P
Year2....Y2P1....Y2P2....Y2P3........Y2P..... (Y2P-Y1P).....(Y2P - Y1P)%AY1P
In KF structure
P(Total) = P1P2P3 and so on
Diff = Can be anything example Create CKF which is (P1-P2) give description Diff. The main purpose of creating this is to populate empty column which will be filled using cell editor..
Same thing with % change
You can Hide P(Total) if you do not need this to be displayed.
using cell editor you should be able to write formula Y2P-Y1P and (Y2P-Y1P)%AY1P.
Jaya -
Output error in standard report to z report
HI ABAPers....the issue is very much urgent ,so please kindly solve the issue.
I copied the standard program RV16ACHD into a z program. and also i copied the function modules in RV16ACHD as z function modules in z program in a different package. Now the z program is activated. on execution i am getting the selection screen, in that i entered date in the change data ( only that field and others r empty). when i executed yesterday the output came but today it is showing a message like
"No change documents found to match the specified criteria".But in the standard report i am getting the output. Please tell me the solution and where went wrong.Hi,
Check this fm call
* change documents
call function 'SD_CONDITION_CHANGE_DOCS_LOAD'
exporting
report = report "<<<< keep this value as same standard
cond_data_entered = cond_data_entered
change_data_entered = change_data_entered
selection_screen_flag = selection_screen_flag
only_deleted_records = p_kdele
tables
so_knumh = so_knumh
so_date = so_date
so_time = so_time
so_user = so_user
so_tcode = so_tcode
exceptions
others = 1.
if you check the value for REPORT parameter value inside the function module
SET CHGDOC-CLASS (ie. COND_A, COND_B, etc...)
chgdoc-class5(1) = report4(1).
I think you need to keep the value for REPORT parameter as same as standard
aRs -
XML output error using rdf report
APPLLCSP Environment Variable set to :
XML_REPORTS_XENVIRONMENT is :
/u0/app/oracle/product/8.0.6/SPECIAL2/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /u0/app/oracle/product/8.0.6/SPECIAL2/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Hi All,
I'm trying to generate XML output using oracle report (rdf). I've creared a report and registered in application with output as xml.
When i ran the report its giving me the below error.
Can some one please help in solving this issue.
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
stat_low = 8B
stat_high = 0
emsg:was terminated by signal 11
Start of log messages from FND_FILE
End of log messages from FND_FILE
Program was terminated by signal 11
Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 1234665.
Thanks in advance,Hi,
How do I get the Oracle .EDF report parameters in .XML output?
When I display in the header of the .rdf, I do not see in .xml output, hence cannot use it in .rtf.
Thanks in advance -
Error when sending report output to printer from Forms 10g
Hi,
I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
Thanks,
Anna
PROCEDURE SEND_TO_PRINTER IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
rep_server system_variables.reports_server%type;
alldone exception;
BEGIN
select reports_server
into rep_server
from system_variables;
if rep_server is null then
msg_alert('Error getting the reports server name', 'I', FALSE);
raise alldone;
end if;
:ctrl.run_report_errors := 'N';
repid := find_report_object('REP_OBJ1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
IF :ctrl.rg_print = 'P' THEN
--Send the output to printer.
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
ELSIF :ctrl.rg_print = 'R' THEN
--Rich Text Format
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
END IF;
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
null;
ELSE
:ctrl.run_report_errors := 'Y';
msg_alert('Error when running report.' || rep_status, 'I', FALSE);
END IF;
EXCEPTION
when no_data_found then
msg_alert('Error getting the reports server name', 'I', FALSE);
when alldone then
null;
END;If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel. -
How to print output of XML Publisher report in different trays of a printer
Hi All,
I have a requirement in XML Publisher Report. I need to print all pages other than last one in one tray of a printer and the last page has to be printed in another tray of the same printer.
Can anyone help me out...
Thank You..I do not think it is possible to send all the pages to one tray and send only the last page to a different tray. However, you may review the following notes:
Note: 357402.1 - How to Print the Output to a Different Paper Size Using XML Publisher Delivery Manager?
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=357402.1
Note: 394130.1 - How To Enable Printer Options Such As Duplex Printing Or Tray Selections For Bitmap Concurrent Programs
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394130.1 -
NEW STRANGE PERMISSION ERROR reported as IMPUT/OUTPUT error
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8571.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8572.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8573.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8574.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8575.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8576.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8577.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8578.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8579.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8580.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8584.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8585.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8586.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8587.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8588.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8589.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8590.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8591.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8593.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8594.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8595.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8597.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8598.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8599.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8600.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8601.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8602.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8604.ht ml
Errore apertura 5: "Input/output error" su Library/Documentation/Help/MacHelp.help/Contents/Resources/ko.lproj/pgs/8605.ht ml
I have the file MacHelp.help in the reported position under Harddisk Lbrary (and not in Library of user's Account - mine Folder Help is empty).
During the Repair of permission the Mac freezes while checking these part and later resumes.
The Mac is working without apparent problems.
Any suggestion ???
THANKS
Message was edited by: WALTER-MILANO-ITALY
Forgot to say that the file MacHelp.help is reported by Finder to be a Final Cut Express file. It opens and happens to be a general help file for Mac with links to other HelpThanks for your suggestion. The original disk was Tiger. Now I have SnowLeo.
I will try to do it with SnowLeopard disk. -
hi all,
i am using 3.0b.when i am running query its giving output error.
system error: Program : SAPLRRK0 and Form SETXX_FUELLEN_0-02-
i refered sap note no 728683.there solution i got it
now i want to know why that error is raising.
can any knows kindly let me know
thanks®ards,
vastav.Hi,
That is program error.
solution.
For the Domain 'RRSPL' please change the field 'No. characters' from 4 to 8.
Procedure for doing this:
1. Tx: se11
2. Data type : RRK_SX_SPAGGR
3. double click on component type: RRSPL (2nd line)
4. double click on the domain 'RRSPL'
5. change the field ''No. characters' from 4 to 8.
6. Activate.
Best Regards,
SG -
Input output error samsung ssd mac 09
I bought a Samsung SSD 840 EVO drive because my drive from my macbook had a destroyed file and broken.
Yesterday I tried to partition the drive into 1 with GUID but the error came up with :
POSIX reports: The operation couldn’t be completed. Cannot allocate memory
I used a USB stick with an installation on it
Today I tried with a CD with mac os x the same procedure but this time with a different error:
Input output error
With both examples I also tried to erase the drive but with the same error 1 and 2.
I am not sure what to do next. Hope someone has a solution.
MichaelEither the drive, the SATA cable, or the logic board is faulty. Make sure the cable is not damaged and is securely inserted.
-
ALV Report to have two different Reports
Hi All,
I have a need to display two different reports for the same set of data selections, (Successful data and Error Data) in a Single ALV Layout using a Application tool bar Button. Does anyone have a sample code for this kind of requirement. Preferably using Objects.
Also, how can we check if an object is already created? In other words, how to check for a null reference?
Thanks in advance.
Jr.Sample code for split alv using OOABAP.
this would help you in ur requirement.
go through this program where the screen is divided in two for two alv in different containers.
DATA: save_ok LIKE sy-ucomm,
g_container TYPE scrfname VALUE 'CC1',
g_grid TYPE REF TO cl_gui_alv_grid,
g_custom_container TYPE REF TO cl_gui_custom_container,
gt_fieldcat TYPE lvc_t_fcat,
g_max TYPE i VALUE 100.
declarations for top of page event
Data: gv_c_split type ref to cl_gui_splitter_container,
gv_c_ptv type ref to cl_gui_container,
gv_alv_ptv type ref to cl_gui_alv_grid,
o_dd_doc TYPE REF TO cl_dd_document,
text TYPE sdydo_text_element,
o_split type ref to cl_gui_easy_splitter_container,
o_top type ref to cl_gui_container,
o_bot type ref to cl_gui_container,
gv_c_vp type ref to cl_gui_container.
end of declaration for top of page.
CLASS lcl_event_receiver DEFINITION DEFERRED.
*class lcl_application_dc definition deferred.
DATA: o_event_receiver TYPE REF TO lcl_event_receiver.
g_dc type ref to lcl_application_dc.
DATA: gt_outtab TYPE TABLE OF sbook.
CLASS lcl_event_receiver DEFINITION
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS: handle_f4 FOR EVENT onf4 OF cl_gui_alv_grid
IMPORTING e_fieldname
es_row_no
er_event_data
et_bad_cells
e_display,
handle_top_of_page FOR EVENT top_of_page OF cl_gui_alv_grid
IMPORTING e_dyndoc_id.
METHODS: reset.
METHODS: show_f4.
PRIVATE SECTION.
attributes for creating an own F4-Help
(using a second ALV Grid Control
DATA: f4_grid TYPE REF TO cl_gui_alv_grid,
f4_custom_container TYPE REF TO cl_gui_custom_container.
TYPES: BEGIN OF ty_f4.
TYPES: value TYPE s_class.
TYPES: descr(20) TYPE c.
TYPES: END OF ty_f4.
DATA: f4_itab TYPE TABLE OF ty_f4.
DATA: f4_fieldcatalog TYPE lvc_t_fcat.
attributes to store event parameters
(after the CALL SCREEN command, the event parameters
are not accessible)
TYPES: BEGIN OF onf4_event_parameters_type.
TYPES: c_fieldname TYPE lvc_fname.
TYPES: cs_row_no TYPE lvc_s_roid.
TYPES: cr_event_data TYPE REF TO cl_alv_event_data.
TYPES: ct_bad_cells TYPE lvc_t_modi.
TYPES: c_display TYPE char01.
TYPES: END OF onf4_event_parameters_type.
DATA: f4_params TYPE onf4_event_parameters_type.
Methods to create own F4-Help
(This is done using a second ALV Grid Control)
METHODS: init_f4.
METHODS: build_fieldcatalog.
METHODS: fill_f4_itab .
METHODS: on_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING es_row_no.
ENDCLASS. "lcl_application_f4 DEFINITION
CLASS lcl_event_receiver IMPLEMENTATION
CLASS lcl_event_receiver IMPLEMENTATION.
*§2. Implement an event handler method for event ONF4.
METHOD handle_f4.
Save event parameter as global attributes of this class
(maybe solved differently if you use a function module!)
f4_params-c_fieldname = e_fieldname.
f4_params-cs_row_no = es_row_no.
f4_params-cr_event_data = er_event_data.
f4_params-ct_bad_cells = et_bad_cells.
f4_params-c_display = e_display.
*§3. Call your own f4 help. To customize your popup check
first if the cell is ready for input (event parameter E_DISPLAY).
(parameter E_DISPLAY is checked later in method on_double_click)
(Probably, you would call a function module at this point,
pass the needed event parameter and call the popup screen
within that function module. This is not done in this example
to avoid scattering its code).
CALL SCREEN 101 STARTING AT 10 10.
*§7. Inform the ALV Grid Control that an own f4 help has been processed
to suppress the standard f4 help.
er_event_data->m_event_handled = 'X'.
ENDMETHOD. "on_f4
METHOD show_f4.
DATA: ls_outtab TYPE sbook.
initialize own f4 help if needed
IF f4_custom_container IS INITIAL.
CALL METHOD init_f4.
ENDIF.
CALL METHOD fill_f4_itab.
refresh list of values in f4 help and show it
CALL METHOD f4_grid->refresh_table_display.
CAUTION: Do not use method REFRESH_TABLE_DISPLAY for
your editable ALV Grid instances while handling events
DATA_CHANGED or ONf4. You would overwrite intermediate
values of your output table on frontend.
'f4_grid' is a non-editable ALV Grid Control for the
application specific F4-Help. Therefore, calling
REFRESH_TABLE_DISPLAY for this instance has no
negative effect.
CALL METHOD cl_gui_cfw=>flush.
ENDMETHOD. "show_f4
METHOD init_f4.
DATA: ls_f4_layout TYPE lvc_s_layo.
build fieldcatalog entries for f4
CALL METHOD build_fieldcatalog.
create controls
CREATE OBJECT f4_custom_container
EXPORTING container_name = 'CC_ONF4'.
CREATE OBJECT f4_grid
EXPORTING i_parent = f4_custom_container.
hide toolbar
ls_f4_layout-no_toolbar = 'X'.
CALL METHOD f4_grid->set_table_for_first_display
EXPORTING
is_layout = ls_f4_layout
CHANGING
it_fieldcatalog = f4_fieldcatalog
it_outtab = f4_itab.
register event double click on backend
SET HANDLER me->on_double_click FOR f4_grid.
flush since 'ls_layout' is local!
CALL METHOD cl_gui_cfw=>flush.
ENDMETHOD. "init_f4
METHOD fill_f4_itab.
DATA ls_f4_itab TYPE ty_f4.
Delete all entries in f4_itab to determine
offered values dynamically
CLEAR f4_itab[].
ls_f4_itab-value = 'C'.
ls_f4_itab-descr = text-t03. "Business Class
APPEND ls_f4_itab TO f4_itab.
ls_f4_itab-value = 'Y'.
ls_f4_itab-descr = text-t04. "Economie Class
APPEND ls_f4_itab TO f4_itab.
ls_f4_itab-value = 'F'.
ls_f4_itab-descr = text-t05. "First Class
APPEND ls_f4_itab TO f4_itab.
ENDMETHOD. "fill_f4_itab
METHOD build_fieldcatalog.
DATA: ls_fcat TYPE lvc_s_fcat.
CLEAR ls_fcat.
ls_fcat-fieldname = 'VALUE'.
ls_fcat-coltext = text-t02.
ls_fcat-inttype = 'S_CLASS'.
ls_fcat-outputlen = 5.
APPEND ls_fcat TO f4_fieldcatalog.
CLEAR ls_fcat.
ls_fcat-fieldname = 'DESCR'.
ls_fcat-coltext = text-t01.
ls_fcat-inttype = 'C'.
ls_fcat-outputlen = 20.
APPEND ls_fcat TO f4_fieldcatalog.
ENDMETHOD. "build_fieldcatalog
METHOD on_double_click.
*§5. If not already caught by your own f4 help, check whether
the triggered cell was ready for input by using E_DISPLAY
and if not, exit.
IF f4_params-c_display EQ 'X'.
LEAVE SCREEN.
ENDIF.
*§6. After the user selected a value, pass it to the ALV Grid Control:
*§ 6a. Define a field symbol of type: LVC_T_MODI and a structure of
type LVC_S_MODI to pass the value later on.
FIELD-SYMBOLS TYPE lvc_t_modi.
DATA: ls_modi TYPE lvc_s_modi,
ls_f4_itab TYPE ty_f4.
*§ 6b. Dereference attribute M_DATA into your field symbol and add
the selected value to the table to which this symbol points to.
ASSIGN f4_params-cr_event_data->m_data->* TO .
LEAVE TO SCREEN 0.
ENDMETHOD. "on_double_click
METHOD reset.
FIELD-SYMBOLS display_document
EXPORTING parent = o_top.
ENDMETHOD. "handle_top_of_page
ENDCLASS. "lcl_application_f4 IMPLEMENTATION
END-OF-SELECTION.
CALL SCREEN 100.
MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF g_custom_container IS INITIAL.
PERFORM create_and_init_alv CHANGING gt_outtab[]
gt_fieldcat.
ENDIF.
ENDMODULE. "pbo OUTPUT
MODULE PAI INPUT *
MODULE pai INPUT.
save_ok = sy-ucomm.
CLEAR sy-ucomm.
CASE save_ok.
WHEN 'EXIT' OR 'BACK' OR 'CANCEL'.
PERFORM exit_program.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
do nothing
ENDCASE.
ENDMODULE. "pai INPUT
FORM EXIT_PROGRAM *
FORM exit_program.
LEAVE PROGRAM.
ENDFORM. "exit_program
*& Form build_fieldcat
text
-->PT_FIELDCAT text
FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
DATA ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SBOOK'
CHANGING
ct_fieldcat = pt_fieldcat.
LOOP AT pt_fieldcat INTO ls_fcat.
Exchange smoker field with invoice field - just to
make the dependance between SMOKER and CLASS more transparent
(Smoking is only allowed in the first class).
IF ls_fcat-fieldname EQ 'SMOKER'.
ls_fcat-col_pos = 11.
ls_fcat-outputlen = 10.
ls_fcat-edit = 'X'.
Field 'checktable' is set to avoid shortdumps that are caused
by inconsistend data in check tables. You may comment this out
when the test data of the flight model is consistent in your system.
ls_fcat-checktable = '!'. "do not check foreign keys
MODIFY pt_fieldcat FROM ls_fcat.
ELSEIF ls_fcat-fieldname EQ 'INVOICE'.
ls_fcat-col_pos = 7.
MODIFY pt_fieldcat FROM ls_fcat.
ELSEIF ls_fcat-fieldname EQ 'CLASS'.
ls_fcat-edit = 'X'.
ls_fcat-outputlen = 5.
ls_fcat-checktable = '!'. "do not check foreign keys
MODIFY pt_fieldcat FROM ls_fcat.
ENDIF.
ENDLOOP.
ENDFORM. "build_fieldcat
*& Form create_and_init_alv
text
-->PT_OUTTAB text
-->PT_FIELDCAT text
FORM create_and_init_alv CHANGING pt_outtab TYPE STANDARD TABLE
pt_fieldcat TYPE lvc_t_fcat.
DATA: lt_exclude TYPE ui_functions,
ls_layout TYPE lvc_s_layo.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
CREATE OBJECT g_grid
EXPORTING i_parent = g_custom_container.
CREATE OBJECT gv_c_split
EXPORTING
link_dynnr = lv_dynnr
link_repid = lv_repid
parent = g_custom_container
rows = 2
columns = 1
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
others = 3 .
CALL METHOD gv_c_split->set_border
EXPORTING
border = space.
CALL METHOD gv_c_split->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = gv_c_ptv.
CALL METHOD gv_c_split->set_row_height
EXPORTING
id = 1
height = 20
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 6 .
CALL METHOD gv_c_split->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = gv_c_vp .
CALL METHOD gv_c_split->set_row_height
EXPORTING
id = 2
height = 10
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3 .
CREATE OBJECT o_split
EXPORTING
parent = gv_c_ptv
with_border = 1
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
o_top = o_split->top_left_container.
o_bot = o_split->bottom_right_container.
CREATE OBJECT gv_alv_ptv
EXPORTING
i_parent = o_bot
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5 .
CREATE OBJECT g_grid
EXPORTING
i_parent = gv_c_vp
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
others = 5 .
PERFORM build_fieldcat CHANGING pt_fieldcat.
Optionally restrict generic functions to 'change only'.
(The user shall not be able to add new lines).
PERFORM exclude_tb_functions CHANGING lt_exclude.
PERFORM build_data CHANGING pt_outtab.
ls_layout-grid_title = 'F4 help implemented for field CLASS'.
CREATE OBJECT o_event_receiver.
SET HANDLER o_event_receiver->handle_top_of_page FOR gv_alv_ptv.
SET HANDLER o_event_receiver->handle_top_of_page FOR g_grid.
CREATE OBJECT o_dd_doc EXPORTING style = 'ALV_GRID'
no_margins = 'X'.
CALL METHOD gv_alv_ptv->set_table_for_first_display
EXPORTING
is_layout = ls_layout
CHANGING
it_outtab = pt_outtab[]
it_fieldcatalog = pt_fieldcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
it_toolbar_excluding = lt_exclude
is_layout = ls_layout
CHANGING
it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab[].
CALL METHOD gv_alv_ptv->list_processing_events
EXPORTING
i_event_name = 'TOP_OF_PAGE'
i_dyndoc_id = o_dd_doc.
register f4 for field CLASS
PERFORM register_events.
Set editable cells to ready for input initially
CALL METHOD g_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ENDFORM. "CREATE_AND_INIT_ALV
*& Form exclude_tb_functions
text
-->PT_EXCLUDE text
FORM exclude_tb_functions CHANGING pt_exclude TYPE ui_functions.
Only allow to change data not to create new entries (exclude
generic functions).
DATA ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND ls_exclude TO pt_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
APPEND ls_exclude TO pt_exclude.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
*& Form build_data
text
--> p1 text
<-- p2 text
FORM build_data CHANGING pt_outtab TYPE STANDARD TABLE.
DATA: ls_sbook TYPE sbook,
l_index TYPE i.
SELECT * FROM sbook INTO TABLE gt_outtab UP TO g_max ROWS.
IF sy-subrc NE 0.
PERFORM generate_entries CHANGING pt_outtab.
ENDIF.
LOOP AT pt_outtab INTO ls_sbook.
l_index = sy-tabix.
CLEAR ls_sbook-class.
Alternate between smoker and non smoker to make
it more obvious what this example is about
l_index = l_index MOD 2.
IF l_index EQ 1.
ls_sbook-smoker = 'X'.
ELSE.
ls_sbook-smoker = ' '.
ENDIF.
MODIFY pt_outtab FROM ls_sbook.
ENDLOOP.
ENDFORM. " build_data
*& Form generate_entries
text
-->PT_SBOOK text
FORM generate_entries CHANGING pt_sbook TYPE STANDARD TABLE.
DATA: ls_sbook TYPE sbook,
l_month(2) TYPE c,
l_day(2) TYPE c,
l_date(8) TYPE c,
l_prebookid TYPE i.
ls_sbook-carrid = 'LH'.
ls_sbook-connid = '0400'.
ls_sbook-forcurkey = 'DEM'.
ls_sbook-loccurkey = 'USD'.
ls_sbook-custtype = 'B'.
DO 110 TIMES.
l_prebookid = sy-index.
ls_sbook-forcuram = sy-index * 10.
ls_sbook-loccuram = ls_sbook-loccuram * 2.
ls_sbook-customid = sy-index.
ls_sbook-counter = 18.
ls_sbook-agencynum = 11.
l_month = sy-index / 10 + 1.
DO 2 TIMES.
l_day = 3 + l_month + sy-index * 2.
l_date+0(4) = '2000'.
l_date+4(2) = l_month.
l_date+6(2) = l_day.
ls_sbook-fldate = l_date.
SUBTRACT 3 FROM l_day.
ls_sbook-order_date+0(6) = l_date+0(6).
ls_sbook-order_date+6(2) = l_day.
ls_sbook-bookid = l_prebookid * 2 + sy-index.
IF sy-index EQ 1.
ls_sbook-smoker = 'X'.
ELSE.
ls_sbook-smoker = space.
ENDIF.
ls_sbook-luggweight = l_prebookid * 10.
IF ls_sbook-luggweight GE 1000.
ls_sbook-wunit = 'G'.
ls_sbook-class = 'C'.
ELSE.
ls_sbook-wunit = 'KG'.
ls_sbook-class = 'Y'.
ENDIF.
IF ls_sbook-bookid > 40 AND ls_sbook-wunit EQ 'KG'.
ls_sbook-invoice = 'X'.
ENDIF.
IF ls_sbook-bookid EQ 2.
ls_sbook-cancelled = 'X'.
ls_sbook-class = 'F'.
ENDIF.
APPEND ls_sbook TO pt_sbook.
ENDDO.
ENDDO.
ENDFORM. " generate_entries
*& Form register_events
text
FORM register_events.
*§1. Register event ONF4 at frontend using method
register_f4_for_fields. For this purpose, you pass a table
with all fields, for which you want to implement your own
f4 help.
remark: If you want to use an own f4 help for fields where
no standard f4 help exists set field F4AVAILABL for
this field in the fieldcatalog.
DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.
CLEAR lt_f4.
lt_f4-fieldname = 'CLASS'.
If you would like to deregister the field again,
pass value SPACE with field 'register'.
lt_f4-register = 'X'.
*§ 1b. If the value range in your f4 help depends on other
values of cells that are input enabled, set the
GETBEFORE parameter.
The consequence is that the ALV Grid Control raises
event DATA_CHANGED before the f4 help is called to
check values that the f4 help depends on.
lt_f4-getbefore = 'X'.
The next parameter is used to change values after onf4 has
been processed. The ALV Grid Control will raise
event DATA_CHANGED afterwards, if you set it.
lt_f4-chngeafter = space.
INSERT TABLE lt_f4.
CALL METHOD g_grid->register_f4_for_fields
EXPORTING
it_f4 = lt_f4[].
register events for abap objects (backend)
SET HANDLER o_event_receiver->handle_f4 FOR g_grid.
ENDFORM. " register_events
MODULE status_0101 OUTPUT
MODULE status_0101 OUTPUT.
SET PF-STATUS 'POPUP'.
SET TITLEBAR 'POPUP'.
CALL METHOD o_event_receiver->show_f4.
ENDMODULE. " STATUS_0101 OUTPUT
*& Module USER_COMMAND_0101 INPUT
text
MODULE user_command_0101 INPUT.
PERFORM user_command.
ENDMODULE. " USER_COMMAND_0101 INPUT
*& Form user_command
text
FORM user_command.
DATA: save_ok TYPE sy-ucomm.
save_ok = sy-ucomm.
CLEAR sy-ucomm.
CASE save_ok.
WHEN 'CANCEL'.
CALL METHOD o_event_receiver->reset.
LEAVE TO SCREEN 0.
ENDCASE.
ENDFORM. "user_command
*& Form switch_edit_mode
text
FORM switch_edit_mode.
IF g_grid->is_ready_for_input( ) EQ 0.
set edit enabled cells ready for input
CALL METHOD g_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
ELSE.
lock edit enabled cells against input
CALL METHOD g_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 0.
ENDIF.
ENDFORM. "switch_edit_mode -
External Hard Drive Input/Output error
I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
Thanks,
Paul RuggThanks for the suggestion.
Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
text below posted to other question relating to external hard drive problem.
I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
Anybody have any clue what might be going on here? It really seems to be related to my upgrade. -
How can I Generate two different reports from single execution of Test cases in NI teststand
Hi,
My requirement is to generate two different reports from NI teststand. One for the Logging of error descriptions and the other report is by default generated by the Teststand. How can i generate a txt file that contains error descriptions other than that mentioned in the default report?
Solved!
Go to Solution.Do you need to do that just for these two sequences but not for other sequences? I don't see a problem to use SequenceFilePostStepRuntimeError. Create this callback in both sequence files and configure them to log into the same file. SequenceFilePostStepRuntimeError callback is called after each step of the sequence file if it has runtime error. You can access the calling step error information via RunState.Caller.Step.Result.Error property. Take a look to attached example.
The "other way" is useful if you need to log errors not for every step of the sequence file, but for some of them. This is more complex, because you need to create a custom step types for these steps. For the custom step you can create substeps (post-step in your case) which will be executed every time after step of this type executed. Then, this is you job to determine if error happened in the step, acces to step's error information is via Step.Result.Error property.
Also, be aware that step's post-expression is not executed in case of error in the step.
Sergey Kolbunov
CLA, CTD
Attachments:
SequenceFilePostStepRuntimeError_Demo.seq 7 KB -
Error in Report: Next to amount field i could see 'ERROR' word in report
Guys,
Problem in Report: Next to amount field i could see 'ERROR' word in report
Eg: Invoice Amount : "1200ERROR" it should be like "$1200".
Pls help where do i need to check.
ThanksAjeet wrote :
Hi,
It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
Do a currency conversion for the key figures and make them all with same currency.
See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
Thanks
AJeet
Are you sure ???
The mixed unit values will be displayed as * (by default unless its changed).
ERR comes if unit is not maintained. -
Regarding Issue when Exporting the Output of the Discoverer Report to Excel
Hi,
Can Any of you guys help me out in this issue. I am exporting the Discoverer Report Output to Excel sheet, I am able to export but while I am opening the excel sheet I am getting an error saying "UNABLE TO READ FILE".
Please help me out in this Issue, it is so urgent.
Thanks in Advance..
Raja.Hi,
Is there any way to export the output of scheduled Discoverer Reports to a particular server using Discoverer plus.Only by openning and exporting each report manually.
is there any way to get the output name in a particular syntax. I want to concatenate date in the output name.Only by entering the filename when you do the export.
The best way to do this is to use Discoverer Desktop and a third party scheduler. Then you can export all your reports automatically and define the filename used in the output. Search this forum for more information on third party schedulers.
Rod West -
Creating Union Report using 3 different reports in OBIEE 11.1.1.5.0
Hi Gurus,
This is my first time where I am creating a union report, I have a urgent requirement to create a union report using 3 different reports and it has 3 common dimension columns and each report has 3 measures and a measure label, and 1st report measures has to show $ amounts with column names ,2nd report measures has to show % with column names and 3rd units with column names, the result should be in pivot with all columns and measures ,can someone please help me with steps to approach,I am really confusing with the results when i tried, I really appreciate your inputs.
Thanks
KPAddendum: I've tried it with CSV instead of XLS. Again, the repository appears to work just fine, but in Answers I get this message, similar to the Excel error:
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: IM006 code: 0 message: [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed. [nQSError: 16001] ODBC error state: S1009 code: -1023 message: [Microsoft][ODBC Text Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.. (HY000)
Maybe you are looking for
-
Adobe Digital Editions won't prompt to authorize e-reader.
I want to authorize my new Nook WIFI (and my WIFI is down). I downloaded and installed Adobe Digital Editions, created an Adobe ID and authorized my computer. I have downloaded books to my computer. With ADE open, I plugged in my Nook. ADE detects
-
Can't get disk to work...
I have a G4 powermac. I bought it used. When I got it it had an old operating system and a bunch of software that I did not need so I decided to just erase the whole thing. It came with three internal drives, a 40 gb, 60 gb and a 120 gb, that were ru
-
Microsoft Virtual Earth - available for Mac?
Having recently left the Evil Empire I don't want to install Microsoft products on my Mac but there is one thing I find incredibly useful. Virtual Earth 3D is, unfortunately, better than Google Earth as it supports a greater range of oblique aerial v
-
Dear sir, when i try to make a return with reference to billing documents but i received the message ZRE(Order type) Order type 'ZRE' has not been defined in Sales area please help me how can i define and check it. thanks
-
Getting logs for DOS Attack:Sync Attack on cisco CSS 11501 frequently.
Hi , Since couple of weeks , i am getting below DOS attack logs on cisco CSS.Can anyone help me out about how can we avoid this? and how to deal with it. 04/23/2011 17:27:28:Enterprise:DOS Attack:SYN Attack -> 10 times 04/23/2011 17:30:15:Enterprise: