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

Re: Customer Master error (XD03/XD02): Internal error - insert in sorted tabl ZADRT with...

$
0
0

It looks like the communication data on the database is inconsistent in the address data.

Check the below SAP Note.
 
SAP Note 436119 - Correction report for communication
data inconsistencies

We need to run the report - Z_OSSNOTE_436119 which is given in this Note.    


Date conversion starting from a specific date?

$
0
0

Hi Hogen,

 

If the end goal is to use the values as a parameter, you would need to do this at the table-end itself, since you wont be able to create a parameter on a formula.

 

If there is already a logic that is counting the number of days past a certain Date, then why don't you simply write a stored procedure to 'insert' the Date of the Day back into the table. This will be helpful if the no. of days is varying.

 

A simple and better way is to have a Date column that is holding the required Dates from 1800/12/28 (or whatever) -  till date.

 

-Prathamesh

Re: Filter in DM Package Prompts - Raise a Message

$
0
0

COMBOBOX still allows multiple selections; RADIOBUTTON allows single item selection only.

 

-Gersh

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: Getting the data from the table T056A

$
0
0

Hi,

 

please check, if you need your own logic or you can use SAP standard function modules like

 

CREDIT_INTEREST_RATE_DETERMINE

CREDIT_INT_RATE_DETERMINE

DEBIT_INTEREST_RATE_DETERMINE

DEBIT_INT_RATE_DETERMINE

INTEREST_CONDITIONS_LOAD

INTEREST_RATE_DETERMINE

INT_RATE_DETERMINE

 

Regards,

 

Klaus

Cost object assignment in service tax expense line item in MIRO postings?

$
0
0

Hi Saloni,

 

There is no alternative method where cost center automatically triggering while doing the MIRO except Substitution rules ,BTE Concept ,OKB9 and Default cost object  in Cost element master. According to me ,you can use Substitution rules or BTE will work as per your requirement. Cost center must be pick from Purchase order or else Service sheet entry.

 

Or else one more solution where you have to assign without cost element GL account in customization to pick service tax expenses GL account in withholding tax customization & nulify the same values while doing the MIRO with proper expenses GL account.

 

Regards

Mani


Re: Copy Valuation Type from Sales Order to Production Order

$
0
0

Hi

 

As per my opinion, system should ask for valuation type for the material when you do the GR/GI for order wihle doing in confirmation or separately.

 

Check and revert.

 

Regards,

Anupam Sharma


Re: Problem related to bdc

$
0
0

Hi Sanjeev,

 

Since I_MESSTAB is an internal table with header line, use loop before calling BAPI_MESSAGE_GETDETAIL.

 

Just include the lines which has been highlighted within your coding:

 

IF SY-SUBRC NE 0.

     LOOP AT i_message.

          CASE i_message-msgtyp.

              WHEN  'E'.

   CALL FUNCTION 'BAPI_MESSAGE_GETDETAIL'

     EXPORTING

       ID                = I_MESSTAB-msgid

       NUMBER            = I_MESSTAB-msgno

      LANGUAGE          = SY-LANGU

       TEXTFORMAT        = 'ASC'

*     LINKPATTERN       =

      MESSAGE_V1        = I_MESSTAB-msgv1

      MESSAGE_V2        = I_MESSTAB-msgv2

      MESSAGE_V3        = I_MESSTAB-msgv3

      MESSAGE_V4        = I_MESSTAB-msgv4

    IMPORTING

      MESSAGE           = l_message.

*     RETURN            =

*   TABLES

*     TEXT              =

             .

   CONCATENATE l_message '-' it_final-newko it_final-wrbtr it_final-budat INTO it_error-text

       SEPARATED BY ' '.

       APPEND it_error.

     CLEAR: it_error, l_message.

     ENDCASE.

      ENDLOOP.

     ELSE.

       CONCATENATE 'DATA UPLOADED SUCCESSFULLY :' it_final-newko  it_final-wrbtr it_final-budat

       INTO it_success-text SEPARATED BY ' '.

       APPEND it_success.

     ENDIF.

     refresh: i_message.

 

 

Thanks & Regards,

T. Prasanna Kumar


Condition Value not updated after Rebate agreement was created

$
0
0

Hi All,

I am having a scenario of retrocative rebate. I created a rebate agreement after an invoice was posted. After that I executed VBOF transaction to update the invoices.

 

However, the invoice still doesn't show the condition type as active. The analysis says 'Condition Record Found but not set'.

The rebate agreement doesn't reflect it as well.

 

Can anyone please advise?

 

Thanks,

Re: Regd: Incomming Excise Invoice

$
0
0

Hi Karunakaran,

 

 

The ideal solution would be creating a Down Payment Invoice initially and Finally after receiving Goods Record the Actual Invoice in the System.

 

 

Regards,

Vamsi

Re: How to create Drop-Down List in FPM, with values from intenal table?

$
0
0

Hi Alex,

You need to fill fixed value in CT_FIELD_USAGE parameter of the GET_DATA mehod.

Re: How to filter UDO Data when navigate

$
0
0

Hi Eddy,

 

You can't add the CFL to the EditText for 2 reasons:

  • First it's a system item and you can't modify it as you discovered,
  • Second because it's already here

 

First thing to do is to export the form to see how it is contruct which gives the following xml excerpt:

            <itemuid="5"type="16"left="139"tab_order="35"width="81"top="7"height="14"visible="1"enabled="1"from_pane="0"to_pane="0"disp_desc="0"right_just="0"description=""linkto=""forecolor="-1"backcolor="-1"text_style="0"font_size="-1"supp_zeros="0"AffectsFormMode="1">

              <AutoManagedAttribute>

                <Attributeid="2"description="editable"modeOk="0"/>

              </AutoManagedAttribute>

              <specificTabOrder="35"ChooseFromListUID="-1"ChooseFromListAlias="CardCode"IsPassword="0">

                <databinddatabound="1"table="OCRD"alias="CardCode"/>

              </specific>

            </item>

          </action>

        </items>

        <ChooseFromListCollection>

          <actiontype="add">

            <ChooseFromListUniqueID="-1"ObjectType="2"MultiSelection="0"IsSystem="1"/>

 

Then the code:

void application_ChoosFromListChoosing(object sender, UI.Interfaces.IChooseFromListEventArgs eventArgs)

        {

            if ("134" == eventArgs.Form.TypeEx)

            {

                var form = eventArgs.Form;

                var cfl = form.ChooseFromLists.Item("-1");

                var conditions = cfl.GetConditions();

                if (0 == conditions.Count)

                {

                    var cond = conditions.Add();

 

                    cond.BracketOpenNum = 1;

                    cond.Alias = "CardCode";

                    cond.Operation = BoConditionOperation.co_START;

                    cond.CondVal = "C";

                    cond.BracketCloseNum = 1;

 

                    cfl.SetConditions(conditions);

                }

            }

        }

 

 

And by usage:

2013-08-12_064732.png

 

The only "drawback" is that the navigation buttons don't filter data thru the CFL, so you'll have to do the filtering by your own in the FormDataLoad event..

 

Regards,

Eric

Viewing all 8746 articles
Browse latest View live




Latest Images