Rpt: Invalid section height.

Hi to all,
              I'm using Asp.net 2.0-C# and Crystal Report 11.5.
I have a table with N number of records, i bind all records dynamically now i meet this problem
Error in File C:\DOCUME1\D3326\ASPNET\LOCALS1\Temp\Cr_ExportToExcel {DCA1604B-76DE-4E89-8502-274969D5D6E6}.rpt: Invalid section height.
                I checked my code, my the final Fiedlobject top position is 34100, i came to know crystal report doesnt support greater then height 32,767 from
http://www.forumtopics.com/busobj/viewtopic.php?t=106646&view=next&sid=29c694f5aa0a7d2fca31404ca09a3274
this web site. If it's true then how can i solve this problem,
becuase i have nearly one lakh records.
Actualy i display my records like this
ColumnName  Data   ColumnName  Data
ColumnName  Data   ColumnName  Data
so i'm using only one detail section object because no need of heading section.
Experts please help me.
Thanks in advance.
Edited by: winseelan j on Sep 29, 2008 7:20 PM

You will have to use RAS. This sample app shows you how to create sections at runtime:
https://boc.sdn.sap.com/node/6304
More sample apps are here:
https://boc.sdn.sap.com/samples/84/1194
And the developer libraries is here:
https://boc.sdn.sap.com/developer/library
Ludek

