Export License Report w/ attached Part Numbers

Hi all,
I am trying to get a full license report including part numbers to export to Excel.  When I use the Display Existing Export License transaction, I can search for all licenses for a single part number at a time, but I cannot get a report that will display all parts attached to all licenses.
The existing report shows Legal Reg - LType - License Nnumer - External License Number - etc.
What I would like attached to this is the list of part numbers that are on that license.  Does this exist?  Is there a table I can search or cross reference in SE16?
Thanks,
Ben

Hi Ben,
You can try the following tables to achieve what you are looking for:
(1) Table /SAPSLL/LCLIC contains header data of the licenses
(2) Using the /SAPSLL/LCLIC-GUID_LCLIC, you can go to table /SAPSLL/LEGCON which gives you the Assigned documents for the given license
(3) Using /SAPSLL/LEGCON-GUID_POBJ, you can access to table /SAPSLL/CUIT which gives you data of the Assigned documents items
(4) Using /SAPSLL/CUIT-GUID_PR, you can access to table /SAPSLL/PNTPR which gives the material number used in the Assigned document item.
You will need to fiddle with the GUIDs to navigate between the different tables...
Hope this helps.
Best Regards.
Mouaz BEN REDJEB

Similar Messages

  • Need help with licensing part numbers

    Ok, here's the scenario:
    I have abandoned my original plan to use an IAD2431 to run CUCME and gone with a 2901 instead, but after reading & searching and reading for hours, I can not make heads or tails of this licensing scheme. Can anyone please just review my environment description below and tell me what license part numbers to buy? Maybe I'm just an idiot, but I've never seen anything this ridiculously difficult to figure out.
    (1) already installed 2901, with (1) VIC2-2FXO and (2)EHWIC-4ESG installed.
    This router will do nothing at present other than run CUCME. I have obtained a 60 day UC evaluation license from Cisco, but I will need to replace this with a permanent license.
    (8) 7975G's (spares - no license included)
    (1) 7925G (spare - no license included)
    I currently have two POTS lines coming into the residence and one external SIP trunk (dialin/dialout). I need for all three of these to be accessible to ephones on my system.
    Router is running IOS 15.4(3)M and CME 10. Phones are all running latest (as of today) SCCP firmware.
    So, in this scenario, what license part numbers do I need to purchase to make everything work?

    Hi Darren,
    U need to have feature license say FL-CME-SRST-100= [qty. depends] along with IP phone user license  SW-CCME-UL-7925= [Depands on number of users]
    Additionally, u need to have CUBE licenses for SIP Trunking[ FL-CUBEE-25]
    U can also refer ordering guide for more details
    http://www.cisco.com/en/US/partner/prod/collateral/voicesw/ps6788/vcallcon/ps4625/cme_ordering_guide.pdf
    regds,
    aman

  • External mail:attachement part....

    Hai,
    we have  developed a workflow for sales order.Once sales order creation & approval done the mail should go to customer(external mail).
    The below code(sample code got from internet & modified) is works fine .But do not want to send attachement.We want to remove attachement part from the coding.Ie we want to send only message,not attachement.
      Any tips?
    Points will be given......Jaheer.
    TABLES: VBAK.
    PARAMETERS: Email TYPE somlreci1-receiver.
    TYPES: BEGIN OF T_VBAK,
           VBELN TYPE VBAK-VBELN,
           VKORG TYPE VBAK-VKORG,
           VTWEG TYPE VBAK-VTWEG,
           SPART TYPE VBAK-SPART,
           END OF T_VBAK.
    DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK INITIAL SIZE 0,
          WA_VBAK TYPE T_VBAK.
    TYPES: BEGIN OF T_CHARVBAK,
      VBELN(10) TYPE c,
      VKORG(5)  TYPE c,
      VTWEG(8)  TYPE c,
      SPART(18) TYPE c,
    END OF T_CHARVBAK.
    DATA: WA_CHARVBAK TYPE T_CHARVBAK.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_xls_data_table.
    END-OF-SELECTION.
      perform populate_email_message_body.
        write: 'Dear customer,'.
        write:/20 'your sales document number has been approved:',vbak-vbeln
          /40 'Best Regards'.
          skip 1.
          write:/20 'Name     :----
          write:/20 'Signature:----
          write:/20 'Date     :',sy-datum.
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                         it_attach
                                    using Email
                                    'CUSTOMER .xls documnet attachment'
                                          'XLS'
                                          'CUSTOMER'
                                 changing gd_error
                                         gd_reciever.
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data from vbeln table and populate itab it_vbak
    FORM data_retrieval.
      INCLUDE <CNTN01>.
      DATA:CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE.
      DATA obj_key TYPE swo_typeid.  " Object key
    SWC_SET_ELEMENT CONTAINER 'AUN' vbak-vbeln.
      CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
        EXPORTING
          OBJECT_TYPE             = 'BUS2096'
          OBJECT_KEY              = OBJ_KEY
          EVENT                   = 'ASSIGNED'
      COMMIT_WORK             = 'X'
      EVENT_LANGUAGE          = SY-LANGU
      LANGUAGE                = SY-LANGU
      USER                    = SY-UNAME
      IFS_XML_CONTAINER       =
    IMPORTING
      RETURN_CODE             =
      EVENT_ID                =
        TABLES
          INPUT_CONTAINER         = CONTAINER
      MESSAGE_LINES           =
      MESSAGE_STRUCT          =
      IMPORT vbak-vbeln FROM MEMORY  ID 'SALESDOCUMENT'.
      SELECT SINGLE * FROM VBAK WHERE VBELN = vbak-vbeln.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      CONSTANTS: con_cret TYPE c VALUE '0D',  "OK for non Unicode
                 con_tab TYPE c VALUE '09'.   "OK for non Unicode
      CONCATENATE 'Sales Document' 'Sales Organization' 'Distribution
    Channel' 'Division'
             INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT IT_VBAK INTO WA_CHARVBAK.
        CONCATENATE WA_CHARVBAK-VBELN WA_CHARVBAK-VBELN
                    WA_CHARVBAK-VKORG WA_CHARVBAK-VKORG
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using sendmail
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                             p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error               TYPE sy-subrc,
            ld_reciever            TYPE sy-subrc,
            ld_mtitle              LIKE sodocchgi1-obj_descr,
            ld_email               LIKE  somlreci1-receiver,
            ld_format              TYPE  so_obj_tp ,
            ld_attdescription      TYPE  so_obj_nam ,
            ld_attfilename         TYPE  so_obj_des ,
            ld_sender_address      LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver            LIKE  sy-subrc.
      ld_email               = sendmail.
      ld_mtitle              = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
      w_doc_data-doc_size    = 1.
      w_doc_data-obj_langu   = sy-langu.
      w_doc_data-obj_name    = 'SAPRPT'.
      w_doc_data-obj_descr   = ld_mtitle .
      w_doc_data-sensitivty  = 'F'.
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
    t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver     = ld_email.
      t_receivers-rec_type     = 'U'.
      t_receivers-com_type     = 'INT'.
      t_receivers-notif_del    = 'X'.
      t_receivers-notif_ndel   = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_address
          sender_address_type        = ld_sender_address_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
         contents_bin               = t_attachment
          contents_txt               = it_message
          receivers                  = t_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      ld_error = sy-subrc.
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.                    "send_file_as_email_attachment
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'has been approved by CRISTAL'.
      CONCATENATE 'Dear Customer,
      Your Sales Document' VBAK-VBELN IT_MESSAGE 'Created by:' VBAK-ERNAM
    'Sales office:'vbak-vkbur INTO IT_MESSAGE SEPARATED BY ' '.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY

    Hi,
    Try this code. It is working fine for me,
    REPORT  ZMAIL.
    data : document_data like SODOCCHGI1.
    data : receivers like SOMLRECI1 OCCURS 0 WITH HEADER LINE,
           object_content like SOLISTI1 OCCURS 0 WITH HEADER LINE.
    subject line
    document_data-obj_descr = 'My subject Line'.
    Mail Content
    object_content-line = 'My Content 1'.
    APPEND object_content.
    object_content-line = 'My Content 2'.
    APPEND object_content.
    Receiver type and ids
    receivers-receiver = '[email protected]'.
    receivers-REC_TYPE = 'U'. "Email message
    APPEND receivers.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = document_data
       DOCUMENT_TYPE                    = 'RAW'
       PUT_IN_OUTBOX                    = 'X'
       COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      = SENT_TO_ALL
      NEW_OBJECT_ID                    = NEW_OBJECT_ID
      TABLES
      OBJECT_HEADER                    = OBJECT_HEADER
       OBJECT_CONTENT                   = OBJECT_CONTENT
      CONTENTS_HEX                     = CONTENTS_HEX
      OBJECT_PARA                      = OBJECT_PARA
      OBJECT_PARB                      = OBJECT_PARB
        receivers                        = receivers
    EXCEPTIONS
      TOO_MANY_RECEIVERS               = 1
      DOCUMENT_NOT_SENT                = 2
      DOCUMENT_TYPE_NOT_EXIST          = 3
      OPERATION_NO_AUTHORIZATION       = 4
      PARAMETER_ERROR                  = 5
      X_ERROR                          = 6
      ENQUEUE_ERROR                    = 7
      OTHERS                           = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    U need to change the receiver type based on the type of mail that u send.
    Thanks,
    Prasath N

  • Exporting Crystal Report to HTML is not working in Windows 7

    Hi Sir,
    I am trying to export Crystal Report to HTML format using VB.NET code. Functionality is working fine at Windows XP Environment (Save to Disk, Open an Application and Email Attachment). But the same functionality is not working at Windows 7 Environment (both 32-Bit as well as 64-Bit).
    Below is the code to Exporting Crystal Report to HTML in VB.NET.
    Dim CrDiskFileDestinationOptions As New DiskFileDestinationOptions
    Dim CrFormatTypeOptions          As New HTMLFormatOptions
    Dim vFormat As Integer
    Dim CrExportOptions As New ExportOptions
    Dim vRdReport As New ReportDocument
    Dim sfd As SaveFileDialog
    Dim vFileName As String = Nothing
    vRdReport = vRptSource
    sfd = New SaveFileDialog
    If Not (vRptPath = "") Then
        sfd.InitialDirectory = vRptPath
    End If
    sfd.Filter = "Webpage, Complete(.htm;.htm)|.htm|Web Archive, Single file(.mht)|.mht|Webpage, HTML only(.htm;.html)|.html"
    If sfd.ShowDialog = DialogResult.OK Then
        ' Set the disk file options.
         CrDiskFileDestinationOptions.DiskFileName = sfd.FileName.ToString()
    Else
         Return
    End If
    CrExportOptions = vRdReport.ExportOptions
    CrFormatTypeOptions.HTMLFileName = vFileName
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLEnableSeparatedPages = True
    CrFormatTypeOptions.HTMLHasPageNavigator = True
    CrFormatTypeOptions.UsePageRange = True
    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.HTML32
                        .DestinationOptions = CrDiskFileDestinationOptions.DiskFileName
                        .FormatOptions = CrFormatTypeOptions
    End With
    vRdReport.Export()
    Catch ex As Exception
            MsgBox(ex.ToString)
    End Try
    Code working fine at Windows XP, But it is not woking in Windows 7 environment.
    Please can anyone share your valuable thoughts or ideas reg. this.
    Thanks in Advance
    Deivanayaga Perumal D.

    user13509659 wrote:
    Run this code to reproduce the issue.Which issue?
    It looks like inheritance is broken in the component hierarchy for JFrame in Windows 7 JDK 1.6.0_23-b05. The only thing remotely related to inheritance in your code snippet is the WindowListener, which does little. See camickr's advice about built-in exit management.
    EDIT - using the post title as a clue, I realize you may be talking about the component hierarchy, and whether the contentPane's background is visible through the upper layers. Instead of guessing, I'd prefer you describe your "issue" accurately (observed vs expected behavior).
    Edited by: jduprez on Feb 10, 2011 1:01 PM

  • 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 can I export the report to Excel or CSV format in Rational(Java)?

    <p>Dear all,</p><p>Now I develop CR report integrate with Web application, I use Ratioanl(RAD) to develop. And I want to export the report to Excel/CSV format, but always failed.</p><p>If I force it export CSV file in the system, when I use MS office to open this CSV file, the file content is bad.</p><p>Could any one tell me how to achieve this?</p><p> Many thanks!</p><p>Steven</p>

    <p>CR4E is bundled with RAD 7...actually to be clear it is a version of CR4E Professional. Users of RAD 7 will also get a dev/test license of CR Server as well as number of additional features to support developing applications against their BusinessObjects Enterprise or Crystal Reports Server systems. For more information regarding the RAD 7 launch you can read the press release here:</p><p><strong><a href="http://biz.yahoo.com/bw/061205/20061205005363.html?.v=1">http://biz.yahoo.com/bw/061205/20061205005363.html?.v=1</a> </strong> </p><p>I am hoping to do a webinar in January highlighting a number of the new features available with the IBM Rational Application Developer integration.</p><p>As for RAD 6 support, unfortunately the CR4E toolkit does require Eclipse 3.2 support so it will not work with RAD 6. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) <br /><br /> <strong><a href="http://www.eclipseplugincentral.com/Web_Links-index-req-ratelink-lid-639.html">Rate this plugin @ Eclipse Plugin Central</a></strong>          </p>

  • Email report as attachment with link to webi version

    I want to schedule a webi report such that the report is sent as an excel attachment.
    In addition I want to provide a URL to the report that the user can click to view the report in Webi in the browser with live/current data if required. The actual report will also have options to slice and dice the data so user can interact with the data and derive any other information the he/she needs.
    I've got the email and attachment part taken care of.
    How to I provide a URL to the original report (not the instance of the report). I am using SAP BO 4.1.

    Hi Vivek,
    try this..
    Please use Open Document Concept here and copy OpenDocument URL Email Body as hyperlink.
    Ex:http://<Servername>:PortNo/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID="
    Thanks,
    Venkat

  • New Machine: Application no longer exports Crystal Reports

    I have a web application that was written in C#. We build and debug the application locally on Windows XP machines. Recently we got new machines, which were loaded with XP, but now with service pack 3 instead of service pack 2.
    On the new machine, I installed the web application from VSS and it is working quite well.
    The only problem is, Crystal Reports will not export on this new machine. What am I missing?
    The error I get when I try to export the reports is:
    Error in File C:\directory\reportname.rpt: Unable to connect: incorrect log on parameters.
    Keep in mind that the application runs fine on the old machine, reports and all. I have searched and searched for a solution to this problem to no avail.
    The error is thrown on this line:
    rClass.FormatEngine.ExportToStream(req);
    I went so far as to give 'Everyone' full control over the entire file system on the machine to see if there was a permissions issue, but that didn't work at all.
    Funny thing is, when I add:
    oRpt.SetDatabaseLogon("username", "password");
    the report exports without a hitch. We don't have that line of code in the application on our other machines and the reports export just fine.
    PLEASE HELP! Many thanks.

    Crystal Reports has a 3 concurrent processing licenses. Basically it can process 3 users reports simultaneously the other users will be queued until one of the concurrent licenses are released or time-out hit. Now this is different then the job limit there is also a maximum number of print jobs; a print job is not equal to a Processing license. A report with a single subreport in the report header will take two print jobs to run. More subreports or subreports in a repeating section will require more jobs to run the report.
    Depending on the complexity of the reports you can get anywhere from 3 (for really complex long running reports) to upwards of 20 (for really light reports) users running reports through a web application. If you are going to be server much more then 20 users I would suggest moving to a Report Application Server (RAS) based application.
    Technically a web application that does not close and dispose the report object that runs a report with no database connectivity and only a single text box that reads "hello world" could serve your max print job limit, but would only run 3 users at a time. However this is pretty rarely the case.
    So upping your max print jobs from 75 to 1000 may not do anything but create more load on the system (more jobs kept alive) draining resources and slowing the processing jobs down.
    Trevor

  • MapiSendMail doesn't work after Exporting a report in CR2008 (Outlook2003)

    Hi,
    This one sounds crazy but I'm hoping this might make sense to someone..
    We're using CR2008 SP4. In our WinForms app, we use the MapiSendMail function to open up a new email message for the user to send.
    This issue only occurs when Outlook 2003 is installed (outlook 2007 and 2010 work fine).
    If, in my application, I call MapiSendMail to send an email before exporting a Crystal Report to PDF .i.e oReport:Export() then both the export and sending mail work fine as long as I'm logged into my app.
    If, however, in my application, I export a Crystal Report to PDF .i.e oReport:Export() and then I try to call MapiSendMail I get a generic MAPI erorr(2). I have to log out of my app to be able to open up a new mail message.
    Is there anything in the Report:Export method that some affects default MAPI behavior?
    Thanks,
    Fergus

    Hi Don,
    Many thanks for getting back to me. I've found a workaround without having fully understood the cause. I'll put it all down here in case some others have similar problems.
    I was already closing and disposing the report object in my code as soon as the export completed.
    The Mapi error 2 is  MAPI_E_FAILURE  which translates to "One or more unspecified errors occurred while sending the message. It is not known if the message was sent."
    I could not find any any "Access Denied"s using ProcMon.
    I used the Modules.exe to determine which dlls were loaded when the MapiSendMail worked correctly and compared that to when it didn't work. One dll that poped out was "outex.dll".
    I searched for that in ProcMon and (in the case where MapiSendMail didn't work) and found that it was looking for this outex.dll but couldn't find it. It's located in C:\Program Files\Common Files\System\MSMAPI\1033 but it never looked there.
    So:
    Calling MapiSendMail before exporting a report - outex.dll can be found
    Calling MapiSendMail after exporting a report - outex.dll can't be found
    To get around this I added C:\Program Files\Common Files\System\MSMAPI\1033 to the path on the machine(s) in question and it worked every time.
    Thanks again for your help.
    Fergus
    p.s. After finding this workaround I found an almost identical problem but with Oracle instead of Crystal (How to serach text via TREX with cryptograph attachment in SAP system?).

  • Exporting a Report to a pdf file with drill down!

    Hi,
    I would like to export a Report to a pdf file.
    My Report includes drill down options. I require the exported pdf with drill down options.
    (Similar to Navigation options in a PDF file).
    I hope this makes sense.
    Please provide a better solution for me.
    If am not wrong, this facility is not available with Crystal Reports!!!
    Thanks,
    Ramesh.

    Hi Ramesh
    You can download the trial versions of the Crystal Report from the following link:
    https://websmp202.sap-ag.de/support (Please copy the link and paste it to your web browser).
    You can get the license by putting a request in the follwoing link:
    https://websmp202.sap-ag.de/support(Click on Request License key under Service Corner).
    Hope it helps.
    Regards
    Sourashree Ghosh

  • "The process cannot access the file ..." occurs when export crystal report

    We are using a web application developed in VS 2005, .NET 2.0 with the bundled Crystal Reports version 10.2.3600.0 running on a Windows 2003 Standard server with 4GB Ram and Dual CPU's. Periodically we are still receiving the following error in our production environment:
    InnerException:
    The process cannot access the file because it is being used by another process.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
    This is occuring at the point on the code where the report is being exported to a PDF. Exporting the report to Excel does not appear to cause the error.
                    Stream outStream = report.ExportToStream(ExportFormatType.PortableDocFormat);
                    byte[] charStream = new byte[outStream.Length];
                    outStream.Read(charStream, 0, (int)outStream.Length);
                    if ((charStream != null) && (charStream.Length > 0))
                        HttpContext.Current.Response.ContentType = "application/pdf";
                        HttpContext.Current.Response.OutputStream.Write(charStream, 0, charStream.Length);
                        HttpContext.Current.Response.End();
                report.Close();
                report.Dispose();
                ds.Dispose();
                GC.Collect();
    Closing and disposing of the report and dataset (xsd) are followed by a call for garbage collection. We are unable to produce the error in our development environmennt and have not at this point been unable to pinpoint a problematic report. The development team members do have SP1 installed. The report limit has not been changed from the standard of 75 jobs.  Reviewed the following document, Re: "The process cannot access the file ..." occurs when export crystal report However this applies to VS 2008. Any suggestions to resolve the issue would be greatly appreciated.
    Thanks,
    Joe

    Good morning Joe
    For more details re. loading please see the following resources:
    [Crystal Reports 2008 Component Engine Scalability|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7025839b-00d4-2b10-33b4-cf0aa9e08412?quicklink=index&overridelayout=true]
    [How Can I Optimize Scalability?|http://msdn.microsoft.com/en-us/library/ms225519.aspx]
    [Choosing the Right Business Objects SDK for Your Needs|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7]
    To answer your questions:
    Is it correct to presume that the physical number of CPU's is not factored into the CPL? So that a Server with 2 or more processors does not increase the 3 concurrent requests? Therefore 2 CPU's would not increase the CPL limit to 6 processes?
    - Server with 2 or more processors does not increase the 3 concurrent requests.
    What would be an alternate solution to this limit be, considering the report requests could increase significantly?
    - Only way around this would be to web farm the solution
    If only only 3 reports can be processed at the same time. If one or more of the reports currently processing is taking longer due to receiving large amounts of data, how does that affect the queue? And what is stored in the queue, data and/or the report? Is this something that could consume memory?
    - The report can take as much time as it needs. The result is that one license will not be released until the report is done. There is no data stored, just a pointer to the report. However queued apps will chew up memory, some times to the point of the server becoming unresponsive
    I have read in the documentation on this site, that the dataset sent to the engine is copied in memory during report construction. So if a large amount of data is requested for a report (as an example 10+ MB) Could enough users requesting reports drive the memory up because memory usage doubled due to the dataset?
    - Absolutely. See [Crystal Reports Guide to ADO.NET|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20].
    Understanding the the CR DLL's are loaded on the first report request, do they get released at some point time due to inactivity or garbage collection? How much memory usage could be consumed when they load and stay resident?
    - No they do not. Not as long as the application is running.
    Ludek

  • Output of ALV report as attachment in email

    Dear all ,
    I would like to send output of ALV report as attachment in email.
    i already written code for this using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I can able to send list output as HTM format. But I want to send ALV report output
    As a attachment. How can I do this….please explain…
    Thanks in advance…
    Regards
    Manohar

    Hello,
    U can sent like this.
    Check this report
    REPORT ZV_SEND_MAIL .
    TABLES: EKKO.
    PARAMETERS: P_EMAIL   TYPE SOMLRECI1-RECEIVER
                                      DEFAULT '[email protected]'.
    TYPES: BEGIN OF T_EKPO,
      EBELN TYPE EKPO-EBELN,
      EBELP TYPE EKPO-EBELP,
      AEDAT TYPE EKPO-AEDAT,
      MATNR TYPE EKPO-MATNR,
    END OF T_EKPO.
    DATA: IT_EKPO TYPE STANDARD TABLE OF T_EKPO INITIAL SIZE 0,
          WA_EKPO TYPE T_EKPO.
    TYPES: BEGIN OF T_CHAREKPO,
      EBELN(10) TYPE C,
      EBELP(5)  TYPE C,
      AEDAT(8)  TYPE C,
      MATNR(18) TYPE C,
    END OF T_CHAREKPO.
    DATA: WA_CHAREKPO TYPE T_CHAREKPO.
    DATA:   IT_MESSAGE TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
            T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
            T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            W_CNT TYPE I,
            W_SENT_ALL(1) TYPE C,
            W_DOC_DATA LIKE SODOCCHGI1,
            GD_ERROR    TYPE SY-SUBRC,
            GD_RECIEVER TYPE SY-SUBRC.
    *START_OF_SELECTION
    START-OF-SELECTION.
    *   Retrieve sample data from table ekpo
      PERFORM DATA_RETRIEVAL.
    *   Populate table with detaisl to be entered into .xls file
      PERFORM BUILD_XLS_DATA_TABLE.
    *END-OF-SELECTION
    END-OF-SELECTION.
    * Populate message body text
      PERFORM POPULATE_EMAIL_MESSAGE_BODY.
    * Send file by email as .xls speadsheet
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                   TABLES IT_MESSAGE
                                          IT_ATTACH
                                    USING P_EMAIL
                                          'Example .xls documnet attachment'
                                          'XLS'
                                          'filename'
                                 CHANGING GD_ERROR
                                          GD_RECIEVER.
    *   Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    FORM DATA_RETRIEVAL.
      SELECT EBELN EBELP AEDAT MATNR
       UP TO 10 ROWS
        FROM EKPO
        INTO TABLE IT_EKPO.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
    *       Build data table for .xls document
    FORM BUILD_XLS_DATA_TABLE.
      CONSTANTS: CON_CRET TYPE X VALUE '0D',  "OK for non Unicode
                 CON_TAB TYPE X VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
    *    con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO IT_ATTACH SEPARATED BY CON_TAB.
      CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.
      APPEND  IT_ATTACH.
      LOOP AT IT_EKPO INTO WA_CHAREKPO.
        CONCATENATE WA_CHAREKPO-EBELN WA_CHAREKPO-EBELP
                    WA_CHAREKPO-AEDAT WA_CHAREKPO-MATNR
               INTO IT_ATTACH SEPARATED BY CON_TAB.
        CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.
        APPEND  IT_ATTACH.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
                                              PIT_ATTACH
                                        USING P_EMAIL
                                              P_MTITLE
                                              P_FORMAT
                                              P_FILENAME
                                              P_ATTDESCRIPTION
                                              P_SENDER_ADDRESS
                                              P_SENDER_ADDRES_TYPE
                                     CHANGING P_ERROR
                                              P_RECIEVER.
      DATA: LD_ERROR    TYPE SY-SUBRC,
            LD_RECIEVER TYPE SY-SUBRC,
            LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
            LD_EMAIL LIKE  SOMLRECI1-RECEIVER,
            LD_FORMAT TYPE  SO_OBJ_TP ,
            LD_ATTDESCRIPTION TYPE  SO_OBJ_NAM ,
            LD_ATTFILENAME TYPE  SO_OBJ_DES ,
            LD_SENDER_ADDRESS LIKE  SOEXTRECI1-RECEIVER,
            LD_SENDER_ADDRESS_TYPE LIKE  SOEXTRECI1-ADR_TYP,
            LD_RECEIVER LIKE  SY-SUBRC.
      LD_EMAIL   = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT              = P_FORMAT.
      LD_ATTDESCRIPTION      = P_ATTDESCRIPTION.
      LD_ATTFILENAME         = P_FILENAME.
      LD_SENDER_ADDRESS      = P_SENDER_ADDRESS.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    * Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    * Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME  = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    * Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU  = SY-LANGU.
      W_DOC_DATA-OBJ_NAME   = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR  = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = PIT_ATTACH[].
    * Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    * Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM   = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE   =  LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR  =  LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME   =  LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE   =  T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    * Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = LD_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = W_DOC_DATA
                PUT_IN_OUTBOX              = 'X'
                SENDER_ADDRESS             = LD_SENDER_ADDRESS
                SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
                COMMIT_WORK                = 'X'
           IMPORTING
                SENT_TO_ALL                = W_SENT_ALL
           TABLES
                PACKING_LIST               = T_PACKING_LIST
                CONTENTS_BIN               = T_ATTACHMENT
                CONTENTS_TXT               = IT_MESSAGE
                RECEIVERS                  = T_RECEIVERS
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                DOCUMENT_TYPE_NOT_EXIST    = 3
                OPERATION_NO_AUTHORIZATION = 4
                PARAMETER_ERROR            = 5
                X_ERROR                    = 6
                ENQUEUE_ERROR              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      LD_ERROR = SY-SUBRC.
    * Populate zreceiver return code
      LOOP AT T_RECEIVERS.
        LD_RECEIVER = T_RECEIVERS-RETRN_CODE.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
    *       Instructs mail send program for SAPCONNECT to send email.
    FORM INITIATE_MAIL_EXECUTE_PROGRAM.
      WAIT UP TO 2 SECONDS.
      SUBMIT RSCONN01 WITH MODE = 'INT'
                    WITH OUTPUT = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
    *        Populate message body text
    FORM POPULATE_EMAIL_MESSAGE_BODY.
      REFRESH IT_MESSAGE.
      IT_MESSAGE = 'Please find attached a list test ekpo records'.
      APPEND IT_MESSAGE.
    ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY
    If useful reward.
    Vasanth

  • Material Master: All part numbers from one vendor

    Hi everyone,
    is it possible to list all part numbers supplied by a defined vendor - in the material master?
    I was told by our purchasing department that ME2L would do the job, however I'm not authorized to execute the transaction (for no reasons) and our admin is on holidays ;-)
    I'm sure a similar report must be available in another way...
    Any suggestions?

    Roman,
    ME2L is the SAP standard listing of purchase orders by vendor; it is not necessarily a comprehensive list of 'all part numbers supplied by a defined vendor - in the material master'.
    If, however, this is adequate for your purposes, you could try other standard Purchase order listing transactions:
    ME2W, ME2M, ME2C, ME2N.
    Assuming those transactions are not available to you, you might want to download the raw purchase orders from the tables using a table browser such as SE16N:
    EKKO which contains the purchase order number and the vendor number
    EKPO which contains the purchase order number and the material number.
    Joining these two using desktop software would give you similar info that you would get from ME2L.
    As I stated earlier, ME2L doesn't really meet the requirements you stated.  The listing that actually meets the requirements depends upon your company's business processes.  In some companies, that listing would have to come from the purchase info records.  Such a listing is available from ME1L and a few others.
    Best Regards,
    DB49

  • Exporting Crystal Reports with embedded Xcelsius content to PDF

    Hi,
    I have a crystal report with an embedded xcelsius chart. I would like to schedule this report using Crystal Server 2008, sending it monthly as a PDF file attached to an email. But after exporting the report through Crystal Server, the xceslsius content is just blank. Shouldn't this be working?

    What is the version of Adobe Reader? Adobe Reader 9 should be there.Also check whether you have Flash Palyer/ flash Active X control installed.
    If you can view the dashboard after exporting it to PPT,it means you have Flash Player installed. You need to try with Adobe Reader 9.

  • SQL Report Viewer Web Part Not displaying Report

    I have just completed updating an old report using report builder 3.0. I have added it to SharePoint Designer but have not replaced the old report file. 
    Any help is greatly appreciated!!
    All I did was export the old report from sharepoint designer to my desktop. Then opened it with Report Builder 3.0- made changes to the report and saved it with a different name (for safety in case i break things) and then upload it back to the same place where
    the old report was located using SP Designer. I then went back to the site in sharepoint that is displaying the old report, and changed the URL path in the SQL report viewer to the new report. 
    Now the SQL Report Viewer web part isn't showing anything (blank)

    Dear Form Moderator,
    This question is already asked in sharepoint forum so please don't move this sharepoint forum. Here is link of thread:
    https://social.technet.microsoft.com/Forums/en-US/3796da85-fbb4-4722-a5d0-724859f7d4ae/sql-report-viewer-web-part-not-displaying-report?forum=sharepointgeneralprevious
    Here is the one more duplicate thread link in same forum. So either you can merge both OR delete one.
    https://social.technet.microsoft.com/Forums/en-US/259d2586-ed4a-4f47-a808-877d4621d9f2/report-builder-30-sql-report-viewer-web-part-not-displaying-report-in-sharepoint?forum=sqlreportingservices
    [SharePoint Forum Moderator]
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

Maybe you are looking for

  • Nested IF/AND/OR in Calculated Measure/Column

    I have the following problem, which I couldn't quite solve in Excel and was wondering whether it can be done in PowerPivot (I failed so far): A datasheet with a column "HOUR" and another column "AM/PM". Entries in the first column consist of 1,2,3,4,

  • Address book model is not respected when I add new fields

    Hello, If I add new fields in the model of my adress book. AddressBook display does not comply with the specified model. For example, after father, mother and joint, I added the following fields child 1, grand-child 1, child 2, grand-child 2, child 3

  • How Do I Get Rid Of Multiple Duplicates AND Relocate Numerous Files?

    Basically I'm fed up of iTunes. A couple of months ago, i had a problem with my itunes library due to a message regarding the iCloud. This practically deleted my whole iTunes library and forced me to relocate every single track, which took a lot long

  • New iMac Hard drive age

    I'm getting a new iMac 20" with a 250GB hard drive and Leopard on it. One question though, what about the hard drive. Is it known to fail? Or is it a goodin'. This might help me decide if I need to buy a backup HD, just in case.

  • WRE54G Range Expander Setup Issues

    I am having multiple difficulties, and having tried many of the strategies on the forums here, I am still not having any luck. If I have the RE plugged in with no ethernet cable, I don't get far before I hit that "Site Survey Failed" message. Per man