How to show the data of one query since Forms9i using to Report built-in on
Hello!!!, I have Developer 9i (Forms and Reports), the OCJ4 and repserver90 are running, now, I attempt to run one report from Forms9i, and only it appears an empty page HTML. I don't understand why doesn't show the data of query?
Please, give me a solution for this problem, thanks for your help.
PD: I am using the below code.......
PROCEDURE bring_report IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('Q_DATA1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
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
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://172.16.2.18:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
END;
Alex,
the code does look good. maybe the Reports query does not produce an output. You can trace this ny adding a header on top of teh Reports (e.g. a date or just saying "Hello World"). So instead of an empty page this should now show the text strings. If you don't see the string then there is something else going on. Since you are not getting any error message I assume that the Reports itself executes fine.
Frank
Similar Messages
-
How to transpose the data records (rows) to column(lists) using apd
Hi,
how to transpose the data records (rows) to column (lists) using apd in sap bw.
I do not want to use abap routine.only use the transpose rows to list transformation .
Pls provide the step by step procedure .
thanks,
NimaiSave youe file to transpose as a csv and in the header row of your file for the columns you want to transpose you need to put some soer of a tag before the column name (ie your colum header was for a period budget will be something lie 2011001:ZFIBDD)
1. You will need to create a new apd process (rsanwb)
2. Insert a "Read from Data File" data source object and map it file (,csv)
3. insert a transpose object into your apd process (middle row 4th one over in the transformations section)
4. under the definition tab in the transformation object select all the columns that are to be transposed into rows and move them to the transformed area, the grouping fields section should contain the rows that you want to now be columns
5.under the transformation tab enter in the seperator you selected under the Field Name/Infoobject area (ie. ZFIBDD)
6. under the details tab you need to enter in all the fields to be transformed and tner the transposition field (ie ZFIBDD)
7. Then you can insert a set of transformations and a DSO and link the newly transposed fields into that.
hope that helps -
How to put the data from one excel sheet in another excel sheet
hi ,
I want put the data from one excel sheet in another excel sheet in seq. order Eg: I have one excel sheet in which i have 3 col. Name , Sno. , Email along with data .I want to put data from this sheet to another excel sheet in the following orders of col. Sno,Name, Email .
While loading data in another sheet , i have to perform validation like char field should n't contain numeric values and vice versa .
Let me know on this soon ..
regards
PrashantWell, you can issue separate queries with the ordering you need from each tab in the spreadhseet. You can open an ODBC connection from a VBA macro, select a sheet, run a query, select another sheet and run another query. As for the validation, you can do this in Oracle via stored procedures or again in VBA code.
-
How to show the data in table format when user click the Graph
Hi,
I have a graph in my report. If user click the graph is there a way to show
the data behind it?
Thanks.
Regards,
JunHi All,
Any idea how to do this?
Thanks.
Jun -
To show the data from BI query in bar graph with thousand separator
Hello Experts,
I am using Visual composer 7.0.I have designed an application where i have user BI query to show data as a bar graph.I have roundoff the data to 2 places of decimal an i have to show the data with thosand separator as well.
i am using the formula
NVAL(NSTR(@Actual_value,"C.2"))
Where @Actual_value is a value which comes from BI queryand is to be displayed as a bar graph.
Points will be awarded for reply.
Thanks ,
RakeshHi Rakesh,
I have found some links which may help you.
http://help.sap.com/saphelp_nw70/helpdata/en/38/2d9b732beb4c68bba2962602a7d6bd/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/26/64fb472a144a0dbaf88f5ec75d9270/content.htm
http://oregonstate.edu/dept/computing/warehouse/PDF/8-reports.pdf -
How to copy the data from one database to another database without DB link
Good Day,
I want to copy the data from one database to another database with out DB link but the structure is same in both.
Thanks
NiharYou could use SQL*Plus' COPY command
http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM -
How to copy the data of one node to another of the same context
hi experts,
i need to copy the data of one node to the other node of the same context.
the source node is a model node ( i.e comming from <b>RFC</b> ) and the destination node is a value node which i have creted.
what i have done is.
i have read the source node using wizard
do.
elem_t_p0591 = node_t_p0591->get_element(
index = sy-index ).
IF ( elem_t_p0591 IS INITIAL ).
EXIT.
ENDIF.
elem_t_p0591->get_static_attributes(
IMPORTING
static_attributes = stru_t_p0591 ).
IF stru_t_p0591 IS NOT INITIAL.
wa_p0591 = stru_t_p0591.
APPEND wa_p0591 TO itab_p0591.
ENDIF.
ENDDO.
and then i am trying to read the destination node so the tha data i have got by above method can be binded to the destination node.
but when i am trying to get the child node it is giving me a dump saying that
<b>'Access via 'NULL' object reference not possible' </b> i understand this because when i debug my value node is becoming <b>initial</b>, and when i am trying to access the destination node using this <b>initial</b> node it will give me a dump,
but what is the work aroud for this.
Plz help.
Regards,
Santosh.Hi Santosh,
I tried replicating your behaviour in my system. This is what my context structure looks like:
Node_Test (c-> 0:n)
Name(attribute)
Node_Test2 (c-> 0:1)
Name2(attribute)
Now when i try to access Node_Test2 then it returns me (initial) i.e. no reference and i believe the reason is that my parent node, Node_Test, is of type table( because of the cardinality) so I am expected to perform an operation on my sub node, Node_Test2, based on the node i have selected, or have specified via index .. 1 is taken by default, in Node_Test.. which in WDDOINIT is initial as i havent got access to my view yet.. so instead what you can do is bind data to your parent node, relevant data ofcourse, and then bind the recieved data to your child node i.e. Node3.
I am pasting the code here for your reference :
method WDDOINIT .
DATA:
node_test TYPE REF TO if_wd_context_node,
elem_test TYPE REF TO if_wd_context_element,
stru_test TYPE wd_this->element_test ,
lt_table LIKE TABLE OF stru_test,
item_test_1 LIKE stru_test-test_1.
navigate from <CONTEXT> to <TEST> via lead selection
node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
@TODO handle not set lead selection
IF ( node_test IS INITIAL ).
ENDIF.
get element via lead selection
elem_test = node_test->get_element( ).
@TODO handle not set lead selection
IF ( elem_test IS INITIAL ).
ENDIF.
stru_test-test_1 = 'Anoop'.
APPEND stru_test to lt_table.
stru_test-test_1 = 'Avi'.
APPEND stru_test to lt_table.
stru_test-test_1 = 'Sid'.
APPEND stru_test to lt_table.
CALL METHOD node_test->bind_table
EXPORTING
new_items = lt_table
set_initial_elements = ABAP_TRUE
index =
DATA:
node_t2 TYPE REF TO if_wd_context_node,
elem_t2 TYPE REF TO if_wd_context_element,
stru_t2 TYPE wd_this->element_t2 ,
item_t2_1 LIKE stru_t2-t2_1.
navigate from <CONTEXT> to <TEST> via lead selection
node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
@TODO handle not set lead selection
IF ( node_test IS INITIAL ).
ENDIF.
<b>* navigate from <TEST> to <T2> via lead selection
node_t2 = node_test->get_child_node( name = wd_this->wdctx_t2 ).</b>
<b>* alternative navigation via index
Node_T2 = Node_Test->get_Child_Node(
Name = `T2` Index = 1 ).</b>
@TODO handle non existant child
if ( Node_T2 is initial ).
endif.
get element via lead selection
elem_t2 = node_t2->get_element( ).
get single attribute
elem_t2->get_attribute(
EXPORTING
name = `T2_1`
IMPORTING
value = item_t2_1 ).
endmethod.
I hope this helps.
Regards,
Anoop -
How to display the data in XML files into JSP using Jdeveloper.
Hi All,
I have two XML files one XML file has the view names and the other has the table names of a particular views, how to display the data in JSP using JDeveloper where when i click a particular view the list of tables of that particular view from XML file two should be displayed in JSP Page.
Are there any reference documents, regarding the above process please can anyone guide through how to do it.Let the servlet ask your business tier to provide the data, then stuff it into beans, and pack those into the Session instance. Then forward the request to the JSP, let the JSP get those beans and display them.
-
How to delete the data loaded into MySQL target table using Scripts
Hi Experts
I created a Job with a validation transformation. If the Validation was failed the data passed the validation will be loaded into Pass table and the data failed will be loaded into failed table.
My requirement was if the data was loaded into Failed database table then i have to delete the data loaded into the Passed table using Script.
But in the script i have written the code as
sql('database','delete from <tablename>');
but as it is an SQL Query execution it is rising exception for the query.
How can i delete the data loaded into MySQL Target table using scripts.
Please guide me for this error
Thanks in Advance
PrasannaKumarHi Dirk Venken
I got the Solution, the mistake i did was the query is not correct regarding MySQL.
sql('MySQL', 'truncate world.customer_salesfact_details')
error query
sql('MySQL', 'delete table world.customer_salesfact_details')
Thanks for your concern
PrasannaKumar -
How to fetch the data into one out parameter from two different queries
Hi,
I have an a problem how to implement condition in above procedure,and scenario is
i have to get the output into one out parameter from two queries.i.e if one query data is null
then i have to pick out data from another query into same out parameter.
CREATE OR REPLACE PROCEDURE GET_POLICIESMAP_BASEDON_GHPLID(I_COMPANYID IN NUMBER,
I_CARDID IN VARCHAR2,
PR_RESULTSET OUT SYS_REFCURSOR) IS
/* LOC_INSUREDID VARCHAR2(200);
LOC_RELATIONCODE VARCHAR2(200);
LOC_CURRENTPOLICYID VARCHAR2(4000);*/
BEGIN
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* HERE I NEED TO GET THE DATA FROM THIS BELOW QUERY INTO SAME OUT PARAMETER
WHEN ABOVE QUERY DATA CONTAINS NULLS */
/* IF PR_RESULTSET IS NULL THEN*/
OPEN PR_RESULTSET FOR
WITH A AS
(SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where FAMILYID IN (SELECT FAMILYID
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)
AND IP.CURRENTPOLICYID in
(SELECT ID
from policies
where companyid = I_COMPANYID
and dead = 0
AND POLICYTO > SYSDATE - 1))
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE = 0
AND (A.MAINPOLICYID is null or
RELATIONCODE = 0 AND CURRENTPOLICYID = MAINPOLICYID)
UNION
SELECT INSUREDID, RELATIONCODE, CURRENTPOLICYID
FROM A
WHERE RELATIONCODE > 0;
/* END IF;*/
END GET_POLICIESMAP_BASEDON_GHPLID;
Thanks in Advance,
vvr.SELECT DISTINCT PM.MAINPOLICYID MAINPOLICYID,
id INSUREDID,
RELATIONCODE,
CURRENTPOLICYID
from INSUREDPERSONS IP
LEFT OUTER JOIN POLICIES_RULES_MAPPING PM
ON PM.POLICYID = IP.Currentpolicyid
where EIN IN (SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)In this code
where EINEIN is a column in INSUREDPERSONS?
and in the sub query below
(SELECT EIN
FROM INSUREDPERSONS ipp
JOIN VW_INSUREDINFO vw
ON IPP.ID = vw.insuredid
and vw.cardid = I_CARDID)EIN belongs to INSUREDPERSONS or VW_INSUREDINFO?
Please use Alias as we dont know your table structure. -
How to save the data in Planning query in Analyser?
HI all,
I am new in Integrated Planning I have made a planning query and I am inputting data in the query, right clicking to excel sheet and saving it saved data into cube but if I want a save button specific to query not specific to workbook how can I make it as generic, as when I run the query in analyser the button should be displayed in the Planning query on clicking it the data gets saved to cube.
Abhijit.Hi Abhi,
Hope this will be helpful to you.
http://help.sap.com/saphelp_nw70/helpdata/en/43/a033e0f56e21b5e10000000a1553f6/frameset.htm
Thanking You,
Sappie -
How to get the data from one table and insert into another table
Hi,
We have requirement to build OA page with the data needs to be populated from one table and on save data into another table.
For the above requirement what the best way to implement in OAF.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
ThanksYou can achieve this in many different ways, one is
1. Create another VO based on the EO which is based on the dest table.
2. At save, copy the contents of the source VO into the dest VO (see copy routine in dev guide).
3. commiting the transaction will push the data into the dest table on which the dest VO is based.
I understand that if we attach VO object instance to region/page, we only can pull and put data in to only one table.
if by table you mean a DB table, then no, you can have a VO based on multiple EOs which will do DMLs accordingly.Thanks
Tapash -
REG:How to move the data from one screen to another
Hi Gurus,
My requirement is .....
in the view1 we have the communication data
with fileds pernr voice extension, and
the display button ...
when the display button is pressed we have to get the fields
pernr ,voice extension,mail, fields on the screen as pop up window for the selected pernr on the view1 , the pop up window contains a update button ,once pressed changing the field value ,it should be updated in the infotype 0105 with the same updated details
Thanks Regards
SumanHi Suman,
Try going through this [tutorial |http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm]if you have any doubts regarding sharing your context data among different views. This tutorial also explains with step-by-step snapshots about how you can pass data in between your MAIN view & a popup window.
Regards,
Uday -
I wonder how to get the data entries one week to be uploaded into BW system
HI,SDNs
Our clients requires us to get the whole data entries to be loaded into bw system fo r onw week or get the delta data number to be loaded
How to deal with it?
thanks and best regardsDear Terry,
In the InfoPackage selection, you can provide the week for which you want to load the data.
If it does not help, then could you please elaborate yoyr problem.
Best Regards,
Ankit Agrawal
P.S.: Assign points if helpful -
How to view the datas from one schema to another
Hi,
I am working in Oracle9i and solaris 5.8.
I create a new schema but no datas.
i need to read the datas from another schema having datas through the newly created schema.
pls explain me with queryOK use following procedure to grant select access on all tables of another schema.
CREATE OR REPLACE PROCEDURE GRANT_SELECT AS
CURSOR ut_cur IS
SELECT table_name
FROM user_tables;
RetVal NUMBER;
sCursor INT;
sqlstr VARCHAR2(250);
BEGIN
FOR ut_rec IN user_tabs_cur;
LOOP
sqlstr := 'GRANT SELECT ON '|| ut_rec.table_name
|| ' TO jwc7675';
sCursor := dbms_sql.open_cursor;
dbms_sql.parse(sCursor,sqlstr, dbms_sql.native);
RetVal := dbms_sql.execute(sCursor);
dbms_sql.close_cursor(sCursor);
END LOOP;
END grant_select;
Regards,
Sandy
Maybe you are looking for
-
How do I match a clip to sequence settings and sequence presets?
I'm getting the warning: Attention - This clip does not match this sequence's settings or any or our sequence presets. I'm trying to figure out how to set things up in Compressor so that my clips do match my sequence settings and presets. The issue s
-
can you stream music from a cd over the airport express from itunes without ripping tracks into a playlist
-
Where are my apps for my iPad?
Admittedly it has been quite awhile since I synched my iPad and iPod but I updated my iMac. Now iTunes no longer will update my iOS devices. It does not show any of my apps or other items to update. It does show that my iPad is connected and needs to
-
Can not seem to get iTunes v 7.0.2 to playback properly
Have latest version of iTunes. System is clean and tuned up. Since v 7.0 I have not been able to watch a downloaded iTunes TV show without video skipping, audio sputtering. Some older iTunes downloads seem to play fine, but for the most part most TV
-
Pattern Selection on 0Project or WBS Element
Hi Collegues, I'm facing a BEx handling issue. My users for Project System Reporting need a possibility to select on 0Project (or 0Project_ex) by pattern. Example: 0PROJECT: I.TEST.10012.1000 Variable input: I.TEST* So that all values are shown start