OLE Integration with Excel --- Urgent

Hello,
i want to draw two charts on Excel sheet based on some data in SAP. in the excel sheet first i have to display the data and then draw the chart for that. now i am able to draw first chart but not able to draw the second chart because i think the area where i have drawn my first chart is active and not able to print the data related to second chart. can any one tell me, how to activate the sheet after drawing first graph.
Thanks a lot in advance...
Mohan

Mohan,
Try this....
You can activate using ...CALL METHOD OF gs_activesheet 'Activate' .
Report ZTEST.
INCLUDE ole2incl .
DATA: gs_excel TYPE ole2_object ,
gs_wbooklist TYPE ole2_object ,
gs_application TYPE ole2_object ,
gs_wbook TYPE ole2_object ,
gs_activesheet TYPE ole2_object ,
gs_sheets TYPE ole2_object ,
gs_newsheet TYPE ole2_object ,
gs_cell1 TYPE ole2_object ,
gs_cell2 TYPE ole2_object ,
gs_cells TYPE ole2_object ,
gs_range TYPE ole2_object ,
gs_font TYPE ole2_object ,
gs_interior TYPE ole2_object ,
gs_columns TYPE ole2_object ,
gs_charts TYPE ole2_object ,
gs_chart TYPE ole2_object ,
gs_charttitle TYPE ole2_object ,
gs_charttitlechar TYPE ole2_object ,
gs_chartobjects TYPE ole2_object .
DATA gv_sheet_name(20) TYPE c .
DATA gv_outer_index LIKE sy-index .
DATA gv_intex(2) TYPE c .
DATA gv_line_cntr TYPE i . "line counter
DATA gv_linno TYPE i . "line number
DATA gv_colno TYPE i . "column number
DATA gv_value TYPE i . "data
PARAMETERS: p_sheets TYPE i .
*Step 2 Initiate the do-loop and OLE automation base objects.
*Code Part C.2 Looping and initializing, adding new worksheets
START-OF-SELECTION .
DO p_sheets TIMES .
*--Forming sheet name
gv_intex = sy-index .
gv_outer_index = sy-index .
CONCATENATE 'Excel Sheet #' gv_intex INTO gv_sheet_name .
*--For the first loop, Excel is initiated and one new sheet is added
IF sy-index = 1 .
CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
SET PROPERTY OF gs_excel 'Visible' = 1 .
GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooklist .
GET PROPERTY OF gs_wbooklist 'Application' = gs_application .
SET PROPERTY OF gs_application 'SheetsInNewWorkbook' = 1 .
CALL METHOD OF gs_wbooklist 'Add' = gs_wbook .
GET PROPERTY OF gs_application 'ActiveSheet' = gs_activesheet .
SET PROPERTY OF gs_activesheet 'Name' = gv_sheet_name .
*--For the rest of loops, other sheets are added
ELSE .
GET PROPERTY OF gs_wbook 'Sheets' = gs_sheets .
CALL METHOD OF gs_sheets 'Add' = gs_newsheet .
SET PROPERTY OF gs_newsheet 'Name' = gv_sheet_name .
ENDIF .
gv_line_cntr = 1 . "line counter
*Step3 Write the title and format it.
*--Title
*--Selecting cell area to be merged.
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = 1
#2 = 4.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
*--Merging
CALL METHOD OF gs_cells 'Merge' .
*--Setting title data
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 1.
SET PROPERTY OF gs_cell1 'Value' = 'TITLE' .
*Code Part C.3 Writing and formatting the title
*--Formatting the title
GET PROPERTY OF gs_cell1 'Font' = gs_font .
SET PROPERTY OF gs_font 'Underline' = 2 .
SET PROPERTY OF gs_font 'Bold' = 1 .
SET PROPERTY OF gs_cell1 'HorizontalAlignment' = -4108 .
GET PROPERTY OF gs_cell1 'Interior' = gs_interior .
SET PROPERTY OF gs_interior 'ColorIndex' = 15 .
SET PROPERTY OF gs_interior 'Pattern' = -4124 .
SET PROPERTY OF gs_interior 'PatternColorIndex' = -4105 .
*Step 4 Write some additional data for the title area and format them.
gv_line_cntr = gv_line_cntr + 1 .
*--Writing some additional data for the title
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 1.
SET PROPERTY OF gs_cell1 'Value' = 'Sheet No' .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 5.
SET PROPERTY OF gs_cell1 'Value' = ':' .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 6.
SET PROPERTY OF gs_cell1 'Value' = gv_intex .
*--Formatting the area of additional data 1
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = gv_line_cntr
#2 = 5.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
GET PROPERTY OF gs_cells 'Font' = gs_font .
SET PROPERTY OF gs_font 'Bold' = 1 .
*--Formatting the area of additional data 2
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1
#2 = 5.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = gv_line_cntr
#2 = 5.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
GET PROPERTY OF gs_cells 'Columns' = gs_columns .
CALL METHOD OF gs_columns 'AutoFit' .
*--Bordering title data area
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = 1
#2 = 1.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = gv_line_cntr
#2 = 6.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
CALL METHOD OF gs_cells 'BorderAround'
EXPORTING
#1 = 1 "continuous line
#2 = 4. "thick
*Code Part C.4 Some additional writing to the title area, formatting
*and bordering around the title area
*Step 5 Put axis labels to the data area.
*Code Part C.5 Axis Labels
*--Putting axis labels
gv_colno = 2 .
gv_line_cntr = gv_line_cntr + 5 .
gv_linno = gv_line_cntr - 1 .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_linno
#2 = 1.
SET PROPERTY OF gs_cell1 'Value' = 'X' .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 1.
SET PROPERTY OF gs_cell1 'Value' = 'Y' .
*Step 6 Generate some data.
*Code Part C.6 Generating Data
*--Generating some data
DO 3 TIMES .
gv_value = gv_outer_index * sy-index * 10 .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_linno
#2 = gv_colno.
SET PROPERTY OF gs_cell1 'Value' = sy-index .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = gv_colno.
SET PROPERTY OF gs_cell1 'Value' = gv_value .
gv_colno = gv_colno + 1 .
ENDDO .
*Step 7 Set source data area for the chart.
*Code Part C.7 Setting source data area for the chart
*--Source data area
gv_colno = gv_colno - 1 .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_linno
#2 = 1.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = gv_line_cntr
#2 = gv_colno.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
*Step8 Draw the chart
*Code Part C.8 Draw the chart
GET PROPERTY OF gs_application 'Charts' = gs_charts .
CALL METHOD OF gs_charts 'Add' = gs_chart .
CALL METHOD OF gs_chart 'Activate' .
SET PROPERTY OF gs_chart 'ChartType' = '51' . "Vertical bar graph
CALL METHOD OF gs_chart 'SetSourceData'
EXPORTING
#1 = gs_cells
#2 = 1.
SET PROPERTY OF gs_chart 'HasTitle' = 1 .
GET PROPERTY OF gs_chart 'ChartTitle' = gs_charttitle .
GET PROPERTY OF gs_charttitle 'Characters' = gs_charttitlechar .
SET PROPERTY OF gs_charttitlechar 'Text' = 'Sample Graph' .
*Step 9 Locate the chart onto the current worksheet.
*Code Part C.9 Locating the chart onto the current worksheet
*--Locate the chart onto the current worksheet
*--Activate current sheet
CALL METHOD OF gs_excel 'WorkSheets' = gs_activesheet
EXPORTING
#1 = gv_sheet_name.
CALL METHOD OF gs_activesheet 'Activate' .
CALL METHOD OF gs_chart 'Location'
EXPORTING
#1 = 2
#2 = gv_sheet_name.
*Step 10 Reposition the chart to a proper place and finish the do-loop.
*Code Part C.10 Repositioning the chart to a proper place and end of
*the do-loop counting sheet number
*--Reposition the chart on the worksheet (cut&paste)
CALL METHOD OF gs_activesheet 'ChartObjects' = gs_chartobjects .
CALL METHOD OF gs_chartobjects 'Select' .
CALL METHOD OF gs_chartobjects 'Cut' .
*--Select new area
gv_line_cntr = gv_line_cntr + 2 .
CALL METHOD OF gs_excel 'Cells' = gs_cell1
EXPORTING
#1 = gv_line_cntr
#2 = 1.
CALL METHOD OF gs_excel 'Cells' = gs_cell2
EXPORTING
#1 = gv_line_cntr
#2 = 1.
CALL METHOD OF gs_excel 'Range' = gs_cells
EXPORTING
#1 = gs_cell1
#2 = gs_cell2.
CALL METHOD OF gs_cells 'Select' .
CALL METHOD OF gs_activesheet 'Paste' .
ENDDO .
*Step 11 Free OLE objects to deallocate memory.
*Code Part C.11 Deallocating the memory
*--Deallocating memory
FREE: gs_excel, gs_wbooklist, gs_application, gs_wbook,
gs_activesheet,gs_sheets, gs_newsheet, gs_cell1,
gs_cell2, gs_cells, gs_range, gs_font, gs_interior,
gs_columns, gs_charts, gs_chart, gs_charttitle,
gs_charttitlechar, gs_chartobjects .

