Doubts in oracle reports 2.5. programmers/ engineers please help me
sir,
i have a doubt in oracle reports 2.5. it is based on a single table only. i request u to reply for the same at the earliest. the problem is as follows:
There are certain code numbers for which sub heading is to be displayed and sub total should be made and grand total to be
made. also main title should appear in each page. also in parameter entry based on date format, month should be chosen
and amounts should be summed from several fields based on the month but beginning with april of the current year.
sample report is as follows:
parameter entry : pf_1 = 1-4-1999 pf_2 = 30-8-1999
NANCE AND ACCOUNT SYSTEM (main title)
machinery expenses sub heading (this is reqd)
code name debit_amount (actually this is not from table)
103001 mech machines 72
103002 sliver m/c 95
sub total 167
elec equipments again sub heading
104001 switch 17
104002 relay switch 95
sub total 112
grand total 279
but the table is as follows table name t1
code varchar6 name varchar30 mo1dbamt m01cramt m02dbamt m02cramt m03dbamt
m04cramt etc upto 12 months all data type number(15,2) totally 26 fields
the debitamount should be summed from fileds m04dbamt,m05dbamt, m06dbamt ..upto m08dbamt - no cramt should be added further any clarifications needed please discuss with me
pl note that i am from INDIA
thanking you
sincerely
sudhes kumar
Look into the following:
-- page protect property of the repeating frame
-- Maximum number of records per page property
Similar Messages
-
Hi I have a table in which I have a column called file_name of type BLOB. In that I used to store files of PDF format.I want to display those files in oracle report.
I'm using reports 6i.Can anybody know solution for this please let me know.
Regards
AnandHi Sankar,
Use SY-PAGNO.
ex;
REPORT ZSAMPLE2 line-count 20(2). .
Tables mara.
data itab like mara occurs 0 with header line.
Start-of-selection.
select * from mara into table itab.
Top-Of-Page.
write:/ sy-pagno.
uline.
End-of-selection.
loop at itab.
write:/ itab-matnr.
endloop.
- Satuish -
Doubt with Oracle Reports Format Trigger
Hi friends,
I have created a format trigger in oracle reports the code is
Function F_Department_NameFormatTrigger return Boolean is
v_report_url varchar2(300);
Begin
v_report_url :=‘http://localhost:8888/reports/rwservlet?
report=empReport.rdf&userid=hr@orcl&destype=cache&desformat=htm
lcss&p_dept=’||:department_id;
SRW.SET_HYPERLINK (v_report_url);
Return (TRUE);
End;but i am getting an error rep-0738 : only a function is allowed here can u please let me know whats wrong in this coding.
Regards,
ManojProbably you are using the wrong quotes. Please try this:
Function F_Department_NameFormatTrigger return Boolean is
v_report_url varchar2(300);
Begin
v_report_url :='http://localhost:8888/reports/rwservlet?report=empReport.rdf&userid=hr@orcl&destype=cache&desformat=htmlcss&p_dept='||:department_id;
SRW.SET_HYPERLINK (v_report_url);
Return (TRUE);
End; -
Excel Download of a Web SAP BW Report asks userid and password.please help
Dear BW folks,
Issue: When I run a specific SAP BW Report from Web and download the same into excel & csv.
When I open the excel file downloaded, it asks me user name and password to enter. csv file downloaded doesn't ask.
The report has 0cust_sales hierarchy and SBU hierarchy.
Is there any thing to do with these hierarchies that the excel download is asking user name and password?
Please help me out!!!!! This report needs to be downloaded into excel sent to my manager.....
Regards
PavanHi Pavan
It is possible,please refer the below link
Report execution without prompting user id
Providing un-secured access to a web report.
Also, for the time being, you can run the query and save a workbook and sent across
These will resolve the issue
Thanks
Pavan Agarwal -
Problem with checkboxes in IR report mainly for update process please help
Hello,
Can anyone please help me out with this issue.
I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
DECODE(status,'DEV',1,0) as DEV,
DECODE(status,'RVW',1,0) as RVW,
DECODE(status,'PRD',1,0) as PROD,
So for this I have used the apex_item.checkbox item. Below is my report query
SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
|| APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
|| APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
|| APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
|| APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
|| APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
|| APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
|| APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
|| APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
|| APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
|| APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
,CHF_COLUMN
,CHF_STATUS
,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM)
DEV_EDIT
,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM)
RVW_EDIT
,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM)
PRD_EDIT
FROM CHF_COLUMN WHERE
CHF_DATASTORE = 'DOMAIN_DEV' AND
CHF_SCHEMA = 'SCHEMA_DEV' AND
CHF_TABLE = 'EMPLOYEEE'
ORDER BY 1; And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
My Update process.
DECLARE
l_cnt BINARY_INTEGER := 0;
l_stepid number := 10;
l_date DATE := SYSDATE;
BEGIN
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
IF APEX_APPLICATION.G_f05 (i) = 1 THEN
UPDATE CHF_COLUMN
SET CHF_STATUS = 'DEV'
WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
IF APEX_APPLICATION.G_f08 (i) = 1 THEN
UPDATE CHF_COLUMN
SET CHF_STATUS = 'RVW'
WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
IF APEX_APPLICATION.G_f11 (i) = 1 THEN
UPDATE CHF_COLUMN
SET CHF_STATUS = 'PRD'
WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
END LOOP;
COMMIT;
END;If you can please have a look at the app, you can get a better understanding of my problem.
Workspace : orton_workspace
username : [email protected]
password : sanadear
Application No: 15089 SAMPLE_CHECKBOX_APP
Thanks,
Orton
Edited by: orton607 on Aug 4, 2010 9:28 AMI could be wrong but maybe change the hidden items to be like:
APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
Also, you have
DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values. -
please help...
my computer is not recognizing my ipod classic gen 5. it shows the sad face then i did the basic troubleshooting until logo comes out...
still my computer is not recognizing my ipod.. it still says "Windows has stopped this device because it has reported problems. (Code 43)"See here: iPod displays a sad iPod icon
Note that it's often a good sign of a hardware issue with the iPod's hard drive meaning the iPod will need to be serviced or replaced.
B-rock -
please help, I need to make a video and cant get in my music.
tuckey2012
For background information, what computer operating system is your Premiere Elements 12 running on?
I could ask you for a lot of details to build a troubleshooting plan. However, in this instance with .m4a file and "importer reported a generic error", I am going to cut to what I believe your workflow problem to be.
You are working with iTunes music. To use them in Premiere Elements (any version), please convert them to .wav file in iTunes.
To do that....
a. Open iTunes and go to Music - File Menu/Add File To Library
b. Edit Menu/Preferences/General and there click on Import Settings
c. In the Import Settings dialog, go to Import Using and set for WAV Encoder.
d. OK out of that area.
In the Music Section/Songs, right click your import, select Create WAV Version
Then right click the WAV Version, select Copy, and then Paste it to the computer desktop
from where you import it into Premiere Elements 12 Expert workspace Add Media/Files and Folders/Project Assets
from where you drag it to one of the audio tracks.
Please let us know if that works for you.
Thanks.
ATR -
Calling an Oracle stored procedure using Toplink API - Please help
Hi,
We are evaluating Toplink as a possible data access layer in large service-oriented application. The ability to call db stored procedures from within business object layer is crucial for our architechture.
I am trying to follow toplink application developer's guide examples on how to call stored procedures using toplink.
I have the folling java code:
call.setProcedureName("PR_ROMAN_TEST");
call.addNamedArgument("IN_PARAM");
call.addNamedOutputArgument("OUT_PARAM");
ValueReadQuery query = new ValueReadQuery();
query.setCall(call);
query.addArgument("IN_PARAM");
Vector params = new Vector();
params.addElement(new Integer(5));
Number result = (Number) session.executeQuery(query, params);
This generates the following SQL statement:
BEGIN PR_ROMAN_TEST(IN_PARAM=>5, OUT_PARAM=>?); END;
An attempt to execute it causes a
java.sql.SQLException: Invalid column index.
As I understand it, this exception is thrown because of the "?" in place of the out-parameter value holder.
The SQL statement that I would want toplink to generate and execute should look like:
DECLARE result number; BEGIN PR_ROMAN_TEST(IN_PARAM=>5, OUT_PARAM=>result); END;
, but how do I achieve it and how do I capture the return value, all using toplink api?
Please help
Thank you in advance,
RomanI read the conversation above. I am running into a similar kind of problem. I get the following error.
<an exponent (**)> <> or != or ~= >= <= <> and or like between || The symbol "." was subs Error Code: 6550Local Exception Stack: Exception [TOPLINK-4002] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException Exception Description: java.sql.SQLException: ORA-06550: line 1, column 38: PLS-00103: Encountered the symbol "NAME" when expecting one of the following:. ( ) , * @ % &' | = - + < / > at in is mod not range rem =>.. <an exponent (**)> <> or != or ~= >= <= <> and or like as between from using || The symbol "." was substituted for "NAME" to continue.ORA-06550: line 1, column 55: PLS-00103: Encountered the symbol "ID" when expecting one of the following:. ( ) , * @ % &' | = - + < / > at in is mod not range rem =>.. <an exponent (**)> <> or != or ~= >= <= <> and or like between || The symbol "." was subs Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 38:PLS-00103: Encountered the symbol "NAME" when expecting one of the following . ( ) , * @ % &' | = - + < / > at in is mod not range rem =>.. <an exponent (**)> <> or != or ~= >= <= <> and or like as between from using || The symbol "." was substituted for "NAME" to continue.ORA-06550: line 1, column 55:PLS-00103: Encountered the symbol "ID" when expecting one of the following: . ( ) , * @ % &' | = - + < / > at in is mod not range rem =>.. <an exponent (**)> <> or != or ~= >= <= <> and or like between || The symbol "." was subs Error Code: 6550 at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:227)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:733)
at oracle.toplink.internal.databaseaccess.DatabasePlatform.executeStoredProcedureCall(DatabasePlatform.java:1605)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:649)
at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:506)at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:131)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeCall(CallQueryMechanism.java:115)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelectCall(CallQueryMechanism.java:194)
at oracle.toplink.internal.queryframework.CallQueryMechanism.executeSelect(CallQueryMechanism.java:175)
at oracle.toplink.queryframework.DirectReadQuery.executeNonCursor(DirectReadQuery.java:65)
at oracle.toplink.queryframework.DataReadQuery.execute(DataReadQuery.java:73)
at oracle.toplink.queryframework.ValueReadQuery.execute(ValueReadQuery.java:59)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
at oracle.toplink.threetier.ServerSession.internalExecuteQuery(ServerSession.java:629)
at oracle.toplink.threetier.ClientSession.internalExecuteQuery(ClientSession.java:392)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2246)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1055)
at com.eplinc.common.persistence.toplink.TopLinkTemplate$2.readFromSession(TopLinkTemplate.java:181)
at com.eplinc.common.persistence.toplink.SessionReadCallback.doInTopLink(SessionReadCallback.java:59)
at com.eplinc.common.persistence.toplink.TopLinkTemplate.execute(TopLinkTemplate.java:110)
at com.eplinc.common.persistence.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:178)
at com.eplinc.common.persistence.toplink.TopLinkTemplate.executeQuery(TopLinkTemplate.java:172)
at com.epl.outletteller.dao.toplink.TopLinkOIDGeneratorDAO.generateId(TopLinkOIDGeneratorDAO.java:45)
The call I am making is as follows :
public long generateId(String name, long outletId) throws DataAccessException {
TopLinkTemplate tlTemplate = new TopLinkTemplate();
StoredProcedureCall call = new StoredProcedureCall();
call.setProcedureName("AUTONUM.GET_NEXT_VALUE");
call.addNamedArgument("autonum name");
call.addNamedArgument("outlet id");
call.addNamedOutputArgument("OUTPUT_1");
ValueReadQuery query = new ValueReadQuery();
query.setCall(call);
query.addArgument("autonum name");
query.addArgument("outlet id");
Object[] parameters = new Object[2];
parameters[0] = name;
parameters[1] = Long.toString(outletId);
Number uniqueNumber = (Number)tlTemplate.executeQuery(query,parameters);
return uniqueNumber.longValue();
This is my Table AUTONUM_SETTING
AUTONUM_NAME AUTONUM_TYPE START_VAL END_VAL INCREMENT_VALUE
TRAN_NUM GLOBAL 1 999999 1
TRACE_NUM OUTLET 1 999999 1
Any help would be appreciated. Thanks -
Oracle BI SE One Installation problem - Please help
Hi,
I am trying to install Oracle BISE1 on a virtual machine having a Win Server 2003 (32 bit) OS. In the last step...I got stuck with the installation of Configuration Assistant and the error which I got was:
Command = C:\oracle\bise1\db\install\bise1config.bat has failed
Execution Error : BISE1 Configuration Assistant failed
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:428)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:515)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:345)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at oracle.as.config.bise1.util.DBUtils.getConnection(DBUtils.java:18)
at oracle.as.config.bise1.action.UnlockAccounts.execute(UnlockAccounts.java:35)
at oracle.as.config.bise1.BISE1ConfigAssistant.main(BISE1ConfigAssistant.java:76)
Then in one of the similar previous post I read that this problem could be solved by giving administrative privileges to the file "E:\oracle\bise1b\db\install\bise1config.bat"
[Previous Post for the same problem - http://forums.oracle.com/forums/thread.jspa?threadID=955418&tstart=60 ]
I did that and hit the retry button. But this time I am getting a different error as follows :-
The Oracle system identifier(SID) "bise1db" already exists.
Specify another SID
I guess this is my 4-5 attempt in the last one month. I have been unsuccessful in all my attempts so far. Kindly help at the earliest.
Thanks.
Edited by: user8918282 on Apr 22, 2010 3:14 PMThis behaviour is due to known bug in patch detection algorithm which has been fixed in MU1 release.
You have two options: you can either download S1AS7 MU1 release which contains fix for this problem or you can use following workaround: temporarily rename /usr/bin/showrev file and start installation. Installer will report that it cannot detect patch level of the system, but it will let you proceed with installation. Once installation is done, revert showrev file to the original name.
Thank you. -
Oracle 9i Release 2 - Installation hangs please help
OS: SUSE 10
I have to Install oracle 9i Release 2(9.2.0.4.0)
I have java-1_4_2-sun installed, and the installation directory/path is /usr/lib/jvm.
now my question is should I change the path of JRE_LOCATION, in the oraparam.ini from
JRE_LOCATION=../../stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux
to
JRE_LOCATION=/usr/lib/jvm
Second
when as user oracle, i execute the installer, it goes smooth till the "Database Configuration" page, i select the
General Purpose > Next > now here installation progress bar stuck/hangs at 87%
following is the output of /opt/oracle/oraInventory/logs/oraInstall2007-04-26_04-37-20AM.err
java.lang.ExceptionInInitializerError: java.util.MissingResourceException: Can't find bundle for base name resources/libRes.properties, locale en
at java.util.ResourceBundle.throwMissingResourceExcep tion(ResourceBundle.java:712)
at java.util.ResourceBundle.getBundleImpl(ResourceBun dle.java:683)
at java.util.ResourceBundle.getBundle(ResourceBundle. java:546)
at OiGeneralPortQueryRes.<clinit>(OiGeneralPortQueryRes.java:7)
at getFreePort.performQuery(getFreePort.java:477)
at oracle.sysman.oii.oiis.OiisCompContext.doQuery(Oii sCompContext.java:2330)
at Components.oracle.sysman.webserver.v9_2_0_1_0.Comp Context.getCalculatedValueObject_PORT(CompContext. java:304)
at Components.oracle.sysman.webserver.v9_2_0_1_0.Comp Context.getCalculatedValueObject(CompContext.java: 224)
at oracle.sysman.oii.oiis.OiisCompContext.getCalculat edValue(OiisCompContext.java:612)
at oracle.sysman.oii.oiis.OiisVariable.getCalculatedV alue(OiisVariable.java:733)
at oracle.sysman.oii.oiis.OiisVariable.setVariable(Oi isVariable.java:1407)
at oracle.sysman.oii.oiis.OiisCompContext.doOperation (OiisCompContext.java:991)
at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.i terate(OiifbLinearIterator.java:116)
at oracle.sysman.oii.oiic.OiicCompsWizEngine.doOperat ion(OiicCompsWizEngine.java:182)
at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.i terate(OiifbLinearIterator.java:116)
at oracle.sysman.oii.oiic.OiicInstallSession$OiicSelC ompsInstall.doOperation(OiicInstallSession.java:87 8)
at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.ite rate(OiifbCondIterator.java:140)
at oracle.sysman.oii.oiic.OiicPullSession.doOperation (OiicPullSession.java:614)
at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperat ion(OiicSessionWrapper.java:177)
at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.i terate(OiifbLinearIterator.java:116)
at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInsta ller.java:358)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInst aller.java:637)
Plz help me
RegardsWorkaround consits of two steps:
1. Use jre 1.3.1_n (where n>10) (1.4.n use only if your platform is x86_64)
2. execute following commands before you execute runInstaller or dbca:
unset LANG
unset LC_TYPE -
How to convert the output of the report (program) to PDF file , Please HELP
Good Morning, ALL
I have done a small program in ABAP that lets the employee enters his information. Once the emplyee enters the information and executes the program, I want the result to be saved in a PDF file (in any kind of format). I did try to do this action BUT I couldn't. ( ABAP Beginner LOL ).
This is the code ( The main thing ):
SELECTION-SCREEN BEGIN OF BLOCK Yours WITH FRAME TITLE text-001.
PARAMETERS: NAME(15) TYPE C OBLIGATORY lower case,
CITY LIKE NAME OBLIGATORY ,
DATE LIKE SY-DATUM DEFAULT SY-DATUM MODIF ID ZZZ,
ID# TYPE C LENGTH 9,
PHONE TYPE C LENGTH 10.
SKIP 4.
SELECTION-SCREEN END OF BLOCK Yours.
SELECTION-SCREEN BEGIN OF BLOCK More WITH FRAME TITLE text-002.
PARAMETERS: MALE RADIOBUTTON GROUP G1 DEFAULT 'X',
FEMALE RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF BLOCK More.
SELECTION-SCREEN BEGIN OF BLOCK Details WITH FRAME TITLE text-003.
PARAMETERS: P_DATE TYPE DATUM,
Locate TYPE C LENGTH 30.
SELECTION-SCREEN END OF BLOCK Details.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ZZZ'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Any useful help will be appreciated, THANK YOUHi
Try the below code.
REPORT ztest_notepad.
"Variables
DATA:
l_lay TYPE pri_params-paart,
l_lines TYPE pri_params-linct,
l_cols TYPE pri_params-linsz,
l_val TYPE c,
l_no_of_bytes TYPE i,
l_pdf_spoolid LIKE tsp01-rqident,
l_jobname LIKE tbtcjob-jobname,
l_jobcount LIKE tbtcjob-jobcount,
spoolno TYPE tsp01-rqident.
*Types
TYPES:
t_pripar TYPE pri_params,
t_arcpar TYPE arc_params.
"Work areas
DATA:
lw_pripar TYPE t_pripar,
lw_arcpar TYPE t_arcpar.
DATA:
it_t100 TYPE t100 OCCURS 0 WITH HEADER LINE,
it_pdf TYPE tline OCCURS 0 WITH HEADER LINE.
"Start-of-selection.
START-OF-SELECTION.
l_lay = 'X_65_132'.
l_lines = 65.
l_cols = 132.
"Read, determine, change spool print parameters and archive parameters
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
in_archive_parameters = lw_arcpar
in_parameters = lw_pripar
layout = l_lay
line_count = l_lines
line_size = l_cols
no_dialog = 'X'
IMPORTING
out_archive_parameters = lw_arcpar
out_parameters = lw_pripar
valid = l_val
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF l_val space AND sy-subrc = 0.
lw_pripar-prrel = space.
lw_pripar-primm = space.
NEW-PAGE PRINT ON
NEW-SECTION
PARAMETERS lw_pripar
ARCHIVE PARAMETERS lw_arcpar
NO DIALOG.
ENDIF.
"Get data
SELECT *
FROM t100
INTO TABLE it_t100
UP TO 100 ROWS
WHERE sprsl = sy-langu.
" Writing to Spool
LOOP AT it_t100.
WRITE:/ it_t100.
ENDLOOP.
NEW-PAGE PRINT OFF.
CALL FUNCTION 'ABAP4_COMMIT_WORK'.
spoolno = sy-spono.
"Convert spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = spoolno
no_dialog = ' '
IMPORTING
pdf_bytecount = l_no_of_bytes
pdf_spoolid = l_pdf_spoolid
btc_jobname = l_jobname
btc_jobcount = l_jobcount
TABLES
pdf = it_pdf.
"Download PDF file C Drive
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = 'C:\itab_to_pdf.pdf'
filetype = 'BIN'
TABLES
data_tab = it_pdf
Hope this helps you. -
Dear all!!
I have created a connection pool to ORACLE DB9i. But when weblogic 7 start,
it show the error:
Cannot startup connection pool "ecsPool" weblogic.common.ResourceException:
weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Io exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(
CODE=12505)(EMFI=4))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleD....
I have user sqlw user/pass@connect , it works OK!
I have use thin connection of ORACLE
jdbc:oracle:thin:@host:1521:SID
driver: oracle.jdbc.driver.OracleDriverViet Thach wrote:
Dear all!!
I have created a connection pool to ORACLE DB9i. But when weblogic 7 start,
it show the error:
Cannot startup connection pool "ecsPool" weblogic.common.ResourceException:
weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: Io exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(
CODE=12505)(EMFI=4))))
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:361)
at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleD....
I have user sqlw user/pass@connect , it works OK!
I have use thin connection of ORACLE
jdbc:oracle:thin:@host:1521:SID
driver: oracle.jdbc.driver.OracleDriverHi. Show me the entry in the tnsnames.ora file that corresponds to the DBMS
you want to connect to. From that, I can show you the proper arguments
to give to Oracle's thin driver to make it work.
Joe -
Oracle Database Connectivity Problem.. Please Help
Hi , i am having a problem in connecting my JSP page to Oracle. I dont know how to work from Scratch like which classes to download for driver and where to put them so that it works for me please also help me in writng connection String. i am writing this code but it generates an error.
<%
try
Connection conn=null; // defining variable
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@serverName:1521:myDatabase", "scott", "tiger");
Statement st = conn.createStatement();
String sql = "SELECT * FROM POS";
ResultSet rs = st.executeQuery(sql);
String name = rs.getString("DNAME");
out.println(name);
catch(Exception e)
out.println(e);
%>
and the Error is
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
I shall be thankful to you for your help.
Regards,
AdeelThanks for your reply and sugession. We cannot stop
using JSP actually. I meant while learning JDBC and attempting to debug it.
I have been working with ODBC
drivers and haven't got any problem. Now here you are
talking about Class.... We haven't download the
driver yet thats what i was trying to ask that from
where to dowload those drivers/classes and where to
put them or how to config them . Your Help is always
appriciated because it can be really crucial for some
one else. Any way Thanks again hope to see a reply
from you.That isn't what your OP suggested. It suggested specifically that you didn't know what a class not found exception meant.
You can down load the drivers from oracle. Or you can get them from the Oracle client install - just drill down under the install directory.
As for where you put them, it would be the same place that you put the other drivers that you already have experience with. -
I was unable install Oracle due to the following error, please help me
Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-08-06_02-49-22AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2014-08-06_02-49-22AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:222)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:86
I tried to link libXp files
matsys:oradev 18> ln -s libXpm.so.4.11.0 LibXp.so.6
ln: creating symbolic link `LibXp.so.6' to `libXpm.so.4.11.0': Permission deniedFile types allowed: .asc, .txt, .text, .xml, .xsl, .gif, .png, .jpeg, .jpg, .jpe, .ics
txt file having 4 mb . it is not accepting ZIP or rar files -
Initialize Report dynamically using DataSet. Please Help!
Post Author: olstar
CA Forum: Integrated Solutions
Hi!
In my ASP.NET (2005) application I have a web service that returns a DataSet. I would like to use Crystal Reports to show the data from this DataSet. Please let me know if this is possible.
Thanks a lot for your help!Post Author: pepsi
CA Forum: Integrated Solutions
Hope you have the crystal server set up. use opendocument.jsp to create a link for the desired report and set this link as target from .net user interface.
Maybe you are looking for
-
Update Rule routine to get last 4 characters of a field
I am aware I can do this using a formula. However, can someone assist in writing the routine which gets the last four characters of a field. The field is part of the COMM_STRUCTURE? Thanks
-
How do I count parts with a fiber optic sensor using the NI-1772 and VBAI 2011?
I'm inspecting parts using the NI-1772. Just after the camera, bad parts are ejected when they pass by a fiberoptic sensor. I want to use another sensor after that to verify the number of good parts, so that I can be sure the bad parts have been ej
-
Error using setTimestamp and ojdbc14 against Oracle 7.3.4
I am having a problem setting a timestamp value against Oracle 7.3.4 and Oracle 8.0.6 databases. Here's the code: public Tester (String passedUsername, String passedPassword, String passedHostName, String passedPort, String passedSID) throws SQLExcep
-
hi.I am a chinese body.I used your soft --JDevelper9i 902.Now I have some questions .Could you help me ? I wrote some EJB code and they can run in the oc4j. Now I want to write more EJBs using JDevelper9i.So I add the old ejb to my project.Now my pro
-
How to confirm an activity using BAPI ?
Hi, Does anyone know how to create a confirmation to an activity using a BAPI ? ( instead of CN25 ) We have such a requirement and I tried to use FM BAPI_NETWORK_CONF_ADD. I get a message like "confirmation is saved" but when I don't see the confirm