Send Crystal Report publication via mail dynamically

Hi!
I want to achieve the following scenario:
I have a Crystal Report within my BOE 3.1 system. Is it possible to trigger an event from an external system which indicates that the report on my server gets executed and will be sent to a specified user via email?
I'm thinking of some kind of solution like OpenDocument - where I access the report via an URL, pass parameters to it, and the executed report will be displayed on the users screen. Now, I don't want to display the report on the user's screen, I want to send it to him via mail.
Has anyone ever tried to implement such a kind of scenario? Does BOE offer web services which might help me to achieve my scenario?
thank you,
Dominik

Hi Dominik,
Yes, that is something that you can do using the SDK.
The idea is that when your user clicks on the button, it will generate a new schedule to run now and with email destination.
There are few examples in the SDK. You can start with this KB:
1203257 - How to schedule a Web Intelligence document with prompts using the Enterprise Java SDK
The main URL with SDK Documentation is:
http://www.sdn.sap.com/irj/sdn/bi-sdklibrary
One of the first things you have to know is to choose the right SDK for your project. You will find a quick approach in the following links:
http://devlibrary.businessobjects.com/BusinessObjectsXI3/en/diagrams/bosdks_overview_121_en.pdf
and
http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/40bccdfd-88a6-2b10-1da1-c47a54b625a7
Because you are thinking to do something related with scheduling you should focus in the Enterprise SDK.
http://www.sdn.sap.com/irj/boc/index?rid=/webcontent/uuid/a09374f5-a982-2b10-0297-85c67690b4f2
A collection of samples can be found here:
http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaBusinessObjectsEnterpriseSDKSamples#JavaBusinessObjectsEnterpriseSDKSamples-Scheduling
And a specific sample to run now and schedule:
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/405a1725-4b57-2c10-928e-c25c34a5cf43
You will also find valuable information at see the following links:
Our java wiki:
http://wiki.sdn.sap.com/wiki/display/Java/JavaDevelopmentHome
Our SDK external forum:
http://forums.sdn.sap.com/
I hope this helps you,
Julian

