How to insert image in the title bar?
payroll Area and Security
I have one employee which is in the right payroll Area (Semi monthly), but the payroll person for the payroll area can't see this employee.
I check all the records for this employee and compare to others, it seems the same.
any suggestions
Thanks
Crystal Reports hangs indefinitely on refresh after export/print.
I'm using Crystal Reports for VS 13.09 on an IIS 7 server. The application works fine except for in this one scenario. I can print or export fine, and I can refresh fine, but if I print or export and then try to refresh the "Please wait while the document is being processed." box comes up and never goes away. After printing/exporting I can still use the breadcrumb links and forward/back buttons with no problems, it's just refresh that causes issues.
Here is the ASPX I'm using:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewReport.aspx.cs" Inherits="Intranet.ViewReport" %>
<%@ Register Assembly="CrystalDecisions.Web, Version=14.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=9,chrome=1" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" Width="960px" HasRefreshButton="True" HyperlinkTarget="_blank" />
</div>
</form>
</body>
</html>
And here is the code:
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer.ClientDoc;
using IBM.Data.Informix;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Intranet
{
public partial class ViewReport : System.Web.UI.Page
{
protected Connections sqlObj = new Connections();
EnterpriseSession myEnterpriseSession;
ReportClientDocument myReportDocument;
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
CrystalReportViewer1.ReportSource = (ReportClientDocument)Session["myReportDocument"];
}
else
{
BindingUsingReportAppFactory();
}
}
void BindingUsingReportAppFactory()
{
try
{
Session["ReportPath"] = Request["ReportPath"];
Session["Logon"] = Request["Logon"];
myReportDocument = LoadReport(Session["ReportPath"].ToString());
if (Request.UrlReferrer.ToString().Contains("/salesintranet.aspx"))
{
string selectionText;
selectionText = myReportDocument.DataDefController.RecordFilterController.GetFormulaText();
if (selectionText != null)
{
int asteriskPos = selectionText.IndexOf('*');
if (asteriskPos > 0)
{
selectionText = selectionText.Substring(0, asteriskPos) + Session["Logon"] + selectionText.Substring(asteriskPos, selectionText.Length - asteriskPos);
myReportDocument.DataDefController.RecordFilterController.SetFormulaText(selectionText);
}
}
}
Session["myReportDocument"] = myReportDocument;
CrystalReportViewer1.ReportSource = (ReportClientDocument)Session["myReportDocument"];
LogReport('Y');
}
catch (Exception ex)
{
LogError(ex);
LogReport('N');
Response.Write("<html><body><h3>Request failed.</h3>");
Response.Write("The document could not be loaded.<br />Please hit back to try again.<br />");
Response.Write("If you are still unable to load the report, please contact IT.</body></html>");
Response.End();
}
}
ReportClientDocument LoadReport(string reportPath)
{
SessionMgr mySessionMgr = new SessionMgr();
myEnterpriseSession = mySessionMgr.Logon("XXXX", "XXXX", "XXXX", "XXXX");
EnterpriseService myEnterpriseService = myEnterpriseSession.GetService("InfoStore");
InfoStore myInfoStore = new InfoStore(myEnterpriseService);
myEnterpriseService = myEnterpriseSession.GetService("RASReportFactory");
Object rrfObject = myEnterpriseService.Interface;
ReportAppFactory myReportAppFactory = (ReportAppFactory)rrfObject;
string query = "Select SI_ID from CI_INFOOBJECTS WHERE SI_NAME LIKE '" + reportPath + "'";
InfoObjects myInfoObjects = myInfoStore.Query(query);
InfoObject myInfoObject = myInfoObjects[1];
return myReportAppFactory.OpenDocument(myInfoObject.ID, 0);
}
Any suggestions on what might be the problem here?
ECC6 to SNC integration Is it possible without PI - PO order processing
Hi Expers,
Is it possible to implement PO Order processing from ECC6 to SNC and vice versa without SAP PI/XI.
Is any body has experience working with other middleware products - Biztalk OR BOOMI for this PO order process integrattion.
as per my knowledge there is no other option without PI. Kindly confirm SNC experts.
Regards,
Venu.
SAP CRM Sales Process
Hi Folks,
I have a little bit confusion about some of the SAP sales process.
Actually we are implementing SAP CRM and SAP SD parallel. There are some process like cash order, rush order, inter company sales, consignment process, cash on delivery, export sales that need to be mapped. As far as my knowledge concern that these process can be mapped from ecc.
My question is : can we map all these process in crm also and then replicate to ecc? Or we should map all those process in SD.
and lets say if we create all those process in Ecc, then is there any requirement to replicate with crm?
Please help me on this.
Thanks & Regards,
Dinesh
DI "Database server type not supported" after 8.82->9.0 upgrade
Hello,
We've been using some in-house applications using the DI API for a couple of years, but after our upgrade from B1 8.82 to 9.0 (PL 11), I'm getting the "Database server type not supported" when connecting to the company from client PCs.
I did check other posts mentioning this error (see below; tried the suggested solutions and checks - moving everything to the server is not an option; the applications run on several client PCs).
Important points:
1 - License server, B1 server, and SQL 2008 R2 server run on the same Windows 2008 R2 Server
2 - Running the apps on the server works, only fails from client machines (same workgroup as the server)
3 - Same app worked fine with B1 8.82
4 - We did reinstall (several times) the B1 DI API on the clients (some client PCs have the full B1 client, some only the DI API), same version installed on the server
5 - MS SQL Native Client was also reinstalled several times on the clients, matches version of SQL Server and Native Client on the server (10.52.4000.0).
6 - Tried referencing the server/license server both by name and by ip in the app, also tried switching this in C:\Program Files (x86)\SAP\SAP Business One DI API\Conf\b1-local-machine.xml
7 - DI API seems to connect with the server (there's traffic on port 30000 when the application tries to connect, and if I use wrong values for the license server adress/port in the application, it hangs trying to connect - not getting to the "Database server type not supported" message).
8 - MS SQL Native client is working; the same app also queries (select only) the server using ODBC through the native client, and this still works.
9 - Tried turning Windows firewall off both on client and server, same thing.
10 - Connection properties are:
Server: 192.168.168.150 (also tried name)
LicenseServer: 192.168.168.150:30000 (also tried name)
CompanyDB: (our db name)
UserName: (valid user)
Password: (password)
language: (3, english)
UseTrusted: false (also tried true, with/out db user/pass)
DbServerType: (6, MSSQL2008) (also tried from 0 to 7, 0 returns "No database server type specified", all others return "Database server type not supported")
DbUserName: sa
DbPassword: password
11 - Windows Server and Clients are 64 bits, but SAP B1 and DI API are 32, application using the DI is also 32. MS Native Client is 64 (does not allow 32 to be installed on the 64bit client PCs). Tried installing the 64bit DI API, but then the 32bit application cannot initialize the ActiveX component.
Again, everything worked fine before upgrading from 8.82 to 9.0, and still works if ran on the server.
May or not be related: Crystal Reports cannot list the databases after the upgrade to 9.0 too.
Could this be related to SLD? My SDK 9.0 help files still refers to the 2007 DI API in the "Connecting to SAP Business One Database", so maybe there is something that needs to be changed related to SLD or something else for 9.0 which is not in the help yet?
Thanks in advance for any help!
Joao S Veiga
How to Customize your Cloud Portal Site using the New Page Template Editing Capabilities
As you may have noticed already, SAP HANA Cloud Portal is delivered with a set of out-of-the-box page templates that enable the site author to unify the look-and-feel across the site pages by reusing the same page elements and layout. The page template contains the following parts: content area, header, footer and side panels.
An author can assign different page templates for use in different pages of the site. With the new page template editing capabilities it is now possible to customize a page template and save the modified template to be used in the site.
How can I change a page template?
- Open the Design Settings in the side panel menu
- Click on the Page Templates button
- Select the relevant page template and click edit
What changes can be applied to page templates?
- Resize containers such as header, footer and side panels
- Add and remove widgets within the containers
- Rearrange, resize and configure widgets (e.g. bring to front/ back)
When you exit page template editing mode, the updated template is automatically saved. The changes affect the layout of any pages using that page template.
To complete the overall experience we've included additional customization options to the site navigation menu. The site author can now select the desired navigation menu from the content catalog (out-of-the-box widgets) and configure the following options:
- Navigate to site pages
- Navigate to external web URL
- Navigate to a predefined sub-page
- Create muti-level page hierarchy
In the example below, the header was expanded to accommodate the SAP logo, page title and a background image. The social icons were removed from the footer and were added to the right panel. A vertical menu was added to the left panel to enable navigation between the site pages.
You can already experience these great features today in your trial.
Enjoy!
blank value vs zero
Hi Experts,
I'm doing coding in transformation rules and requirement is as below:-
The field is currency amount field
so if the field is blank ---need to write nothing in field a and keep it as blank
or if field is having value then--- need to calculate mod of this amount field
amount field mod 1000 .
If the results are zero then need to write xyz in field a.
If the results are non zero then need to write jhk in field a.
The problem is abap code is assuming blank value as 0 value , so for abap 0 or ' ' or is initial is same.
I can't distinguish between these three in codes every time its coming xyz.
Pls help.
Thanks
ARA: Difference between Risk Analysis (Violations) and Roles/User Analysis Reports???
Hi All,
This question would be understood as immature or very basic. However, I am quite confused with these reports in spite of using this tool for a long time!
May I know the exact difference between:
1. NWBC->Reports and Analytics->Risk Violations (Risk Violations)
and
2. NWBC->Reports and Analytics->Role Analysis (or NWBC->Reports and Analytics-> User Analysis) - Segregation Of Duties (SOD)
This looks very simple but let me share you my doubt. In Risk Violations (Analysis Type: Roles and Violations Count by: Permission), I see the number of roles analyzed as 500 (for example) and risk
Whereas in Role Analysis (in above mentioned path), I see number of roles analyzed 2000 (for example) and the violations count does not match in Risk Violations!
Can anybody help me understand this logic?
Regards,
Faisal
Short dumps and user not able to execute many tcodes
AWS - Cannot Terminate SAP HANA, developer edition 1.0 Rev 72
Hi,
yesterday I tried setting up an SAP HANA, developer edition 1.0 Rev 72 . However, the instance didn't get fully created, due to permissions issues with the AWS account I was using. So, I set up a new AWS account, and wanted to try again with the new AWS account.
However, I now have a "Prepared" instance that will not Terminate - if I try and terminate it, I get the following error:
"
Instance Operation Failed
Operation Terminate failed with message: AMAZON : You are not authorized to perform this operation.
"
Could you please manually delete this instance for me, because I am unable to move forward without being able to remove this instance.
Many thanks,
Ian
Attr and text Master data sources
Hi All,
Can i run the Attr and text data source parallel for single info object. Is there any issue on loading the text first and then attr data sources ?
Thanks.
California tax rate 4.1875% in SAP?
We are being asked to setup a California 4 decimal percent tax rate effective July 1, 2014. Our JR1 condition is setup for the usual 3 decimal % rate [ex. 6.500%]. We are using standard Tax Jurisdiction functionality.
Is there way to have 4 decimals on a percent amount do this with standard SAP?
The Record select is excluding rows
The following record select formula, is not showing rows which we want to see. The user passes a month and year param and then we show the not sold
for that month year as well as the previous month.
However, we do want to show rows that did not sell for the entire year and even years back. This formula is only showing the rows that had some sales in the past 2years. It's better use for management to see all items not selling also years back to the last sale.
(
if {?Month}=1 then
(({SUMPRT.IQA01} =0 and {SUMPRT.IQYER#} = {?Year}) and ({SUMPRT.IQA12} =0 and {SUMPRT.IQYER#} = {?Year}-1))
else if {?Month}=2 then
({SUMPRT.IQA01} =0 and {SUMPRT.IQA02} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=3 then
({SUMPRT.IQA02} =0 and {SUMPRT.IQA03} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=4 then
({SUMPRT.IQA03} =0 and {SUMPRT.IQA04} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=5 then
({SUMPRT.IQA04} =0 and {SUMPRT.IQA05} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=6 then
({SUMPRT.IQA05} =0 and {SUMPRT.IQA06} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=7 then
({SUMPRT.IQA06} =0 and {SUMPRT.IQA07} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=8 then
({SUMPRT.IQA07} =0 and {SUMPRT.IQA08} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=9 then
({SUMPRT.IQA08} =0 and {SUMPRT.IQA09} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=10 then
({SUMPRT.IQA09} =0 and {SUMPRT.IQA10} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=11 then
({SUMPRT.IQA10} =0 and {SUMPRT.IQA11} =0 ) and {SUMPRT.IQYER#} = {?Year}
else if {?Month}=12 then
({SUMPRT.IQA11} =0 and {SUMPRT.IQA12} =0 ) and {SUMPRT.IQYER#} = {?Year}
)
Automatic Warehouse task
In an Inbound delivery if we have same product and batch in multiple line items, Automatic Warehouse Tasks are getting created for rest of the HU after creating WT for one HU
Inbound Process--> Receive HU via ASN. Then Select a HU and perform Unload, GR and Create WT. After that if you see the List if HU, WH task gets created for rest of the HU automatically, This auto WH task gets created even without/before GR.
I have tested this by removing conditions of PPF ( Automatic WH task for Putaway) , No good
Any idea? Note??
Thanks
WCF - dealing with concurrency
Hi, guys, how are you?
I have a WCF built with PB.NET and a PB 12 classic client.
when I have multiples calls of the wcf, I got some database errors, like ora-24334. It seems that all the instances use the same SQLCA transaction.
We have tried some configurations inside the project (service attribute and operation atribute) like InstanceContextMode and the ConcurrencyMode.
Is there any specific configuration we have to do here?
We have tried PerSession, PerCall and Single, along with Single, Re-entrant and Multiple, but without succes.
Everything runs fine when we call the service only once....
Also we have threadsafe =yes for database connection.
By the way, we are using oracle 10g. Can anyone give us some help, please? Thank you!
DTW Error - when trying to import AP invoices
"10000100 - Document total value must be zero or greater than zero" is the error I am receiving.
My document headers are:
DocNum | DocType | HandWritten | CardCode | DocDate | NumAtCard | DocTotal | VatDate | ControlAccount |
DocNum | DocType | Handwrtten | CardCode | DocDate | NumAtCard | DocTotal | VatDate | CtlAccount |
No values I have entered are negative numbers.
Thanks,
John
System REFRESH without REC/CLNT OFF
Hello Expert Zone
,
Wondering if we can do the system refresh without making any changes on REC/CLNT OFF,.
Currently it is set to ALL at the sender system/receiver system.
Also, I am curious to know about the NON ARCHIVE LOG mode., as I heard that we need to stop the DB and start again..
So, my question to the above is:
Imagine if we are trying to extract the data/ or do a system refresh using TDMS connected to the PROD system, are we supposed to bring down the system to do the above activities? In this case, I believe it would be a RISK to bring down the prod system down,..
Appreciate your solutions/inputs.
V.
GRC - ARA Risk "False/Positive" in rule set
Risk "False/Positive" in rule set
We use VIRSA Compliance Calibrator 4.0 to monitor segregation of
duties, and we want upgrade the version, and currently we are testing
GRC AC ARA 10.0.
The problem is that we have the same rule set in both versions
(exactly), but in GRC 10.0 the reports show us different results.
We don´t know what is the reason, we are trying to investigate if we
did something wrong. But the "false/positive" risk that ARA is showing
is when we run the report to permission and action level.
Could you tell us if we forgot update some parameter? this situation
happens for users and roles (simple, composite and derived).
Datasource does not bring data from BW system?
Hello,
I just made an enhancement to this datasource 0RENTOBJECT_ATTR,
basically y added a new field in an append structure and filled it using a badi.
When I test it form rsa3 transaction everything is ok, but when i run the infopackage from BW system, it seems like the code is not working, because this new field is always blank.
After replicated metadata, i created a new infopackage, also i tried to debug the infopackage but i don't know how, because in info package i cant see that option.
im working on BW 7.3
Any idea?
thank you.
Serge