Similar Messages

  • Desktop Integration with Excel sheet

    Hello Everyone,
                              I have a requirement where in i need to create an excel document with different format and data for each cell.Here i want to use office integration control .Can anyone provide me sample code to  create a spreadsheet and passing the data to it through office integration..?.
    I am also looking for other option where in instead of building document from scratch,i want to use one standard template which i should be able to open and pass the data to a certain cells of this document .Is it possible to implement this functionality through desktop integration controls..? Please do the needful.
        Thank you in advance.
    Regards,
    Venkat.

    Hi,
    By using OLE your code becomes very lengthy and you have to write your own
    reusable subroutines. It is not suitable for complex requirement.
    You can go for Desktop Office Integration (DOI) classes and their methods which serves
    most of the common user requirements.
    Please refer below examples
    1. SAPRDEMO_SPREADSHEET_INTERFACE
    2. SAPRDEMO_FORM_INTERFACE
    Regards,
    Vishal

  • SAML authentication Secure store service target ID Project server integration with excel service

    I installed and configured share Point 2013 Project server 2013, and Created web application Trusted Identity Provider (SAML 2.0) ,it is working as we expected means
    ..end user are able to access application(User Login through email and alies(account NAME) )
    My problem here CA is working NTLM authentication ,Web application is working SAML
    while creating service application(LIKE SSSA Excel Performance ... ( it automatically take NTLM) I CREATED TARGET ID in secure store service application ,I chooser "GROUPS" under SSSA,and
    we added members "group to account and email id.
    I configure Excel service application and i SSSA Target ID in this excel service application  also added trusted location for PWA site
    while opening excel sheet under Project server (An error occurred while accessing application id ProjectServerApplication from Secure
    Store Service. The following connections failed to refresh)
    I tried target ID choose option " Group Ticket" 
    Is it CA required for SAML authentication? .. (extend web application 
    How Service application like SSSA will work for SAML  authentication? 

    Hi SridharMandipudi, 
    as i know, usually when the error appear, you need to check the member.
    The domain group that was specified the Secure Store Service ID ProjectServerApplication did not have any members in the group. 
    and please also have a try in a testing secure store service application:
    Created new secure store service application with new target application ID. and added this ID in excel service application -----global settings----Application ID.
    went to Central admin---manage web application---selected web application ---click on Service Connection---associated newly created secure store service application.
    edited data connection string of excel file.
    went to site and tried refresh that excel file and able to refresh the file.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • OLE integration with Forms Server

    Can Forms 6 server running 3 tier, be used to call and integrate
    from an Oracle Form connecting to Microsoft Word or other local
    applications on a PC (+ local printing) ? We can do it 2 tier
    with OLE but need to migrate to 3 tier.
    How do we achieve this ? What are the options ?
    null

    Can Forms 6 server running 3 tier, be used to call and integrate
    from an Oracle Form connecting to Microsoft Word or other local
    applications on a PC (+ local printing) ? We can do it 2 tier
    with OLE but need to migrate to 3 tier.
    How do we achieve this ? What are the options ?
    null

  • OLE Automation with Excel

    Hi All,
    Does anyone know of any reference/help/material on how to use OLE automation to download and format data from ABAP to Excel.
    I need to know what the available methods and properties are so I could format the data the way I want.
    Any help will be greatly appreciated.
    Regards.

    Hi Aurang
    You can call almost all methods using OLE. What is required is to know how to interpret a script to ABAP OLE call. This is explained in the tutorial<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a>
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Error while opening excel integration with sap

    Hi
    While view planning with excel integration in SAP, I am getting error. I am getting this error in CCA and COPA also.
    Can anybody help me how to resolve the issue. Please see the meessage
    Error while opening document
    Message no. SOFFICEINTEGRATION143
    Diagnosis
    An error occurred in the desktop application while opening a document.
    Procedure
    Check first whether you can insert a document from this desktop application as an embedded object in another application. The necessary menu item is usually 'Insert --> Object'. The application then lists all of the OLE document types. Choose the type corresponding to the desktop applciation. If the insertion fails, the error is in the desktop application itself.
    This error has various causes. Often, it is caused by activating certain add-ins. Sometimes, the desktop application is wrongly installed. The error should not recur once you have disabled any add-ins or reinstalled the desktop application.
    Procedure for System Administration
    If you cannot solve the problem as described above, enter a problem message. There are notes relating to how to generate the log file using the program SAPROFFICEINTEGRATIONTRACE.
    Regards
    Sekhar Datta

    Hi ,
    I think you are using older version,use microsoft excel 2007 version,then it will opens.
    Regrads,
    SVS
    Edited by: svskumar on Aug 19, 2010 12:18 PM

  • Excel integration with Entry and Approval for SSM not working

    Iu2019m having trouble getting excel integrated with E&A for being able to enter large number of historic data points into a cube-built model u2013 Iu2019ve gone through all the docs several times and there is no good concrete explanation on how to do this. I keep getting the following error message:
    Error opening Excel Automation server can't create object. This can be caused by:
    1. - The application is not installed on your machine
    2. - The browser security does not support ActiveX scripts.
    3. - Your were prompted to run ActiveX and you said No, if that is the cause close all browser instances and reopen.
    However, I've done the following:
    -          Iu2019ve installed the excel add-in on both the server and my local machine, and Iu2019ve enabled the add-in part in Excel on my local machine.
    -          The browser security is definitely set to accept all active X scripts
    -          I am never prompted to run activeX when I select u201CHistorical Datau201D within entry/approval. I just get the above error message.
    -          Iu2019ve flushed cache and restarted listener several times.
    What am I missing? I donu2019t see it in any of the docs.
    Thanks!

    Robb,
    Looking at what you've done, there doesn't seem to be an obvious answer. The best suggestion I can make is to fill out a support ticket on this. There must be other factors at work here that will require a deeper look.
    Regards,
    Bob

  • Urgent: Sending an Email with Excel sheet attachment

    Hi All,
    I am preparing a report and has to send mail with excel sheet attachement. In report i am getting everything fine. But in the mail i am not getting the data, data is passing to the FM succesfully. But in the mail, excel is not having full data.
    the below mentioned is my code.
    i_texts-line = c_stern.
      i_texts-line+254(1) = c_newline.
      APPEND i_texts.
      LOOP AT i_texc.
        i_att_line-line = i_texc.
        APPEND i_att_line.
      ENDLOOP.
      DATA: wa_doc_chng LIKE sodocchgi1.
      DATA: w_tab_lines LIKE sy-tabix.
      STATICS: c_body_start TYPE i VALUE '1'.
      CONSTANTS: lc_filename(10) TYPE c VALUE 'Attachment',
                 lc_atthead(30)  TYPE c VALUE 'Manually released invoices'.
      DATA: i_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: w_doc_name(30) TYPE c.
      DATA: l_text1(15),
            l_text2(12),
            l_text3(15),
            l_text4(15),
            l_text5(14),
            l_text6(17),
            l_text7(10),
            l_text8(20),
            l_text9(19),
            l_text10(19),
            l_text11(19),
            l_text12(16),
            l_text13(20),
            l_text14(19),
            l_text15(19),
            l_text16(30).
      DATA: DATE(10),
            DT(2),
            MON(3),
            YR(4),
            lc_final(50).
      CLEAR: i_texts, i_reci,i_att_line.                "i_bname,
      REFRESH: i_texts, i_reci,i_att_line.              "i_bname,
      WRITE sy-datum TO w_datex.
      WRITE sy-uzeit TO w_timex.
      l_text1 = text-003.
      l_text2 = text-004.
      l_text3 = text-005.
      l_text4 = text-006.
      l_text5 = text-007.
      l_text6 = text-008.
      l_text7 = text-009.
      l_text8 = text-010.
      l_text9 = text-011.
      l_text10 = text-012.
      l_text11 = text-013.
      l_text12 = text-014.
      l_text13 = text-015.
      l_text14 = text-016.
      l_text15 = text-017.
      l_text16 = text-026.
      CONCATENATE
      l_text1
      l_text2
      l_text3
      l_text4
      l_text5
      l_text6
      l_text7
      l_text8
      l_text9
      l_text10
      l_text11
      l_text12
      l_text13
      l_text14
      l_text15
      l_text16
      INTO i_texts SEPARATED BY
      c_horz_tab.
      i_texts-line+254(1) = c_newline.
      APPEND i_texts.
      CLEAR  i_texts.
      LOOP AT i_texc.
        i_att_line-line = i_texc.
        APPEND i_att_line.
      ENDLOOP.
      LOOP AT so_rec.
        i_reci-receiver = so_rec-low.
        i_reci-express = 'X'.
        i_reci-rec_type = 'U'.
        APPEND i_reci.
      ENDLOOP.
      DESCRIBE TABLE i_texts LINES w_tab_lines.
      READ TABLE i_texts INDEX w_tab_lines.
      wa_doc_chng-doc_size = ( w_tab_lines - 1 ) * 255 + STRLEN( i_texts ).
      wa_obj_name   = 'ZFI_XX_REL_BLOCKED_INVOICE_01'.
      DT  = SY-DATUM+6(2).
      MON = SY-DATUM+4(2).
      YR  = SY-DATUM+0(4).
      CONCATENATE DT MON YR INTO DATE SEPARATED BY '-'.
      CONCATENATE lc_atthead date into lc_final separated by ' '.
      MOVE lc_final
                   TO wa_obj_descr .
      wa_doc_chng-obj_name  = wa_obj_name.
      wa_doc_chng-obj_descr = wa_obj_descr.
      CLEAR i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 0.
      i_objpack-body_num = w_tab_lines.
      i_objpack-doc_type = 'RAW'.
      APPEND i_objpack.
      APPEND LINES OF i_att_line TO i_texts.
      LOOP AT i_arseg INTO wa_arseg.
        i_xmplt_d-belnr = wa_arseg-belnr.
        i_xmplt_d-budat = wa_arseg-budat.
        i_xmplt_d-bukrs = wa_arseg-bukrs.
        i_xmplt_d-lifnr = wa_arseg-lifnr.
        i_xmplt_d-name1_lifnr = wa_arseg-name1_lifnr.
        i_xmplt_d-wrbtr = wa_arseg-wrbtr.
        i_xmplt_d-waers = wa_arseg-waers.
        i_xmplt_d-ebeln = wa_arseg-ebeln.
        i_xmplt_d-ebelp =  wa_arseg-ebelp.
        i_xmplt_d-reason = wa_arseg-reason.
        i_xmplt_d-dmeng = wa_arseg-dmeng.
        i_xmplt_d-dwert = wa_arseg-dwert.
        i_xmplt_d-bname = wa_arseg-bname.
        i_xmplt_d-name_text = wa_arseg-name_text.
        i_xmplt_d-udate = wa_arseg-udate.
        i_xmplt_d-comment =  wa_arseg-comment.
        APPEND i_xmplt_d.
      ENDLOOP.
      LOOP AT i_xmplt_d.
        CONCATENATE i_xmplt_d-belnr
                    i_xmplt_d-budat
                    i_xmplt_d-bukrs
                    i_xmplt_d-lifnr
                    i_xmplt_d-name1_lifnr
                    i_xmplt_d-wrbtr
                    i_xmplt_d-waers
                    i_xmplt_d-ebeln
                    i_xmplt_d-ebelp
                    i_xmplt_d-reason
                    i_xmplt_d-dmeng
                    i_xmplt_d-dwert
                    i_xmplt_d-bname
                    i_xmplt_d-name_text
                    i_xmplt_d-udate
                    i_xmplt_d-comment
                    INTO i_texts SEPARATED
                    BY c_horz_tab.
        i_texts-line+254(1) = c_newline.
        APPEND i_texts.
        CLEAR i_texts.
      ENDLOOP.
      DESCRIBE TABLE i_texts LINES w_tab_lines.
      READ TABLE i_texts INDEX w_tab_lines.
      wa_doc_chng-doc_size = ( w_tab_lines - 1 ) * 255 + STRLEN( i_texts ).
      DESCRIBE TABLE i_texts LINES w_tab_lines.
      i_objpack-transf_bin = ' '.
      i_objpack-head_start = 0.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num = w_tab_lines.
      i_objpack-doc_type = 'XLS'.
      i_objpack-obj_name = 'Attachment'.
    i_objpack-obj_descr = w_doc_name.
      i_objpack-obj_descr = lc_filename.
      i_objpack-doc_size = w_tab_lines * 255.
      APPEND i_objpack.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_chng
        TABLES
          packing_list               = i_objpack
          contents_txt               = i_texts
          receivers                  = i_reci
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      IF sy-subrc = 0.
        COMMIT WORK.
      ELSE.
        WRITE: / 'Error in send E-Mail' .
      ENDIF.
    please revert me asap. It is very urgent to me. thanks in advance.
    Bye

    hI
    Have you build your Excel Data table to get attachement in Mail? If no then please find the Eg. code for your reference to send Excel attachment..
    * End of Selection Event : Displaying the selected data                *
    END-OF-SELECTION.
        PERFORM EMAIL_EXCEL_ATTACHMENT.
    ******///form
    FORM EMAIL_EXCEL_ATTACHMENT .
    * Populate table with detaisl to be entered into .xls file
      PERFORM BUILD_XLS_DATA_TABLE.
    * 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 S_EMAIL
                                          TEXT-042
                                          C_XLS
                                          'filename'
                                 CHANGING GD_ERROR
                                          GD_RECIEVER.
    *   Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
    ENDFORM.                    " EMAIL_EXCEL_ATTACHMENT
    ********///form BUILD_XLS_DATA_TABLE
    FORM BUILD_XLS_DATA_TABLE .
      DATA :    LV_NETWR(20)     TYPE C,
                LV_BOL_DATE(20)  TYPE C,
                LV_KAWRT(20)     TYPE C,
                LV_FKDAT(20)     TYPE C,
                LV_WAERK(20)     TYPE C,
                LV_KURRF(20)     TYPE C,
                LV_SHIPDATE(20)  TYPE C,
                LV_DEPTDATE(20)  TYPE C.
      CONSTANTS:
          CON_TAB  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
          CON_CRET TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.  "#EC *
      DATA STR TYPE STRING.
    **********/ this parameter concatenate to get headers
      CONCATENATE STR
      'SLNO'
      'OWNER'
      'SERIAL NO'
      'FROM'
      'DESTINATION'
      'INVOICE VALUE'
      'DESCRIPTION'
      'CUSTOMER NAME'
      'BL NUMBER'
      'BL DATE'
      'VESSEL NAME/AIRLINE DETAILS'
      'MODE OF TRANSIT'
      'SHIPPING MARKS'
      'DUTY SUM INSURED'
      'FLAG'
      'OPEN COVERNO'
      'INVOICE DATE'
      'INVOICE NO'
      'LC WORDING'
      'QUANTITY'
      'PACKAGING DETAILS'
      'BASIS OF VALUATION'
      'EXCLUDE WAR SRCC'
      'CURRENCY'
      'EXCHANGE RATE'
      'ADDRESS'
      'VESSEL BUILT YEAR'
      'VESSEL FLAG'
      'VOYAGE NO'
      'SHIPMENT DATE'
      'DEPARTURE DATE'
      'SURVEYOR COUNTRY'
      'SURVEYOR CITY'
      'SURVEYOR AGENT'
      'SURVEYOR ADDRESS'
      'EXPORT CONSIGNMENT'
      'CONTAINER DETAILS'
      CL_ABAP_CHAR_UTILITIES=>CR_LF INTO STR SEPARATED BY CON_TAB.
      LOOP AT IT_FINAL.
    *******/ this is to pass body / row data
        WRITE : IT_FINAL-NETWR    TO LV_NETWR,              "#EC UOM_IN_MES
                IT_FINAL-BOL_DATE TO LV_BOL_DATE,
                IT_FINAL-KAWRT    TO LV_KAWRT,              "#EC UOM_IN_MES
                IT_FINAL-FKDAT    TO LV_FKDAT,
                IT_FINAL-WAERK    TO LV_WAERK,
                IT_FINAL-KURRF    TO LV_KURRF,
                IT_FINAL-SHIPDATE TO LV_SHIPDATE,
                IT_FINAL-DEPTDATE TO LV_DEPTDATE.
        CONCATENATE
               STR
               IT_FINAL-SLNO
               IT_FINAL-OWNER
               IT_FINAL-SRNO
               IT_FINAL-PORT_LOAD
               IT_FINAL-PORT_DSCHR
               LV_NETWR
               IT_FINAL-DESCRIP
               IT_FINAL-CUSTNAME
               IT_FINAL-BOL_NUM
               LV_BOL_DATE
               IT_FINAL-VESSELNAME
               IT_FINAL-SHP_TYPE
               IT_FINAL-SHP_MARK
               LV_KAWRT
               IT_FINAL-FLAG
               IT_FINAL-OPEN_CONO
               LV_FKDAT
               IT_FINAL-VBELN
               IT_FINAL-LC_WORD
               IT_FINAL-QUANT
               IT_FINAL-PACKDETL
               IT_FINAL-INCO1
               IT_FINAL-EXCWSR
               LV_WAERK
               LV_KURRF
               IT_FINAL-ADDPAY
               IT_FINAL-VESSBYR
               IT_FINAL-VESSFLG
               IT_FINAL-VOY_FLY_NO
               LV_SHIPDATE
               LV_DEPTDATE
               IT_FINAL-SURCOUNT
               IT_FINAL-INCO2
               IT_FINAL-EXPORT_CON
               IT_FINAL-SURAGT
               IT_FINAL-SURADD
               IT_FINAL-CONTRNO
       CL_ABAP_CHAR_UTILITIES=>CR_LF INTO STR SEPARATED BY CON_TAB.
      ENDLOOP.
      CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
        EXPORTING
          TEXT      = STR
        TABLES
          FTEXT_TAB = IT_ATTACH.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    ******// form POPULATE_EMAIL_MESSAGE_BODY
    FORM POPULATE_EMAIL_MESSAGE_BODY .
      REFRESH IT_MESSAGE.
      IT_MESSAGE = TEXT-043.  " Please find attached Insurance Certificate details
      APPEND IT_MESSAGE.
    ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY
    *******'/ form SEND_FILE_AS_EMAIL_ATTACHMENT
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       text
    *      -->PIT_MESSAGE           text
    *      -->PIT_ATTACH            text
    *      -->P_EMAIL               text
    *      -->P_MTITLE              text
    *      -->P_FORMAT              text
    *      -->P_FILENAME            text
    *      -->P_ATTDESCRIPTION      text
    *      -->P_SENDER_ADDRESS      text
    *      -->P_SENDER_ADDRES_TYPE  text
    *      -->P_ERROR               text
    *      -->P_RECIEVER            text
    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.       "#EC *
      DATA: LD_ERROR    TYPE SY-SUBRC,                          "#EC *
    *        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.                         "#EC *
    *  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.
      DESCRIBE TABLE IT_ATTACH LINES W_CNT.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         W_CNT * 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.
      LOOP AT S_EMAIL.
        T_RECEIVERS-RECEIVER = S_EMAIL-LOW.
        T_RECEIVERS-REC_TYPE = 'U'.
        T_RECEIVERS-COM_TYPE = 'INT'.
        T_RECEIVERS-NOTIF_DEL = 'X'.
        T_RECEIVERS-NOTIF_NDEL = 'X'.
        APPEND T_RECEIVERS.
      ENDLOOP.
      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.                    " SEND_FILE_AS_EMAIL_ATTACHMENT
    *******/form
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    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
    *********end of code to trigger mail in excel format....
    If any other help please let me know......
    I am sure this example code will help you to resolve your problem...
    please analyse above code for your requirement...
    In my scenario the message you said is not displaying.....
    Reward Points

  • Customer Service (CS) module integration  with other modules VERY URGENT

    Customer Service (CS) module integration  with other modules like sd,mm,pm,fi
    documentation very urgent please send to my mail id [email protected]

    This is with regards to Integration of CS module with other modules:
    CS is in very close integration with Plant Maintenance(PM), Sales and Distribution(SD), FI, MM, Costing (CO) and also PP and HR.
    Incase you want to have resource related billing using DIP profile  (PM) you must have Cost element  and Service Products defined in MM etc.
    Itu2019s a very vast area needs to be explored based on the requirement in CS module. Any further assistance needed pls let me know.l.

  • PA Integrated Planning with Excel.

    Good day guys
    I'm busy setting up PA planning with Excel. I've built the planning layout and linked it to a planner profile.
    Im now at the maintaining the file description screen. I would like to save the file description but cannot find how to do it as I do not have the 'save as' to clivk on and give it a file name to use when uploading.
    I'm also getting this message:'A later upload is not possible with this layout
    Message no. K9363'
    Can someone show me where I'm going wrong and help resolve this issue?
    Regards
    Meneti

    Hi Guys
    I've resolved the issue. I went to Excel options and changed the Save function to allow 'Save As'
    Regards
    MS

  • URGENT:Installing TMS  integrated with Oracle Clinical

    hi ,
    I am installing TMS integrated with Oracle Clinical .
    In the 9i installer screens , one is for
    " Destination Oracle HOme And Oracle HOme Name "
    what should be given here a new Oracle home name and destination or the same where 9i for OC was installed .
    Also can I install TMS and OC on Same database instance ?
    thanks And regards

    I think that TMS should be in the same Oracle home. Architecturally, TMS does install in the same database instance as OC. OPA 4.5 is destined to change that, offering a stand alone TMS instance that integrates with specific instances of OC, RDC, AERS, etc. More details of that &lt;fun&gt; migration whenever 4.5 is officially released.
    Hope this helps.

  • Office2010_32bit Integration with SAPGUI720 on Windows7

    Hi
    I am testing the Office2010_32bit Integration with SAPGUI720 on Windows7.
    When trying to view a list as an embedded Excel-Sheet (the Excel-window is embedded in the SAPGUI-Window),
    1.) the Excel-window is opened as a separate window
    2.) the Excel-Sheet stays empty
    The same when testing OLE: the Excel-Sheet is empty.
    Is is this a known issue ? Is there a solution for that yet ?

    Yes it is know issue. Refer to SAP Standard Note 1292970 for the empty Excel solution and for the extra window problem refer to the below Microsoft KB article,
    http://support.microsoft.com/?kbid=2009802

  • RE: Legacy Integration with PI/Open

    Greg -
    We are currently working on wrappering the APIs for UniVerse (aka Pick on
    UNIX).
    We received some help from the guys at RTD in Denver.
    We tested out a C program that uses the Universe APIs and it works fine.
    We will be building the Forte piece and compiling it this week.
    Our first application is to inquire the UniVerse data, after that is
    successful, we will move to inserting & updating.
    Let us know how we can help.
    Larry McCartney
    [email protected]
    (203)459-7959 - Trumbull
    From:
    [email protected][SMTP:[email protected]
    om]
    Sent: Monday, October 12, 1998 11:00 AM
    To: [email protected]
    Subject: forte-users-digest V1 #1111
    forte-users-digest Monday, 12 October 1998 Volume 01 : Number
    1111
    In this issue:
    Legacy Integration with PI/Open
    is OBB32.dll available
    Java Integration
    Java Integration
    Re: Legacy Integration with PI/Open
    RE: Forms That Will Not Close
    RE: Forms That Will Not Close
    RE: Forms That Will Not Close
    Re: AfterValueChange event trigged when it shouldn't be...
    math library
    From: [email protected]
    Date: Mon, 12 Oct 1998 09:49:56 +1000
    Subject: Legacy Integration with PI/Open
    This is a bit of a long shot, but has anyone experience with integrating
    Forte with PI/Open. PI/Open is a variant of PICK. We have a requirement
    to read and update a PI/Open database from within our Forte application,
    and we would be most interested to hear from anyone who has experience in
    doing this.
    We are aware of a set of APIs provided with PI/Open that are written in
    "C". We could wrapper these from within Forte, however the issue is that
    the APIs provided are non-shared, and Forte requires shared libraries.
    Thanks in advance for any help.
    Greg Barber.
    The information transmitted is intended only for the person or entity to
    which it is addressed and may contain confidential and/or privileged
    material. Any review, retransmission, dissemination or other use of, or
    taking of any action in reliance upon, this information by persons or
    entities other than the intended recipient is prohibited. If you
    received
    this in error, please contact the sender and delete the material from any
    computer.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: "sridhar t" <[email protected]>
    Date: Sun, 11 Oct 1998 22:01:36 PDT
    Subject: is OBB32.dll available
    hi,
    am working on forte3.0.G.2. when i tried to use objectbroker library i
    am unable to find the runtime objectbroker library (OBB32.dll). is this
    dll available with this version. if not is there any alternative.
    thanks,
    sridhar,
    Goldstone Softech USA
    Get Your Private, Free Email at http://www.hotmail.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: srinivasa gopi <[email protected]>
    Date: Sun, 11 Oct 1998 23:12:22 -0700 (PDT)
    Subject: Java Integration
    Hello,
    I'm trying to integrate Forti with Java in Java mode using IIOP.I
    followed the steps as explained in the Forti Web enterprise manual.I
    compiled the Java files that are generated by Forti along with the
    client Java file.The Java applet is getting downloaded on the client
    browser(IE 4.0), but the problem is browser is giving an exception
    ** Java.lang.RuntimeException can't connect to service object with
    the ior file name **.
    My question is on every client is it necessary for ORB(Visigenic for
    Java 3.2) and also the Forti Java interoperability package that is
    provided by the Forti for compatability with Java or it is not
    required on the clients ?
    Is there any other alternative to achieve the goal as this will give
    wide access to the Forti service objects through Web Browser clients.
    Please mail me the solution to this problem as early as possible it is
    very urgent.
    Thanks in advance,
    Srinivasa Gopi,
    Goldstone Softech USA
    DO YOU YAHOO!?
    Get your free @yahoo.com address at http://mail.yahoo.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: srinivasa gopi <[email protected]>
    Date: Sun, 11 Oct 1998 23:26:26 -0700 (PDT)
    Subject: Java Integration
    Hello,
    I'm trying to integrate Forti with Java in Java mode using IIOP.I
    followed the steps as explained in the Forti Web enterprise manual.I
    compiled the Java files that are generated by Forti along with the
    client Java file.The Java applet is getting downloaded on the client
    browser(IE 4.0), but the problem is browser is giving an exception
    ** Java.lang.RuntimeException can't connect to service object with
    the ior file name **.
    My question is on every client is it necessary for ORB(Visigenic for
    Java 3.2) and also the Forti Java interoperability package that is
    provided by the Forti for compatability with Java or it is not
    required on the clients ?
    Is there any other alternative to achieve the goal as this will give
    wide access to the Forti service objects through Web Browser clients.
    Please mail me the solution to this problem as early as possible it is
    very urgent.
    Thanks in advance,
    Srinivasa Gopi,
    Goldstone Softech USA
    DO YOU YAHOO!?
    Get your free @yahoo.com address at http://mail.yahoo.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: Tim Hagemann <[email protected]>
    Date: Mon, 12 Oct 1998 09:21:06 +0200
    Subject: Re: Legacy Integration with PI/Open
    Greg,
    This is a bit of a long shot, but has anyone experience with integrating
    Forte with PI/Open. PI/Open is a variant of PICK. We have arequirement
    to read and update a PI/Open database from within our Forte application,
    and we would be most interested to hear from anyone who has experiencein
    doing this.
    We are aware of a set of APIs provided with PI/Open that are written in
    "C". We could wrapper these from within Forte, however the issue isthat
    the APIs provided are non-shared, and Forte requires shared libraries.Would be interersting, which operating system you're using.
    You could write a dll (on windows) or shared library (on unix) wrappering
    the
    original,statically linked "C"-Libs. This lib could be used by Forte.
    Tim Hagemann
    Tim Hagemann
    Ascom GmbH Email: [email protected]
    Charlottenburger Allee 61 Phone: +49 241 96806 273
    D-52068 Aachen Fax: +49 241 96806 225
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: "Rottier, Pascal" <[email protected]>
    Date: Mon, 12 Oct 1998 09:38:25 +0200
    Subject: RE: Forms That Will Not Close
    Exiting the event loop will not close the window! Invoking
    'Close' method on the window will. Check if this method
    is executed. It appears, the AfterFinalize event exits the
    event loop and nothing more. Then, your applications
    waits for some event from your main window, like 'Mouse-
    Enter', before invoking Window.Close().
    Pascal
    Hi,
    We seem to be having some type of deadlock problem when trying to
    close
    forms and am wondering if anyone else has experienced this problem.
    The
    phenomenon does not always occur and is not specific to any one client
    machine.
    I will explain the phenomenon:
    1. We have an object that contains our main application startup
    method.
    This method then instantiates our main application window (Control)
    and
    invokes the Display() method using start task.
    2. All other forms created by the application are created using a form
    manager service object which exists on the client partition. The form
    manager has a CreateForm() method which instantiates a form class of
    the
    specified type and invoked the form's Display() method using start
    task.
    3. Each form has a Close push button which when clicked invokes
    Window.RequestFinalize().
    Now, the problem we have is this:
    The user starts the application and the main application window is
    displayed. The user then selects an option from the main window and a
    child form is created using the form manager service object and is
    displayed. The user can continue to create more child forms by
    selecting
    options from the main window and all child forms are instantiated and
    displayed correctly.
    However, when the user attempts to close one of the forms the form
    does
    not close. The finalize event is triggered and the event loop is
    exited,
    but the form continues to be displayed and does not close. If the user
    then moves the mouse pointer over the main application window, the
    child
    form immediately closes. Moving the mouse cursor over other child
    windows (or even the desktop) does NOT do this - only when the mouse
    cursor is moved over the main window does the child form close.
    Does anyone have any ideas on this?
    Regards,
    Jace.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>- -
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: Jason de Cean <[email protected]>
    Date: Mon, 12 Oct 1998 17:47:20 +1000
    Subject: RE: Forms That Will Not Close
    Hi Pascal,
    The Display() method is as follows:
    self.Open();
    event loop
    when Window.AfterFinalize do
    exit;
    when task.Shutdown do
    exit;
    end event;
    self.Close();
    <end>
    Are you saying we should do a Window.Close() in there somewhere as well
    Regards,
    Jace.
    On Monday, 12 October 1998 17:36, Rottier, Pascal
    [SMTP:[email protected]] wrote:
    Exiting the event loop will not close the window!
    Invoking
    'Close' method on the window will. Check if this method
    is executed. It appears, the AfterFinalize event exits
    the
    event loop and nothing more. Then, your applications
    waits for some event from your main window, like 'Mouse-
    Enter', before invoking Window.Close().
    Pascal
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: "Rottier, Pascal" <[email protected]>
    Date: Mon, 12 Oct 1998 11:04:24 +0200
    Subject: RE: Forms That Will Not Close
    Jason,
    No, self.Close() should close the window. This is the
    method I referred to. You could place a traceline
    behind self.Close() to see if it is executed. It is not
    inconcievable some exception may exit the Display()
    method before self.Close() is executed.
    After that, maybe, some events from your main
    window trigger something that causes a call like 'My-
    Window.Close()', where 'MyWindow' is a subclass of
    'UserWindow', so 'MyWindow' gets closed after all.
    Maybe you've overridden 'Close()', so now it doesn't
    work properly anymore.
    Are you sure you exit the event loop after you press
    the close button?? The display method is not regis-
    terred for any <PushButton>.Click event, though maybe
    you just didn't include the full Display method in your
    mail.
    Remember that an event loop will only respond to an
    event if it is not currently handling an event. So, the
    method behind <PushButton>.Click may call a self.
    Window.RequestFinalize(), which will cause an After-
    Finalize event to be posted, which will be placed in
    the event queue. If this method however keeps waiting
    for something, the event loop will not respond to the
    AfterFinalize event, until this method is done waiting.
    Pascal.
    Hi Pascal,
    The Display() method is as follows:
    self.Open();
    event loop
    when Window.AfterFinalize do
    exit;
    when task.Shutdown do
    exit;
    end event;
    self.Close();
    <end>
    Are you saying we should do a Window.Close() in there somewhere as
    well
    Regards,
    Jace.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: Thomas Kunst <[email protected]>
    Date: Mon, 12 Oct 1998 14:28:55 +0200
    Subject: Re: AfterValueChange event trigged when it shouldn't be...
    Which version of Fort=E9 are you using? We had some strage problems with
    GUI events in Fort=E9 3.0.F.2, which disappeared now that we use 3.0.J.1!=
    Fouche, Jaco wrote:
    =
    Hi there,
    =
    I'm hoping that someone out there has experienced the following (and
    knows why it is happening. ) :-)
    =
    I have a couple of windows on which the AfterValueChange event is
    triggered on a field upon hitting the delete key.
    We all know that this should only happen upon leaving the field, ie. th=e
    field loosing focus. The problem is that I'm trying to recreate this in=
    a simple test class, but now it won't happen. I still have the original=
    windows on which it is happening, but I would like to construct
    something small and simple to send to Forte.
    =
    Any ideas as to why this could be happening?
    =- -- =
    Dr. Thomas Kunst mailto:[email protected]
    sd&m GmbH & Co. KG http://www.sdm.de
    software design & management
    Thomas-Dehler-Str. 27, 81737 Muenchen, Germany
    Tel +49 89 63812-221 Fax -444
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    From: Greg Gorham <[email protected]>
    Date: Mon, 12 Oct 1998 09:51:07 -0400
    Subject: math library
    I need direction to the source of Forte libs that handle more scientific
    math. Also included is the need for more scientific print formating. I
    understand, second hand, that such material is available from third
    party vendors/sources.
    Thanks
    Greg Gorham
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    End of forte-users-digest V1 #1111
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Greg,
    This is a bit of a long shot, but has anyone experience with integrating
    Forte with PI/Open. PI/Open is a variant of PICK. We have a requirement
    to read and update a PI/Open database from within our Forte application,
    and we would be most interested to hear from anyone who has experience in
    doing this.
    We are aware of a set of APIs provided with PI/Open that are written in
    "C". We could wrapper these from within Forte, however the issue is that
    the APIs provided are non-shared, and Forte requires shared libraries.Would be interersting, which operating system you're using.
    You could write a dll (on windows) or shared library (on unix) wrappering the
    original,statically linked "C"-Libs. This lib could be used by Forte.
    Tim Hagemann
    Tim Hagemann
    Ascom GmbH Email: [email protected]
    Charlottenburger Allee 61 Phone: +49 241 96806 273
    D-52068 Aachen Fax: +49 241 96806 225
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Discoverer integration with EBS R12 !!!

    Hello Sir,
    I need help to install/integrate Discoverer with R12.
    Actually, our clients are using Discoverer 4i in current EBS 11.5.10.2 in production. We have just upgraded EBS in TEST environment from 11.5.10.2 to R12.1.3.
    I had suggested client that Discoverer 4i is actually de-supported and they need to upgrade Discoverer version to minimum 10.1.2.3 or higher to integrate it with R12.1.3.
    Now, client also have requirement for Discoverer to be certified with MS Excel 2010 format. So I have suggested to upgrade Discoverer version to minimum 11.1.1.4.
    Latest certified Discoverer version is 11.1.1.7.0 as per note Using Discoverer 11.1.1 with Oracle E-Business Suite Release 12 (Doc ID 1074326.1)
    1) Can you please provide your opinion and any documentation which I can follow to install/integrate Discoverer with R12 ?
    2) Do I need to first install separate 10gAS for installing Discoverer 10.1.2.3 or Fusion middleware home for installing Discoverer 11g ? If yes, where can I find doc for this installation ?
    3) Since 10g support has ended July 2013, where can I get media for installing 10gAS ?
    4) Is there any additional licences required for using either Discoverer 10g or Discoverer 11g ?

    1) Can you please provide your opinion and any documentation which I can follow to install/integrate Discoverer with R12 ?
    In addition to the doc you have, please see:
    https://blogs.oracle.com/stevenChan/entry/discoverer_11_1_1_7
    How to Test Discoverer Integration with E-Business Suite 11i and Release 12? (Doc ID 1065257.1)
    Running Discoverer Reports From EBS R12 (Doc ID 1516784.1)
    R12: How to Create a Link to a Discoverer Workbook (Doc ID 471303.1)
    2) Do I need to first install separate 10gAS for installing Discoverer 10.1.2.3 or Fusion middleware home for installing Discoverer 11g ? If yes, where can I find doc for this installation ?
    Installation Recommendations - 11g Release 1 (11.1.1)
    Installer Screens - 11g Release 1 (11.1.1.7.0)
    3) Since 10g support has ended July 2013, where can I get media for installing 10gAS ?
    You can download WebLogic 10.3.6 from WebLogic Server 12c (12.1.1), WebLogic Server 11g (10.3.6) and Previous Releases
    4) Is there any additional licences required for using either Discoverer 10g or Discoverer 11g ?
    Please see Steven Chan's reply in this link -- https://blogs.oracle.com/stevenChan/entry/discoverer_11gr1_primer
    Thanks,
    Hussein

  • Problem with Excel output format

    Hi Guys,
    I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
    Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
    Example Numeric fields --> Right Aligned, text fields --> Left Aligned
    One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
    Our client want excel output on priority.
    Is there any limitation for excel output format of reports?
    It is very urgent for us please help.
    Any help would be highly appreciated.
    Thanks,
    Pragati
    Edited by: user11237443 on Aug 27, 2009 1:22 AM

    Hi Mahi,
    Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
    I have read that blog for excel limitations but i have more question?
    1) What about the negative values?
    if any field is displaying negative amount then excel not displaying right value for that:(
    2)How can we align header or data?
    Do XMLP with EBS provide any solution for formatting in excel?
    3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
    Here are so many formatting issues do we need to write any code in xml for that?
    Please help.
    Many Thanks,
    Pragati

Maybe you are looking for