Similar Messages

  • Schedule Send Execl Report by E-mail to System User

    Hello:
       I need to schedule send Excel Report by E-mail to system user internet address. If only define the job by Reprot Agent? Do we have other method?
    Hope this clear!Can you give some advice?
    Regards&Thanks
    zagory

    Hi zagory,
    i forgot one tech issue to be setup: The internet Mail gateway needs to be setup if you want to send proper e-mails.
    presupposed all tech. issues are solved, I agree with my colleague. Setup is fairly easy to handle, as soon as you know the customers demands like
    - who is allowed to send
    - who will do it in the future
    - who are the recipients
    - when should the precalc. take place/when should the Workbook be executed (Timepoints, after dataupdate ...)
    for authorisations check out object: s_rs_bcs.
    also make sure that the executor has permissions for the backgroud user (serach in TRC SU21, i can not remember.)
    if all is known = approx. 2-3 days until go live, depending on the complexity of the existing scheduling and the authorisation concept.
    Not to mention the training for all that and the tchnical setup.
    hth
    cheers
    Sven

  • Crystal Reports Publication fails when using dynamic recipients

    Hi experts,
    We are facing a problem related with the BOE 3.1 Dynamic recipients Publication.
    We have created a Publication with just one Crystal Report based on a MDX Query.  We send the report in PDF format to email destinations
    Dynamic recipients are defined in a WebI report pulling data from a BW query universe. We can display the email, user ID, Use Name and other fields we would like to use as dynamic parameters.
    Server side trust seems to be configured (is there any way to test it is properly configured?).
    The Publication is working fine with enterprise recipients (which have SAP BW account), and each recipient receive its PDF by email.
    When we execute same report with dynamic recipients without selecting dynamic personalization parameters it is working fine. But when we select one dynamic parameter (which is coming from the WebI report we use for dynamic recipients) eg: Profit Centre, the Publication fails and we get a Database Connector error:
    2011-02-14 08:53:25,275 ERROR [PublishingService:HandlerPool-13] BusinessObjects_PublicationAdminErrorLog_Instance_31036 - [Publication ID # 31036] - Scheduling document job "P&L" (ID: 31,051) failed: Error in File ~tmp191067bfa343ff0.rpt: Database Connector Error (FBE60502) [1 recipients processed.]
    How can a dynamic parameter affect on the Database Connection?
    Does anyone have an idea about what could be wrong?
    Thanks!

    Ino, what do you mean for "technical name or the member unique name"? Are you talking about the SAP User name? So in the dynamic recipients we can find  these parameters:
    - Recipient Identifier (required):      
    - Full Name:      
    - Email:      
    In the Recipient Identifier I should refer to a SAP user?
    Dynamic recipients option is working for same recipients. The problem appears when I assign one parameter to a field coming from the dynamic webi report.It fails with the previously detailed error. This parameter assignment seems to be causing the Database Connector error.
    Message in CMC:
    2011-02-14 17:00:25,590 ERROR [PublishingService:HandlerPool-24] BusinessObjects_PublicationAdminErrorLog_Instance_31594 - [Publication ID # 31594] - Scheduling document job "B1 - P&L" (ID: 31,603) failed: Document for recipients {BD1~500/EVER} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients {EVER, JOHNDOE} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error (FBE60502) [4 recipients processed.]
    Error in the Adaptive jobserver trace does'nt give more details:
    |1c2fd2be-3ba1-f414-f8fa-e4f7b004f1ee|2011 02 14 17:00:18:974|+0000|==| | |jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0| 2560|4856|| |6187|1|11|2|CMC.WebApp|vwd2520:1624:39.23486:1|CMS.runJobs|localhost:8392:11648.936338:1|jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0.run|localhost:2560:4856.5:1|CntazqXlSEO7hcDJVIv11545bbb|||||||||||(.\src\reportdllerrors.cpp:140) ras21-cr: procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [707] with extended error string [Database Connector Error: ''
    Failed to retrieve data from the database.
    Failed to export the report.
    Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]. Localized error string is [Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]
    I would like to discard thats a SNC misconfiguration error. Can I consider that SNC server side trust is properly configured if I can run Publication for many SAP users mapped in Enterprise?
    Thanks!

  • Sending multiple reports thru single mail in Crystal reports server XI R2

    2)
    Ex:
    I have a crystal report  which takes country as input parameter. Each country has one responsible person.
    US--- A person
    UK---B person
    INDIA ---C person
    I need to run this report with these three paramters(may increase infuture) and send the exported report to A,B and C as an mail attachment through crystal reports server XI R2.
    I have achieved above with Java code and deployed that java code as JAR file in crystal reports server and scheduled this JAR file.
    Here I need to attach all these three attachments to single mail and send it to Manager. And also I need to wait till all the reports gets executed and then attach all the attachments to single mail.
    Please help me how to achieve this.
    I am using --- Crystal reports server XI R2
    Thanks,
    Vijay Kanth

    How are you creating the first three files, are you scheduling each to smtp, or are you waiting until they finish and emailing the instance through your jar file?
    If you are scheduling each one, and the instance in enterprise keeps a copy of the finished report, then you could monitor the status of the 3 jobs, once all finish you could get the report and email them out through your java code.  There wouldn't be a way to email all three reports as one email to the manager directly through the product.  You would be able to cc or bcc the manager on each, but then the manager would be receiving 3 emails.

  • Crystal Reports publication personalization with an OR statement

    Hello,
    I want to publish a crystal report but do not see a method to implement an OR statement like you can with interactive filters or query prompts.
    Currently any personalization’s I make are all AND filter. My report when run on demand can bring back data where a Program (department) is either the Identifying Program OR the Responsible program. 80% of the time they are the same, but there are cases where they can be different. For example a Laboratory identifies an issue that the Emergency department is responsible for.
    Example Filter for Publication
    Health Authority = Organization 1
    AND Facility = Hospital 1
    AND (
        Responsible Program = Medicine
        OR
        Identifying Program = Medicine
    AND Specific Location = 3 South
    Currently am using dynamic recipients, but am open to any method to make it work. Dynamic recipients are used since we send 90% of publications to users outside of our analytics.
    Thank you
    Darren

    Hi Dareen,
    This is related to BI Admin(Infoview), But this is crystal design forum. I think you can post this thread in this link (BI Platform)
    --Naga

  • Crystal report could not show dynamic picture

    I develop crystal report which show dynamically picture in my PC but when I send it to server which has not be installed program just install asp.net framework 2.0 , it could not show dynamic picture.
    How should I do, please advise.

    I develop the report by using Crystal Reports XI so that I have to install the runtime of them as the detail in page of business object located at Business Objects - Crystal Reports Runtime Packages.mht
    Crystal Reports for Visual Studio .NET 2005 - Service Pack 1 (Updated Nov. 2007) will not show dynamic picture, right
    I have to install Crystal Reports XI - Service Pack 4 (Updated - November 2007) becuase it has more features than the package in VS2005 right
    Edited by: pasit chan on Nov 3, 2010 10:18 AM

  • Stop sending blank reports -publication

    i,
    We have created publication and setup profies using business objects XIR2.
    we have scheduling these reports.
    we are facing issue with blank reports.
    we are too many reports which run for given day and not all reports produce data for all the profiles and groups.
    is there way to stop sending blank reports when we scheduling publication.
    I have seen this link to generate error in report and stop sending the report.
    http://www.forumtopics.com/busobj/viewtopic.php?t=90010
    is there any other through macro/program to do the same
    Regards
    Navin

    What is your report type?
    In XI 3.1 onwards, there is an option, delivery rules, in publication. I think the same feature is there in R2.
    If the report type is Crystal you can set it to Deliver if there is data
    if the report type DeskI/WebI, you can create formula like count(<object name>) > 0

  • FTP error when trying to send crystal report to FTP destination

    Hello experts.
    I am trying to send a crystal report to a FTP destination. I have enabled the FTP destination on all servers that have a destination option. I am able to connect to the FTP site manually from the server that is running crystal reports server. However every time I try to run the report in CMC, it fails with the following message:
    Error Message: connection error. CrystalEnterprise.Ftp: WSA11004
    Any ideas on what this message means and how to fix the issue?

    Here's the details of the Note
    Symptom:
    Scheduling of the Crystal Report to FTP destination prompts the Error: Connection error, CrystalEnterprise.Ftp: WSA0.
    Cause:
    Every time when Crystal Report is scheduled to FTP destination, a connection is made to FTP server from server where job server is installed. If there is limitation on connection being made to FTP server then this error occurs.
    Resolution:
    For FTP sites in IIS:
    - Open IIS Manager
    - Go to Properties
    - Click on the FTP site tab
    - In FTP site connections, check for Connection limited to :
    - When report is long running do check how much time it takes to complete scheduling. - Accordingly change the connection time out setting in Properties of FTP site.
    - For FTP sites created using FTP Server applications, setting for Connection limited to and connection timeout will remain same.

  • How to send ALV report Output through mail in background !

    Hi ,
    I had an ALV Report. I want to send this report output to patricular email id every day ! Presenty i do this manually. I run the report and send the output to the particular email address. Now i want to schecule the report daily in background and the out put of the report should be mailed to particular email ids in background itself. How can i do this ?
    Is there and method or setting through which we can do this ?
    Regards

    Hi Nau,
    For this requirement you will have to write another program.
    This program will convert the spool requests into PDF document and sends an email  to the recipients that you specify.
    These are the threads which are already posted in The SDN.
    *http://wiki.sdn.sap.com/wiki/display/Snippets/Converts+spool+request+into+PDF+document+and+emails*
    *<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="353650"></a>*
    *<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="902985"></a>*
    You need to use the Function module :
    -- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    I will provide you with the code to get this functionality.
    *&      Form  SEND_EMAIL
    form SEND_EMAIL .
    DATA:   t_mailpack   TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_mailhead   TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailbin    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailtxt    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
              t_mailrec    TYPE somlreci1  OCCURS 0 WITH HEADER LINE.
      DATA: wa_maildata    TYPE sodocchgi1,
            l_filename(50) TYPE c,
            l_fldname(30)  TYPE c,
            l_fldval(100)  TYPE c,
            l_lines        TYPE i,
            l_text         TYPE text128 .
      DATA: w_email_subrc  TYPE i.
      DATA: w_ship like vbfa-vbeln.
      CLEAR: wa_maildata,
             t_mailtxt,
             t_mailbin,
             t_mailpack,
             t_mailhead,
             t_mailrec.
      REFRESH: t_mailtxt,
               t_mailbin,
               t_mailpack,
               t_mailhead,
               t_mailrec.
    *-- Fill output file
    *- Fill header
      CLEAR: t_mailbin.
    *  t_mailbin[] = pdf_tab[].
      t_mailbin[] = it_att[].     "Uthaman
    *This line is added to get the shipment no in Subject Line
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    w_ship = vbfa-vbeln.
    shift w_ship left deleting leading '0'.
    *-- File name
    if nast-kschl EQ 'ZFPL'.
      CLEAR l_filename.
      CONCATENATE 'Packing List -'
                  sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF' INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Packing List'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    if nast-kschl EQ 'ZFBA'.
      CLEAR l_filename.
      CONCATENATE 'Booking Advice -'
                  sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF'
                  INTO l_filename.
    *-- Creation of the document to be sent File Name
      wa_maildata-obj_name = 'Booking Advice'.
    *-- Mail Subject
      CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
    *-- Mail Contents
      t_mailtxt-line = 'Packing List'.
      APPEND t_mailtxt.
    ENDIF.
    *-- Prepare Packing List
    *-- Write Packing List (Main Subject)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE t_mailtxt LINES l_lines.
    *  READ TABLE t_mailtxt INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
    *  CLEAR t_mailpack-transf_bin.
      t_mailpack-transf_bin = ' '.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 0.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'RAW'.
      APPEND t_mailpack.
      t_mailhead = l_filename.
      APPEND t_mailhead.
    *-- Write Packing List (Attachment)
      CLEAR: l_lines, t_mailpack.
      DESCRIBE TABLE pdf_tab[] LINES l_lines.
    *  READ TABLE pdf_tab INDEX l_lines.
      t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
      t_mailpack-transf_bin = 'X'.
      t_mailpack-head_start = 1.
      t_mailpack-head_num = 1.
      t_mailpack-body_start = 1.
      t_mailpack-body_num = l_lines.
      t_mailpack-doc_type = 'PDF'.
      t_mailpack-obj_name = l_filename.
      t_mailpack-obj_descr = l_filename.
      t_mailpack-obj_langu = 'E'.
      APPEND t_mailpack.
    *-- Set recipients
    tables :  ztotcemail.
    SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                                AND vbtyp_v EQ c_vbtyp_v_j
                                AND vbtyp_n EQ c_vbtyp_n_8.
    CLEAR vttk.
    SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
    SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
                                      AND lifnr = vttk-tdlnr.
    IF SY-SUBRC EQ 0.
      t_mailrec-receiver = ztotcemail-smtp_addr. "'Here you will give the email address'.
      t_mailrec-rec_type  = 'U'.
      APPEND t_mailrec.
    ENDIF.
    **-- Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_maildata
          put_in_outbox              = 'X'
    *      commit_work                = 'X'  " N-16
        TABLES
          packing_list               = t_mailpack
          object_header              = t_mailhead
          contents_bin               = t_mailbin[]
          contents_txt               = t_mailtxt[]
          receivers                  = t_mailrec
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      w_email_subrc = sy-subrc.
      IF sy-subrc EQ 0.
        MESSAGE s000(zotc) WITH 'Email output sent successfully'.
      ELSE.
        MESSAGE s000(zotc) WITH 'Can not send email output'.
      ENDIF.
    endform.                    " SEND_EMAIL
    Hope the above information will be helpful.
    Regards,
    Kittu

  • How to send BIP report link by mail not the attachment.

    Hi,
    I have a requiment to send the BI Publisher report link by mail.But not to send the report as an attachment.
    can any one have solution for this requirement.

    hi,
    Alternatively, u can do this Send a report with all the report names on one side and another side link to that particular report.If any one click on that link means it will open the report(pdf/html/excel) format by referring to the url.we will get this by using RTF Template.
    Thanks,
    Saichand

  • Send file as attachment via mail

    Dear All,
    I want to send a report (ALV) as attachment to some mail. I am using SO_NEW_DOCUMENT_SEND_API1. Can you please suggest how can I send mail as attachment. I am able to send ALV report as HTML format. I want to send it as attachment.
    Thanks and regards,
    Atanu

    Hi,
    plz check the below code.
    it sends Excel sheet attachment with the mail using FM 'SO_DOCUMENT_SEND_API1'
    code>>>>>>>>>>>>>>>>>>>>.
    form send_email_with_attachment .
    DATA: l_t_objbin LIKE solisti1 OCCURS 100 WITH HEADER LINE.
      DATA: i_body TYPE soli_tab WITH HEADER LINE.
      DATA: l_t_objtxt  LIKE solisti1   OCCURS 100 WITH HEADER LINE.
      DATA: l_t_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: l_t_objhead LIKE solisti1   OCCURS 1 WITH HEADER LINE.
      DATA: l_t_reclist LIKE somlreci1  OCCURS 5 WITH HEADER LINE.
      DATA: w_tabln TYPE i .              "for number of table lines
      DATA: w_line        TYPE so_text255.       " Line of text
      DATA: l_doc_chng  LIKE sodocchgi1.
      DATA: l_tab_lines LIKE sy-tabix.
      DATA: l_att_lines TYPE i.
      DATA: lv_lines  TYPE i.
      DATA : BEGIN OF wa_mrpnm,
               werks TYPE ZCSVT024D-werks,
               dispo TYPE ZCSVT024D-dispo,
               name_first TYPE ZCSVT024D-name_first,
               name_last  TYPE ZCSVT024D-name_last,
             END OF wa_mrpnm,
             l_i_mrpnm LIKE STANDARD TABLE OF wa_mrpnm.
      DATA : l_name TYPE string.
    *Used for delimiting the columns in Excel Sheet.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      CONSTANTS:
      cr_mark(2) TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
      constants c_l_newline type ABAP_CHAR1 value %_NEWLINE. "#EC NOTEXT
      CLEAR : l_t_objpack,
      l_t_objhead,
      l_t_objbin,
      l_t_objtxt,
      l_t_reclist.
      REFRESH: l_t_objpack,
      l_t_objhead,
      l_t_objbin,
      l_t_objtxt,
      l_t_reclist.
    Creating the content of the e-mail message text
      IF sy-sysid(1) = 'P'.
        IF p_order = 'X'.
         l_doc_chng-obj_name   = 'Subcontracting Setup Report'(m02).
          CONCATENATE 'Details of Orders Extract'(028) 'for Plant'(029)
                       p_werks
                       INTO l_doc_chng-obj_descr SEPARATED BY space.
          l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_t_objtxt ).
        ELSE.
         l_doc_chng-obj_name   = 'TEST ONLY!! SC Setup Report'(m03).
          CONCATENATE 'Details of Forecast Extract'(030) 'for Plant'(029)
                       p_werks
                       INTO l_doc_chng-obj_descr SEPARATED BY space.
          l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_t_objtxt ).
        ENDIF.
      ELSE.
        IF p_order = 'X'.
         l_doc_chng-obj_name   = 'Subcontracting Setup Report'(m02).
          CONCATENATE 'Details of Orders Extract'(028) 'for Plant'(029)
                       p_werks 'TEST TEST TEST'
                       INTO l_doc_chng-obj_descr SEPARATED BY space.
          l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_t_objtxt ).
        ELSE.
         l_doc_chng-obj_name   = 'TEST ONLY!! SC Setup Report'(m03).
          CONCATENATE 'Details of Forecast Extract'(030) 'for Plant'(029)
                       p_werks 'TEST TEST TEST'
                       INTO l_doc_chng-obj_descr SEPARATED BY space.
          l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_t_objtxt ).
        ENDIF.
      ENDIF.
      l_t_objtxt = 'Hi,'(036).
      APPEND l_t_objtxt.
      CLEAR l_t_objtxt.
      APPEND l_t_objtxt.
      CONCATENATE 'Please open the attachment to review details of the Report'(031)
                  'for plant'(029) p_werks INTO l_t_objtxt
                   SEPARATED BY space.
      APPEND l_t_objtxt.
      CLEAR l_t_objtxt.
      APPEND l_t_objtxt.
      DESCRIBE TABLE t_ddow LINES sy-tfill .
      IF sy-tfill GT 0 .
        MOVE 'These Materials have been marked as DDOW materials.'(032)
                TO l_t_objtxt.
        APPEND l_t_objtxt.
        CLEAR l_t_objtxt.
        APPEND l_t_objtxt.
        APPEND l_t_objtxt.
        APPEND l_t_objtxt.
        CONCATENATE 'Note! - This is an automatically generated email by the'(034)
                         'SAP system. Pls do not reply to the sender.'(035)
                   INTO  l_t_objtxt
                   SEPARATED BY space.
        APPEND l_t_objtxt.
        DESCRIBE TABLE l_t_objtxt LINES l_tab_lines.
        READ TABLE l_t_objtxt INDEX l_tab_lines.
       l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( l_t_objtxt )
      Creating the entry for the email text in the packing list
        CLEAR l_t_objpack-transf_bin.
        l_t_objpack-head_start = 1.
        l_t_objpack-head_num = 1.
        l_t_objpack-body_start = 1.
        l_t_objpack-body_num = l_tab_lines.
        l_t_objpack-doc_type = 'RAW'.
        lv_lines = l_tab_lines.
        APPEND l_t_objpack.
    Columns Heading for Excel Attachment.
        CONCATENATE  'MRP Controller'(044)
                     'MRP Name'(047)
                     'Material'(037)
                     'Plant'(026)
                     'PP Cal'(038)
                     'Ship Date'(009)
                     'PO Number'(014)
                     'PO Line'(033)
                     'PP Text'(041)
             INTO i_body
            SEPARATED BY cr_mark.
        concatenate ' ' i_body into i_body separated by c_l_newline.
        APPEND i_body TO l_t_objtxt.
        CLEAR i_body.
      Get MRP Names
        SELECT werks dispo name_first name_last
          FROM ZCSVT024D
          INTO TABLE l_i_mrpnm
          FOR ALL ENTRIES IN t_ddow
          WHERE werks = t_ddow-werks
            AND dispo = t_ddow-dispo.
        IF sy-subrc = 0.
          SORT l_i_mrpnm by werks dispo.
        ENDIF.
    Data to be shown in Excel Sheet.
        LOOP AT t_ddow INTO w_ddow.
          CLEAR : l_name.
          READ TABLE l_i_mrpnm INTO wa_mrpnm WITH KEY werks = w_ddow-werks
                                                      dispo = w_ddow-dispo
                                                      BINARY SEARCH.
          IF sy-subrc = 0.
            CONCATENATE wa_mrpnm-name_first wa_mrpnm-name_last
              INTO l_name SEPARATED BY space.
          ENDIF.
          CONCATENATE  w_ddow-dispo
                       l_name
                       w_ddow-matnr
                       w_ddow-werks
                       w_ddow-mrppp
                       w_ddow-datum
                       w_ddow-ebeln
                       w_ddow-ebelp
                       w_ddow-pptxt
                INTO i_body
            SEPARATED BY cr_mark.
          concatenate ' ' i_body into i_body separated by c_l_newline.
          APPEND i_body TO l_t_objtxt.
          CLEAR : w_ddow.
        ENDLOOP.
        DESCRIBE TABLE l_t_objtxt LINES l_tab_lines.
        DESCRIBE TABLE l_t_objtxt LINES l_att_lines.
        l_tab_lines = l_tab_lines - lv_lines.
      Creating the entry for attachment in the packing list
      objpack-transf_bin = 'X'.
        lv_lines = lv_lines + 1.
        l_t_objpack-head_start = 2.
        l_t_objpack-head_num = 1.
        l_t_objpack-body_start = lv_lines.
        l_t_objpack-body_num = l_tab_lines.
        l_t_objpack-doc_type = 'XLS'.
        l_t_objpack-obj_name = 'DDOW_Materials'(045).
        l_t_objpack-obj_descr = 'DDOW Marked Materials'(046).
        l_t_objpack-doc_size = l_tab_lines * 255.
        APPEND l_t_objpack.
        lv_lines = l_att_lines.
         **RECEIVERS...
        LOOP AT t_ddow INTO w_ddow.
          REFRESH l_t_reclist .
          CLEAR l_t_reclist.
    * get the MRP controller from table
          READ TABLE t_mrpc INTO w_mrpc WITH KEY werks = p_werks
                                                 dispo = w_ddow-dispo
                                                 BINARY SEARCH .
          IF sy-subrc EQ 0 .
            MOVE: 'X'               TO l_t_reclist-express   ,
                  'U'               TO l_t_reclist-rec_type  ,
                  w_mrpc-smtp_addr  TO l_t_reclist-receiver  .
                  APPEND l_t_reclist.
            EXIT.
          ENDIF.
        ENDLOOP.
      Sending the document
        IF NOT l_t_reclist[] IS INITIAL.
          CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
            EXPORTING
              document_data              = l_doc_chng
              commit_work                = 'X'
            TABLES
              packing_list               = l_t_objpack
              object_header              = l_t_objhead
              contents_bin               = l_t_objbin
              contents_txt               = l_t_objtxt
              receivers                  = l_t_reclist
            EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              operation_no_authorization = 4
              OTHERS                     = 99.
        ENDIF.
        IF sy-subrc <> 0.
    * Do nothing
        ELSE.
          COMMIT WORK AND WAIT.
          MESSAGE s899(8a) WITH 'Email Message sent successfully'."#EC
        ENDIF.
      ENDIF.
    <<<<<<<<<<<<<<<<<<<<<<<
    regards,
    vikas.
    plz reward if helpful..

  • Crystal Reports XI R2 SP4 Dynamic Image link not shown through forward prox

    Hello,
    I've installed crystal reports XI R2 on a server which accesses the internet through a forward proxy.  I've created a sample report with a dynamic image link.  When I preview the report, the image shows up blank.  I am able to browse to the image using IE. 
    Further, using the same report on our lan machine (no proxy), works fine.  Any help you can provide is appreciated.
    Regards,
    Sujee

    Hi,
    It seems that Crystal Reports does not support accessing images through a proxy configuration.
    Hope this helps.

  • Crystal Report XI: Parameter Field Dynamic Default Values Limitation?

    Post Author: Elie_123
    CA Forum: General
    Hi,Using Crystal Report XI.I have a parameter field with Dynamic values that Queries the company field of an SQL Database.I have around 3500 companies in my DB. But when running my report (Using Crystal), only the first 1300 companies are being displayed in my pick list.I need to see the whole 3500 records. Any idea how to fix that?regards

    Post Author: V361
    CA Forum: General
    Check out this link
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=2DA9FC849962062053477D134AAAA672?cmd=displayKC&docType=kc&externalId=c2017238&sliceId=&dialogID=5618074&stateId=1%200%205616180

  • Send Crystal Report by email reading Domino email list

    Hello all,
    Do you know how do I configure Crystal Reports, so that when I address a report to be sent by email, it reads the contacts list in a Domino server (lotus notes)?
    Thanks in advance,
    Cristina.

    As of CR 9 all functionality has changed, database, exporting, API's etc.
    Also, by default the export dll's are not installed. Go into add/remove programs and change CR. Select the modify, or what ever it is called on your OS, and expand the export types and scroll down until you see Lotus Domino...
    Test again
    Thank you
    Don

  • How to Uninstall Crystal Reports installed via .msi file

    Post Author: epowers0213
    CA Forum: General
    Hello,
    We are installing crystal reports on some clustered servers using the CRRedist2005_x86.msi so that a web application which uses Crystal Reports will run properly.  (Visual Studio is not installed on these servers.)
    If there is any problem caused by running the CRRedist2005_x86.msi program, how could we back out the installation/uninstall this version of Crystal Reports?  Our server administration group wants me to provide an "uninstall program" just in case running the .msi file causes problems for any of the other applications on the server.  However, I have not been able to find any information on this on the Business Objects web site (apart from some manual uninstall directions).
    Can anyone help?
    Thank you in advance!

    XMI is XML with a specified format. 
    Looking at the XMI format definition for the XML, it doesn't appear if it will automatically be consumed by Crystal. 
    Crystal expects relational, rather than hierarchial, data - so you'd need to find a way of exposing the data within XMI as a relational dataset.
    Sincerely,
    Ted Ueda

Maybe you are looking for