Adding field GAMNG ( Target Quantity )in the Data Source 2LIS_04_P_ARBPL
We are adding field GAMNG ( Target Quantity ) in the Data Source 2LIS_04_P_ARBPL ( Work Center View from PP/PP-PI )
The field GAMNG is available in the communication structure maintainace.
The problem is- We are not able to drag & drap field GAMNG from the Communication structure LBWE. Getting the error - End phase 002 ***********************************************************
Message no. D0322 ..
We deleted Setup table , Meins field already exist in comm str.
1. How we able to drag the field from the communication structure as getting the above error. We searched SDN & try to follow that method but not working.
2. We can add the field in SE11 - Structure -Manually, then we have to write ABAP code.
Kindly suggest correct answer.
Edited by: sk kamaruzzaman on Dec 20, 2011 2:08 PM
Hi,
There could be a number of reasons why you are getting the error:
1. Fields are not assigned to datatypes.
- Check structure in SE11 and assign to datatypes.
2. There are inactive appends in the extract structure.
- Double-click one of the includes. You will get a new screen with the INCLUDE structure. Click the button append-structure. Check if the append is inactive.
3. The appended structure is in a different development class from the one of the structure it is being appended to.
Please review and apply the following notes carefully :
766603 Activation problems with extract structures
623411 LBWE: Gener. terminates with D0 322 (end phase 002)
757923 LBWE: Generation terminates with D0 322 (end phase
600708 D0 322: End phase 002
It is not possible to enhance the datasource 2lis_04_MATNR with the field GAMNG (so its possible that its the same for 2LIS_04_P_ARBPL) because GAMNG has the reference field AMEIN, which has a STATE F (forbidden) in table TMCEXCFS .
Check to see if this is the same on your system.
Rgds,
Colum
Similar Messages
-
Newly added field in the data Source not getting populated
Hello All,
We have added few fields in the Data Source. The Data Source is based on the InfoSet. We have included the field in the Infoset and have updated the code to fetch the value for the newly added fields.
When we perform the test extraction for this Data Source in RSA3, the newly added fields are not getting populdated with the value. In the system generated query's selection list, the newly added fields are not selected.
Please let mw know how to get the newly added field selected in the system generated query of the infoset.
Regards,
-PurnimaHi,
As you said you have added the filed in Info Set. Have you included the same in data source? try if not.
If you are trying to create a query in source system to check the data. I guess in R/3 (ECC) then you have to include the new field in slection critera (ther is an option available on top menu).
I would suggest before creating any query go to RSO2 select the data source. Display the field structure and check if the filed is there or not. You maysee Infoset level data directly by data display from top menu. Try that optionas well to check.
I hope it will help.
THanks,
S -
Fields missing while creating the data source
Hi All
I am using a third party system to pull data in to BI...Actually there was one table where from the other end they had added 2 fields recently...when i checked in development i was able to create the data source for the table along with the new fields..but when i check it in production those newly added 2 fields are missing .. though i am able to see the old fields in the data source the newly added fields are missing..so is there any problem with the refreshment of the table or should we reastart the connection?
Can any one please let me know a solution for this...
Regards
ShilpaHI,
Are you having connectivity like this
BI Dev
BI QA ---> All Three connected to same 3 rd party system
BI Prod
If yes, If it is R3 replicate datasource will help.
Incase of third party system you need to regenerate the datasource.
if it is DB Connect try to go to the source system and connect to database table from BI side and at the top you will have
generate datasource. use that option you will be able to solve.
Else
BI Dev - 3rd party dev
BI prod - 3rd party prod
Try to add 2 new fields in the 3rd party system and generate the datasource as told above.
Thanks
Arun
Edited by: Arunkumar Ramasamy on Sep 14, 2009 9:12 AM -
How to validate the field when i am populating the data cursor to block
Hi,
I am populating data cursor to multi record block.
Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
If user enter negative values and decimal points in quantity filed i need to display message to user item level.
Please do the needful how to do it.902434 wrote:
Hi,
I am populating data cursor to multi record block.
Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
If user enter negative values and decimal points in quantity filed i need to display message to user item level.
Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
If :quentity <0 then
message('do not enter negative value');
message('do not enter negative value');
raise form_trigger_failure;
end if;Why u open same thread again ? not closing one.. check this one
</a>
How to validate the field when i am populating the data cursor to block
Hopes this helps
If someone's response is helpful or correct, please mark it accordingly. -
Fields Missing in the data source
Hello Friends ,
I have to Append structures in my data source , and there are few fields under each append , the fields existing in Dev are missing in QA under one of Append strcuture's in QA. I see the fields when I double click the extract str but dont get to see them in the data source in QA, has anyone had this earlier ?
Need yHi,
Go to transaction RSA6 -> datasource. You will see number of fields ( standard and appended). Check missing field there and checkbox in HIDE column against it. If box is checked it wont be shown in the datasource. It will hide the field in the datasource.
Hope this helps.
Regards,
Viren -
We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values) at
System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65 w3wp.exe (0x1240) 0x1300 SharePoint Foundation
Runtime tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) at System.Web.UI.DataSourceView.Insert(IDictionary
values, DataSourceViewOperationCallback callback) at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)
at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
06/19/2014 16:49:37.65* w3wp.exe (0x1240) 0x1300 SharePoint Foundation
Runtime tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
<SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
instead of only "Daughter".
Please provide the solution to get rid of this issue.
Thanks
RamasubbuTry below:
http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
'i' and I was working with an Edit Form. Changing it to
'u' as it was with every other FormField fixed the issue.
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
/>
Explanation:
DataBind operation type parameters (the first parameter) are listed below:
'i' stands for INSERT,
'u' stands for UPDATE,
'd' stands for DELETE.
http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
If this helped you resolve your issue, please mark it Answered -
Hi There,
In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
Below is an example:
Basic data source with just one currency reference field EBAN-WAERS.
When you run the Ad-Hoc Query you receive data.
Basic data source with second currency reference field EKKO-WAERS.
When you run the Ad-Hoc Query no data is found.
Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
Thanking you in advance.
Regards
Gary KhanHi
following are the error messages from dump
hrtText
There is already a line with the same key.
hat happened?
Error in ABAP application program.
The current ABAP program "SAPLCKMS" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
rror analysis
You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
which you declared
with a UNIQUE KEY. However, there was already an entry with the
same key.
This may have been in an INSERT or MOVE statement, or within a
SELECT ... INTO statement.
In particular, you cannot insert more than one initial line into a
table with a unique key using the INSERT INITIAL LINE... statement.
rigger Location of Runtime Error
Program SAPLCKMS
Include LCKMSF01
Row 226
Module type (FORM)
Module Name DYNAMIC_PERIOD_CLOSING
Source code where dump ocured
222
223 APPEND ht_ckmlpp TO t_add_ckmlpp.
224 APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
225 INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
>>>> INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
227 ENDWHILE.
Also I guess there is problem with material ledger in R/3 side
I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
Thanks
Navneet -
Vertical Elasticity on Field is not working when the data contains - in it.
Hi,
I have a report which has to print a large invoice number(around 30 characters) per invoice line, but I got only space for 12-14 characters, so I have set the vertical elasticity property of the field to Expand which makes the data to wrap to the next line.
But if the data contains any '-' character in it, the data wraps to the next line even though there is enough space on the current line.
Sample outputs:
When the vertical elasticity is set to Expand
<p>
Invoice Number Invoice Description
123456789023 First Invoice on first line
345678957694
347634763476
12345678- Second Invoice but the number gets wrapped because of the hyphen
345734573476
569456573456
When the vertical elasticity is set to Fixed
Invoice Number Invoice Description
123456789023 First Invoice on first line
12345678-345 Second Invoice but the number does not get wrapped after hyphen
</p>
Is it a bug on reports editor, how do I avoid this?
I would like to see the output like the following,
Invoice Number Invoice Description
123456789023 First Invoice on first line
345678957694
347634763476
12345678-345 Second Invoice number with correct format.
734573476569
456573456
PS: The version of the Report Builder is 10.1.2.0.2
Thanks in Advance,
SenthilIt looks as if the logic that Oracle Reports uses to determine where to break the line is interpreting the "-" character differently from other characters. This is probably because it is used (at least in English) to break words at the end of a line (see http://en.wikipedia.org/wiki/Hyphen#Justification_and_line-wrapping).
One workaround might be to replace "-" character with another character (or more) that looks the same (or similar), but that Oracle Reports does not interpret differently from other characters. For me (on Windows), CHR(173) seems to work. However, whether or not it works for you will depend on whatever character set(s) you're using. The same goes for the Unicode characters like U+2010 (hyphen), U+2011 (non-breaking hyphen), and U+2212 (minus).
For example, in your data model, you might try replacing your current invoice number column with an expression that looks something like this:
REPLACE(YOUR_INVOICE_NUMBER_COLUMN, '-', CHR(173))
Hope this helps. -
What is the data source name and the data target name for the table COSP
Hi,
Actaully i am new to fico/bw,and i have to create a report based on the actual and budget value and difference in the variance.
in R/3 side the table they are using is COSP,so please let me know what is the data source name and the cube or ods name in BW side.wht are the fields in which i can get the BUDGET value in the report.
here we are using all the business content extractors and BI content cubes and odss.
please reply immediately as its very jurgent isssue.
Thanks,
ashokanswered
-
Info cube key figure quantity is more than the data source
Hi,
I am loading data from a custom table data source into an info cube. The data records and key figure quantity of the info cube is more than the data source custom table.
I checked the extraction in RSA3. The number of records records and key figure quantity are exactly extracted from the data source in RSA3 transaction.
But after loading using the info package, the number of records and the key figure quantity of the info cube is more than the actual records available in the data source. The update rule is simple 1 to 1 mapping.
Kindly help to troubleshoot this issue.
thanks and regards
MurugesanHi,
There could be some other data already avilable in the Infocube. Pls take the Request ID or Number from the last run of the Infopackage you used and check the records only for that Request ID in Infocube.
You can check the data in the LISTCUBE Transaction.
Please let me know of you need additional information.
Thanks,
Jeysraj -
Refreshing the Data Source View in Analysis Services
I have added columns to the SQL Database table that is used as a dimension in an Analysis Services Cube. The new columns will be used as additional Property Fields for the dimension. When I attempted to refresh the Data Source view so that the additional columns are present, I am given the following error:
System.Data
Property not accessible because 'Parent Columns and Child Columns don't have type-matching columns'
I have done nothing to the columns used for the parent of child and the error message provides nothing to gon on. Does anyone have any ideas on this?
GaryOlga,
Thanks for your response. I will try and answer your questions
1) I have not tried removing the columns yet. I will try that this afternoon but have limited hope. The two columns I added are simple text columns that will be used as attributes in the dimension. I have made no change to the parent or child columns.
2) The table I modified is the source table for a parent-child dimension.
3) The reference to the "check list" does not take me to any kind of check list.
4) The parent-child dimensions I am trying to modify have been in use for months and the parent and child columns do have the dame data types.
5) I have also check the data types between the dimension table and the fact table. they use the same data types (small int).
6) I have not made a collection for the parent key, it is a single column. The remainder of your last paragraph is not clear to me. Can you give me an example.
I am fairly inexperienced with Analysis Services, please talk slow and use small words :-)
Thanks again for your help!
Gary -
What is an ageing report? What are the data sources used to develop an agin
Hello BW gurus,
I was going thru some of the BW resumes. I could not understand some of the points mentioned below. Kindly go thru them and please explain each of it.
Thank you.
TR.
Developed AR ageing report, created invoice layout and processed invoices.
What is an ageing report? What are the data sources used to develop an aging report
Worked on month-end and year end processes such as Balance Sheet Statements and Profit and Loss Accounts.
What data sources does one use to get Balance sheet and P&L accounts tables and fields.
Involved in the end to end implementation of BW at Reliance Group as a team member.
What are the tasks a BW consultant normally performs when he is involved in an end to end implementation project or
a full life cycle project?
Extensively worked on BW Statistics to optimize the performance of Info Cubes and to create Aggregates.
What do you mean when you say worked on BW statistics to optimize the performance of Info Cubes.
What are aggregates why do you need them?
Prepared design documents from the Business Requirement documents and identified the
relevant data targets for satisfying the customer requirements.
What are the design documents does one prepare, please give an example.
Is cube a data target?What is an ageing report? What are the data sources used to develop an aging report
Aging refers to values in different time period ranges. Example, the customer (credit) aging report can look like this.
customer (credit) for current period, 0 to 30 days, 30 to 90 days, 90 to 120 days. This is the way aging is classified.
What data sources does one use to get Balance sheet and P&L accounts tables and fields.
For P&L information, you may use 0FI_GL_6 datasource (or 0FI_GL_10 if you use ERP 5.0 version). This datasource reads the same information used in R/3 transaction f.01 (table glt0).
What are the tasks a BW consultant normally performs when he is involved in an end to end implementation project or a full life cycle project?
Requirement gathering, blueprint creation, development etc
Refer to posts on Sap Methodology and Sap lifecyle
What do you mean when you say worked on BW statistics to optimize the performance of Info Cubes. What are aggregates why do you need them?
Please check these links
http://help.sap.com/saphelp_nw04/helpdata/en/8c/131e3b9f10b904e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f0/3c8c3bc6b84239e10000000a114084/plain.htm
What are the design documents does one prepare, please give an example.
Design document is basically a document to say how the design is to be developed for a particular solution ex: FI it says what is the data fow and what are the data targets to be used and how data shld be stored for providing the client a solution they need.
Is cube a data target?
Yes cube is a data target.
Hope this Helps
Anand Raj -
Trying to change the data source for a Crystal Report.
<p>The method below represents my best attempt to programatically change the data source of a Crystal Report. The goal is to have a routine that will update the data source for reports after they have been distributed to production servers. So far I have not been successful in saving the report back to the CMS. No exceptions are thrown, but when I view the Database Configuration of the report in the CMC nothing has changed.
</p>
<p>
Am I missing a step, or is there another way to accomplish this?
</p>
<p>
Thank you.
</p>
<hr />
<pre>
private void test(String reportName)
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects;
IInfoObject reportObj;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dc;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB; //0;
Fields connFields = null;
String queryStr = "Select * From CI_INFOOBJECTS " +
"Where SI_NAME='wfr.rpt' AND SI_KIND='CrystalReport' AND SI_INSTANCE=0";
newInfoObjects = getCms().executeQuery(queryStr);
if(newInfoObjects.size() > 0)
reportObj = (IInfoObject)newInfoObjects.get(0);
try
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dc = clientDoc.getDatabaseController();
conInfos = dc.getConnectionInfos(null);
for(int i = 0; i < conInfos.size(); ++i)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(i);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue("QE_ServerDescription", "alio");
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
logonProps.putStringValue("Server", "alio");
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName("admin");
newConInfo.setPassword("password");
dc.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
catch(ReportSDKServerException Ex)
String msg = "A server error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
catch(Exception Ex)
String msg = "An error occured while processing the " + reportObj.getKind()
+ " object, " + reportObj.getTitle() + " (" + reportObj.getCUID() + "), from the CMS.";
Utility.errorOut(msg, Ex);
finally
clientDoc.save();
getCms().commitToInfoStore(newInfoObjects);
clientDoc.close();
</pre>
Edited by: Mark Young on Sep 10, 2009 2:16 PM<style type="text/css">
/<![CDATA[/
body
font-size: 1.125em;
font-family: helvetica,arial,"sans-serif";
.code{font-family: "courier new",courier,mono,monospace}
.bi{font-style: italic; font-weight: bold;}
/]]>/
</style>
<p>Justin,</p>
<p>
Thank you for the reply. Time constraints have not allowed me to post back to this tread
till now. I will try your suggestion. My assumption is that <i>Save the report back to the
info store</i> refers to <span class="code">IInfoStore.commit(IInfoObjects)</span>.
</p>
<p>
I'm afraid that I do not understand why I don't want to change the report client document,
or why <i>successfully exporting the report with the new login/password</i> is not what I
want to do. Any explanation on that statement would be appreciated.
</p>
<p>
I did find a way to accomplish my goal. It involved adding the SSOKEY property to the
logon property bag. Below you'll see my revised code which modifies the report logon and
server. I have no idea what
this does, and SAP support has not been able to tell me why it works. However, what I
discovered is that if I changed the report option, <b>Database Configuration -> When
viewing report:</b>, in the CMS to <span class="bi">Use same database logon as when report
is run</span> from <span class="bi">Prompt the user for database logon</span>, then the
SSOKEY property had been added to the logon property bag having an empty string as its
value. This allowed me to successfullyupdate and save the modified logon back to the CMS.
</p>
<p>
So I took a chance and added code to always add the SSOKEY property with an empty string
as its value, and I could then successfully modify and save the report's logon info
and server. Again, I don't know what this means, but it has worked so far. If anyone has
some insight or comments, either are welcome. Thank you in advance.
</p>
<br />
<hr />
<pre>
private void changeDataSourceOfAWFCrystalReports()
throws SDKException, ReportSDKException, java.io.IOException
IInfoObjects newInfoObjects = null;
IInfoObject reportObj = null;
IReport curReport = null;
ReportClientDocument clientDoc = new ReportClientDocument();
DatabaseController dbController;
PropertyBag pBag;
PropertyBag logonProps;
ConnectionInfo newConInfo;
ConnectionInfo oldConInfo;
ConnectionInfos conInfos;
int connOptions = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
Fields connFields = null;
String outputStr;
int numOfReports;
int numOfQueryPages;
double progressIncrementPerPage = 30;
int progressIncrementPerReport = 0;
// Path query to reports is in a .properties file.
String queryStr = getAppSettingsFile().getWscAwfCrystalReportPathQuery();
try
// Executes IInfoStore.getPageingQuery() and generates a list of queries.
getCms().setPathQueryQueries(queryStr, 100);
numOfQueryPages = 0;
// Gets a List<String> of the IPageResult returned from IInfoStore.getPageingQuery().
if(getCms().getPathQueryQueries() != null)
numOfQueryPages = getCms().getPathQueryQueries().size();
if(numOfQueryPages > 0)
// Use 30% of progress bar for the following loop.
progressIncrementPerPage = Math.floor(30.0/(double)numOfQueryPages);
for(int queryPageIndex = 0; queryPageIndex < numOfQueryPages; ++queryPageIndex)
// Gets the IInfoObjects returned from the current page query
newInfoObjects = getCms().getPathQueryResultSetPage(queryPageIndex);
numOfReports = newInfoObjects.size();
if(newInfoObjects != null && numOfReports > 0)
progressIncrementPerReport =
Math.round((float)Math.floor(progressIncrementPerPage/(double)numOfReports));
for(int reportIndex = 0; reportIndex < numOfReports; ++reportIndex)
reportObj = (IInfoObject)newInfoObjects.get(reportIndex);
curReport = (IReport)reportObj;
clientDoc = getCms().getReportAppFactory().openDocument(
reportObj
, OpenReportOptions._refreshRepositoryObjects
, java.util.Locale.US);
dbController = clientDoc.getDatabaseController();
conInfos = dbController.getConnectionInfos(null);
for(int conInfosIndex = 0; conInfosIndex < conInfos.size(); ++conInfosIndex)
oldConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
newConInfo = (ConnectionInfo)oldConInfo.clone(true);
pBag = newConInfo.getAttributes();
pBag.putStringValue(
"QE_ServerDescription"
,getConfigFile().getDBDataSourceConnections());
logonProps = new PropertyBag();
logonProps.putStringValue("Trusted_Connection", "false");
<b>logonProps.putStringValue("SSOKEY", "");</b>
logonProps.putStringValue(
"Server"
,getConfigFile().getDBDataSourceConnections());
pBag.put("QE_LogonProperties", logonProps);
newConInfo.setUserName(getConfigFile().getUNVConnectionUserName());
newConInfo.setPassword(getConfigFile().getUNVConnectionPasswordDecrypted());
dbController.replaceConnection(
oldConInfo
, newConInfo
, connFields
, connOptions);
newConInfo = (ConnectionInfo)conInfos.getConnectionInfo(conInfosIndex);
} // end for on conInfosIndex
clientDoc.save();
} // end for on reportIndex
} // end if on newInfoObjects
} // end for on queryPageIndex
} // end try
catch(ReportSDKServerException Ex)
// handle...
catch(Exception Ex)
// handle...
finally
getCms().commitToInfoStore(newInfoObjects);
if(clientDoc != null)
clientDoc.close();
</pre> -
Changing the Data source in Business Objects XI
Hi,
Is it possible to change the data source(not universe) in runtime to generate business objects reports. I am using BOXI 3.1.
Below is the code I am using to change the universe in runtime. I would like to change this so that i can change the data source instead of changing the universe. My intention is to generate report from multipple database using same universe. Right now I am using multipple universes connected to multiple datasources to achieve this. I am using Report Engine SDK(Java).
if("Webi".equals(mDocKind))
// Added for multiple database support
DataProviders dataProvs = documentInstance.getDataProviders();
try{
//To support multiple queries in BO reports
for(int count=0;count<dataProvs.getCount(); count++){
DataProvider dp=dataProvs.getItem(count);
DataSource ds= dp.getDataSource();
infoUniverseObjects = getUniverseObject(infoStore,NewUniverseName);
infoUniverseObject = (IInfoObject)infoUniverseObjects.get(0);
String newDsCuid = infoUniverseObject.getCUID();
dataProvs.changeDataSource(ds.getID(), "UnivCUID=" + newDsCuid, true);
if(dataProvs.mustFillChangeDataSourceMapping())
// Re-map data source to target Universe objects
ChangeDataSourceMapping mapping = dataProvs.getChangeDataSourceMapping();
ChangeDataSourceObjectMapping[] maps = mapping.getAllMappings();
dataProvs.setChangeDataSourceMapping();
}//for dataProvs.getCount()
}catch(Exception e)
mLogger.info("BOReportObject","createReport","Inside multiple data providers loop"+e.getMessage());
Thanks in advance
Shameer
Edited by: Shameertaj on May 20, 2009 3:08 AMHi Shameer,
I think this is only possible with the Universe Designer SDK (which is only available in COM).
Please kindly refer to the API reference for the Universe Designer SDK for more details:
http://help.sap.com/businessobject/product_guides/boexir31/en/bodessdk.chm
Also, please note that changing the universe connection when viewing a document on-demand is not recommended because this could lead to possible issues.
For example:
Two users trying to view documents that uses the same universe at approximately the same time.
But user A wants to use connection X and user B wants to use connection Y.
This could lead to an error while openning the document or while refreshing/retrieving the the data.
Hope this helps.
Regards,
Dan -
Understanding the Data Source 0CO_PC_01
I received a query from a user who was running a query on the cube 0PC_C01. The actual quantity value for a particular cost centre is doubled. The cube is loaded using the data source 0CO_PC_01
I tracked the problem to a particular production order and then ran the extractor checker on the source system for that production order and selected only actuals (value type 10) and one currency type (020). When I look at the cost centre I see that there seems to be a line which has the total expected value for actual quantity, but also 2 lines which have the break down of that value. All 3 lines have value type 10. So when the user selects the cost centre, he sees the total of all 3 lines?
There also 2 other line which nett of the values correctly but these lines do not have the cost centre. They have a different cost assignment and refer to the production order line rather than the cost centre. So the total is correct, but when the user selecst the cost cente the total is inflated.
Is there a filter I should apply to avoid the duplication?In this example there are 5 lines. One line has the correct (expected) actual qty of 16 HRS. This line has the cost centre. Then there are 2 lines which are negative -12 and -4 and these lines have a value of 0OIT in the field 0PIOBJ instead of cost centre these lines have the production order. The next 2 lines are postive +12 and +4. These lines have a valueof 0ACTY in 0PIOBJ and they have the cost centre.
When the user selects by cost centre, he loses the negative lines and gets the 3 positive lines 16, 12 and 4. So he sees an actual quantity of 32 instead of 16. All these lines have the same partner object value of 0ACTY. All have the same cost centre value, all have the currency code 020 and value type of 10.
To get the query to give the result of 32 for the cost centre, I need to find a way to put the cost centre onto the 0OIT lines which are negative or I must find a way to exlcude the first line which seems to be a total line?
Maybe you are looking for
-
I have a Mac, IPad, I phones, and 2 Windows Vista Pcs and I'm having trouble with the Windows Laptop staying connected. I have to re-boot after an extended period of time please help. Thanks!
-
What Requirement Needed To Sell Application on iPhone?
Hi, guys. Greetings. I want to ask help about requirement needed to sell application on iPhone. So if there's any kind person that can helped me out here, i would like to say thank you very much and may God repay your good deeds. Right now me and my
-
Does Mac OS X in 64 bits takes longer to boot than in 32 bits?
Hello, Does Mac OS X 10.6.3 in 64 bits mode takes longer to boot than in 32 bits mode?. If I boot Mac OS X in my MacBook Pro 5.1 in 64 bits mode it takes 51.3 sec, and if I boot it in 32 bits mode it takes 33.1 sec. I just want to know if this is nor
-
Success message in dynamic action with pl/sql
Hi, I want to know how to display the message "action proceed" in the "inline notification" from my block pl / sql is a dynamic action. Like this : Declare Begin Delete RSCLASSE_ACTIVITE Where ROWID = :P_DELETE_ROWID; -- here ---> -- I want disp
-
IPV6 connectivity - no network access Windows 8.1
, new laptop just got it today, not sure what this is, I can get online but it's slow, I have been trying to fix this for the past 3 hours, help please, I am not tech savy.