Create a report from query
Hi,
I've just built a query using the $[user] internal SAP parameter, to retrieve the UserID doing the request and to manage different results.
Everything works fine since we use the query interactively.
I've also built a report (PLD) related to this query.
With great surprise I've found that the $[user] parameter doesn't work on PLD. In fact I throw a "system internal error" launching the report.
If I discard the statement using the $[user], everything works.
Any suggestion?
SBO2007A PL09
Antonio
Hi
The QPLD (Query Print Layout Designer) may present issue if you remove a original field from the query that was based the Layout.
Even some fields added manually (depending on each case) may not work or not.
In this case what I can recommend is get the query and create a new QPLD (removing the
$user
) in order to avoid the error.
That is the way to fix it.
Paulo Calado
SAP Business One Forums Team
Similar Messages
-
How to create a Report from WebDympro
Hi All,
I just want to know how I can create a report from WebDynpro? I need to pull data from R/3 using a RFC function module, but I don't know if it exists a software to create reports.
Thanks in advance
Alexis RamirezHi Rich,
Even i had a similar kind of problem. I wanted to fetch data from BI through the XMLA Connector which are created in Query Designer and then i wanted to fetch these fields and rearrange them and put it in a report format by colouring certain fields. Can the same can be done in WebDynpro. -
How can I create a Report from a SWT-Application?
Post Author: mkoch
CA Forum: JAVA
I'm a Developer and new to Crystal Reports and I have the job to create a Report from a SWT-Application.The report-files ( *.rpt) were created with Crystal Reports 10 or 11.> I'm not sure but I have access to a machine where Crystal Reports 10 Developer an Crystal Reports 11 Runtime are installed.Can anybody describe in detail how I can start the creation of a report from my Java-Application?> What libraries are needed, where can I get them and so on.I saw in the CR10-Setup that there is a Java-feature - but unfortunately this is not installed on my test-machine.--> Is it necessary to install this feature or can I get this files on businessobjects.com?Is it possible to start the report-creation from command-line?I saw a Java-example on the internet which uses Report.exe - but I haven't found this on my machine.I hope, that somebody can help me.GreetingsMarkusInv. #
Item
Sale Price
Lisa
Oct Sold 12
Oct Sold 12-2
Oct Sold 12-3
149
Vase Lidded
25
201
Bird
7
7
202
Bird
7
203
Bird
7
204
Bird
7
7
205
Bird
7
7
206
Bird
7
7
207
Bird
7
207
Bird
7
7
208
Bird
7
7
209
Bird
7
7
This is my very simple inventory. On previous program I could sort by those items that did not have any figure in the row across. Then I could print a report of open inventory. Such as 149 Lidded Vase has not sales amount in the four colums across, thus it is open inventory. How can I capture all those items in one report? -
I'm trying to create a report from an Excel spreadsheet and am having some issues with how Crystal is reading in the data. I have 7 fields that are all the same, I want them to be Numeric fields. However, when I import the Excel sheet as the data source, 4/7 of the fields import as string fields into Crystal. At first I didn't think this would be an issue, but some of the fields, and it doesn't seem to be consistently the "string" only or the "numeric" only fields, do not seem to be printing to the report at all - the space where they should be ends up blank. I have gone back to the Excel sheet several times to change the cell format to Numeric, but that has not helped. I also tried changing the format in Crystal, using ToNumeric(fieldname) or ToText(fieldname), and neither of those functions seem to work either.
Has anyone had this issue before or know how to fix it?Hi Jeremy,
Which Crystal Report version are you using?
Have you applied any service pack for Crystal Reports?
Which Operating system are you using?
Is the issue is with all the report or single report?
For testing purpose:
-Create new excell sheet with two columns one is numeric and other one string.
-Create report using thie excell sheet.
-Preview report and export.
-Now print report
Are you getting same results?
Have you tried to print other document through that printer is it working properly.
Regards,
Shweta -
Creating a new connection when creating a report from scratch
I've searched all around but I haven't managed to find any samples or forum posts that show how to create a connection when creating a report from scratch via RCAPI. All of the code that I've found has been aimed at replacing the ConnectionInfo for an existing connection. I figured that it would work something like this:
m_crystalReport.setReportAppServer(ReportClientDocument.inprocConnectionString);
m_crystalReport.newDocument();
IConnectionInfo ci = new ConnectionInfo();
PropertyBag propertyBag = new PropertyBag();
propertyBag.put("Use JDBC", true);
propertyBag.put("Connection URL", "jdbc:jtds:sqlserver://localhost:1433;databaseName=" + DB_NAME);
propertyBag.put("Database Class Name", "net.sourceforge.jtds.jdbc.Driver");
propertyBag.put("Database DLL", "crdb_jdbc.dll");
ci.setAttributes(propertyBag);
m_connection = new Connection();
m_connection.setConnectionInfo(ci);
m_connection.open();
but this produces a NullPointerException within Connection.open(). If I leave the connection closed but add it to the report via DatabaseController.addConnection() then I just get the exception later on when I try to add tables using the connection.
Can anyone give me any pointers please?
Thanks,
Rich.Just in case anyone else runs into this, I managed to fix it by leaving the connection closed and then using the connection info instead of the connection when creating tables, eg:
ITable t = new Table();
t.setAlias(v.getAlias());
t.setName(v.getView().getName());
t.setConnectionInfo(m_connectionInfo);
getDatabaseController().addTable(t, null); -
Create a report from scratch, add Table and Datasource Problem
Hi,
I'm using the latest Crystal Reports Runtime supplied for eclipse.
I want to create a report from scratch, add a Table and then add a ArrayList of Pojos as the Datasource.
But unfortunately depending on the ConnectionInfo I supply to the Table I get different errors.
I looked through the samples and see that I have to supply properties
like
"Database DLL", "crdb_javabeans.dll" and ConnectionInfo.setUserName("");
ConnectionInfo.setPassword(null)
I looked through the forums and find different set of properties.
Actually because I am just working with Pojos I would have thougth that something like the following
would be sufficient:
ReportClientDocument doc = new ReportClientDocument();
doc.setReportAppServer(ReportClientDocument.inprocConnectionString);
doc.newDocument();
Table table = new Table();
table.setAlias("reportTable");
table.setName("reportTable");
doc.getDatabaseController().addTable(oTable, null);
doc.getDatabaseController().setDataSource(myCoolection, myClass, "reportTable", "reportTable");
So could someone tell me the right/minimum Set of Properties to make a Table get connected to Pojos?
Edited by: jack mann on Aug 31, 2010 3:25 PMWith XI Release 2, you can come quite close to creating from scratch:
http://technicalsupport.businessobjects.com/KanisaSupportSite
/search.do?cmd=displayKC&docType=kc&externalId=5074668
You need Service Pack 2:
http://support.businessobjects.com/downloads
/service_packs/crystal_reports_en.asp
Sincerely,
Ted Ueda -
Problems in create graphical report from Oracle FSG xml output using BIP
We are trying to create graphical reports from Oracle Financial Statement Generator (FSG) xml output. I personally have extensive exposure working with XML (BI) Publisher but until recently I have never tried to use the BIP charting wizard to create graphical reports from FSG xml output out of EBS 11i/R12.
I created an SR with Oracle but they had to create an enhancement request for this issue. Does anyone know or have any idea on how we can accomplish this. The charting wizard pops up but the xml tags available do not make any sense.
If anybody has any idea please send me an email at [email protected]
Thanks,
LeoTry some thing like following
http://oraclebizint.wordpress.com/2008/03/10/oracle-bi-ee-101332-sending-reports-to-non-obi-users-delivery-manager-api-of-bi-publisher/ -
Creating multiple reports from one query
Hello Everyone
I are designing crystal reports where 1 query is built for 1 report / 1 sub-report. To improve overall efficiency of reports, I am trying to design multiple reports/ subreports from the same query. All the sub-reports belong to the parent report and they are very similar to each other.
For example: in Webintelligence, we can just create 1 data provider and pull multiple reports from it and display it in multiple tabs.
Can we do the same thing in Crystal reports??
Please advice.
Thanks
Edited by: Devesh Modi on Jun 9, 2010 11:19 PMHello,
If you are using WEBI then you have access to BOE. Create a Universe and publish it to the Repository and then you can use it as your data source.
But I think what you are asking is how to query the DB once? Not possible, each subreport will run the query each time it's viewed.
What you may want to do is create a Stored Procedure and get all of you info into one data collection and not use subreports, use grouping to emulate subreports. As an Example ....
You may want to create a case in Service Market Place since you have BOE and work with a Report Design Rep to help you work out the best solution for you.
Thank you
Don -
Error while executing report from Query designer
Hi All,
When I am executing from query designer, I am getting following error.
Even I can't execute it from another portal where i created source system of BI server.
But i can execute queriew from Query analyser and t-code RSRT.
When I execute from Query desinger the url is as follows.
http://XXX:00/irj/servlet/prt/portal/prtroot/pcd!3aportalcontent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=0PA_C01_Q0201&VARIABLE_SCREEN=X&DUMMY=5_
And the error is:
500 Internal Server Error
BEx Web Application
Failed to process request; contact your system administrator
Information for Administrator
To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
3. When opening any customer message on this issue, please attach:
Support Desktop Tool support info ZIP file according to note 937697,*
Required information for reproduction according to note 948490.*
Error Summary
Exception occured while processing the current request; this exception cannot be handled by the application or framework
If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
Root Cause
The initial exception that caused the request to fail was:
java.lang.NullPointerException
java.lang.NullPointerException
at com.sap.ip.bi.webapplications.runtime.service.metadata.impl.MetadataAccess.getMetadataModel(MetadataAccess.java:139)
at com.sap.ip.bi.webapplications.runtime.impl.Page.getMetadataModel(Page.java:8953)
at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4963)
at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:4473)
at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3316)
Details: Full Exception Chain
System Environment
Server
BI Java Release: 7 - Patch level: 0000000100 - Description: BI Web Applications Java - Additional info: - Production mode: true
BI ABAP unknown
Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_24-b04
Operating System SunOS - amd64 - 5.10
REgards
MohanHi mohan ,
You can check these OSS notes for the issue .
1. 795699 - Customizing default error messages for HTTP
2. 807000 - Http requests are not fully read after timeout
3. 804124 - HTTP communication with XI Adapter Engine fails
Regards,
Lokesh -
Can we create a report directly from ECC (R/3) instead of BW Cude or BW Query using WebI or Crystal Reports??
Thanks for the response.
So, to build report directly from ECC (R/3 Tables), Crystal Report is the solution?? you mentioned about InfoSet also, Is there any steps to create a report using InfoSet??
Regards,
Raju -
Create dynamic report or query for piece count
Hi abaper's
This is a very straight forward requirement. so please give me code
First you have to get the corresponding plant from table T320 for the given warehouse numbers in the selection screen.
1. Get the sum of order qty of sales orders from the sales order tables for the given warehouse(Plant), distribution channel and the give date range.
2. Get the confirmed transfer orders qty from the TO master table where TO confirmation date is in the given date range and WH number.
3. Get the total PGIed qty from the delivery master table where PGI'ed date in the given date range, shipping point is in the corresponding plant of the WH and for the given distribution channel.
As you are going to use the major tables please try to write the select commands effectively to avoid further performance issues.How to improve the performance fo this code.....this very urgent.
& Issue Number : 22199 &
& Programmer : Anjaneyulu.Pabba &
& Transport Number : D01K962471 &
& Date of Creation : 19/03/2008 &
& Description : Dynamic report or query for piece count &
& Requested By : Parvati.Polisetty &
REPORT ZR_SD_PIECE_COUNT_ALV no standard page heading
line-size 255
line-count 65.
TABLES DECLARATION
*TABLES: T320, "Assignment IM Storage Location to WM Warehouse Number
VBAK, "Sales Document: Header Data
VBAP, "Sales Document: Item Data
TVKOV, "Org. Unit: Distribution Channels per Sales Organization
LTAK, "WM transfer order header
LTAP, "Transfer order item
LIKP, "SD Document: Delivery Header Data
LIPS. "SD document: Delivery: Item data
TYPE-POOLS DECLARATION
TYPE-POOLS: SLIS .
Internal Table Declaration
DATA : BEGIN OF TY_T320,
WERKS TYPE WERKS_D,
LGNUM TYPE LGNUM,
END OF TY_T320.
DATA : BEGIN OF TY_VBAK,
VBELN TYPE VBELN_VA,
VTWEG TYPE VTWEG,
WERKS TYPE WERKS_D,
KWMENG TYPE KWMENG,
VSTEL TYPE VSTEL,
END OF TY_VBAK.
DATA : BEGIN OF TY_LTAK,
LGNUM TYPE LGNUM,
TANUM TYPE TANUM,
VISTA TYPE LTAP_VISTA,
END OF TY_LTAK.
DATA : BEGIN OF TY_LIKP,
VBELN TYPE VBELN_VL,
WERKS TYPE WERKS_D,
LFIMG TYPE LFIMG,
END OF TY_LIKP.
DATA : BEGIN OF TY_ITAB ,
LGNUM TYPE LGNUM, "Warehouse Number / Warehouse Complex
WERKS TYPE WERKS_D, "Plant
VBELN TYPE VBELN_VA, "Sales Document
VTWEG TYPE VTWEG, "Distribution Channel
KWMENG TYPE KWMENG, "Cumulative order quantity in sales units
TANUM TYPE TANUM , "Transfer Order Number
VISTA TYPE LTAP_VISTA, "Source actual quantity in alternative
unit of measure
LFIMG TYPE LFIMG, "Actual quantity delivered (in sales units)
END OF TY_ITAB .
DATA: T_T320 LIKE STANDARD TABLE OF TY_T320 INITIAL SIZE 0 WITH HEADER
LINE,
T_VBAK LIKE STANDARD TABLE OF TY_VBAK INITIAL SIZE 0 .
DATA: T_LTAK LIKE STANDARD TABLE OF TY_LTAK INITIAL SIZE 0 WITH HEADER
LINE.
DATA :T_LIKP LIKE STANDARD TABLE OF TY_LIKP INITIAL SIZE 0 WITH HEADER
LINE.
DATA:T_ITAB LIKE STANDARD TABLE OF TY_ITAB INITIAL SIZE 0 WITH HEADER
LINE .
*& Fieldcatalog Declaration
DATA : T_FCAT TYPE SLIS_T_FIELDCAT_ALV,
W_FCAT TYPE SLIS_FIELDCAT_ALV.
DATA : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
********Global Data Declaration***
DATA :G_REPID LIKE SY-REPID,
G_EXIT(1) TYPE C,
GX_VARIANT LIKE DISVARIANT,
X_SAVE, "for Parameter I_SAVE
GS_VARIANT TYPE DISVARIANT. "for parameter IS_VARIANT
data: g_lgnum type t320-lgnum,
g_vtweg type vbak-vtweg,
g_erdat type vbak-erdat.
*& Selection-Screen
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS : S_LGNUM FOR g_lgnum, "Warehouse Number
S_VTWEG FOR g_vtweg, "Distribution Channel
S_ERDAT FOR g_erdat ."Date on which the record was
**********"created
SELECTION-SCREEN END OF BLOCK B1 .
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
PARAMETER: P_VARI LIKE DISVARIANT-VARIANT. "Layout
SELECTION-SCREEN END OF BLOCK B2.
*& INITIALIZATION EVENT
INITIALIZATION.
CLEAR GS_VARIANT.
'gs_variant' must at least contain the report-id to allow
saving a variant.
G_REPID = SY-REPID.
§ 2.At least field REPORT of this structure has to be filled!
GS_VARIANT-REPORT = G_REPID.
§ 3.Determine saving options.
X_SAVE = 'A'. "The user may save all types of variants
*******Validating selection-screen values**********************
getting F4 value for display variant field
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
PERFORM F4_FOR_VARIANT.
****validation of F4 value of display variant
AT SELECTION-SCREEN.
PERFORM PAI_OF_SELECTION_SCREEN.
*& Start-Of-Selection
START-OF-SELECTION.
*****Subroutine to select Plant from T320
PERFORM FIND_PLANT .
*****Subroutine to select Order Quantity from VBAP
PERFORM ORDER_QUANTITY .
*****Subroutine to select Transfer Order Quantity from LTAK and LTAP
PERFORM TRANSFER_ORDER_QUANTITY.
*****Subroutine to select TDelivery Quantity from LIKP and LIPS
PERFORM DELIVERY_QUANTITY.
*& End-Of-Selection
END-OF-SELECTION.
*****Subroutine for Fieldcatalog
PERFORM FIELDCATALOG .
*****Subroutine for Final Output
PERFORM DISPLAY_OUTPUT .
*& Subroutine Implementaion
*& Form FIND_PLANT
text
--> p1 text
<-- p2 text
FORM FIND_PLANT .
SELECT WERKS
LGNUM
FROM T320
INTO TABLE T_T320
WHERE LGNUM IN S_LGNUM.
ENDFORM. " FIND_PLANT
*& Form order_quantity
text
--> p1 text
<-- p2 text
FORM ORDER_QUANTITY .
SELECT VK~VBELN
VK~VTWEG
VP~WERKS
VP~KWMENG
VP~VSTEL
INTO TABLE T_VBAK FROM VBAK AS VK
INNER JOIN VBAP AS VP
ON VKVBELN = VPVBELN
FOR ALL ENTRIES IN T_T320
WHERE VK~VTWEG IN S_VTWEG
AND VK~ERDAT IN S_ERDAT
AND VP~WERKS = T_T320-WERKS.
ENDFORM. " order_quantity
*& Form Transfer_order_quantity
text
--> p1 text
<-- p2 text
FORM TRANSFER_ORDER_QUANTITY .
SELECT LK~LGNUM
LK~TANUM
LP~VISTA
INTO TABLE T_LTAK FROM LTAK AS LK
INNER JOIN LTAP AS LP
ON LKLGNUM = LPLGNUM
WHERE LK~KQUIT = 'X'
AND LK~BDATU IN S_ERDAT
AND LK~LGNUM IN S_LGNUM.
ENDFORM. " Transfer_order_quantity
*& Form Delivery_QUANTITY
text
--> p1 text
<-- p2 text
FORM DELIVERY_QUANTITY .
SELECT VBELN WERKS LFIMG FROM LIPS
INTO TABLE T_LIKP
FOR ALL ENTRIES IN T_T320
WHERE WERKS = T_T320-WERKS
AND ERDAT IN S_ERDAT
AND VTWEG IN S_VTWEG.
ENDFORM. " Delivery_QUANTITY
*& Form fieldcatalog
text
--> p1 text
<-- p2 text
FORM FIELDCATALOG .
W_FCAT-COL_POS = '1' .
W_FCAT-FIELDNAME = 'LGNUM' .
W_FCAT-REF_TABNAME = 'T320'.
W_FCAT-REF_FIELDNAME = 'LGNUM' .
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '2' .
W_FCAT-FIELDNAME = 'VTWEG' .
W_FCAT-REF_TABNAME = 'VBAK'.
W_FCAT-REF_FIELDNAME = 'VTWEG' .
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '3' .
W_FCAT-FIELDNAME = 'KWMENG' .
W_FCAT-REF_TABNAME = 'VBAP'.
W_FCAT-REF_FIELDNAME = 'KWMENG' .
*w_fcat-seltext_m = '# of Orders'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '4' .
W_FCAT-FIELDNAME = 'VISTA' .
W_FCAT-REF_TABNAME = 'LTAP'.
W_FCAT-REF_FIELDNAME = 'VISTA' .
*w_fcat-seltext_m = '# of Pcs Picked'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '5' .
W_FCAT-FIELDNAME = 'LFIMG' .
W_FCAT-REF_TABNAME = 'LIPS'.
W_FCAT-REF_FIELDNAME = 'LFIMG' .
*w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '6' .
W_FCAT-FIELDNAME = 'TANUM' .
W_FCAT-REF_TABNAME = 'LTAK'.
W_FCAT-REF_FIELDNAME = 'TANUM' .
**w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = '7' .
W_FCAT-FIELDNAME = 'WERKS' .
W_FCAT-REF_TABNAME = 'T320'.
W_FCAT-REF_FIELDNAME = 'WERKS' .
**w_fcat-seltext_m = '# of Pcs Shipped'.
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
ENDFORM. " fieldcatalog
*& Form display_output
text
--> p1 text
<-- p2 text
FORM DISPLAY_OUTPUT .
LOOP AT T_T320 INTO TY_T320.
TY_ITAB-WERKS = TY_T320-WERKS.
TY_ITAB-LGNUM = TY_T320-LGNUM.
READ TABLE T_VBAK INTO TY_VBAK WITH KEY WERKS = TY_T320-WERKS.
IF SY-SUBRC = 0.
TY_ITAB-VBELN = TY_VBAK-VBELN.
TY_ITAB-VTWEG = TY_VBAK-VTWEG.
TY_ITAB-KWMENG = TY_VBAK-KWMENG + ty_itab-kwmeng.
ENDIF.
READ TABLE T_LTAK INTO TY_LTAK WITH KEY LGNUM = TY_T320-LGNUM.
IF SY-SUBRC = 0.
TY_ITAB-TANUM = TY_LTAK-TANUM.
TY_ITAB-VISTA = TY_LTAK-VISTA + ty_itab-vista.
ENDIF.
READ TABLE T_LIKP INTO TY_LIKP WITH KEY WERKS = TY_T320-WERKS.
IF SY-SUBRC = 0.
TY_ITAB-LFIMG = TY_LIKP-LFIMG + ty_itab-lfimg.
ENDIF.
APPEND TY_ITAB TO T_ITAB.
ENDLOOP.
Function Module for Displaying Final Output ********
W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-CPROG
IS_LAYOUT = W_LAYOUT
IT_FIELDCAT = T_FCAT[]
TABLES
T_OUTTAB = T_ITAB.
ENDFORM. " display_output
*& Form f4_for_variant
text
--> p1 text
<-- p2 text
FORM F4_FOR_VARIANT .
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
IS_VARIANT = GS_VARIANT
I_SAVE = X_SAVE
IMPORTING
E_EXIT = G_EXIT
ES_VARIANT = GX_VARIANT
EXCEPTIONS
NOT_FOUND = 2.
IF SY-SUBRC = 2.
MESSAGE ID SY-MSGID TYPE 'S' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
IF G_EXIT = SPACE.
P_VARI = GX_VARIANT-VARIANT.
ENDIF.
ENDIF.
ENDFORM. " f4_for_variant
*& Form pai_of_selection_screen
text
--> p1 text
<-- p2 text
FORM PAI_OF_SELECTION_SCREEN .
IF NOT P_VARI IS INITIAL.
MOVE GS_VARIANT TO GX_VARIANT.
MOVE P_VARI TO GX_VARIANT-VARIANT.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
EXPORTING
I_SAVE = X_SAVE
CHANGING
CS_VARIANT = GX_VARIANT.
GS_VARIANT = GX_VARIANT.
ELSE.
PERFORM VARIANT_INIT.
ENDIF.
ENDFORM. " pai_of_selection_screen
*& Form variant_init
text
--> p1 text
<-- p2 text
FORM VARIANT_INIT .
CLEAR GS_VARIANT.
GS_VARIANT-REPORT = G_REPID.
ENDFORM. " variant_init -
Creating Portal Reports from Collab rooms
Curious to know if the following is possible...and if so, how it would be accomplished...
can a threaded discussion within a portal collaboration room can be combined with other SAP information (i.e. inventory data) to create a report....
Thanks in advance,
GeoffYou can do save the views in the Bex Analyzer. Like hwne you execute a query, then lets say you filter and add a drilldown, you can save this as a View from the Save button (View Global). Later views can be opened up in the Open button a sOpen > Saved Views. These views can be used as data providers in a web template.
Another idea...I am not sure if this works, but when you publish to the web you get a URL that has the "Query=..." at the end. You can try putting in your view technical name here and see if it works.
Hope this helps... -
How to create APEX report from data in PLSQL table
Hi, I have a procedure that is creating/inserting records into multidimensional pslql table. I want to create a report and graph based on the data stored in plsql table. Can someone please advice how to can I select this data in apex OR point me to any sample code?
Thanks
AaliHi,
try to google something about ORACLE TABLE CAST
SELECT ot.yourcolumn
FROM
TABLE(CAST(yourplsqltablevariable AS userdefinedoracletype)) otE.g.
http://it.toolbox.com/blogs/oracle-guide/using-a-plsql-table-in-sql-11013
Regards,
R. -
BO v5.1 - creating a report from an oracle stored procedure
Post Author: newrochelle
CA Forum: Publishing
hi to all,
im using BO 5.1 and i need to create a document from an oracle stored procedure that have only one IN parameter and ten OUT parameters.
Creating the new report I selected the database connection then I choose the stored procedure name from the list, I inserted the value for the IN parameter and finally I click on Run button.
I got the following error message:
ORA-06550: line 1, column 38: :PLS-00103: Encountered the symbol
"," when expecting one of the following: : : ( - + case mod
new not null others <an identifier> : <a double-quoted
delimited-identifier> <a bind variable> avg : count current
exists max min prior sql stddev sum variance : execute forall
merge time timestamp interval date : <a string literal with
character set specification> : <a number> <a single-quoted SQL
string> pipe : <an alternatively-quoted string literal with
character set specification> : <an alternatively-q :-6550
it seems to be caused by the OUT parameters!
i leaved them without any value.
it's the first time that I used a stored procedure to create a BO report, but I think the OUT parameters are needed to do that, otherwise what data will be presented in the report???
can you help me?
please answear me ASAP.
Thank's in advance
Regards
AndreaPost Author: synapsevampire
CA Forum: Publishing
Try posting in a BO forum, this is Crystal Reports.
-k -
Creating a report from Microsoft AD LDS
I'm trying to create a report (a list of users basically) from a Microsoft AD LDS on Windows 2008. The solution c2016008 describes a way to connect to a AD source using NT authentication, which isn't an viable option in this case. I figure I could use the JNDI-interface to connect and I added <JNDIConnectionFactory>com.sun.jndi.ldap.LdapCtxFactory</JNDIConnectionFactory> to CRConfig.xml (as it is the same class our Java application uses succesfully to read data from the source server).
I the connection window I give details as
JNDI Provider URL ldap://hostname:389/
JNDI username CN=amd,OU=User_Accounts,O=Something,C=Else
JNDI password (the user account's password)
Initial context /
I cannot make the connection to the service even with the designer for the first time to do anything. If my username and password are correct after pressing the next-button I get the Data Source Name: -dialogue box, but there isn't anything to choose there. If I press then "Finish" I gen an error message "Details: Invalid connection". What configurations am I missing? I didn't manage to find any other directions to make such on report except the one mentioned in the solution c2016008. The environment is CR 2008.Depending on the version of CR runtime it may not be possible.
Only version that now support the DB driver for JNDI connections is crdb_xml.dll. This driver is not shipped with ANY version of CR Basic included with Visual Studio.
However we do now provide a download and manual configuration for Crystal Reports Developer for Visual Studio ( 2010/2012). This would/should allow you to connect to a JNDI data source.
You can get the installer for CR for VS from the Overview tab as well as the package to install the XML driver required.
Don
Maybe you are looking for
-
When I click the star to bookmark a site it goes into the recently bookmarked area of the library. I then drag or cut or copy and past it into a folder I already have in the bookmark library, but it doesn't disappear from the recently bookmarked. If
-
Hi, How to bring the error msg if the purchase order value exceed than the valuation price of Purchase requistion Thanks in Advance Regards, Renuga.A
-
Open file/browse-file dialog window size too small
It seems like the size of the "Open file" and "Browse file"-dialog windows have become too small to use efficiently. I'm not sure if this is related to the latest updates from testing, but it wasn't like this before. I have to resize the dialog windo
-
Hello, One week ago, my white Intel iMac has begun to be really slow, always getting the spinning wheel. I ran Onyx maintenance scripts, defragmented, and finally formated and reinstalled my whole system. However, it did not solved the problem, but i
-
Smart Collections Not-so-smart?
I have recently started using smart collections to gather various pictures I have taken of works of art. I have mutliple shots of the same art works, and I want to see all the shots at once in order to delete some and edit others. There are several