Get the rowcount from a PL/SQL report
Hi every body,
I got issues about get the rowcount, or just the number of rows return from a report.
Because the report is based on some parameters that users provide, so it is not a straghtforward sql syntax.
The thing is for the PDF printing server I use (Apache FOP), if the total rows return around less than 5000, it work OK, more than that I got the "Java outofmemory"
I want to find a way that give users a warning message that if
the report is more than 5000 rows, the PDF print server cannot work.
Here is my pl/sql for the report
Thanks in advance.
declare
q varchar2(32767);
begin
q:= 'SELECT "DAILYLOG"."LOGID" "LOGID", '||
' "DAILYLOG"."CLIENTID" "CLIENTID", '||
' "DAILYLOG"."CLIENT" "CLIENT", '||
' "DAILYLOG"."LOGDATE" "LOGDATE", '||
' "DAILYLOG"."STAFF" "STAFF", '||
' "DAILYLOG"."ACTIVITY" "Activity", '||
' "DAILYLOG"."COMMENTS" "COMMENTS", '||
' "DAILYLOG"."INCIDENTS" "INCIDENTS", '||
' "DAILYLOG"."SELFHARM" "SELFHARM", '||
' "DAILYLOG"."VIOLENCESTAFF" "VIOLENCE STAFF", '||
' "DAILYLOG"."VIOLENCEYOUTH" "VIOLENCE YOUTH", '||
' "DAILYLOG"."CONTRABAND" "CONTRABAND", '||
' "DAILYLOG"."INTERFERENCE" "INTERFERENCE", '||
' "DAILYLOG"."PROPERTYABUSE" "PROPERTY ABUSE", '||
' "DAILYLOG"."RESTRAINTS" "RESTRAINTS", '||
' "DAILYLOG"."MISBEHAVIOUR" "MISBEHAVIOUR", '||
' "DAILYLOG"."ABSCONDING" "ABSCONDING"'||
' FROM "DAILYLOG"'||
' WHERE DAILYLOG.STAFFID= :P14_STAFFLIST ';
IF trim(:P14_STARTDATE) IS NOT NULL THEN
q:= q || 'and DAILYLOG.LOGDATE >= TO_DATE(:P14_STARTDATE,''DD/MM/YYYY'')';
END IF;
IF trim(:P14_ENDDATE) IS NOT NULL THEN
q:= q || ' and DAILYLOG.LOGDATE <= TO_DATE(:P14_ENDDATE,''DD/MM/YYYY'')';
END IF;
return q;
end;
Cheers,
Ann L.
I'm not entirely sure of what you want, but...
if you just want to find out how many rows a query has, you could just select the max(rownum) from the query.
eg...
select max(rownum)
from (
-- inner query
)And that'll give you a number that = the number of rows.
There are a few other ways of doing it :P
could do a count(*), same thing.
Similar Messages
-
Getting the value from a PL/SQL table
I have a view ( VIEW$TEMP ) that is building on runtime using FormsDDL.All its fields are varchar2 but the columns are not predefined.
In a Package (P) Specification I have define a PL/SQL Table like that:
type tt is table of view$temp%rowtype index by binary_integer
vTable tt;
I have opened a cursor and fetch the VIEW$TEMP into vTable.
Now I Need a function
F( vRow in number, vField varchar2 ) return varchar2
that take as arguments a row of the vTable and the Field name as varchar and returns to me the value in the table. This must be to the server(so I can not use copyto).
Any help will be helpful.Hi,
Excuse me, but, if, as I understood, the structure of the view changes at runtime, that would make the any stored procedure invalid, so that, before any execution, the given stored procedure would need to be compiled. Is it not so?
As for that function you need, you simply have to use dbms_sql (if that could be called simple).
Personally, I'd put the problem someway else and use different data structures and views.
Yet, please, don't get me wrong, I'd like to know more about this particular solution you are willing to implement.
Regards,
BD
null -
Why do we get the data from a view to a report.
hi
why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?hi Jyotssna,
Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
Regards,
Santosh -
Getting the ROWCOUNT of a section
HI
I have a report with four section--North,South,East,West!
In all those section, i have to columns customer name a revenue.
I want the section with maximum number of rows to appear first and then the next highest second..like this in descending order depending the number of rows that each section has!
Can you please guide me about how do i go about this as the CountAll doesn't seems to be working in webi and once get the rowcount of all section can i sort the section on basis of rowcount to get the result.
Any answer will be highly appreciated!
Many Regards
RahulHello Rahul,
OK I have taken a closer look at the workflow I followed and I still think that you will be able to achieve what you need to do.
Firstly I am using XIR2 SP4 (just incase it makes a difference)
I assume that your report returns a transaction ID (or invoice number) that allows you to identify each individual row of data.
On that assumption you need to do the following:
Create a table with 3 columns: Customer, Transaction ID, Revenue
Select the transaction ID column and add a count to the bottom of the table.
Drag the footer cell with the transaction count off the table and drop it somewhere in the section - this will create a cell with the count within it.
Right click on the new cell and apply the descending sort.
Finally delete the transaction ID column from the table
I do not know why you cant add a sort to a stand alone cell but you seem to be able to apply a sort if the cell is dragged from the table footer.
Let me know if this works - I have used this process to create a WebI report using efashion, so I am pretty sure it will work.
Regards,
Mike
Edited by: Mike Churchill on Jun 26, 2008 5:03 PM -
How to get the data from a cluster table to BW
Dear All,
I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
In SE11 Transaction the Cluster (table ZES) is showing invalid table.
I referred some Forums, but no use.
Can any body tell me procedure to get the data from a cluster (table ZES) ?
Waiting for you results.
Thanks and regards
RajeshHI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
Unable to get the data from the stored procedure
Hello Folks,
I have this stored procedure and am trying to get the data from the table stage_bill but for some reason i am not sure its not pulling the data.Am a beginner in pl/sql Can any one please help to find out. I can give the code below.
create or replace procedure Load_FADM_Staging_Area_TEST(p_data_load_date date) is
-- local variables
v_start_date date;
v_end_date date;
-- cursor starting
CURSOR c_get_data
IS
SELECT
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,v_start_date as Row_Effective_Date
,null Row_End_date
from stage_bill a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status,
b.schema_name,
b.Load_date,
b.Load_user,
b.Row_Effective_Date,
b.Row_End_Date
from STG_FADM_HRI_STAGE_BILL_TEST b)
-- cursor o/p variables
v_batch_id stage_bill.batch_id%TYPE;
v_beginning_service_date stage_bill.beginning_service_date%TYPE;
v_bill_id stage_bill.bill_id%TYPE;
v_bill_method stage_bill.bill_method%TYPE;
v_bill_number stage_bill.bill_number%TYPE;
v_bill_received_date stage_bill.bill_received_date%TYPE;
v_bill_status stage_bill.bill_status%TYPE;
v_bill_type stage_bill.bill_type%TYPE;
v_change_oltp_by stage_bill.change_oltp_by%TYPE;
v_change_oltp_date stage_bill.change_oltp_date%TYPE;
v_client_datafeed_code stage_bill.client_datafeed_code%TYPE;
v_client_id stage_bill.client_id%TYPE;
v_created_date stage_bill.created_date%TYPE;
v_date_of_incident stage_bill.date_of_incident%TYPE;
v_date_paid stage_bill.date_paid%TYPE;
v_deleted_oltp_by stage_bill.deleted_oltp_by%TYPE;
v_deleted_oltp_date stage_bill.deleted_oltp_date%TYPE;
v_duplicate_bill stage_bill.duplicate_bill%TYPE;
v_ending_service_date stage_bill.ending_service_date%TYPE;
v_event_case_id stage_bill.event_case_id%TYPE;
v_event_id stage_bill.event_id%TYPE;
v_from_oltp_by stage_bill.from_oltp_by%TYPE;
v_oltp_bill_status stage_bill.oltp_bill_status%TYPE;
v_review_status stage_bill.review_status%TYPE;
v_schema_name varchar(50);
v_Load_date date;
v_Load_user varchar(50);
v_Row_Effective_Date date;
v_Row_End_Date date;
Begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
-- cursor c_get_data loop begin
OPEN c_get_data;
LOOP -- cursor c_get_data loop begin
FETCH c_get_data
INTO
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
V_Row_Effective_Date,
v_Row_End_Date;
EXIT WHEN c_get_data%NOTFOUND;
insert into STG_FADM_HRI_STAGE_BILL_TEST
batch_id
,beginning_service_date
,bill_id
,bill_method
,bill_number
,bill_received_date
,bill_status
,bill_type
,change_oltp_by
,change_oltp_date
,client_datafeed_code
,client_id
,created_date
,date_of_incident
,date_paid
,deleted_oltp_by
,deleted_oltp_date
,duplicate_bill
,ending_service_date
,event_case_id
,event_id
,from_oltp_by
,oltp_bill_status
,review_status
,schema_name
,Load_date
,Load_user
,Row_Effective_Date
,Row_End_Date
values(
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
v_Row_Effective_Date,
v_Row_End_Date ) ;
COMMIT;
END LOOP;
CLOSE c_get_data;Maybe you need something else, like
CREATE OR REPLACE PROCEDURE load_fadm_staging_area_test (
p_data_load_date DATE
) IS
v_start_date DATE;
v_end_date DATE;
BEGIN
SELECT NVL (p_data_load_date, SYSDATE) - 7,
NVL (p_data_load_date, SYSDATE) - 1
INTO v_start_date,
v_end_date
FROM DUAL;
MERGE INTO stg_fadm_hri_stage_bill_test b
USING (SELECT *
FROM stage_bill
WHERE created_date BETWEEN v_start_date AND v_end_date) a
ON (b.bill_id = a.billl_id)
WHEN NOT MATCHED THEN
INSERT (batch_id,
beginning_service_date,
bill_id,
bill_method,
bill_number,
bill_received_date,
bill_status,
bill_type,
change_oltp_by,
change_oltp_date,
client_datafeed_code,
client_id,
created_date,
date_of_incident,
date_paid,
deleted_oltp_by,
deleted_oltp_date,
duplicate_bill,
ending_service_date,
event_case_id,
event_id,
from_oltp_by,
oltp_bill_status,
review_status,
schema_name,
load_date,
load_user,
row_effective_date,
row_end_date
VALUES (a.batch_id,
a.beginning_service_date,
a.bill_id,
a.bill_method,
a.bill_number,
a.bill_received_date,
a.bill_status,
a.bill_type,
a.change_oltp_by,
a.change_oltp_date,
a.client_datafeed_code,
a.client_id,
a.created_date,
a.date_of_incident,
a.date_paid,
a.deleted_oltp_by,
a.deleted_oltp_date,
a.duplicate_bill,
a.ending_service_date,
a.event_case_id,
a.event_id,
a.from_oltp_by,
a.oltp_bill_status,
a.review_status,
'HRI',
SYSDATE,
'ETLPROCESS001',
v_start_date,
NULL
END load_fadm_staging_area_test;Whenever you code a cursor and a loop, ask yourself. Do I need that?
Regards
Peter -
Get the values from Day 1 of the Month
Hi Friends,
I have a requirement in which I have to Get the values from Day 1 of the Month.
Ex : If I enter 19 - 07 - 2007.......the report should display Values from 01 - 07 - 2007.
How to Code ?
Please provide the Code.
Thank you.Hello ,
Check this code,
DATA: test_datum1 LIKE sy-datum,
test_datum2 LIKE sy-datum.
WHEN 'TEST1'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = 'TEST2'.
test_datum1 = loc_var_range-low.
CONCATENATE test_datum1(6) '01' INTO test_datum2.
CLEAR l_s_range.
l_s_range-low = test_datum2.
l_s_range-high = test_datum1.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
hope it helps,
assign points if useful -
How to get the values from struct data type using java code..?
Hi ,
I am newer to java.
we are using oracle database.
How to get the data from struct data type using java code.
Thanks in Advance.
Regards,
kumarHi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
How to get the values from repeated frame?.
Hi
how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
thanksHow often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
Hope that helps,
Toby -
Have a error in getting the values from database randomly
Hi to all
I am new member to this community and new to java programming, i am the one of them who got benefited through this site , with that hope i am asking u to clear my doubt.
Actually i want to get the data from database randomly, i dont have problem either in database connection and generating random number,its working fine. but when i have to get the data from database with generated random no using absolute function , i am getting an exception
eg : rs.absolute(2);
i could not move to the second row of my result set.
not only absolute function whatever the function i am using except next method, getting exception.
my code :
package practical;
import java.util.*;
import java.sql.*;
public class gen {
Connection con;
Statement s;
ResultSet rs;
public void get(int t)
try
rs.absolute(t);
String question=rs.getString("question");
System.out.println("Random question : "+question);
catch(Exception e)
System.out.println("get error");
public void ran()
Random r=new Random();
for(int i=0;i<10;i++)
int j=r.nextInt(10);
System.out.println("random value : "+j);
if(j!=0)
try
get(j);
catch(Exception e)
System.out.println("ran error");
public void connect()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:ds","sa","server");
s=con.createStatement();
rs=s.executeQuery("select question from qa");
ran();
con.close();
catch(Exception e)
System.out.println("error");
public static void main(String... strins)
new gen().connect();
}but i acheived through the code which is pasted below but i have to close the database connection for every iteration.
package practical;
import java.util.*;
import java.sql.*;
public class gen {
Connection con;
Statement s;
ResultSet rs;
public void get(int t)
int c=0;
while(c!=t)
try
rs.next();
c++;
catch(Exception e)
System.out.println("next error");
if(c==t)
{ try
String question=rs.getString("question");
System.out.println("Random question : "+question);
catch(Exception e)
System.out.println("iteration error");
public void ran()
Random r=new Random();
int j=r.nextInt(10);
System.out.println("random value : "+j);
if(j!=0)
try
get(j);
catch(Exception e)
System.out.println("ran error");
public void connect()
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:ds","sa","server");
s=con.createStatement();
rs=s.executeQuery("select question from qa");
ran();
con.close();
catch(Exception e)
System.out.println("error");
public static void main(String... strins)
for(int i=0;i<10;i++)
new gen().connect();
} -
How to get the selectedIndex from a combobox made by classFactory?
Dear All,
I am trying to get the selectedIndex or selecetedItem.banda_id when changing a combobox that is created by classFactory and it is inside a datagrid.
The code I have is:
MXML:
<mx:DataGrid width="100%" height="100%" id="salas_fin_dg" editable="true">
<mx:columns>
<mx:DataGridColumn headerText="Titulo" dataField="titulo" editable="false" width="250"/>
<mx:DataGridColumn headerText="Data" dataField="start_dt" editable="false"/>
<mx:DataGridColumn headerText="Dur" dataField="duration" editable="false" width="40"/>
<mx:DataGridColumn headerText="Banda" dataField="banda_nome" editable="true" itemEditor="{combofac}"/>
<mx:DataGridColumn headerText="$ Ensaio" dataField="total_ensaio" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ Bar" dataField="total_bar" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ Loja" dataField="total_loja" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ CC" dataField="total_cc" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ CH" dataField="total_ch" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ DI" dataField="total_di" editable="true" itemEditor="controls.NumericInput"/>
<mx:DataGridColumn headerText="$ Pend" dataField="total_pend" editable="true" itemEditor="controls.NumericInput"/>
</mx:columns>
</mx:DataGrid>
Script:
private function getSalasFinHandler(event:ResultEvent):void
salas_fin_lst = new ArrayCollection(event.result as Array);
salas_fin_dg.dataProvider = salas_fin_lst;
myservice.getBandas();
combofac=new ClassFactory(ComboBox);
combofac.properties={dataProvider:bandas_lst, labelField:"banda_nome", prompt:"Selecione"};
I am using Remote Object to get the data from a DB, and it is working properly.
As I will update the datagrid cell values, I would like to update them on the DB.
In order to do that, I would need to access the banda_id value, that is part of the combofac dataprovider, I mean that this dataprovider has 2 columns, being banda_nome and banda_id.
The question is how to get the banda_id value, when I change the comobobox?
Many thanks in advance,
GinesDear harUI and kolinitcom,
Thanks for the your prompt response and guidelines.
I went to research a little bit more on the itemEditEnd and found a way to access the data inside the combobox.
The code for all application goes below. If you click on the button, it will show you all the datagrid data, plus the ID of the combobox when changed.
Thanks again,
Gines
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white" initialize="init();">
<mx:Script>
<![CDATA[
import mx.utils.ObjectUtil;
import mx.controls.ComboBox;
import mx.controls.Alert;
import mx.events.DataGridEvent;
import mx.events.*;
[Bindable]
private var combofac:ClassFactory;
public var newVal:String;
private function init():void
combofac=new ClassFactory(mx.controls.ComboBox);
combofac.properties={dataProvider:arrcombo, prompt:"Selecione", labelField:"label"};
public function getCellInfo(event:DataGridEvent):void {
var myEditor:ComboBox = ComboBox(event.currentTarget.itemEditorInstance);
newVal = myEditor.selectedItem.data;
public function mostra():void
var dados:Object = new Object;
dados.nome = dataGrid.selectedItem.label;
dados.score = dataGrid.selectedItem.score;
dados.score_id = newVal;
Alert.show(ObjectUtil.toString(dados));
]]>
</mx:Script>
<mx:TextArea id="cellInfo" width="300" height="150" />
<mx:ArrayCollection id="arrcombo">
<mx:source>
<mx:Array>
<mx:Object label="1" data="A1"/>
<mx:Object label="2" data="A2"/>
<mx:Object label="3" data="A3"/>
<mx:Object label="4" data="A4"/>
<mx:Object label="5" data="A5"/>
<mx:Object label="6" data="A6"/>
<mx:Object label="7" data="A7"/>
<mx:Object label="8" data="A8"/>
<mx:Object label="9" data="A9"/>
</mx:Array>
</mx:source>
</mx:ArrayCollection>
<mx:ArrayCollection id="arrColl">
<mx:source>
<mx:Array>
<mx:Object label="Student A" score="8" />
<mx:Object label="Student B" score="4" />
<mx:Object label="Student C" score="7" />
<mx:Object label="Student D" score="8" />
<mx:Object label="Student E" score="2" />
<mx:Object label="Student F" score="6" />
<mx:Object label="Student G" score="7" />
<mx:Object label="Student H" score="7" />
<mx:Object label="Student I" score="9" />
<mx:Object label="Student J" score="8" />
<mx:Object label="Student K" score="4" />
<mx:Object label="Student L" score="7" />
</mx:Array>
</mx:source>
</mx:ArrayCollection>
<mx:DataGrid id="dataGrid"
dataProvider="{arrColl}"
editable="true"
rowCount="8"
itemEditEnd="getCellInfo(event);">
<mx:columns>
<mx:DataGridColumn dataField="label"
editable="false" />
<mx:DataGridColumn dataField="score"
editable="true"
itemEditor="{combofac}"/>
<mx:DataGridColumn headerText="Salvar" width="50">
<mx:itemRenderer>
<mx:Component>
<mx:VBox width="100%" height="100%">
<mx:Button label="See the values" click="outerDocument.mostra();"/>
</mx:VBox>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</mx:Application> -
Siebel 8.0.0.12 Fix Pack; Unable to get the seed from binary file.
Hello Folks,
Can anyone throw some light into what action is required on my scenario.
I have applied Fix Pack Siebel 8.0.0.12 on top of 8.0.0.11 SBA. After it is appled, I am facing a documented issue within the Release Notes for the 8.0.0.12 Fix Pack
The issue is "UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12". I tried the steps given with the MR document, however, I am still having this issue.
I am also not sure what is expected at the step of; Run the following command: seedgeneratorutil myseed.dat abcdef .
It's asking me for a value to enter for seed at command prompt. "Enter the seed":
what I should give here. As an assumption values,I gave SADMIN and tried to launch but still shows up the same error
Please Assit
Steps Details from Release Notes:
UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12
Component: Server Infrastructure
Subcomponent: SWSE
Product Version: Siebel 8.0.0.12
Base Bug ID: 11938270
**Users are unable to launch the URL after applying the Siebel 8.0.0.12 Fix Pack.
**Use the following workaround to address this issue:
Navigate to the eappweb/bin directory from the command line on the SWSE installation.
Run the following command:
seedgeneratorutil myseed.dat abcdef
NOTE: In the example, myseed.dat is a filename. You can give any file name you wish.
The myseed.dat file is generated in the eappweb/bin directory.
Edit eapps.cfg to include the following parameters under the SWE section:
seedfile = < complete path for myseed.dat >
Bounce the web server.
(For Linux only) Copy libmod_swe.so from the eappweb/bin folder to the web/ohs/modules folder
Thanks
KumarWilson,
Thanks for your reply.I have repeated the steps and regenerated the error messages.
Browser
Message:
An error occurred while trying to process your request. This error indicates a problem with the configuration of this server and should be reported to the webmaster (along with any errors listed below). We apologize for the inconvenience
Initialization error:
Unable to get the seed from binary file.
Log
2021 2011-09-20 23:23:01 0000-00-00 00:00:00 +0530 00000000 001 003f 0001 09 ss110920_7068 7068 7852 E:\sba80\SWEApp\log\ss110920_7068.log 8.0.0.12 [20444] ENU
ProcessPluginState ProcessPluginStateError 1 000000024e781b9c:0 2011-09-20 23:23:01 7852: [SWSE] Unable to get the seed from binary file.
Eapps.cfg
[swe]
Language = enu
Log = errors
LogDirectory = $(SWSERoot)\log
ClientRootDir = $(SWSERoot)
SessionMonitor = False
AllowStats = true
LogSegmentSize = 0
LogMaxSegments = 0
DisableNagle = False
seedfile = E:\sba80\SWEApp\BIN\80012seed.dat
Thanks
Kumar -
Can anyone let me know how can i get the ouput from BW in .txt format.
Can anyone let me know how can i get the ouput from BW in .txt format. See we can get output as Excel(i.e BEX) and manually convert it into txt format. I need a direct or automated way to do the same.no human intervention.
mail me at [email protected] or post answer in sdn.Please do not multiple post across forums..
how can i save the data in BEX reports in .txt format automatically
This helps in keeping track of answers and avoids the issue of repeated answers across forums...
Please close one of the threads as answered and provide the link that you want to follow
Arun -
How to get the Month from no of week
Dear Friendz
I have one variable which contains the value as 200547 where 2005 is the year and 47 is the no of week.
now i want to get the month from the no of week.
so how to solve the problem???
thank in advance.
Regards
nilesh sheteHi,
report ztest.
data: myweek type SCAL-WEEK,
mydate type SCAL-DATE,
mymonth(2).
myweek = '200547'.
call function 'WEEK_GET_FIRST_DAY'
EXPORTING
WEEK = myweek
IMPORTING
DATE = mydate
EXCEPTIONS
others = 9.
mymonth = mydate+4(2).
write mymonth.
Svetlin -
Functional module to get the File from a given Directory
Hi all,
I am using a FM name 'subst_get_file_list' to get the file from a given directory but it is accepting only 40 Character length file only my requirement is to accept file name other than 40 char,
give me good sugestion
regards
paulHi Paul,
Check the Function Module Gayathri has given. ie. 'SO_SPLIT_FILE_AND_PATH'.
In the exporting parameter FULL_NAME , give the path name and in the importing parameter stripped_name , you will get the filename.
Check this code.
REPORT ZSHAIL_SPLITFILE.
data: it_tab type filetable with header line,
gd_subrc type i.
tables: rlgrap.
data: path type string,
file_name type string.
parameters file_nam type rlgrap-filename .
data: user_act type i.
at selection-screen on value-request for file_nam.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
WINDOW_TITLE = 'select a file'
DEFAULT_EXTENSION = '*.txt
DEFAULT_FILENAME = ''
FILE_FILTER = '*.txt'
INITIAL_DIRECTORY = ''
MULTISELECTION = abap_false
WITH_ENCODING =
CHANGING
file_table = it_tab[]
rc = gd_subrc
USER_ACTION = user_act
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 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.
if user_act = '0'.
loop at it_tab.
file_nam = it_tab-filename.
endloop.
endif.
path = file_nam.
CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'
EXPORTING
full_name = path
IMPORTING
STRIPPED_NAME = file_name
FILE_PATH =
EXCEPTIONS
X_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
at selection-screen.
message i001(zmess) with file_name.
Regards,
SP.
Maybe you are looking for
-
Can I stream the BT Sport app to my TV?
Can I stream the BT Sport app to my TV? The BT Sport app is compatible with both Apple TV and Google Chromecast devices, allowing you to watch video from the app on your television. For either to work, the device on which you are running the BT Sport
-
HP Solutions Center doesn't work for my C7280
I have a C7280 All In One and just got a new PC running Windows 7 (32 bit). Now when I try to run the Solutions Center to scan a picture it says that I don't have the SW installed so I went to the site and downloaded the entire SW suite for my printe
-
Hide command box in portal transaction iview sap GUI for HTML
I have tried &~NOHEADEROKCODE = 1 and ~NOHEADEROKCODE = 1 in the applications parameters with no luck. Can this be done from the ivew?
-
Cannot find class javax.swing.JOptionPane
Hello, I imported the class import javax.swing.JOptionPane;and written as a first line of my code in the form of a .java file. but error occurs as : cannot find the class javax.swing.JOptionPane. What should I do. Thank you.
-
Mail settings changing without user input
I have several Mail accounts set up in the following manner (let's please ignore the fact that have far to many accounts, I have collected them as family members came onto the net and in teh process of setting their ISPs up made accounts for myself):