Seeking help in converting Excel report to Crystal (Related to format)

All,
I'm trying to create the report found in this image into a crystal report
http://img.auctiva.com/imgdata/1/7/7/2/0/4/webimg/144238299_o.jpg
I've got the data but I now stuck on the format.
Col B = Application
Row 1 = Report range (Lastweek, Last2week, last3week, last4week) - I've created a weekheader field within my data.
Row 2 = Avail and Reponse
How do I get my report to show Avail and RT side by side?
I thought this would be a simple crosstab report but that doesn't work.
Thanks
Steve

My datasource is a Oracle DB.
Let me clarify
I'm attempting to automate a manual report.
Manual method
Query DB from Access and export into Excel for formatting
Automation effort
Query and format in Crystal
Schedule report using Enterprise.
So I'm trying to recreate the format that I was able to do in Excel in Crystal.
So I need
The weeks across top of report like
Week4---Week3-Week2---Week1
Then I need Avail and RT heading for each week
For example
Week4 would look like this for each application
4/21/2008-4/24/2008
      Avail-----RT
       98.4%--7.9
Thanks
Thanks

Similar Messages

  • Convert abap reports into crystal reports

    Hi,
    We are trying to convert abap reports into crystal reports.We could convert these reports into XML files
    Now we want to create utility which will automate the conversion of XML files into RPT files of crystal reports.Later on we can refresh the data in reports by changing the datasource location.
    Can you please guide us whether it is possible and if yes how should we go about it?
    regards,
    shital

    Hi, i suggest, 2 technies to do this, the first one, you can use,
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        APPLICATION            = 'C:\Program Files\crystalreports.exe'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10.
    where, exe file could be, a crviewer.exe, and, use a parameters  ( on exe ) to indicate rpt file, or, define of standar mode, a generic name and put, xml file generated via abap, on  a repository, this way, rpt file, when launched, displaying file.
    the second choice, could be,  go SM69, click create. enter a command name 'ZCREXE', enter the path and the exe file name in operating system command field. You can call this exe from ABAP using SXPG_COMMAND_EXECUTE.
    i hope so that my answers help you.
    greetings.

  • How to convert  PLD Report into Crystal Report

    Hello Experts,
                             I want to convert my  PLD Report into Crystal Report, but  i am not able to find the solution ,
                             so how can i do this and what are the  steps have to taken.
    Kindly give me the solution .
    Regards
    Rahul

    Hi Rahul........
    SAP has given a tool where you can convert your PLDs into Crystal Reports.......
    Please check the below link to download tool......
    http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/108305a7-1555-2d10-8289-9a178d441c71
    Regards,
    Rahul

  • Help! converting two types of video into one format so I can edit

    Right Folks, go easy because I’m a novice.
    I’m having major problems getting two different types of video to work together in final cut pro 7.
    I’ve recorded something with two different HD cameras and I’m totally aware I need to convert them to the same format so I can begin to edit them. I’ve got Mpeg stream clip, could anybody help me convert them?

    Hi Dave, one of the cameras I have is Sanyo Xacti VPC-CG10 this shoots onto 16GB SDHC class 2, to work this in final cut I'm aware I have to compress using Apple ProRes 422 Codec which works fine.
    The other Camera is a panasonic I have shoots on SDHC Class 6 cards and I usually compress at HDV 720P 25fps. which also works fine.
    I can edit both individually, the latter, the panasonic camera is simple to capture and edit and is the camera I use the most but on this particular shoot I need to use both together.
    So I think its the Sanyo that's causing me the problem.

  • Convert Sub-Report to Crystal Command

    I'm attempting to convert a sub-report and a shared variable from the report to a Command.
    Can someone help with the conversion
    Here is the part of the Crystal SQL I can't convert
    This is within last7days >>>  (ORDER_PROC.ORDER_INST>={ts '2014-06-18 00:00:00'} AND ORDER_PROC.ORDER_INST<{ts '2014-06-25 00:00:00'})
    AND ((ORDER_PROC.RESULT_TIME IS  NULL ) OR (ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST))
    ORDER BY ORDER_PROC.ORDER_INST
    Here is the code for the shared variable
    if (not isnull({ORDER_PROC_3.FREQ_UNSCHEDULED_C}) and {ORDER_PROC_3.FREQ_UNSCHEDULED_C}=1 ) then {ORDER_PROC.ORDER_INST}
    else {ORDER_PROC.PROC_START_TIME}
    Thanks
    Steve

    hi Steve,
    you'd need to give us some info...what database are you using? Commands use syntax native to your database.
    are you trying to get the last 7 days instead of a hard coded date range?
    the following may take care of the date range and the null should you be using sql server..not sure though as i don't have the db to check against. i would suggest that you search a forum for your database for the correct syntax though.
    WHERE
    DATEDIFF(DAY,ORDER_PROC.ORDER_INST, GETDATE()) <= 7
    AND
         ISNULL(ORDER_PROC.RESULT_TIME)
         OR
         ORDER_PROC.RESULT_TIME>=ORDER_PROC.ORDER_INST
    ORDER BY
    ORDER_PROC.ORDER_INST
    also you can't use a Shared Variable directly in a command object but you can certainly pass it in via a sub-report link. what is the variable supposed to do in the command? suggest that you create a Parameter in the command object and then link the subreport from your main report to the command parameter.
    cheers,
    jamie

  • Convert BI report into Crystal Report

    Dear Sir,
    I have drawn a structure in BI query onto Crystal Report,
    my question is that, can I delete one single field from this structure on Crystal Report ?
    'cause when I tried to delete one single field, the whole structure is deleted.
    In addition, can I change the field name(text/description) on Crystal Report ?
    Thank you very much for your help.
    Best Regards,
    Girai

    Gira,
    You want my advise?
    Why convert from BI to BO ?
    Create in BO directly. Create new. That saves a lot of trouble.
    Learn BO. That is the way to GO.
    assign points if you feel generous today.

  • Using Excel report in Crystal

    Post Author: tdecicco
    CA Forum: General
    We have a report created in Excel that we want to use in Crystal. We've explored the possibility of inserting it as an OLE object, but find it difficult to edit it in Crystal. Is there another way we can use the report format from Excel without having to re-create it in Crystal by hand?
    Thanks!

    Looks, your Live Office settings are set to "OnDemand".
    Give BO logon credentials(Infoview) & try it out.
    I'm Back

  • Need help in A/P reports in crystal

    Hi all,
    Need to create Date buckets ( parameters, future dates) which displays sum of  due amount depending on the parameter passed.
      As of today   upto first bucket(date parameter 1)  B/w par 1 + 1 & parmeter 2 -1    B/w par 2 &par 3-    sum of due amt                                            Sum of due  amt                         sum of due amt
    Formula created :
    for As of today: 
    if cdate({netdue date})
      <=  currentdate() then ({due amt})
    else 0.00
    upto:
    if cdate({netdue date})
    <=   cdate({?First bucket })
    then
    {due amt}
    else
    0
    B/w par 1 + 1 & parmeter 2 -1:
           if cdate({netdue date})
    in dateadd("d",+1,cdate({?First bucket })) to dateadd("d",-1,cdate({?Second Bucket }))
    then
    {due amt}
    else
    0     
    B/w par 2 &par 3-1  Over par 3:
    if cdate({net due date]})
    in dateadd("d",+1,cdate({?Second Bucket })) to dateadd("d",-1,cdate({?Third Bucket }))
    then
    {due amt}
    else
    0
    Over par 3
    if cdate({net due date})
      >=  cdate({?Third Bucket })
    then
    {due amt }
    else
    0
    Issue1: report is not giving me proper Sum of due amts . Please help me in finding the issue in formulas I wrote.
    Issue2: Its not giving me rollup values .

    Filter your report to a small dataset then un suppress your details (if not already) place your formulae and a new formula
    @Date
    cdate({net due date})
    on the detail line and see what happens to values. You can then work out why they are not returning correct data.
    Ian

  • Convert ABAP Report's Output into PDF Format..

    Hello Experts,
    I want to convert the outout of an ABAP report to an PDF file. I have succedded in doing the following :
    Data statistics -
    Number of
    Records passed ---4
    After executing the program RSTXPDFT4, i can get PDF file saying number of records in the above format...
    But i want to have the output of the report in PDF. suppose a list is being displayed in the output olf the ABAP report, i want to save that report in PDF format....
    Please help........
    Anupam...

    Hi Anupam,
    Try this way
    <font color=blue><pre>
    REPORT ztest_notepad.
    "Variables
    DATA:
       l_lay         TYPE pri_params-paart,
       l_lines       TYPE pri_params-linct,
       l_cols        TYPE pri_params-linsz,
       l_val         TYPE c,
       l_no_of_bytes TYPE i,
       l_pdf_spoolid LIKE tsp01-rqident,
       l_jobname     LIKE tbtcjob-jobname,
       l_jobcount    LIKE tbtcjob-jobcount,
       spoolno       TYPE tsp01-rqident.
    *Types
    TYPES:
       t_pripar      TYPE pri_params,
       t_arcpar      TYPE arc_params.
    "Work areas
    DATA:
       lw_pripar     TYPE t_pripar,
       lw_arcpar     TYPE t_arcpar.
    DATA:
       it_t100       TYPE t100  OCCURS 0 WITH HEADER LINE,
       it_pdf        TYPE tline OCCURS 0 WITH HEADER LINE.
    "Start-of-selection.
    START-OF-SELECTION.
      l_lay   = 'X_65_132'.
      l_lines = 65.
      l_cols  = 132.
      "Read, determine, change spool print parameters and archive parameters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          in_archive_parameters  = lw_arcpar
          in_parameters          = lw_pripar
          layout                 = l_lay
          line_count             = l_lines
          line_size              = l_cols
          no_dialog              = 'X'
        IMPORTING
          out_archive_parameters = lw_arcpar
          out_parameters         = lw_pripar
          valid                  = l_val
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF l_val <> space AND sy-subrc = 0.
        lw_pripar-prrel = space.
        lw_pripar-primm = space.
        NEW-PAGE PRINT ON
          NEW-SECTION
          PARAMETERS lw_pripar
          ARCHIVE PARAMETERS lw_arcpar
          NO DIALOG.
      ENDIF.
      "Get data
      SELECT *
      FROM t100
      INTO TABLE it_t100
      UP TO 100 ROWS
      WHERE sprsl = sy-langu.
      " Writing to Spool
      LOOP AT it_t100.
        WRITE:/ it_t100.
      ENDLOOP.
      NEW-PAGE PRINT OFF.
      CALL FUNCTION 'ABAP4_COMMIT_WORK'.
      spoolno = sy-spono.
      "Convert spool to PDF
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid   = spoolno
          no_dialog     = ' '
        IMPORTING
          pdf_bytecount = l_no_of_bytes
          pdf_spoolid   = l_pdf_spoolid
          btc_jobname   = l_jobname
          btc_jobcount  = l_jobcount
        TABLES
          pdf           = it_pdf.
      "Download PDF file C Drive
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = 'C:\itab_to_pdf.pdf'
          filetype = 'BIN'
        TABLES
          data_tab = it_pdf. </pre></font>
    Thanks
    Venkat.O

  • Looking for help with converting a ppsx file to a video format such as .mov or mp4

    Hi All,  I am looking for conversion software that will allow me to convert a ppsx file to a video file on OS10.5.8. 

    Hi Klaus1, Thanks for your response.  I can open and view the file without difficulty.  My issue is getting into a video format that I can upload to a Website for client viewing.  All the conersion products I can find are for a newer OS then 10.5.8.  I am working on a deadline of midnight tonight-and cannot upgrade that quickly.  So What I need is a conversion program that will still run on my OS

  • Convertion from Bex Reports to Crystal reports

    Hi all
    we are integrating BI with BO, i have a task to convert all existing BEx reports into Crystal Reports. I knew nothing how to do this, can any one please explain in detail steps how to convert BEx reports into crystal reports.
    For example any documents or t-codes how to start and finish the task.
    Thanks

    Post your question BEX and/or B1 and classic SAP data source issues to the Integration Kit forum

  • Rescheduling Excel Reports Error ($Proxy4, $Proxy5)

    Similiar to Reschduling PDF Reports in Crystal Reports 12 thread (Re: Rescheduling PDF Reports Error;), I am unable to re-schedule excel reports.  Crystal Reports 12 is giving a proxy4 or proxy5 error message when clicking on either the parameter section or print settings section of the report prior to scheduing.
    Is this resolved in a later fix pack or service pack?  I am currently using Crystal Reports 12.1.0
    Edit:  Corrected Version #
    Thanks!
    Edited by: Jeff F. on Feb 15, 2011 5:13 PM

    ADAPT01113079
    Problem Description: Same functionality works fine in XIR2 and all its packages. However, this
    functionality breaks from XI 3.0.
    In Infoview schedule the report to pdf format, and once it goes to success.
    Click on the reschedule option and then click on the parameter option.
    The error "An error has occurred:$Proxy4" will be thrown.
    Target Fix: XI 3.0 FP1
    Workaround: No
    It looks like this was fixed in FP1 released a while ago. Can you download patches from SMP or ESD?
    Also I'm moving this post to the administration forum, that's where server issues should be posted for maximum response.
    Regards,
    Tim

  • Help for converting .mov HD 1080i to HD DVD 1080i format to play on my DVD player

    HI,
    I have downloaded HD 1080i movie clip from iTunes .
    The Video Clip is a .mov file.  I can play this file on my iMac , but i need to play this file on my DVD player. 
    My DVD PLAYER  do not support the .mov file .  I need some help to convert the .mov file to a DVD format.
    I have tried some free application that converts any format of video to required format. But the converted DVD format is down graded to 480p.
    I need the same 1080i format DVD format when it is converted.
    Please suggest the Application which can convert the .mov file to DVD in 1080i
    Thanks in advance
    Regards,
    Nilesh Labde
    <Personal Information Edited by Host>

    DVD Video discs are always standard definition -- 720x480 on NTSC or 720x576 on PAL, otherwise they don't conform to the strict DVD Video specification and won't play in a DVD player.
    If you want HD, you have to make a Blu-Ray disc. You need specialized software for that such as Toast 11 Titanium or Adobe Encore (part of the CS5 or CS6 collection, not sold separately) and a Blu-Ray burner. Of course, you will also need a Blu-Ray player connected to your HD TV.

  • How can I convert a report/ ALV in PDF format?

    Can you tell me how can I convert a report or ALV in PDF format?
    Regards,
    Subhasish

    hi ,
    check this..
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Write statement to represent report output. Spool request is created
    if write statement is executed in background. This could also be an
    ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    Alternative way could be to submit another program and store spool
    id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
           to sap-spool
           spool parameters   %_print
           archive parameters %_print
           without spool dynpro
           and return.
    Get spool id from program called above
    IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
          FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
          FORM get_job_details                                          *
    FORM get_job_details.
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
          FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
          FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    perform send_email using p_email2.
    ENDFORM.
          FORM send_email                                               *
    -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
          FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_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.
    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.
      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[] = it_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.
    regards,
    venkat.

  • Regarding conversion of PDF Reports into .XLS or .XLSX format report in SAP MII

    Hi,
    Is there any way out within the scope of SAP MII to convert PDF Reports into .XLS or .XLSX formatted output.
    It is possible to convert PDF Reports into .CSV format through SAP MII, but I am not sure about .XLS format.
    Can anyone help me doing this?

    Hi Sue,
    I would like to assist! I just reached out to you directly. It will come from: [email protected]
    Let's see what we can figure out!
    Kind regards, Stacy

Maybe you are looking for

  • How to get the system32 folder path in java?

    how to get the system32 folder path in windows using java code?

  • Function not found though it is defined

    Hi All, Please reply to query 1 from : http://forums.sun.com/thread.jspa?threadID=5410930&tstart=0 Its a earnest request since I am not able to figure out the issue

  • Is it normal for Adobe Reader 10.1.0 to hang?

    As of a few minutes ago I noticed that within Task Manger it said that my Adobe reader was running. Although none of the windows I had open contained anything running off Adobe. Even when I closed my browser window completely  (Firefox 6.0) they stil

  • How to insert custom code in HTM

    Hello, I need to insert some custom Javascript in the head, start, and end of my HTML files. Unfortunately, RoboHelp does not appear to offer this feature. It is really a big surprise since I can get this code in there using a number of other, much l

  • Commit per session

    hi guru's i have one little question which v$view can tell us " how many commits done by user x in particular session" ???? thanks for response