Quantcast
Channel: SCN: Message List
Viewing all 8902 articles
Browse latest View live

Re: PCR for late coming, early going, extra break with grace time

$
0
0

Hi Tandrima,

 

How are breaks being captured in positive time management at your client location? What are the possible time events that can be used?

 

Can you please give a sample scenario by giving clock times for different events that may happen in a day?

 

Regards,

Vivek


Re: Changing DB and Server when using MySQL ODBC connection

$
0
0

Hi Ludek

 

Thanks for your help on this. It really is driving me mad and stressing me out as I have a deadline to deliver working reports next week.

 

In fact, to help, do SAP have a paid for support service by phone where someone can work through this with me?

 

In the meantime I have an update. I was trying to implement this code in my existing web project so decided to create a new bare bones web application and put a report in it with the server switching code. And it worked! So I created another report with exactly the same settings as the first and it does not work! 2 reports in a basic project. One will switch servers, the other just stays showing data from the server selected at runtime. I literally run the exact same code, just changing the name of the rpt file and it stops working. This is really weird. So I went back to my original project. Deleted the report that didn't switch. Created a new one and still the same problem. No switch.

 

Something is not right. There must be some small step I am doing different that is making the report switch servers ok. But I don't know what it is. And in any case. Surely CR should not be so fragile that it will ignore hard code that tells it to connect to a specific server?

 

I have looked at the 2 rpt files. Obviously the rpt file is binary so can't tell much from that. But the 2 report vb files look just the same apart from their names in the code. Is there any way of examining the rpt files to see what it is about them that is stopping it working? Just a long shot.

 

Btw, I will try the full version of cr (I have a licence) but not sure what it will prove. The report will display data from both servers quite happily in design mode in VS. I just right click on the database icon, change the datasource to the other odbc dsn and the data switches. It is in the code that it will not.

 

Btw, is there any benefit to designing my reports in the full version of CR? I have bought a full licences copy (2 actually, one for my team mate) but am a bit nervous to install it as I don't want to break my VS environment.

 

Thanks again for your help

Mark

Re: script logic loop

$
0
0

Hi Chris,

 

So, it looks like you have to process a couple of thousands records. This shouldn't take long even in a script. If you run this in a DM Package I think users will be fine with performance; if you have to run it in DEFAULT.LGF then we might need to work on performance of that script.

 

-Gersh

Re: CK11N error

$
0
0

Check in KP26 of for the activity price in cost center if Activity Price for given activity CA02 is exist

 

Best Regards

Hrusikesh

Re: Rebate

$
0
0

Hi,

 

As you must be aware, you need to have the rebate procedure set up and have all the settings ready.

 

Yes! If you are wanting rebate based on group of materials and not only one, then you would need to use the Group Condition Check for the Rebate Condition Type for %.

 

Also make sure that you check with the Business on whether they want to give other upfront discounts in this scenario apart from rebate ? If yes, leave them as is.

 

I do not have the SAP System in front of me so cannot give the exact place in the Pricing Procedure where you need to assign the rebate.

 

Check Standard Pricing Procedure for your country[India I guess - excise is the key here] and find the condition types for rebate there and use the same in yours. Normally they should be under the Discount and Surcharge Bucket in Pricing. Else check the standard SAP Pricing Procedure - RVAA01[good old one] .

 

You might want to create a Group Condition Routine for the same. You can wait for this. First set up basic stuff and test.

 

Get back to me if you need more help.

 

Happy Rebating

 

Thanks.

support package running time

$
0
0

Hi ,

 

Importing a set of support packages by defining a queue in SPAM.

 

Would like to know the below

 

a. Currently running support package status

b.Recently completed support package and taken time to complete.

 

where can we see these exactly.

 

Thanks a ton

Re: residue settlement

$
0
0

Hi

 

change manually the percentages in maintenance order as required IW32-extras- settlement rule- percentages

 

Krishna

Re: How to change time management status for bulk employees in IT0007

$
0
0

Dear Harry,

 

