Error in Crystal report when selecting OPOR

Hi,
I'm using Crystal Report 8.5 in formatting reports in SAP and when i select OPOR and POR1 tables i received an error message like this:
Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier.
Can somebody help me solve this?
Thanks very much.
Jacque Escabilla

Have a look at the following article on the crystal reports support site:-
http://support.businessobjects.com/library/kbase/articles/c2005270.asp
John

Similar Messages

  • Crystal Reports when connecting to SAP ERP gives Logon Failed error

    Hello Friends,
    We are trying to implement the SAP Best Practices Crystal Reports and Xcleisus Dashboards for ERP. We are using BI 4.0 SP2, Crystal Reports 2011 SP2 and SAP ECC 6.0 FP 5.
    We have done all configurations at the SAP end and successfully adpated a couple of Crystal Reports and they work fine.
    My client machine crashed and I had to reinstall my Windows and all Client Tools. After the installation, when I tried to adapt a few more reports, I face the below problem:
    After opeing the Crystal Report, when trying to Set the DataSource location, I select Create New Connection and select SAP Infosets. The SAP logon popup comes and I select the ECC system and enter the logon credentials for SAP ECC, I get an error message saying
    Logon Failed.
    Details: some square boxes.
    The error doesnt really make any sense. Unfortunately, I am not able to test this scenario in any other machine as I am the only developer here. I am almost sure this is because of some configuration set up in my client machine,
    Can some please help?
    Thanks in advance!

    Hello,
    I recommend looking at a couple of things:
    1) Do you have the latest Crystal transports installed with ECC?  SP 2 has new transports.  Check this subdirectory
    Crystal Reports 2011\DATA_UNITS\CrystalReports\Collaterals\Add-Ons\SAP\Transports\unicode_compatible\cofiles
    Use STMS to see if transports are installed
    2) Are you using 3.1 ?  Do you have the Integration Kit installed on ECC and client side?
    Tammy

  • Error Crystal report When viewed through SAP B1

    Dear Experts
    SAP B1 8.8 PL 16,SQL 2008
    I am facing error (Unable to retrive data from database)(Vendor code-156) while accessing Crystal report from client machine throgh SAP B1.I have imported Crystal report through manage layout.The crystal reported is in shared in SAP server B1 SHR folder.I am able to access data from crystal report when viewed otherwise.When accessed crsytal report through SAP b1 on SAP Server crystal report is working fine.
    Thanks & Regrds
    Saurabh Lamba

    Hi Saurabh Lamba,
    Go To Administration / System Initialisation / Authorisation / General Authorisation & Set Authorisation for user.
    If you have to Set Authorisation for user allready then follow this steps.
    1.Restore Database as Test Company.
    2.Export Report From Live Company.
    3.Import this Report in Test Company as different name.
    4.Export Report from Test Company have you Imported as deifferent name.
    5.Again Import this Report in Live company as different name
    I don't know what's the logic behind it.
    Thanks,
    Srujal Patel

  • Multi Value Parameter in SP  error in Crystal Report SAP B1 ?

    Hi Experts ,
    i am Getting an error in Crystal Report
    "Failed to retrieve data from the database.  Details:  42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '('. [Database vendor code: 120]" 
    I an executing the SP In Command  , I want to pass multi value parameter in SP
    When Pressing  ok
    than  On Ok Button  Error come
    So I have Some Question
    1> Why All parameter in Commend Are  Automatic getting  Compulsory  and How to Avoid It?
    2> How to Solve  this error ? this error is only coming with multivalued parameter ?
    i have many report in which i have to send the multi value parameter into query it self  so , Plz Help Me
    I am New to Crystal Report so it will be Kind Of you  if explain  with example .
    Thankks in Advance !!!
    Regards,
    Mayank Shah

    Hi Shachar,
    i will explain one because i think some thing is misunderstood
    please the images
    when all parameter record selected and no parameter record selected ... i want all record should display
    this blank report is problem
    Regards,
    Mayank Shah

  • Vista/Adobe 9/sql image Error in Crystal Report:Failed to Export the Report

    When I try to export my Crystal Report (v2008) from a Vista machine (using Crystal RDC export methods) as a PDF, I get the following error:
    Error in Crystal Report:  Failed to export the report.
    This only happens when a particular subreport (that contains a sql image) prints (based on an input parameter).  We have other subreports (within this same report) that print a sql image just fine.  But, when this subreport prints, the above error appears.
    I can run the same report on an XP machine without error.
    Exportmodeller.dll and crtsv.dll are both installed and registered to the
    C:\Program Files\Common Files\Business Objects\3.0\bin folder
    I have tried opening the report, removing the image, and then adding it back in again to the subreport.
    Still receive the same error.
    Any suggestions?

    >
    Don Williams wrote:
    > RDC is no longer shipped in CR 2008. You are using the embedded designer used within the Visual Studio .NET IDE and is not licensed for distribution.
    >
    > Upgrade to the .NET components and post your question to the .NET forums.
    >
    > Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.
    Don,
    Can you please clarify?
    Our VB6 app that uses Crystal XI RDC runtime components.  Our Crystal reports are edited in CR2008 SP1 developer edition (not through the VB.NET embedded report designer).  We have deployed the CRXIRelease 2 runtime components (via the merge module) to our client machines in order to execute the RDC.
    We can print/preview/export to excel, but the pdf creation is failing with this error.
    We are only using the RDC (which we know is no longer supported) because of huge issues with the Crystal for .NET methods we are having with our customers (I have an active case for this issue).  Therefore, we have to rollback our .NET product and revert to the RDC code. 
    Vista is failing to create a PDF for a report developed in the CR2008 SP1 developer edition when using the RDC.
    When you say  "Also, those old dll's will not work in CR 2008. Last patches will give you the option to export to Excel in Legacy mode. We built it into our export dll.", what do you mean by "will not work in CR2008"?
    Thank you

  • How to get actual error from Crystal Report

    We are using Crystal report in web service.
    We faced some problem due to crystal report unexpected error.
    Refer the below error message.
    Xception E NSF NSFZ1100 20100608 145511565 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
    Xception E NSF NSFZ1100 20100608 145511972 GPRAB0 : GPRZ10 GUEC0001 [1] AbstractService at System.Windows.Forms.MessageBox.ShowCore(IWin32Window owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, Boolean showHelp)
    at System.Windows.Forms.MessageBox.Show(String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e, Boolean suppressMessage)
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.HandleExceptionEvent(Object eventSource, Exception e)
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPageNumber()
    at CrystalDecisions.Windows.Forms.ReportDocumentBase.GetLastPage()
    at CrystalDecisions.Windows.Forms.DocumentControl.ShowLastPage()
    at CrystalDecisions.Windows.Forms.PageView.ShowLastPage()
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.TotalPageCount(ReportDocument Rpt)
    at Biz.Nissan.Cats.CORE.REPORT.LibCrystalReport.Print(BaseReport RptDefinition)
    at Biz.Nissan.Cats.CORE.REPORT.MCTLIST260Print.Print(IFData ifData)
    at Biz.Nissan.W3.CATS.BC.Service.DistributeService.ExecuteMpp()
    How we get the actual error from crystal report?
    Thanks in Advance

    Same as
    crystal report unexpected error in Web service (IIS)
    Closing this thread.
    Ludek

  • Rowlevel secuirty in Crystal reports when integrated in Enterprise portal

    I have a very simple crystal report which is developed against ECC data using the Open Sql Driver.
    Do I have to included some kind of code/logic in the report design for the SAP row-level security that already exists on SAP server to pass to the Crystal reports when report is run from the portal.
    Please suggest me the possible solution for this.?

    Ingo,
    Your input previously was very helpful.
    I do have one more question for you.
    If a Crystal report is designed using Open Sql Driver against ECC tables and this report is published on to BO Enterprise and both the BO and the SAP Enterprise Portal are both integrated, row level security is also implemented on SAP server.
    Now, when SAP user logs into the SAP Enterprise Portal and try to run this crystal report will then the user receive a database logon pop window to enter the client#, SAP login ID and Pwd like we receive it in the Crystal Designer?
    If Yes, I believe there is nothing to be taken care of at the Crystal designer level to include some kind of Special fields like CurrentCEUserID and so. In this case the data fetched on to the report already includes Users row level security.
    If No, how to configure crystal reports to pull data based on the user and user's role....what kind of special fields have to be included in the record selection or in the data base pop window of the report...?
    Please provide your inputs...
    Madhu

  • Temporary error "A Crystal Reports job failed because a free license ..."

    Hi all,
    We coded with VS 2003 a .NET 1.1 application which using the Crystal Report 9 Redistribution package .NET ready to display reports from measured data from our device. The data is stored in a SQL Server 2000 MSDE. Crystal Report has his own DB connection to the SQL server to read the data to display the report.
    Our application runs well on approx. 100 distributed installations. But on six customers installation we get this error. Actual on two customers PCs using the same DB we get the error "A Crystal Reports job failed because a free license could not be obtained in the time allocated.". This error pop up every time, when the report is shown. Although the report get shown completely.
    I observed in the 'Windows Event Viewer => "System" log after the above-mentioned error following entry "Crystal Report job was delayed 2 (sec)." once for every time when the user requested a report.
    I restored an empty DB on customers PC and the error don't pop up anymore.
    All CR .NET assemblies have the version 9.2.3300.0. I tested also the "CrystalReportNET_keycodefix.zip", but it doesn't help. I had checked for hours all the issues about this error message on the internet. I tested the most fitting solutions, but not one fix the problem.
    I tested customers full DB on my Virtual Machine with same installation, but I don't get the error.
    Cheers
    Ronny

    Hi Ludek<br>
    <br>
    Thanks for your answer. I checked all the things you asked me to do on both system.<br>
    <br>
    Here are the results from my investigations:<br>
    <br>
    <b>1) The keycode.dll was not on the not working PC.</b><br>
    I copied it to the root of C: as on the working PC. I registered it with regsvr32.exe and tested the issue.<br>
    => The problem still exist.<br>
    <br>
    <br>
    <br>
    <b>2) I compared the keycode on both system:</b><br>
    HKLM\SOFTWARE\Crystal Decisions\9.0\Crystal Reports\Keycodes\CR Ent<br>
    <br>
    non working PC:<br>
    1 AAP50-GS00000-U7000RN 131203342 3979604006<br>
    The code is different in comparison to the working PC, because I carried out the 'CrystalReportNET_keycodefix.zip'. Before this I made an export of the above registry key. Afterwards I wasn't able to merge this export (backup) again with the registry. I assume due to the included carriage returns in the keycode.<br>
    <br>
    working PC<br>
    1 XXXXX <br>
    <br>
    <br>
    <br>
    <b>3) I used the Process Monitor and got following error during the error sequence:</b><br>
    <br>
    I list only some key entries from the hundreds of error entries. Please inform me, how I can provide you the full logger files.<br>
    <br>
    non working PC:<br>
    WriteFile         C:\...\Administrator.QCNIR002\Local Settings\temp\~cpe{AD83....}    Fast IO Disallowed<br>
    RegEnumKey HKCR\Drive\shellex\FolderExtensions                                                 NO MORE ENTRIES<br>
    RegOpenKey HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Database      NAME NOT FOUND<br>
    RegOpenKey HKCU\Software\Crystal Decisions\9.0\Crystal Reports\Database      NAME NOT FOUND<br>
    RegOpenKey HKLM\Software\Policies\Microsoft\Windows NT\DnsClient                 NAME NOT FOUND<br>
    <br>
    But I observed beside the results: No more entries, Name not found, Fast IO Disallowed, Buffer overflow (RegQueryKey) and Range not locked (UnlockFileSingle of printer driver) no other errors.<br>
    <br>
    <br>
    working PC<br>
    Operation:      Path:                                                                                Result:<br>
    WriteFile         C:\...\Administrator\Local Settings\temp\~cpe{AD83....}                 Fast IO Disallowed<br>
    RegEnumKey HKCR\Drive\shellex\FolderExtensions                                            NO MORE ENTRIES<br>
    RegOpenKey HKLM\Software\Crystal Decisions\9.0\Crystal Reports\Database NAME NOT FOUND<br>
    RegOpenKey HKCU\Software\Crystal Decisions\9.0\Crystal Reports\Database NAME NOT FOUND<br>
    <br>
    <br>
    <br>
    <b>4) Service Packs</b><br>
    We could only compare the file size of the Merge Module we used with the one you provided me in the above link.<br>
    <br>
    <table border=0 cellpadding=0 cellspacing=0>
    <tr>
    <td>file name</td>
    <td>file size of used Merge Module</td>
    <td>file size of SP1 Merge Module</td>
    </tr>
    <tr>
    <td width=150>crnetruntime.msm</td>
    <td width=100>4'764'672 Byte</td>
    <td width=100>4'770'304 Byte</td>
    </tr>
    <tr>
    <td>license.msm</td>
    <td>578'048 Byte</td>
    <td>578'048 Byte</td>
    </tr>
    <tr>
    <td>reportengine.msm</td>
    <td>10'701'824 Byte</td>
    <td>10'905'088 Byte</td>
    </tr>
    </table>
    <br>
    But I tried to install SP7 on my PC and on customers PC, but I got following error after I accepted the license agreement in the setup.exe: titlebar of window 'Information', Msg: 'Failed to create Backup folder -110' and just a button 'OK'. I got into an infinit loop and I could only end the process: 'IKernel.exe'.<br>
    Remark: I get the same error with SP5 and SP6.<br>
    <br>
    <br>
    <br>
    <b>5) Modules - comparison of DLL's</b><br>
    <br>
    I cross checked all the DLL in Modules, which begin with CR and some other, because there were over 100 DLL's.<br>
    <br>
    <table x:str border=0 cellpadding=0 cellspacing=0 width=834 style='border-collapse:
    collapse;table-layout:fixed;width:626pt'>
    <col width=385 style='mso-width-source:userset;mso-width-alt:14080;width:289pt'>
    <col width=179 style='mso-width-source:userset;mso-width-alt:6546;width:134pt'>
    <col width=110 style='mso-width-source:userset;mso-width-alt:4022;width:83pt'>
    <col width=80 span=2 style='width:60pt'>
    <tr height=17 style='height:12.75pt'>
      <td height=17 width=385 style='height:12.75pt;width:289pt'>CRHEAPALLOC.DLL</td>
      <td width=179 style='width:134pt'>9.2.0.2</td>
      <td width=110 style='width:83pt'>9.2.0.2</td>
      <td width=80 style='width:60pt'></td>
      <td width=80 style='width:60pt'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRPE32.DLL</td>
      <td>9.2.3.1183</td>
      <td>9.2.3.1183</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRQE.DLL</td>
      <td>9.2.1.625</td>
      <td>9.2.1.625</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRTOWORDS_EN.DLL</td>
      <td>9.2.0.14</td>
      <td>9.2.0.14</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.CRYSTALREPORTS.ENGINE.DLL</td>
      <td>9.3.9500.10</td>
      <td>9.3.9500.10</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.REPORTAPPSERVER.CLIENTDOC.DLL</td>
      <td>9.2.3300.0</td>
      <td>9.2.3300.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.REPORTSOURCE.DLL</td>
      <td>9.3.9500.7</td>
      <td>9.3.9500.7</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.SHARED.DLL</td>
      <td>9.3.9500.10</td>
      <td>9.3.9500.10</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALDECISIONS.WINDOWS.FORMS.DLL</td>
      <td>9.3.9500.12</td>
      <td>9.3.9500.12</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>CRYSTALKEYCODELIB.DLL</td>
      <td>9.2.3300.0</td>
      <td>9.2.3300.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>keycode.dll</td>
      <td>9.0.0.281</td>
      <td>9.0.0.281</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADCE.DLL</td>
      <td>2.81.1135.0</td>
      <td>2.81.1135.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADCER.DLL</td>
      <td>2.81.1117.0</td>
      <td>2.81.1117.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADO15.DLL</td>
      <td>2.81.1128.0</td>
      <td>2.81.1128.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSADRH15.DLL</td>
      <td>2.81.1117.0</td>
      <td>2.81.1117.0</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>MSCORLIB.DLL</td>
      <td class=xl26>01/15/09 22:31:34</td>
      <td class=xl26>7/7/08 13:39</td>
      <td class=xl24></td>
      <td class=xl25></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>sqlresld.dll</td>
      <td>2000.80.382.0</td>
      <td>2000.080.0382.00</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    <tr height=17 style='height:12.75pt'>
      <td height=17 style='height:12.75pt'>crdb_ado.dll</td>
      <td>9.2.1.542</td>
      <td>9.2.1.542</td>
      <td colspan=2 style='mso-ignore:colspan'></td>
    </tr>
    </table>
    <br>
    Please specify the more detailed, if you mean the Crystal framework files or the .NET files. Could you give me please the location of the framework dlls and database client dlls like a folder name, so that I can check also all of them.<br>
    <br>
    I can provide you also the Module logger files, if you require them.<br>
    <br>
    <br>
    I would appreciate your further help very much.<br>
    <br>
    Cheers<br>
    <br>
    Ronny
    Edited by: Ronny S. on Jul 6, 2009 4:57 PM
    Edited by: Ronny S. on Jul 6, 2009 5:02 PM
    Edited by: Ronny S. on Jul 6, 2009 5:17 PM
    Edited by: Ronny S. on Jul 8, 2009 11:44 AM
    Edited by: David Hilton on Jul 15, 2009 11:04 AM
    Removed private keycode.

  • Error in sales order when selecting a warranty item in configurator 'Please enter required information - Service Reference Type Code'

    Error in sales order when selecting a warranty item in configurator 'Please enter required information - Service Reference Type Code'
    Not able to book the sales order because of this issue

    Order Management does not support the inclusion of optional service items in a configured Model BOM (see Support article #1296751.1 for more detail).  Allowing for such would therefore require customization.
    As you've found, there's no modeling restriction that prevents you from creating a Model BOM that includes optional service items, nor is there any problem with creating a Configurator Model for it.  And required service items (such as a warranty item that is a required child of an optional BOM component) do not present a problem; they have nothing to do with Configurator, and would never appear as sub-lines in OM.  The problem arises in OM, which requires that any service item be "associated" to the item it's "servicing".  OM does not automatically make such an association with service sub-lines, even though it might be argued that an association may be inferred by the BOM structure (i.e., OM does not assume that an optional service sub-line is necessarily associated, from a service standpoint, with its BOM parent).  OM customization is therefore required in order to hook any service item up to its corresponding product item.  Many customers who configure service along with product have implemented such a customization.
    (Another gap in such a solution that may be relevant to you is that for an included optional service item requiring recurring billing, Order Management does not create the requisite Service Contract.  Customers have likewise developed customizations to address this, as well.)
    As this is not specifically a Configurator matter (you could have created your order without using Configurator at all, and you would have experienced the exact same behavior), please do not take my explanation as being either authoritative or comprehensive (I am a Configurator expert, and only knowledgeable enough about Order Management to be dangerous).  It would be advisable for you to seek more detailed information/recommendations from the Order Management forum.
    Eogan

  • Error deploying Crystal Report XI R2 to Enterprise - Failed to read paramet

    Error deploying Crystal Report XI R2 to Enterprise - Failed to read parameter object.
    I know this issue has been addressed several times and the solution recommended was to install Service Pack 2. I have done that. It started working for me too; however recently I got some error saying some UDF***.DLL is missing. I re-installed Crystal Reports XI R2 and Service Pack 2. Unfortunately though, this error is back. I have restarted the machine n number of times but keep on getting this error.
    My report file has dynamic parameters defined through command object (SQL Query). My understanding is that once I publish the report to BoE Enterprise, BO will create LOVs and BV's in the repository. Now that is not happening.
    has any one else had this issue before and resolved it?
    Thanks

    Hi,
    do you export your CR report in your BOBJ repository using an account with administrator rights?
    Regards,
    Stratos

  • ALV grid list  report when selected  from  selection screen

    Hi folks,
                I need to get ALV grid display in my list report when selected the interval values from  the selection screen. If I change the values in list of ALV grid it needs to be updated when I press UPDATE pushbutton. The output of list should be in ALV grid display.I need sorting ,flitering,totaling functionality in the list output.
    For example if I selected BUKRS = 100 and 200 in the selection screen ,I need to display the ALV grid list in below the selection screen as ALV grid display...
    Its urgent as  I am new to ALV grid functionality...
    Thanks in advance..

    hi raja,
    check with the folllowing code.
    REPORT zca0m_zca0fcstftop NO STANDARD PAGE HEADING
                                    MESSAGE-ID zcsv_usrtbl_maintain.
    Type pools                                                           *
    TYPE-POOLS : slis.                          " Used for ALV display
    Tables
    TABLES: zca0fcstftop,
            dd04t,                         "R/3 DD: Data element texts
            tactt.                         "Activities that can be protected
    internal tables
    DATA: BEGIN OF wa_zca0fcstftop .
            INCLUDE STRUCTURE zca0fcstftop.
    DATA: END OF wa_zca0fcstftop.
    DATA: t_zca0fcstftop LIKE STANDARD TABLE OF wa_zca0fcstftop.
    DATA: BEGIN OF i_fcode OCCURS 0,
            fcode LIKE sy-ucomm,
          END OF i_fcode.
    *Record for variant selection
    DATA : BEGIN OF ws_variant,
             selected TYPE c,
             variant  LIKE ltdx-variant,  "Variant name
             text     LIKE ltdxt-text,    "Variant description
           END OF ws_variant.
    *Table for variant selection
    data : itab_variant LIKE STANDARD TABLE OF ws_variant WITH HEADER LINE.
    Variant selection pop-up global variables
    DECLARATION OF TABLECONTROL 'VARIANT_CNTL' ITSELF
    CONTROLS: variant_cntl TYPE TABLEVIEW USING SCREEN 0200.
    LINES OF TABLECONTROL 'VARIANT_CNTL'
    DATA:     g_variant_cntl_lines  LIKE sy-loopc.
    DATA:grid1 TYPE REF TO  cl_gui_alv_grid ,
         g_custom_container TYPE REF TO cl_gui_custom_container.
    Work fields
    DATA: table_name LIKE dd02l-tabname,   "To store table name
          field_name LIKE dd03l-fieldname, "To Store Field Name
          act_auth LIKE tactz-actvt,       "To pass Activity ID
          tab_maint LIKE dd02l-tabname,    "To pass Table Name to be Maintd.
          wg_confirm_ind,                  "To trap User responses
          flag,                            "To trap changes made to an entry
          f_copy,                          "To Identify 'COPY' Command Use
          f_select,                        "To decide between Select-options
                                           " and Internal Table
          l_transaction_code LIKE tstc-tcode,
          v_langu LIKE sy-langu,
          v_repid LIKE sy-repid,
          s_variant TYPE disvariant.
    DATA: ok_code LIKE sy-ucomm.
    DATA:selected_rows TYPE lvc_t_row  ,
         sel_rows TYPE lvc_t_row WITH HEADER LINE.
    DATA:t_lines TYPE i.
    Constants                                                            *
    CONSTANTS :
               c_x TYPE c VALUE 'X',             " Constant 'X'.
               c_f TYPE c VALUE 'F'.             " Constant 'F'.
    Parameters and Selection Options
    *Selection Screen for table maintenance
    *Selection option for Plant
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-b01.
    PARAMETERS:  p_werks   LIKE zca0fcstftop-werks OBLIGATORY.
    SELECT-OPTIONS: s_prdfml  FOR zca0fcstftop-product_family,
                    s_bmach   FOR zca0fcstftop-base_machine,
                    s_factop FOR zca0fcstftop-factory_top,
                    s_optval  FOR zca0fcstftop-option_value,
                    s_week    FOR zca0fcstftop-week.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-b02.
    PARAMETERS     : p_varant LIKE ltdx-variant.          " ALV variant
    SELECTION-SCREEN END OF BLOCK block2.
    At selection screen                                                  *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_varant.
      PERFORM alv_variant_f4 CHANGING p_varant.
    AT SELECTION-SCREEN ON p_werks .
    Validating Plant on the selection screen
      PERFORM validate_plant.
    Initialization
    INITIALIZATION.
    Check Authorization for the Transaction
    Authorization Check For T Code
      SELECT tcode
         INTO l_transaction_code
         FROM tstc UP TO 1 ROWS
         WHERE pgmna = sy-repid.
      ENDSELECT.
      AUTHORITY-CHECK OBJECT 'S_TCODE'
                          ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e001 WITH l_transaction_code.
      ENDIF.
      v_langu = sy-langu.                             " language
      v_repid = sy-repid .                            " abap Program name
    Start Of Selection
    START-OF-SELECTION.
      CALL SCREEN 0050.
    *&      Form  validate_plant                                           *
          Validating Plant on the selection screen                       *
    FORM validate_plant .
      DATA : l_werks LIKE t001w-werks.                          " Plant
      IF p_werks IS NOT INITIAL.
        SELECT SINGLE werks
            FROM t001w
            INTO l_werks
            WHERE werks EQ p_werks.
        IF sy-subrc NE 0.
          MESSAGE e100(ra) WITH text-001 .
        ENDIF.
      ENDIF.
      AUTHORITY-CHECK OBJECT 'Z_PP_PLANT'
               ID 'ACTVT' FIELD '03'
               ID 'WERKS' FIELD p_werks
               ID 'TCD' FIELD l_transaction_code.
      IF sy-subrc NE 0.
        MESSAGE e000(oo) WITH 'No authorization for plant:'(e80) p_werks.
      ENDIF.
    ENDFORM.                    " validate_plant
    *&      Form  get_data                                                 *
          Get data                                                       *
    FORM get_data .
      SELECT * FROM zca0fcstftop
        INTO TABLE t_zca0fcstftop
        WHERE werks           = p_werks
          AND product_family IN s_prdfml
          AND base_machine   IN s_bmach
          AND factory_top    IN s_factop
          AND option_value   IN s_optval
          AND week           IN s_week.
    ENDFORM.                    " get_data
    *&      Form  fill_fcode
    FORM fill_fcode USING    value(p_0029).
      i_fcode-fcode = p_0029.
      APPEND i_fcode.
      CLEAR i_fcode.
    ENDFORM.                               " fill_fcode
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'UPDATE'.
      CLEAR flag.
    ENDMODULE.                             " STATUS_0100  OUTPUT
    *&      Module  MODIFY_0100  OUTPUT
    MODULE modify_0100 OUTPUT.
      IF sy-ucomm = 'CHNG' OR
           sy-ucomm = 'PICK'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '0'.
          screen-output   = '1'.
          screen-input    = '0'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    Check if you are in create mode & if yes then set the screen elements
    as mandatory
      IF ok_code = 'CREA'.
        LOOP AT SCREEN.
          CHECK screen-group1 = 'CHG'.
          screen-required = '1'.
          screen-output   = '1'.
          screen-input    = '1'.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    ENDMODULE.                             " MODIFY_0100  OUTPUT
    *&      Module  Check_Exit  INPUT
          text
    MODULE check_exit INPUT.
      IF ( sy-ucomm = 'BACK' OR sy-ucomm = 'CANC' OR sy-ucomm = 'EXIT' ) AND
           ( flag = 'Y' ).
        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
          EXPORTING
            defaultoption  = 'Y'
            textline1      = text-008
            textline2      = text-009
            titel          = text-004
            cancel_display = ' '
          IMPORTING
            answer         = wg_confirm_ind.
        CASE wg_confirm_ind.
          WHEN 'J'.                                             "Yes
            sy-ucomm = 'SAVE'.
            CLEAR flag.
          WHEN 'N'.                                             "No
            sy-ucomm = 'BACK'.
            CLEAR flag.
        ENDCASE.
      ENDIF.
    ENDMODULE.                             " Check_Exit  INPUT
    *&      Module  Exit_0100  INPUT
          text
    MODULE exit_0100 INPUT.
      SET SCREEN 0. LEAVE SCREEN.
    ENDMODULE.                             " Exit_0100  INPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'SAVE'.                       "Save
        Check to see if the user has the appropriate authorization
          IF p_werks NE zca0fcstftop-werks.
          could not update - not in selection
            MESSAGE e000(oo) WITH 'Entry not within selection'.
            SET SCREEN 0. LEAVE SCREEN.
            PERFORM get_data.
          ENDIF.
          IF f_copy = 'X'.
            INSERT zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ELSE.
            MODIFY zca0fcstftop.
            IF sy-subrc = 0.
              MESSAGE s004.
              PERFORM initialize.
              SET SCREEN 0. LEAVE SCREEN.
              PERFORM get_data.
            ELSE.
              MESSAGE w005.
            ENDIF.
          ENDIF.
          PERFORM get_data.
        WHEN 'BACK'.                       "Back
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'CANC'.                       "Cancel
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      COMMIT WORK.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    *&      Form  Initialize
    FORM initialize.
      CLEAR :   table_name,
                field_name,
                wg_confirm_ind,
                f_copy,
                flag,
                t_zca0fcstftop,
                zca0fcstftop,
                wa_zca0fcstftop,
                i_fcode.
      REFRESH: t_zca0fcstftop.
    ENDFORM.                               " Initialize
    *&      Form  alv_variant_f4
          text
         <--P_VARIANT  text
    FORM alv_variant_f4  CHANGING variant.
      DATA: rs_variant LIKE disvariant.
      DATA nof4 TYPE c.
      CLEAR nof4.
      LOOP AT SCREEN.
        IF screen-name = 'VARIANT'.
          IF screen-input = 0.
            nof4 = 'X'.
          ENDIF.
        ENDIF.
      ENDLOOP.
      rs_variant-report   = sy-repid.
      rs_variant-username = sy-uname.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
        EXPORTING
          is_variant = rs_variant
          i_save     = 'A'
        IMPORTING
          es_variant = rs_variant
        EXCEPTIONS
          OTHERS     = 1.
      IF sy-subrc = 0 AND nof4 EQ space.
        variant = rs_variant-variant.
      ENDIF.
    ENDFORM.                               " ALV_VARIANT_F4
    *&      Module  STATUS_0050  OUTPUT
          text
    MODULE status_0050 OUTPUT.
    In this module Initialize the container and put the grid in it
      DATA:grid_layout  TYPE lvc_s_layo,
           fieldcat TYPE lvc_t_fcat,
           wa_fieldcat LIKE LINE OF fieldcat.
      PERFORM set_auth.
      SET PF-STATUS 'UPD_0050' EXCLUDING i_fcode.
      SET TITLEBAR 'UPD_0050'.
      IF g_custom_container IS INITIAL .
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ELSE.
        CALL METHOD grid1->free.
        CALL METHOD g_custom_container->free.
        CREATE OBJECT g_custom_container
           EXPORTING
              container_name = 'FTDATA'.
        CREATE OBJECT grid1
           EXPORTING
            i_parent = g_custom_container.
      ENDIF.
    Every time refresh The variables
      PERFORM initialize.
      PERFORM get_data.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
        CHANGING
          ct_fieldcat      = fieldcat.
      grid_layout-grid_title = text-t01.
      grid_layout-sel_mode = 'A'.
      grid_layout-stylefname = 'CT'.
      s_variant-report   = sy-repid.
      s_variant-username = sy-uname.
      s_variant-variant  = p_varant.
      CALL METHOD grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'ZCA0FCSTFTOP'
          is_layout        = grid_layout
          is_variant       = s_variant
          i_save           = 'A'
        CHANGING
          it_outtab        = t_zca0fcstftop
          it_fieldcatalog  = fieldcat.
      Create Object to receive events and link them to handler methods.
      When the ALV Control raises the event for the specified instance
      the corresponding method is automatically called.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_button_click FOR grid1.
    ENDMODULE.                 " STATUS_0050  OUTPUT
    *&      Module  USER_COMMAND_0050  INPUT
    MODULE user_command_0050 INPUT.
      CALL METHOD grid1->get_selected_rows
        IMPORTING
          et_index_rows = selected_rows.
      DESCRIBE TABLE selected_rows LINES t_lines.
      IF t_lines > 1 .
        MESSAGE e048(zcsv_sfdr).
      ENDIF.
    Clear Header
      CLEAR wa_zca0fcstftop.
      sel_rows[] = selected_rows .
      READ TABLE sel_rows INDEX 1.
      READ TABLE t_zca0fcstftop INTO wa_zca0fcstftop INDEX sel_rows-index.
      CASE ok_code.
        WHEN 'EXIT'.
          PERFORM exit_program.
        WHEN 'CREA'.
          CLEAR zca0fcstftop.
          ok_code = sy-ucomm.
          zca0fcstftop-werks = p_werks.
          CALL SCREEN 100.
        WHEN 'COPY'.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          f_copy = 'X'.
          CALL SCREEN 100.
        WHEN 'CHNG'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          MOVE wa_zca0fcstftop TO zca0fcstftop .
          CLEAR wa_zca0fcstftop.
          ok_code = sy-ucomm.
          CALL SCREEN 100.
        WHEN 'DELE'.
          CHECK NOT wa_zca0fcstftop IS INITIAL.
          CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
              defaultoption  = 'N'
              textline1      = text-005
              textline2      = text-006
              titel          = text-007
              cancel_display = ' '
            IMPORTING
              answer         = wg_confirm_ind.
          IF wg_confirm_ind EQ 'J'.
            DELETE zca0fcstftop FROM wa_zca0fcstftop .
            IF sy-subrc EQ 0.
              MESSAGE s004.
            ELSE.
              MESSAGE e005.
            ENDIF.
          ELSEIF wg_confirm_ind EQ 'N'.
          ENDIF.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                 " USER_COMMAND_0050  INPUT
    *&      Form  exit_program
    FORM exit_program .
      CALL METHOD g_custom_container->free.
      CALL METHOD cl_gui_cfw=>flush.
      SET SCREEN 0.
      LEAVE SCREEN.
    ENDFORM.                    " exit_program
    *&      Form  set_auth
    FORM set_auth.
      REFRESH: i_fcode.
    Check authorization for change
      MOVE '02' TO act_auth.        "02 --> Change
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CHNG'.
      ENDIF.
    Check for authorization for create
      MOVE '01' TO act_auth.        "01 --> Create
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'CREA'.
        PERFORM fill_fcode USING 'COPY'.
      ENDIF.
    Check for authorization for delete
      MOVE '06' TO act_auth.        "06 --> Delete
      MOVE 'ZCA0FCSTFTOP' TO tab_maint.
      AUTHORITY-CHECK OBJECT 'ZZ:TABLMNP'
        ID 'ACTVT' FIELD act_auth
        ID 'TABLE' FIELD tab_maint.
      IF sy-subrc NE 0.
        PERFORM fill_fcode USING 'DELE'.
      ENDIF.
    ENDFORM.                    " set_auth
    *&      Module  check_change  INPUT
    MODULE check_change INPUT.
      flag = 'Y'.
    ENDMODULE.                 " check_change  INPUT
    regards,
    vikas.
    plz reward if helpful

  • Error with crystal report using SAP GUI

    Hi,
    While using crystal report in sap gui i get the following error. I already googled and only found one thing on this forum that talks about this and it was never solve. Can you please help me? Thank you
    Errors in Crystal Reports Installation(SupportsSAPQuery)
    Message no.ALVHT218
    Diagnosis:
    This function requires that Seagate Crystal Reports and the Functional Area drivers(InfosetDrivers) from Seagate software are installed.
    This sotware is either not available on your frontend or has been installed with errors
    System Response:
    The action has been terminated
    Once again
    thank you

    Hi
    Please check if you have installed all the SAP transports which are required for Crystal Reports to run based off SAP.
    Regards
    Sourashree

  • How to Resolve Join Syntax Errors in Crystal Reports 11.5

    Weu2019re upgrading form Crystal Reports Runtime Client 10.0 to 11.5.  I have a registry fix that resolves the join syntax errors in Crystal Reports 10.0 by updating the registry key:
    [HKEY_LOCAL_MACHINE\Software\Crystal Decisions\10.0\Crystal Reports\Database\QueryBuilder\JoinBuilder]
    "SQLServerJoinBuilder"="adbc"
    What is the fix for Crystal Runtime 11.5?

    Create a new key under:
    HKEY_CURRENT_USER\Software\Business Objects\Suite 11.5\Crystal Reports\Database\QueryBuilder\JoinBuilder and add the values
    "SQLServerJoinBuilder"="adbc"

  • Getting "The product key is not valid. INS00140" error during Crystal Report 2013 installation

    We are getting “The product key is not valid. INS00140” error during Crystal Report 2013 installation. We are trying to install crystal report on Windows 7 64 bit OS.
    Can anyone help?

    What is CrystalReportsJava-2013? Where did this come from - download link? CD?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow us on Twitter

  • "Server Busy" error in Crystal Reports XI when using date picker

    Hi,
    I have come across an issue whereby I get a error pop up when using the date picker to select a date parameter as I run a report from within Crystal Report XI on a particular PC. While I am able to type in the date using the yyyy-mm-dd format, selecting the date picker displays an error message titled "Server Error" stating that the program is not responding and giving options "Switch To" and "Retry". Selecting either button displays the same error message and need to kill the application from the Task Manager to restart.
    I have run the same report from other PCs (including using the date picker to pick a date parameter) without the error popping up. All of the PCs have the same version of the application.
    Has anyone come across this and how were you able to resolve it?

    yes test is a formula that i used to calculate a difference
    that should work, but i would put () around the
    (if(remainder(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}),1)>0 and
    remainder(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}),1)<1) then
    truncate(({ztrptActVol.CPT}*{tlkpBblMileage.CPT}))+1
    else ({ztrptActVol.CPT}*{tlkpBblMileage.CPT})
    rounding in crystal is a pain in the &&

Maybe you are looking for

  • Reading values from JTextField and using them?

    Hello, I am trying to make a login screen to connect to an oracle database. Im pretty new to creaing GUI. I need help with reading the values from the JTextField and to be able to use them for my connection. So do I need to apply a listener? How do I

  • How can I fix gaps in a continuous underline?

    I've got a landscape document with a text box that's been rotated 90 degrees (so the text goes "up"). The text has underlines that extend up to a custom made image so each piece of text is sort of joined with a specific image. I'm using text-underlin

  • Best workflow to export to flash

    Hi I currently export 10 bit uncompressed quicktime file then convert to flash using adobe flash converter where I adjust frame size. Is this the right way to go about it or are there other settings that give better results. Many Thanks Adrian

  • Error coming - NOT ENOUGH MEMORY while opening MUS...

    Hi i have bought nokia 7210 supernova , error is coming NOT ENOUGH MEMORY while opening MUSIC PLAYER can any1 help me in ths plz

  • File To File Scenarios

    Hi,     I am very new to SAP-XI. I know only basic file to file scenarios. But every one is saying there are difficulties in file to file scenarios. So please some body give me different examples for file to file scenario where the actual difficulty