Similar Messages

  • Invalid Section Height when I load the nth subreport

    I am attempting to load multiple sub-reports into a master report document. The process is:
    Use the RAS SDK to obtain a reference to the detail area
    Add a section to the detail area
    Import the subreport into the detail area
    The code is pretty simple as well.
            private ReportDocument AddSubReportToParent(string subReportName, string fileName)
                try
                    CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea detailArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea;
                    CrystalDecisions.ReportAppServer.ReportDefModel.Section section = new CrystalDecisions.ReportAppServer.ReportDefModel.Section();
                    string sectionName = "Section" + subReportName.Replace(".", "");
                    section.Name = sectionName;
                    section.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;
                    section.Width = headerArea.Sections[0].Width;
                    _crystalDocument.ReportClientDocument.ReportDefController.ReportSectionController.Add(section, detailArea, -1);
                    _crystalDocument.ReportClientDocument.SubreportController.ImportSubreport(subReportName, _configSettings.InputPath + "\\" + fileName, section);
                    ReportDocument subreport = _crystalDocument.OpenSubreport(subReportName);
                    return subreport;
                catch (Exception ex)
                    Logger.ErrorException(this.GetReportBuilderErrorText(this.GetReportBuilderErrorText(String.Format("Unable to add subreport '{0}' from file {1} to custom Crystal Report", subReportName, fileName))), ex);
                    throw;
    However, when I attempt to load the 41st report (or sometimes greater) the ImportSubreport method throws an exception with the message, "Invalid Section Height". Note that I have one section for each report. This is to make it easier to place the subreport on in the document and on it's own page.
    I cannot seem to determine what is going wrong. Why would the 41+ import fail?
    I am using Crystal Reports Version for Visual Studio .NET, 13.0.8.

    Hi Ryan,
    No need to test, Ludek found this KBA:
    1670453 - RAS Can't Create Objects in Crystal Report Sections Past
    40
    So your only work around is to create a template report with dummy subreports already embedded in it.
    Here's something to get you started:
    btnReportObjects = Text box
    subreportClinetDocument.IsImported is a new API so you may need to upgrade CR for VS.
    btnReportObjects.Text = "";
    flcnt = 0;
    foreach (String resultField in rptClientDoc.SubreportController.GetSubreportNames())
        SubreportController subreportController = rptClientDoc.SubreportController;
        SubreportClientDocument subreportClinetDocument = subreportController.GetSubreport(resultField);
        if (subreportClinetDocument.IsImported)
            textBox1 = "Imported: " + subreportClinetDocument.SubreportLocation.ToString();
            btnReportObjects.Text += textBox1;
            btnReportObjects.AppendText(" 'End' \n");
            ++flcnt;
            btnCount.Text = flcnt.ToString();
        else
            textBox1 = "embedded: " + " " + resultField.ToString();
            btnReportObjects.Text += textBox1;
            btnReportObjects.AppendText(" 'End' \n");
            ++flcnt;
            btnCount.Text = flcnt.ToString();
        CrystalDecisions.CrystalReports.Engine.ReportObjects crReportObjects;
        //set the crSections object to the current report's sections
        CrystalDecisions.CrystalReports.Engine.Sections crSections = rpt.ReportDefinition.Sections;
        if (resultField.ToString() == "World Sales Report.rpt")
            //loop through all the sections to find all the report objects
            foreach (CrystalDecisions.CrystalReports.Engine.Section crSection in crSections)
                crReportObjects = crSection.ReportObjects;
                //loop through all the report objects to find all the subreports
                foreach (CrystalDecisions.CrystalReports.Engine.ReportObject crReportObject in crReportObjects)
                    if (crReportObject.Kind == ReportObjectKind.SubreportObject)
                        CrystalDecisions.ReportAppServer.ReportDefModel.Section rasSection;
                        rasSection = rptClientDoc.ReportDefController.ReportDefinition.FindSectionByName(crSection.Name);
                        CrystalDecisions.ReportAppServer.Controllers.SubreportClientDocument MyNewSub;
                        MyNewSub = rptClientDoc.SubreportController.GetSubreport(resultField.ToString());
                        CrystalDecisions.ReportAppServer.ReportDefModel.SubreportObject objSubreport = rptClientDoc.ReportDefController.ReportObjectController.GetAllReportObjects()[crReportObject.Name] as CrystalDecisions.ReportAppServer.ReportDefModel.SubreportObject;
                        CrystalDecisions.ReportAppServer.ReportDefModel.SubreportObject objSubreport2 = (CrystalDecisions.ReportAppServer.ReportDefModel.SubreportObject)objSubreport.Clone(true);
                        rptClientDoc.ReportDefController.ReportObjectController.Remove(objSubreport);
                        CrystalDecisions.ReportAppServer.ReportDefModel.SubreportLinks mySubLinks = rptClientDoc.SubreportController.GetSubreportLinks(objSubreport2.SubreportName.ToString());
                        mySubLinks.RemoveAll();
                        objSubreport2.Left = 10;
                        objSubreport2.Height = 10;
                        objSubreport2.Width = 10;
                        objSubreport2.Name = "sub1";
                        objSubreport2.SubreportName = "sub1";
                        //rptClientDoc.ReportDefController.ReportObjectController.Modify(rptClientDoc.ReportDefController.ReportObjectController.GetAllReportObjects()[crReportObject.Name] as CrystalDecisions.ReportAppServer.ReportDefModel.SubreportObject, objSubreport2);
                        rptClientDoc.ReportDefController.ReportObjectController.Add(objSubreport2, rasSection, -1);
    I don't recall now what I was testing but all of the basics are there to replace the dummy subreports with your new ones.
    I DID NOT test this with more than 40 subreport objects either so you may still run into the SDK limit. We may have to ask the Report Designer Resource if this can be handled in the report by using Conditional suppression...
    Don

  • Cannot set section height to less than 220 twips - RAS

    I'm using in proc ras with the Crystal 2011 .NET SDK (version 12). I cannot set a detail section height smaller than 220 twip. It looks fine in the debugger after I set it but when I open the saved report the height is always 220 twips. I made sure there are no object larger than 125 twips and they are all positioned at the top of the section band.
    CrystalDecisions.CrystalReports.Engine.ReportDocument rd = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    ISCDReportClientDocument rcd = rd.ReportClientDocument;
    rd.Load(reportFilePath);
    ReportDefController2 reportDef = rcd.ReportDefController;
    CrystalDecisions.ReportAppServer.ReportDefModel.Section detailSection0 = reportDef.ReportDefinition.DetailArea.Sections[0];
    detailSection0.Height = 125;
    rd.SaveAs("C:\\TEST.RPT")
    Edited by: John Lobaugh on Dec 10, 2011 2:39 AM
    Edited by: John Lobaugh on Dec 10, 2011 2:40 AM

    Hi John,
    Need more info...
    CR 2011 does not have any SDK's included with it and CR 2008 is version 12.
    The SDK for CR 2011 is in CR for Visual Studio 2010 and is version 13.
    All of the runtime and installer for CR for VS VS 2010 is on this page:
    http://www.sdn.sap.com/irj/boc/crystalreports-dotnet
    Don

  • The section height is not valid

    Post Author: rbadis
    CA Forum: General
    Hi,
    I'm running and exporting a crystal report to PDF using C#.net on Crystal report Version 10.0 , and I'm handling the TextBoxes on my Crystal programmatically using this bit of code and it's working fine for 4 textboxes:
    TextObject ReportTextBox;
    ReportTextBox = (TextObject)CReport.ReportDefinition.ReportObjects["Item1_1_1"];
    ReportTextBox.ObjectFormat.EnableSuppress = true;
    BUT, when I did put more textboxes in my crystal it's giving me this Error "The section height is not valid" !?
    how can I fix it?
    Cheers.

    These are user-to-user forums, you are not talking to Apple here - I've asked the hosts to remove the email address from your post.
    Was the gift card issued in the same country as your account is based ? They are only valid in their country of issue. If it was and this page doesn't help then you will need to try contacting iTunes support (you will need to give them the serial number and activation code from the card) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • Error in File ~tmp81c59e23760a10.rpt: Invalid argument for database

    When trying to run the report via Crystal Reports Server, we get the following error:
    Error in File ~tmp81c59e23760a10.rpt: Invalid argument for database.
    Opening the report in Crystal Reports 2008 and running a verify database, confirms that everything is working. Yet when we run it through Crystal Reports Server it errors every time.
    We are using a Progress ODBC driver which works fine when running reports via Crystal Reports 2008
    Can you please shed some light on this.
    I have already checked to see if there was a service pack or any other hot fixes available.

    Hi Brett,
    I believe I have the same error. ie
    Invalid Argument provided.
    Error in File xxxxx {C8F4D455-6B45-4859-B1B0-3E77619E5AD0}.rpt:
    Invalid argument for database."
    Have you managed to resolve the issue yet?
    We're running Crystal Reports 2008 Basic on MS SQL Server 2005.
    The Crystal Report works fine, when run on the server (and/or in terminal server session), but if it is run from a desktop client, which connects to the server, it gives the error above.
    So in my case, it must permissions or component related (ie something not loaded, that should be).
    I found the following on the internet:
    u201DIDataReader supports only one table by default
    When you view a report that has tables with the data source set to
    IDataReader for each one, and many of the tables are linked together, you
    may see the following error message: "Invalid database argument." Calls
    made to SetDataSource() from an IDataReader are supported only for
    reports that contain one table.
    Workaround
    To use an IDataReader with multiple tables, create a report with one
    command table that selects the necessary fields.u201C
    From researching in SAP BOBJ Notes I found somethings to try, or look at, but can't quite tackle them yet. I'll let you know how it goes.
    Best Regards,
    George

  • Change section's name

    Hi
    anyone can help me to change a section name.
    this is my code (java)
    ReportSectionController rsc = (ReportSectionController) targetdoc.getReportDefController().getReportSectionController();
    Section sec = (Section) targetdoc.getReportDefController().getReportDefinition().getReportHeaderArea().getSections().getSection(0);
    sec.setName("newsec");
    rsc.setProperty(sec, ReportSectionPropertyEnum.name, "newsec");
    and i got the exception:
    Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException:
    Error in File C:\WINDOWS\TEMP\{17521592-C3FE-47BA-954E-1AC519C2A2AF}.rpt:
    Invalid section.---- Error code:-2147483130 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at SetSec.main(SetSec.java:89)
    Thanks!

    Afaustino-
    If you purchased a used iPad, just changing the Username is not all you need to do.  You should run the Settings App, and go to Settings-General-Reset-Erase All Content and Settings.  This returns the iPad to new status so you can set it up as yours.
    You probably need to set it up with the iTunes program running on your computer.  If you do not have it, you can download the program from Apple.  During the setup, you will need to establish an Apple ID if you do not already have one.
    Fred

  • Get the height of a report to use for setting height of subreport

    I am getting an error:  Invalid Section Height   on one of my subreports
    that I am programmatically inserting into a report.  I have not set the
    subreport height, I thought that it would be automatically set if I didn't
    set it.   I am measuring the width of a section in the report I am using
    for a subreport to use as the Width for the subreport, but not sure how
    to get the height of the report.   It appears this needs to be in pixels.
    I have manually tried setting it to 14400, which I believe is 11" and I ge an invalid section height error.
    How do I get the height for the subreport???  
    I am using VB.Net 2008, Crystal 2008, Vista Buisiness.   - All the latest service packs of everything.
    Thanks,
    Jeff

    Hi Jeff,
    The easiest way to figure this out is to test it in the Crystal Reprot Designer first. Bascially you can't set the subreport higth larger than the report page itself. CR needs to allocate space for the Page header and footer then Group header/footer and detail sections. There are options when designing this in CR Designer which will allow you to span more than one page. The simplest way is to design a template report in Crystal Report Designer so you can see all the options required to make this work. Then you can set the same in code when inserting.
    Remember "If it can't be done in the Report Designer it can't be done in code" The Designer uses the same set of API's as .NET. By using a test report you can then see what settings are being configured when you get the info in code.
    It believe you simply need to set the Can Grow options. Test this in the Designer then update us if you have any more questions.
    Thank you

  • When 40 subreports are added programmatically to a report the last subreport to be added is shown first while all other reports are in the correct order

    I am loading multiple sub-reports (up to 40) into a master report document using the Crystal SDK. This is accomplished by obtaining a reference to the detail area, adding a section to it, and then importing the subreport into the detail area. The master report does not contain a whereclause and contains no data other than the other sections so it is display only once.
    When I add the section to the master report I give an index of -1 so that it would always appear on the bottom in the report. This works until I print a report containing exactly 40 reports at which time the last section is shown at the top of the report. All other sections (and hence subreports) appear in the correct order. If I print less than 40 reports all sections are in the correct order. If I print more, the export process crashes as documented in Invalid Section Height when I load the nth subreport
    I am using Crystal Reports SDK 13.0.8. Visual Studio 2012. .NET 4.5.2.
    The pertinent bit of code is shown below. What might I be doing incorrectly? Is this a Crystal SDK bug?
    Thanks,
    Ryan
    private ReportDocument AddSubReportToParent(string subReportName, string fileName)
        try
            CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea headerArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.ReportHeaderArea;
            CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea detailArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea;
            CrystalDecisions.ReportAppServer.ReportDefModel.ISCRArea footerArea = _crystalDocument.ReportClientDocument.ReportDefController.ReportDefinition.ReportFooterArea;
            CrystalDecisions.ReportAppServer.ReportDefModel.Section section = new CrystalDecisions.ReportAppServer.ReportDefModel.Section();
            // strip dots from name (any character that is not a number or letter causes a name/ID runtime error from the Crystal Reports SDK)
            string sectionName = "Section" + subReportName.Replace(".", "");
            section.Name = sectionName;
            section.Kind = CrystalDecisions.ReportAppServer.ReportDefModel.CrAreaSectionKindEnum.crAreaSectionKindDetail;
            section.Width = headerArea.Sections[0].Width;
           _crystalDocument.ReportClientDocument.ReportDefController.ReportSectionController.Add(section, detailArea, -1);
            _crystalDocument.ReportClientDocument.SubreportController.ImportSubreport(subReportName, _configSettings.InputPath + "\\" + fileName, section);
            ReportDocument subreport = _crystalDocument.OpenSubreport(subReportName);
            return subreport;
        catch (Exception ex)
            Logger.ErrorException(ex);
            throw;

    Hi Ryan
    The search string 'crystal net 40' (search box in top right corner, returns this KBA:
    2105208 - ER - CR .NET SDK has a Section limit set to 104 and subreport limit of 40
    SP 13 for "SAP Crystal Reports, Developer Version for Visual Studio .NET" can be downloaded here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Invalid export DLL or export format

    I have created a code to export the report to excel and it works.. but when i use the export property of the crystal report viewer, all file format works except for the excel format and I am receiving this kind of message whenever I tried using export property of the crystal report viewer..
    "Error in File rpt017 {4742A80B-0356-499C-9B57-BE59A69BD788}.rpt: Invalid export DLL or export format."
    any idea? someone?

    Here is my Web config..
    <?xml version="1.0"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
         <configSections>
              <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"></section>
                        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                             <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"></section>
                             <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"></section>
                             <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"></section>
                        </sectionGroup>
                   </sectionGroup>
              </sectionGroup>
              <sectionGroup name="businessObjects">
          <sectionGroup name="crystalReports">
            <section name="reportMappings" type="CrystalDecisions.Shared.ReportMappingHandler, CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"></section>
            <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null"></section>
          </sectionGroup>
        </sectionGroup>
      </configSections>
         <system.web>
                        <sessionState stateNetworkTimeout="1000000" timeout="50000"></sessionState>
              <httpRuntime executionTimeout="1440"></httpRuntime>
              <pages enableEventValidation="true">
                   <controls>
                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   </controls>
                   <namespaces>
            <clear></clear>
            <add namespace="System"></add>
            <add namespace="System.Collections"></add>
            <add namespace="System.Collections.Specialized"></add>
            <add namespace="System.Configuration"></add>
            <add namespace="System.Text"></add>
            <add namespace="System.Text.RegularExpressions"></add>
            <add namespace="System.Web"></add>
            <add namespace="System.Web.Caching"></add>
            <add namespace="System.Web.SessionState"></add>
            <add namespace="System.Web.Security"></add>
            <add namespace="System.Web.Profile"></add>
            <add namespace="System.Web.UI"></add>
            <add namespace="System.Web.UI.WebControls"></add>
            <add namespace="System.Web.UI.WebControls.WebParts"></add>
            <add namespace="System.Web.UI.HtmlControls"></add>
                        <add namespace="Microsoft.VisualBasic"></add>
                        <add namespace="System.Data"></add>
                        <add namespace="System.Drawing"></add>
                        <add namespace="System.Data.Odbc"></add>
                   </namespaces>
              </pages>
              <compilation defaultLanguage="vb" debug="true">
                   <assemblies>
                        <add assembly="System.Messaging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add>
                        <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add>
                        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"></add>
                        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add>
                        <add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add>
                        <add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add>
                        <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"></add>
                        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"></add>
                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
                        <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
            <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"></add>
            <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"></add>
            <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"></add>
                   </assemblies>
          <buildProviders>
            <add extension=".rpt" type="CrystalDecisions.Web.Compilation.RptBuildProvider, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
          </buildProviders>
        </compilation>
              <httpHandlers>
                   <remove verb="*" path="*.asmx"></remove>
                   <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"></add>
                   <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"></add>
              </httpHandlers>
              <httpModules>
                   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
              </httpModules>
                                  <authentication mode="Forms">
                   <forms timeout="1440"></forms>
              </authentication>
              <authorization>
                   <allow users="*"></allow>
                             </authorization>
                        <trace enabled="false" requestLimit="10" pageOutput="true" traceMode="SortByTime" localOnly="true"></trace>
              <!--  SESSION STATE SETTINGS
              By default ASP.NET uses cookies to identify which requests belong to a particular session.
              If cookies are not available, a session can be tracked by adding a session identifier to the URL.
              To disable cookies, set sessionState cookieless="true".
        -->          <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB"></globalization>
              <xhtmlConformance mode="Transitional"></xhtmlConformance>
         </system.web>
         <system.webServer>
              <validation validateIntegratedModeConfiguration="false"></validation>
              <modules>
                   <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
              </modules>
              <handlers>
                   <remove name="WebServiceHandlerFactory-Integrated"></remove>
                   <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"></add>
                   <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"></add></handlers>
         </system.webServer>
         <location allowOverride="true" inheritInChildApplications="true">
              <appSettings>
       <add key="connString1" value="Data Source=lmkdb3.ntpasila.ad.lmk;User Id=lcnwuat_dbo;Password=two-1=one;"></add>
       <add key="crLogonServername1" value="lmkdb3.ntpasila.ad.lmk"></add>
       <add key="crLogonUserID1" value="lcnwuat_dbo"></add>
       <add key="crLogonPassword1" value="two-1=one"></add>
       <add key="connString" value="Data Source=orcldb;User Id=st_test;Password=st_wala;"></add>
       <add key="crLogonServername" value="orcldb"></add>
       <add key="crLogonUserID" value="st_test"></add>
       <add key="crLogonPassword" value="st_wala"></add>
       <add key="TreeViewIcons" value="images/treeicons/icons"></add>
       <add key="TreeViewStyles" value="images/treeicons/styles/classic"></add>
       <add key="leftnavroot" value="Lemcon Staff Tracker"></add>
       <add key="FromYear" value="1900"></add>
       <add key="ToYear" value="2010"></add>
       <add key="FileLocation" value="E:StafftrackerStafftrackerFiles"></add>
       <add key="Server" value="http://192.168.1.115/stafftracker/"></add>
       <add key="MailServer" value="localhost"></add>
       <add key="ViewSearchEmp" value="usercontrols/views/ViewEmployeeProfile.aspx?emp_id="></add>
       <add key="ViewSearchReq" value="usercontrols/views/ViewCustomerRequest.aspx?cr_id="></add>
       <add key="ViewSearchAward" value="usercontrols/views/ViewAwarding.aspx?cr_id="></add>
       <add key="ViewSearchCons" value="usercontrols/views/ViewConsultantContract.aspx?ec_id="></add>
       <add key="ViewSearchCust" value="usercontrols/views/ViewCustomerContract.aspx?cc_id="></add>
       <add key="ViewSearchECon" value="usercontrols/views/ViewEmployeeContract.aspx?empc_id="></add>
       <add key="ViewSearchSoc" value="usercontrols/views/ViewSocialSecurity.aspx?emp_id="></add>
       <add key="ViewEmpRec" value="usercontrols/views/ViewEmploymentRecord.aspx?employ_id="></add>
       <add key="ViewReq" value="usercontrols/views/ViewRequest.aspx?req_id="></add>
       <add key="SiteMaintenance" value="usercontrols/maintenance/Site.aspx"></add>
       <add key="ProjectMaintenance" value="usercontrols/maintenance/Project.aspx"></add>
       <add key="ViewFI" value="FI_Socsec.aspx?grdFISocSecId="></add>
       <add key="ViewFIFam" value="FIFam_Socsec.aspx?grdFISocSecId="></add>
       <add key="ViewEmpRecord" value="Employment.aspx?employ_id="></add>
       <add key="ViewEmpRecord2" value="EmploymentCreateNew.aspx?employ_id="></add>
       <add key="ViewEmpRecord3" value="EmploymentCreateNew02.aspx?employ_id="></add>
       <add key="ViewProjTask" value="Proj_Task.aspx?employ_id="></add>
       <add key="ViewProjTask2" value="Proj_Task2.aspx?employ_id="></add>
       <add key="ViewEmpContract" value="usercontrols/contract/EmployeeContract.aspx"></add>
       <add key="ViewEmpContractLN" value="usercontrols/contract/EmployeeContractLN.aspx"></add>
       <add key="ViewSocSecUI" value="usercontrols/employee/SocialSecurity.aspx"></add>
       <add key="CrystalImageCleaner-AutoStart" value="true"></add>
       <add key="CrystalImageCleaner-Sleep" value="60000"></add>
       <add key="CrystalImageCleaner-Age" value="120000"></add>
       <add key="CountryMaintenance" value="usercontrols/maintenance/Country.aspx"></add>
       <add key="CityMaintenance" value="usercontrols/maintenance/City.aspx"></add>
      </appSettings>
        <connectionStrings></connectionStrings>
         </location>
         <businessObjects>
        <crystalReports>
          <reportMappings>
            <add reportName="Copy of rpt010.rpt" path="usercontrols
    eportsCopy of rpt010.rpt"></add>
            <add reportName="Copy of rpt017.rpt" path="usercontrols
    eportsCopy of rpt017.rpt"></add>
            <add reportName="CrystalReport.rpt" path="usercontrols
    eportsCrystalReport.rpt"></add>
            <add reportName="CustomerWoConsContract.rpt" path="usercontrols
    eportsCustomerWoConsContract.rpt"></add>
            <add reportName="default.rpt" path="usercontrols
    eportsdefault.rpt"></add>
            <add reportName="MissingWorkRec.rpt" path="usercontrols
    eportsMissingWorkRec.rpt"></add>
            <add reportName="RequestwoCandidate.rpt" path="usercontrols
    eportsRequestwoCandidate.rpt"></add>
            <add reportName="RequestwoCandidateExp.rpt" path="usercontrols
    eportsRequestwoCandidateExp.rpt"></add>
            <add reportName="RequestwoCustCont.rpt" path="usercontrols
    eportsRequestwoCustCont.rpt"></add>
            <add reportName="rpt001.rpt" path="usercontrols
    eports
    pt001.rpt"></add>
            <add reportName="rpt002.rpt" path="usercontrols
    eports
    pt002.rpt"></add>
            <add reportName="rpt003.rpt" path="usercontrols
    eports
    pt003.rpt"></add>
            <add reportName="rpt005.rpt" path="usercontrols
    eports
    pt005.rpt"></add>
            <add reportName="rpt005B.rpt" path="usercontrols
    eports
    pt005B.rpt"></add>
            <add reportName="rpt006.rpt" path="usercontrols
    eports
    pt006.rpt"></add>
            <add reportName="rpt006B.rpt" path="usercontrols
    eports
    pt006B.rpt"></add>
            <add reportName="rpt008.rpt" path="usercontrols
    eports
    pt008.rpt"></add>
            <add reportName="rpt008B.rpt" path="usercontrols
    eports
    pt008B.rpt"></add>
            <add reportName="rpt009.rpt" path="usercontrols
    eports
    pt009.rpt"></add>
            <add reportName="rpt009B.rpt" path="usercontrols
    eports
    pt009B.rpt"></add>
            <add reportName="rpt010.rpt" path="usercontrols
    eports
    pt010.rpt"></add>
            <add reportName="rpt011.rpt" path="usercontrols
    eports
    pt011.rpt"></add>
            <add reportName="rpt013.rpt" path="usercontrols
    eports
    pt013.rpt"></add>
            <add reportName="rpt017.rpt" path="usercontrols
    eports
    pt017.rpt"></add>
            <add reportName="rpt018.rpt" path="usercontrols
    eports
    pt018.rpt"></add>
            <add reportName="StaffPerArea.rpt" path="usercontrols
    eportsStaffPerArea.rpt"></add>
          </reportMappings>
          <rptBuildProvider>
            <add embedRptInResource="true"></add>
          </rptBuildProvider>
        </crystalReports>
      </businessObjects>
    </configuration>
    Edited by: Angelo Emmanuel Heraña on Aug 14, 2008 7:37 AM

  • Report fails with " Invalid argument for database." error.

    Hi All,
    Several of my reports deployed on Crystal Reports Server 2008 server fails everyday with the following error.
    Error in File ~tmp121c5dc747685036.rpt: Invalid argument for database.
    The error is not consistent, if report A fails today, it is Report B the next day. When I reschedule the reports, they run just fine. They fail only when the daily schedules run at 2:00 AM in the morning. 100 + reports are run at this time and some of the reports that fail run many times with different parameters. Is this error due to scheduling reports many times or is it something else? Appreciate any help with this.
    Thanks
    Bin

    Hi,
    can you please check under <BOBJ installation directory>\BusinessObjects Enterprise 12.0\logging in the log files created by the crystal reports job server for additionaly error messages?
    Regards,
    Stratos
    PS: Do you run CRS 2008 V0 or V1?

  • Apex 3.1.2.00.02 creates invalid export file (that gives ORA-20001 error)

    Hi
    I want to let you know, that sometimes APEX 3.1.2.00.0 creates invalid export file.
    Older apex 3.0 created correct file.
    For example: our application has page button, where "Optional URL Redirect" is:
    Page: &APP_PAGE_ID.
    Request: FLOW_XMLP_OUTPUT_R11531800061044170_et
    If we export application into file f110.sql and try to import it to the same workspace on the same server, we get error:
    {color:#0000ff}ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 28, column 111: PLS-00103: Encountered the symbol "_" when expecting one of the following: ) , * &amp; | = - + &lt; / &gt; at in is mod remainder not rem =&gt; .. &lt;an exponent (**)&gt; &lt;&gt; or != or ~= &gt;= &lt;= &lt;&gt; and or like LIKE2_ LIKE4_ LIKEC_ as between from using || multiset member SUBMULTISET_ The symbol &a
    {color}In exported f110.sql file the invalid section is:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R'||to_char({color}{color:#0000ff}{color:#ff0000}*10255206661122183_et*{color}+wwv_flow_api.g_id_offset)||':&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    If we exported the same application in apex 3.0, this section was correct:
    {color:#0000ff}wwv_flow_api.create_page_branch(
    p_id=&gt;11762805016890347 + wwv_flow_api.g_id_offset,
    p_flow_id=&gt; wwv_flow.g_flow_id,
    p_flow_step_id=&gt; 4,
    p_branch_action=&gt; 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_XMLP_OUTPUT_R*10255206661122183_et*:&DEBUG.:::',
    p_branch_point=&gt; 'AFTER_PROCESSING',
    p_branch_type=&gt; 'REDIRECT_URL',
    p_branch_when_button_id=&gt;11761415275883875+ wwv_flow_api.g_id_offset,
    p_branch_sequence=&gt; 10,
    p_branch_comment=&gt; 'Created 20-JUUNI-2008 12:05 by XXXX');{color}
    Best Regards,
    T&otilde;nu

    Thanks for pointing that out. We'll fix it. It does appear though, that in 3.0, the offset would not be added to the number part of the request value, so if you installed the application as a different application ID or into a different workspace, the request would have failed.
    Scott

  • Export to Excel 2007 failed - Invalid export DLL or export format.

    Hi,
    Environment:
    OS: Windows XP (SP3)
    Crystal Reports : 12.1.0.892
    We have a problem for exporting few reports to Excel 2007 (Export to Excel 2003 works fine for those reports).
    Getting the bellow while trying to Export to Excel 2007.
    Crystal Report Windows Forms Viewer
    Error in File CDSFUN01 {99B42BC5-2FBB-4F75-A4F5-D7B5B7B6AE0B}.rpt:
    Invalid export DLL or export format.
    OK  
    Export Report
    Export failed.
    OK  
    Its the same case even if we try to Export blank report to Excel 2007 as well. Please help.

    I will make sure that I am on the latest patch ie SP4
    https://smpdl.sap-ag.de/~sapidp/012002523100008782452011E/cr2008sp4.exe
    You can find the rumtimes here:
    MSI:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782532011E/cr2008sp4_redist.zip
    MSM:
    https://smpdl.sap-ag.de/~sapidp/012002523100008782522011E/cr2008sp4_mm.zip
    ClickOnce
    https://smpdl.sap-ag.de/~sapidp/012002523100008782442011E/cr2008sp4_clickonce.zip
    Recompile the app and then deploy.
    What is the .NET Framework used by the application?
    Method of deployment?
    OS where app is deployed, x86 or x64?
    Are you able to export the report from designer ie CR2008 Standalone?
    - Saurabh

  • Accordion Height

    Hi All,
    How can I provide the getHeight() Api for accordion.
    I am aware about maxHeight property of accordionSection.
    But my requirement is to implement getHeight() api on accordion, which will take care of all the sections heights, expanded section and also browser specific paddings. in essence resizing should also be considered.
    Has anyone tried this?
    Any pointers would be helpful.
    Thanks.

    Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate.  See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
    Regards, Mike
    SAP Customer Experience Group - CEG

  • Section on entire dashboard

    Hi Experts,
    How to show Embedded Content on entire dashboard. As it is only coming in the section height though I made 100% height.
    I want the content of the page whose URL I am giving in Embedded Content Window to be displayed on entire dashboard height.
    Please help
    Thanks

    I dont know i got your question right,but i will try to help you by what i understood.
    Let it be embedded content or links or text.You can create a column and place it separately which shows beside the dashboard.If not you can show or add it to the dashboard just below the section area.
    I dont think so it will display on the entire dashboard height by what your saying.Never i tried but i would suggest you create a new column beside the dashboard and set the height what your saying and add embedded content.
    Hope it helps,if not lets wait for more better answers.
    Best Wishes,
    Kranthi.

  • Re:invalid partial field access: negative offset

    Hi,
           iam getting error invalid partial field access: negative offset, what is this mean

    negative off set not allowed
    Access Using Offset and Length Specifications
    Offset and length specifications are generally critical since the length of each character is platform-dependent. As a result, it is initially unclear as to whether the byte unit or the character unit is referred to in mixed structures. This forced us to put in place certain considerable restrictions. However, access using offset or length specifications is still possible to the degree described in the following. The tasks subject to this rule include accessing single fields and structures, passing parameters to subroutines and working with field symbols.
    Single field access
    Offset- or length-based access is supported for character-type single fields, strings and single fields of types X and XSTRING. For character-type fields and fields of type STRING, offset and length are interpreted on a character-by-character basis. Only for types X and XSTRING, the values for offset and length are interpreted in bytes.
    Structure access
    Offset- or length-based access to structured fields is a programming technique that should be avoided. This access type results in errors if both character and non-character-type components exist in the area identified by offset and length.
    Offset- or length-based access to structures is only permitted in a UP if the structures are flat and the offset/length specification includes only character-type fields from the beginning of the structure. The example below shows a structure with character-type and non-character-type fields. Its definition in the ABAP program and the resulting assignment in the main memory is as follows:
    BEGIN OF STRUC,
      a(3)  TYPE C,   "Length: 3 characters
      b(4)  TYPE N,   "Length:  4 characters
      c     TYPE D,   "Length:  8 characters
      d     TYPE T,   "Length:  6 characters
      e     TYPE F,   "Length:  8 bytes
      f(26) TYPE C,   "Length: 28 characters
      g(4)  TYPE X,   "Length: 2 bytes
    END OF STRUC.
    Internally, the fragment view contains four fragments. Offset- or length-based access in this case is only possible in the first fragment. Statements like struc(21) or struc7(14) are accepted by the ABAP interpreter and treated like a single field of type C. By contrast, struc57(2) access is now only allowed in an NUP. If offset-/length-based access to a structure is permitted, both the offset and length specifications are generally interpreted as characters in a UP.
    Passing parameters to subroutines
    Up to now, parameter passing with PERFORM has allowed you to use cross-field offset and length specifications. In future, this will no longer be allowed in a UP. In a UP, offset and length-based access beyond field boundaries returns a syntax or runtime error. For example, access types c15 or c5(10) would trigger such an error for a ten-digit C field c.
    If only an offset but no length is specified for a parameter, the entire length of the field instead of the remaining length was previously used for access. As a result, parameter specifications are cross-field if you use only an offset, and therefore trigger a syntax error in a UP. PERFORM test USING c+5 is consequently not permitted.
    In addition, in a UP, you can continue to specify the remaining length starting from the offset off for parameters using the form field+off(*).
    Ranges for offset and length access when using field symbols
    A UP ensures that offset- or length-based access with ASSIGN is only permitted within a predefined range. Normally, this range corresponds to the field boundaries in case of elementary fields or, in case of flat structures, to the purely character-type starting fragment. Using a special RANGE addition for ASSIGN, you can expand the range beyond these boundaries.
    Field symbols are assigned a range allowed for offset/length specifications. If the source of an ASSIGN statement is specified using a field symbol, the target field symbol adopts the range of the source. If not explicitly specified otherwise, the RANGE is determined as follows:
    ASSIGN feld TO <f>.
    In a UP, the field boundaries of field are assigned to <fs> as the range, where field is no field symbol.
    ASSIGN <g> TO <f>.
    <fs2> adopts the range of <fs1>.
    ASSIGN elfeld+off(len) TO <f>.
    In a UP, the field boundaries of the elementary field elfield are assigned to <fs> as the range.
    ASSIGN <elfld>+off(len) TO <f>.
    <fs> adopts the range of the elementary field <elfield>.
    ASSIGN struc+off(len) TO <f>.
    ASSIGN <struc>+off(len) TO <f>.
    In a UP, the purely character-type starting section of the flat structures struc or <struc> determines the range boundaries.
    If the assignment to the field symbol is not possible because the offset or length specification exceeds the range permitted, the field symbol is set to UNASSIGNED in a UP. Other checks such as type or alignment checks return a runtime error in a UP. As a rule, offset and length specifications are counted in characters for data types C, N, D, and T as well as for flat structures, and in bytes in all other cases.
    Offset without length specification when using field symbols
    Up to now, ASSIGN field+off TO <fs> has shown the special behavior that the field length instead of the remaining length of field was used if only an offset but not length was specified. Since an ASSIGN with a cross-field offset is therefore problematic under Unicode, you must observe the following rules:
    As previously, the field length of field is used as the length. Using ASSIGN field+off(*)... you can explicitly specify the remaining length.
    ASSIGN <fs1>+off TO <fs2> is only permitted if the runtime type of <fs1> is flat and elementary, that is, C, N, D, T (offset in characters), or X (offset in bytes).
    ASSIGN field+off TO <fs2> is generally forbidden from a syntactical point of view since any offset <> 0 would cause the range to be exceeded. Exceptions are cases in which a RANGE addition is used.
    These rules enable you also in future to pass a field symbol through an elementary field using ASSIGN <fs>+n TO <fs>, as it is the case in a loop, for example.
    Processing Sections of Strings
    You can address a section of a string in any statement in which non-numeric elementary ABAP types or structures that do not contain internal tables occur using the following syntax:
    <f>[+<o>][(<l>)]
    By specifying an offset <o> and a length (<l>) directly after the field name <f>, you can address the part of the field starting at position <o>1 with length <l> as though it were an independent data object. The data type and length of the string section are as follows:
    Original field
    Section
    Data type
    Data type
    Length
    C
    C
    <l>
    D
    N
    <l>
    N
    N
    <l>
    T
    N
    <l>
    X
    X
    <l>
    Structure
    C
    <l>
    If you do not specify the length <l>, you address the section of the field from <o> to the end of the field. If the offset and length combination that you specify leads to an invalid section of the field (for example, exceeding the length of the original field), a syntax or runtime error occurs. You cannot use offset and length to address a literal or a text symbol.
    You should take particular care when addressing components of structures. To ensure the correct platform-specific alignment of type I and F components, they may contain filler fields, whose lengths you need to consider when calculating the correct offset. Furthermore, SAP plans to convert the internal representation of character types to UNICODE, in which one character will no longer occupy one byte, but instead two or four. Although offset and length specifications can work for character fields (types C, D, N, and T) or for hexadecimal fields (type X), incompatible changes may occur in structures containing a mixture of numeric, character, and hexadecimal fields. SAP therefore recommends that you do not use offset and length to address components of structures.
    In nearly all cases, you must specify offset <o> and length <l> as numeric literals without a preceding sign. You may specify them dynamically in the following cases:
    When assigning values using MOVE or the assignment operator
    When assigning values with WRITE TO
    When assigning field symbols using ASSIGN.
    When passing actual parameters to subroutines in the PERFORM statement.
    DATA TIME TYPE T VALUE '172545'.
    WRITE TIME.
    WRITE / TIME+2(2).
    CLEAR TIME+2(4).
    WRITE / TIME.
    The output appears as follows:
    172545
    25
    170000
    First, the minutes are selected by specifying an offset in the WRITE statement. Then, the minutes and seconds are set to their initial values by specifying an offset in the clear statement.
    Offset and Length Specifications in the MOVE Statement
    For the MOVE statement, the syntax for specifying offset and length is as follows:
    MOVE <f1>[<o1>][(<l1>)] TO <f2>[<o2>][(<l2>)].
    Or, when you use the assignment operator:
    <f2>[<o2>][(<l2>)] = <f1>[<o1>][(<l1>)].
    The contents of the part of the field <f1> which begins at position <o1>1 and has a length of <l1> are assigned to field <f2>, where they overwrite the section which begins at position <o2>1 and has a length of <l2>.
    In the MOVE statement, all offset and length specifications can be variables. This also applies to statements with the assignment operator, as long as these can also be written as MOVE statements. In statements where no field name is specified after the assignment operator, (for example, in Numeric Operations), all offset and length specifications must be unsigned number literals.
    SAP recommends that you assign values with offset and length specifications only between non-numeric fields. With numeric fields, the results can be meaningless.
    DATA: F1(8) VALUE 'ABCDEFGH',
    F2(20) VALUE '12345678901234567890'.
    F26(5) = F13(5).
    In this example, the assignment operator functions as follows:
    DATA: F1(8) VALUE 'ABCDEFGH',
    F2(8).
    DATA: O TYPE I VALUE 2,
    L TYPE I VALUE 4.
    MOVE F1 TO F2. WRITE F2.
    MOVE F1+O(L) TO F2. WRITE / F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    CLEAR F2.
    MOVE F1 TO F2+O(L). WRITE / F2.
    MOVE F1O(L) TO F2O(L). WRITE / F2.
    This produces the following output:
    ABCDEFGH
    CDEF
    CDABCD
    ABCD
    CDEF
    First, the contents of F1 are assigned to F2 without offset specifications. Then, the same happens for F1 with offset and length specification. The next three MOVE statements overwrite the contents of F2 with offset 2. Note that F2 is filled with spaces on the right, in accordance with the conversion rule for source type C.
    Offset and Length Specifications in the WRITE TO Statement
    For the WRITE TO statement, the syntax for specifying offset and length is as follows:
    WRITE <f1>[<o1>][(<l1>)] TO <f2>[<o2>][(<l2>)].
    The contents of the part of the field <f1> which begins at position <o1>1 and has a length of <l1> are converted to a character field and assigned to field <f2>, where they overwrite the section which begins at position <o2>1 and has a length of <l2>.
    In the WRITE TO statement, the offset and length specifications of the target field can be variables. The offset and length of the target field must be numeric literals without a preceding sign.
    DATA: STRING(20),
    NUMBER(8) TYPE C VALUE '123456',
    OFFSET TYPE I VALUE 8,
    LENGTH TYPE I VALUE 12.
    WRITE NUMBER(6) TO STRING+OFFSET(LENGTH) LEFT-JUSTIFIED.
    WRITE: / STRING.
    CLEAR STRING.
    WRITE NUMBER(6) TO STRING+OFFSET(LENGTH) CENTERED.
    WRITE: / STRING.
    CLEAR STRING.
    WRITE NUMBER TO STRING+OFFSET(LENGTH) RIGHT-JUSTIFIED.
    WRITE: / STRING.
    CLEAR STRING.
    This produces the following output:
    123456
    123456
    123456
    The first six characters of the field NUMBER are written left-justified, centered, and right-justified into the last 12 characters of the field STRING.

Maybe you are looking for

  • Updated to itunes 10.6.3 and now it won't recognize my iphone or ipad

    Itunes updated to 10.6.3 and now it will not recognize my iPhone or iPad.  I have tried uninstalling itunes and the amds following steps provided on the support site.  Still nothing.  My computer does show both as cameras though.  Any ideas?

  • Dv2630ea , hdmi to toshiba tv will only work if pc is restarted.

    when i plug my hdmi cable into my pc and tv i have to restart the pc before anything happens. then when the pc goes into idle it loses connection with the tv and i have to restart the pc again. any ideas? usually all i had to do was insert the hdmi c

  • Want to convert Sap standard report  into alvgrid

    HI PLEASE HELP THIS IS CODE BELOW OF SAP STANDARD REPORT CODE  WANT TO CONVERT INTO ALVGRID LEAS HELP REPORT RFKOPR00        MESSAGE-ID FR        LINE-SIZE  132        NO STANDARD PAGE HEADING. TABLES:   B0SG,           LFA1,                        "

  • Mail misbehaving - very annoying

    Hoping someone may be able to help me. I have Mac Mail on my G5 with three separate accounts on it. Everything has been fine, until my router needed replacing. Since I have a new router, each one of my three mail accounts randomly asks for the passwo

  • Concept on interest payment in AR

    Hi Gurus, Can you please explain the concept of interest payment in Accounts Receivable and what the documents to be configure for the same. Regards, Praveen.