You should use LSMW. Search on internet you can find how to create a project for mass data upload / change. It's easy and the standard method.

 

By the way, I don't understand why you need time status "0" for running RPTQTA00! As I know you can generate quota by RPTQTA00 if you set your quota as "No generate" in V_T559L section "Quota types" but it's not depend on time management status.

 

Regards,

Omid


Re: Quota not being captured

$
0
0

Dear Punu,

 

What do you mean by pick up? You mean it does not generate or it's not possible to use(deduct from) it?

 

Anyway, If it's related to quota generation it's better to have a look at time evaluation log and share a screen shot to see which rule is in charge of generation then go into V_T559L and check the rule and related settings.

 

Regards,

Omid

Re: Pagination With Crystal report in Asp.net

$
0
0

Hi,

 

    Thanks for reply and help

    Here is the step to re-create issue(I have installed crystal report 13 with visual studio 2010)

 

1) Create one sample web application with asp.net 4.0

2) create one sample crystal report with simple subreport type.

3) Add 2 table inside sql and insert around 1000 records  and write a procedure to retrieve that record.

4) add following line inside web application's web.config file.

    <sessionState allowCustomSqlDatabase="true" compressionEnabled="true" timeout="120" mode="SQLServer" sqlConnectionString="Data Source=SERVER;Initial Catalog=TESTDB;User ID=rt;Password=PASSWORD">

5) now add one .aspx page without master page and add following code inside it.

    .Aspx code

 

 

<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"  Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

inside <div> tag

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" BestFitPage="True"

                        EnableDatabaseLogonPrompt="False" HasCrystalLogo="False" Height="100%" Width="100%" />

 

6) now add following code inside .cs file

 

public partial class ReportTest :  System.Web.UI.Page

    {

        ReportDocument rptTest= new ReportDocument();

        protected void Page_Init(object sender, EventArgs e)  // or wrote in Page_Load

        {

            DataTable dtMain = new DataTable();

            DataTable dtSubReport = new DataTable();         

            try

            {

                 if (!IsPostBack)

                {

                    string ruleType = Request.QueryString["type"];

                    if (!string.IsNullOrEmpty(ruleType))

                    {

                        dtMain.Clear();

                        SqlParameter[] sqlMainPara = new SqlParameter[2];

                        string reportName =  "testReport";

 

                          if (ruleType.Equals("1"))

                        {

                            sqlMainPara[0] = new SqlParameter("typ", "123");

                        }

                        else if (ruleType.Equals("2"))

                        {

                            sqlMainPara[0] = new SqlParameter("Grp", "222");

                        }

                        sqlMainPara[1] = new SqlParameter("stype", "234");

                        rptMainDoc.Load(Server.MapPath(@"~\Reports\RptFile testreport.rpt"));                                  dtMain = DbFactory.GetDataByProcedure("myproc", sqlMainPara).Tables[0];

                   rptMainDoc.SetDataSource(dtMain);

                   sqlMainPara = new SqlParameter[0];

                   dtSubReport.Clear();

                   dtSubReport = DbFactory.GetDataByProcedure("getSubReport", sqlMainPara).Tables[0];

                        foreach (ReportObject repOp in rptMainDoc.ReportDefinition.ReportObjects)

                        {

                            if (repOp.Kind == ReportObjectKind.SubreportObject)

                            {

                                string SubRepName = ((SubreportObject)repOp).SubreportName;

                                ReportDocument subRepDoc = rptMainDoc.Subreports[SubRepName];

                                subRepDoc.SetDataSource(dtSubReport);

                            }

                        }                     

                        BindCrystal();                      

                    }

                }

                else

                {

                    BindCrystal(); // this is for pagination.

                }

            }

            catch (Exception ex)

            {

               

                ClientScript.RegisterStartupScript(typeof(System.Web.UI.Page), "alertuser", "<script>alert('Sorry error occurred in report.');</script>", false);

            }

            finally

            {

                dtMain.Dispose();

                dtSubReport.Dispose();  

            }

        }

        private void BindCrystal()

        {

            if (Session["MyTest"] == null)

            {

                Session["MyTest"] = rptMainDoc;

            }

            CrystalReportViewer1.ReportSource =(ReportDocument)Session["MyTest"];

            CrystalReportViewer1.ReuseParameterValuesOnRefresh = false;

            CrystalReportViewer1.EnableParameterPrompt = false;

            CrystalReportViewer1.HasRefreshButton = false; // this is set to false because giving parameter missing error.

            CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;

        }

        protected void Page_Unload(object sender, EventArgs e)

        {

            CrystalReportViewer1.Dispose();

            rptMainDoc.Dispose();

        }

 

7) run web application then getting this error.(please have a look attached SqlServerStateError.jpg image)SqlServerStateError.jpg

8) now try to remove sql server state from web.config and still you will get run time other error.

 

now my question is

 

I use session to restrict query execution on each and every crystal report pagination click...


1) how to dispose or set null inside  Session["MyTest"] and when i should set null ? because page_unload event fire every time when i click on pagination.

 

2) now to overcome this type situation i store DataTable inside Session but still problem is that when i can clear that session ? because I can not determine that user is going to close crystal report or .aspx page

 

Hope you understand my problem now,if still you are not able to understand my problem then let me know i will send you more detail.

 

While scenario i am testing with Chrome browser because my client is mostly using it and my application is intranet base.

 

Thanks for help.

Re: SAP Screen Personas : Home page

$
0
0

Tobias,

 

That is it. Yes, init parameters has frameless=true.  I didn't not do anything.

 

Passing frameless=true as URL parameter  resolved the issue.

 

I can't thank you enough for your help.

Re: Problem related to bdc

$
0
0

Hi Sanjeev ,

 

Try to write your Code as below .. .

 

S1.png

 

Regard's

Smruti

Re: Idoc to Mail Scenario

$
0
0

Hi,

 

>>>However I have a question. Is posible not send mail according some rules in the mapping?

 

yes - you can invoke the mapping in receiver determination and on the basis of the result

not set the receiver

 

Please have a look at blogs on sdn on: extended receiver determination

 

Regards,

Michal Krawczyk

Re: Spool to Excel formatting

$
0
0

this is an option to achieve ur requirement.

UWL, the context "'Manage substitution rules" as button

$
0
0

Hi Experts,

I had a requirement

In UWL, the context "'Manage substitution rules" had to show as button near to the drop down boxes.

uwl.png

Thanks & Regards,

Ram


Report for Number range consumption

$
0
0

Hi All,

 

Is there any standard report or methodology where we can easily track the consumption of number ranges.

 

I know of table NRIV where we can get the number range information but i am asking of any standard report or methodology.

 

Regards,

Ramnik Singh

Re: Identifying the clicked button

$
0
0

Hi,

 

Yes. It's possible. You can get the button ID via Event Parameters.

 

In the OnAction event handler write the below code.

DATA lv_button type string.

 

lv_button = wdevent->get_string( 'ID' ).

 

lv_button contains the button ID of the clicked button. You can now differentiate it.

 

You cal also use a READ table statement on wdevent->parameters with key 'ID'.

 

 

Hope this helps u.,

 

 

Regards,

Kiran

Re: Crystal Reports in CMC

$
0
0

Hi Kannan,

 

The reason could be the row processing limit of Crystal report processing server might be exceeded.
Try to add -MaxDbResultRecords 0 to Command Line Parameters. refer te support note below for more information

 

http://service.sap.com/sap/support/notes/1312623

 

Regards,

Mani

Re: Financials Extension (EA-FIN) in not being activated

$
0
0

Hi Manoj,

 

Have you gone through the mentioned SAP Note

 

1641394 - How-to activate Business Function in Switch Framework (SFW5)

Printout when we close the ECM Number

$
0
0

Dear Experts, when we close the ECM Number (BOM), we need printout of the ECM details. could you please advise how to configure the same. Thank you.

Viewing all 8902 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>