Downloading fields from a View to a file

Hi,
   I want to download certain fields from a View to a file.
Is there an example on SDN which shows how this can be done or is there any way to do this?
Thanks & Regards,
Yogeshwari Agashe.

Hi Yogeshwari,
    Yes you can definitely do it. If I understand your problem properly, You want to save some of the entries made in an inputfield to a file?? Am I right?
If yes, then you would have bound the input field to a context value attribute. You can read the value in the context value attribute and then using the java io APIs you can write it to the file..
Regards,
Vishnu Prasad Hegde

Similar Messages

  • Downloading data from internal table to xls file leading zeros are not disp

    Hai abap gurus,
    when i am downloading data from internal table to excle file. some field values in a column are with leading zeros and some others dont have leading zeros.but in the output it is showing without leading zeros. then how to get with exact values.
    Ex:
    <b>ECC Code.</b>
    045234
      88567
    098456 
    but output is giving like this:
    45234
    88567
    98456
    how to get the actual values.....
    plz help me in this matter.

    Dear Kiran,
    Those field in the internal table having Leading Zeroes, make those fields' datatype as character.
    Then use the function module to download the content of the internal table to the excel file.
    Regards,
    Abir
    Don't forget to Reward Points  *

  • Error while downloading data from internal table into XML file

    hi all,
    i developed a program to download data from into internal table to xml file like this.
    tables: mara.
    parameters: p_matnr like mara-matnr.
    data: begin of itab_mara occurs 0,
                matnr like mara-matnr,
                ernam like mara-ernam,
                aenam like mara-aenam,
                vpsta like mara-vpsta,
          end of itab_mara.
    data: lv_field_seperator type c,     " value 'X',
          lv_xml_doc_name(30) type c,    " string value ‘my xml file’,
          lv_result type i.
          lv_field_seperator = 'x'.
          lv_xml_doc_name = 'my xml file'.
    types: begin of truxs_xml_line,
              data(256) type x,
          end of truxs_xml_line.
    types:truxs_xml_table type table of truxs_xml_line.
    data:lv_tab_converted_data type truxs_xml_line,
         lt_tab_converted_data type truxs_xml_table.
    data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
    select matnr ernam aenam vpsta from mara into table itab_mara up to 5
           rows where matnr = p_matnr.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
       I_FIELD_SEPERATOR          = lv_field_seperator
      I_LINE_HEADER              =
      I_FILENAME                 =
      I_APPL_KEEP                = ' '
       I_XML_DOC_NAME             = lv_xml_doc_name
    IMPORTING
       PE_BIN_FILESIZE            = lv_result
      TABLES
        I_TAB_SAP_DATA             = itab_mara
    CHANGING
       I_TAB_CONVERTED_DATA       = lt_tab_converted_data
    EXCEPTIONS
      CONVERSION_FAILED          = 1
      OTHERS                     = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
    transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file.
    this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
    will anyone show me the possible solution to rectify this error
    thanks and regards,
    anil.

    Hi,
    Here is a small sample program to convert data in an internal table into XML format and display it.
    DATA: itab  TYPE TABLE OF spfli,
          l_xml TYPE REF TO cl_xml_document.
    * Read data into a ITAB
    SELECT * FROM spfli INTO TABLE itab.
    * Create the XML Object
    CREATE OBJECT l_xml.
    * Convert data in ITAB to XML
    CALL METHOD l_xml->create_with_data( name = 'Test1'
                                         dataobject = t_goal[] ).
    * Display XML Document
    CALL METHOD l_xml->display.
    Here are some other sample SAP programs to handle XML in ABAP:
    BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
    Hope this helps,
    Sumant.

  • Removing fields from Discoverer Viewer Login Page 10g

    Hi,
    I am new to discoverer 10g. I wanted to know if its possible to remove the non mandatory fields from the Disco viewer home page like Locale, End user layer and Connect To since they can be configured to take default values.
    Once a user logs in, he views a set of workbooks. Can this page be replace with a customized report?
    Thanks
    Sujatha

    Are you on a 11.5.10 environment? If so please make sure your DBC-file is generated correctly. Since 11.5.10 Discoverer will be started using SSL mode.
    Do you have the same issue when connecting thourg the Desktop or even with the Plus (directly from the /discoverer/plus url)? If so, please make sure the 'ICX: Launch Discoverer Plus/Viewer' have the correct value. E.g. http://<server.domain>:<port>/discoverer/plus?Connect=[APPS_SECURE]

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • Bulk-copy from Sybase View into a File using Java Runtime...help !!!

    The following is a bulk-copy operation, from a table in Sybase database into a file in Unix machine.
    bcp view_name out file_name -c -U user_id -P password -S server_name
    This bulk-copy utility is working fine when run from command line of a Unix machine, for any number of records.
    But when I try to do it from a Java application for more than 1.84 lakh records in the view, the following problem occurs.
    The file is created and from the view, 1.84 lakh records are copied into the file.
    Then the program hangs.
    The application waits for the bulk-copy process to be completed, which does not resume after copy of 1.84 lakh records.
    No exceptions are thrown.
    Even for just one record more than 1.84 lakh records, this happens.
    The number of bytes corresponding to 1.84 lakh records many records are 11040060.
    This is the bulk-copy portion of the application.
    String strCommand = "bcp view_name out file_name -c -U user_id -P password -S server_name";
    Runtime run = Runtime.getRuntime();
    Process proc = run.exec(strCommand);
    int i = proc.waitFor();
    I am capturing InterruptedException, IOException and the superset Exception also.
    Pls throw some light on this.

    Sorry to bother you, but I saw this topic you posted on the Sun Java Forum and was wondering if you were ever able to resolve it.
    I am experiencing the exact same problem and was hoping to get it resolved soon.
    Thanks in advance!

  • Download data from internal table to flat file.

    I need to download the data from Internal table to Flat file. can any one suggest how to do it? i suppose WS_Download OR GUI_DOWNLOAD.
    but if it is please guide me how to use this.
    is thre any other F.M. please provide the information.
    Thanks in advance

    Hi,
    Try this,
    * File download, uses older techniques but achieves a perfectly
    * acceptable solution which also allows the user to append data to
    * an existing file.
      PARAMETERS: p_file like rlgrap-filename.
    * Internal table to store export data  
      DATA: begin of it_excelfile occurs 0,
       row(500) type c,
       end of it_excelfile.
      DATA: rc TYPE sy-ucomm,
            ld_answer TYPE c.
      CALL FUNCTION 'WS_QUERY'
           EXPORTING
                query    = 'FE'  "File Exist?
                filename = p_file
           IMPORTING
                return   = rc.
      IF rc NE 0.                       "If File alread exists
        CALL FUNCTION 'POPUP_TO_CONFIRM'
          EXPORTING
    *          TITLEBAR              = ' '
    *          DIAGNOSE_OBJECT       = ' '
               text_question         = 'File Already exists!!'
               text_button_1         = 'Replace'
    *          ICON_BUTTON_1         = ' '
               text_button_2         = 'New name'
    *          ICON_BUTTON_2         = ' '
    *          DEFAULT_BUTTON        = '1'
    *          DISPLAY_CANCEL_BUTTON = 'X'
    *          USERDEFINED_F1_HELP   = ' '
    *          START_COLUMN          = 25
    *          START_ROW             = 6
    *          POPUP_TYPE            =
          IMPORTING
               answer                = ld_answer
    *     TABLES
    *         PARAMETER              =
          EXCEPTIONS
              text_not_found         = 1
              OTHERS                 = 2.
    * Option 1: Overwrite
        IF ld_answer EQ '1'.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
    *            BIN_FILESIZE            =
                 filename                = p_file        "File Name
                 filetype                = 'ASC'
    *       IMPORTING
    *            FILELENGTH              =
            TABLES
                data_tab                = it_excelfile   "Data table
            EXCEPTIONS
                file_write_error        = 1
                no_batch                = 2
                gui_refuse_filetransfer = 3
                invalid_type            = 4
                OTHERS                  = 5.
          IF sy-subrc <> 0.
            MESSAGE i003(zp) WITH
                     'There was an error during Excel file creation'(200).
            exit. "Causes short dump if removed and excel document was open 
          ENDIF.
    * Option 2: New name.
        ELSEIF ld_answer EQ '2'.
          CALL FUNCTION 'DOWNLOAD'
            EXPORTING
                 filename            = p_file          "File name
                 filetype            = 'ASC'           "File type
    *             col_select          = 'X'            "COL_SELECT
    *             col_selectmask      = 'XXXXXXXXXXXXXXXXXXXXXXXXXX'
    *                                                   "COL_SELECTMASK
                 filetype_no_show    = 'X'     "Show file type selection?
    *       IMPORTING
    *             act_filename        = filename_dat
            TABLES
                 data_tab            = it_excelfile    "Data table
    *            fieldnames          =
            EXCEPTIONS
                 file_open_error     = 01
                 file_write_error    = 02
                 invalid_filesize    = 03
                 invalid_table_width = 04
                 invalid_type        = 05
                 no_batch            = 06
                 unknown_error       = 07.
        ENDIF.
      ELSE.                               "File does not alread exist.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
    *          BIN_FILESIZE            =
               filename                = p_file         "File name
               filetype                = 'ASC'          "File type
    *     IMPORTING
    *          FILELENGTH              =
          TABLES
               data_tab                = it_excelfile   "Data table
          EXCEPTIONS
               file_write_error        = 1
               no_batch                = 2
               gui_refuse_filetransfer = 3
               invalid_type            = 4
               OTHERS                  = 5.
        IF sy-subrc <> 0.
          MESSAGE i003(zp) WITH
                   'There was an error during Excel file creation'(200).
          exit. "Causes short dump if removed and excel document was open 
        ENDIF.
      ENDIF.
    Regards,
    Raghav

  • How to download payload from b2b_instancemessage view in Oracle b2b 10g

    I am not able to extract message payload from B2B_INSTANCEMESSAGE VIEW.
    when i execute this query:
    select payload from b2b_instancemessage where documenttype like '%rsConfirmIncid%';
    the output I get is "BLOB"
    I need the complete payload. can somebody please help me?

    We had the requirements to display the Payload in a BAM Monitoring dashboard. Since it was not part of the typical B2B-BAM Monitoring process, and even though technically we can get it from the B2B Message view, there are some BAM feature limitations due to which we had to build a simple ADF page to display the payload and link it to the BAM report. To the end user it is not relevent if we built is using BAM/ADF as it is seamless. Hope this will help someone else who is looking for a similar solution.
    Uday.

  • DOWNLOADING DATA FROM R/3 TO FLAT FILE

    hi,
      friends,
         In bdc while downloading DATA , i am getting error in filename
    error- field filename is unknown & it is neither in one of the specified tables nor defined by "data" statements.
    report yreport
    tables:kna1.
    DATA :BEGIN OF ITAB OCCURS 0,
               KUNNR LIKE KNA1-KUNNR,
               LAND1 LIKE KNA1-LAND1,
               NAME1 LIKE KNA1-NAME1,
               END OF ITAB.
    SELECT KUNNR LAND1 NAME1 FROM KNA1 INTO TABLE ITAB.
    CALL FUNCTION  'WS-DOWNLOAD'.
    FILENAME = 'C:\VEND.TXT'.
    FILETYPE ='DAT'.
    TABLES DATA_TAB = ITAB.
    NEAR  filename
    Error- field filename is unknown & it is neither in one of the specified tables nor defined by "data" statements.

    Hi,
    Please use the following code,
    DATA: ok_code TYPE sy-ucomm,
    save_ok TYPE sy-ucomm,
    lv_file(80),
    lv_fieldln TYPE i,
    lv_def_path TYPE rlgrap-filename,
    lv_mode TYPE c VALUE 'S',
    lv_tmp_filename TYPE rlgrap-filename,
    lv_tmp_mask(80).
    FIELD-SYMBOLS: <fs_tmp_sym>.
    save_ok = ok_code.
    CASE save_ok.
    WHEN 'EXCEL'.
    *--- On click of 'Download to Excel' button transfer the ALV data to
    *--- Excel sheet.
    lv_tmp_mask = ',.,..'.
    lv_fieldln = strlen( lv_def_path ) - 1.
    ASSIGN lv_def_path+lv_fieldln(1) TO <fs_tmp_sym>.
    IF <fs_tmp_sym> = '/' OR <fs_tmp_sym> = '\'.
    CLEAR <fs_tmp_sym>.
    ENDIF.
    *--- Get the file name & path to which file has to be downloaded.
    CALL FUNCTION 'WS_FILENAME_GET'
    EXPORTING
    def_path = lv_def_path
    mask = lv_tmp_mask
    mode = lv_mode
    IMPORTING
    filename = lv_tmp_filename
    EXCEPTIONS
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    OTHERS = 5.
    IF sy-subrc = 0.
    *--- As we need to download the file in 'XLS' format add the
    *--- extension '.XLS' if it is not provided by the user.
    IF NOT lv_tmp_filename CS c_excel.
    CONCATENATE lv_tmp_filename c_excel INTO lv_file.
    ELSE.
    lv_file = lv_tmp_filename.
    ENDIF.
    ELSE.
    EXIT.
    ENDIF.
    *--- Down load the file to the path and filename provided above.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    filename = lv_file
    filetype = 'DAT'
    TABLES
    data_tab = gt_excel1
    EXCEPTIONS
    file_open_error = 1
    file_write_error = 2
    invalid_filesize = 3
    invalid_type = 4
    no_batch = 5
    unknown_error = 6
    invalid_table_width = 7
    gui_refuse_filetransfer = 8
    customer_error = 9
    OTHERS = 10.
    IF sy-subrc = 0.
    MESSAGE i000(zf) WITH text-017.
    ELSE.
    MESSAGE e939(zf) WITH lv_file. "Errors while downloading.
    ENDIF.
    ENDCASE.
    gt_excel1 is the internal table you provide to the FM for downloading.
    lv_file is automatically taken care of from the input provided by the user.
    The above code is triggered when a button in Application tool bar is clicked. Please use it as needed. It will ask for the path to which file has to be downloaded and once provided it will download the table only to excel.
    It will work for sure.
    Regards,
    Paul.

  • FDM Import: create 4 fields from single chartfield in source file

    Hi Experts ,
    In my requirement, i have single member in Source file which i have to split into 4 filds (Target dimension)
    ex "1234 44 55555 456" , this string should be "1234" "44" "55555" "456" to represent 4 dimension members in Essbase.
    I tried puttig following FDM code in a import script through import format for one of the target field but after i import that column is showing "required field missing" error. Any suggestion please ?
    'Declare local variables
    Dim lngStartPositionMid
    Dim lngCharCountMid
    Dim strValueMid
    'Get Mid N Characters
    lngStartPositionMid = 9
    lngCharCountMid = 5
    'Get the string
    strValueMid = Mid(strField, lngStartPositionMid, lngCharCountMid)
    End Function
    Thanks

    This is done.
    I am new to FDM and VB so realised it later that actually , Script name is the VB Functiona name and thats where Value should be returned.
    If my scrip tname is Entity
    Entity = Mid( strField,9,5)
    Thanks
    Vivek

  • How to download data from different sheet of excel file.

    Hi Friends,
    I have a Excel file with different sheet like sheet 1, sheet 2 and so on,
    and i have to download each sheet data in to different internal tables.
    Is there any FM or something else.
    Pl. help
    Thanks
    Sunil.

    Hi,
       You can create the function module for this.
    The code sample is as below:
    *Code Sample *
    FUNCTION Z_UPLOADING_FROM_2SHEETS.
    ""Local interface:
    *" IMPORTING
    *" VALUE(FILE_NAME) LIKE RLGRAP-FILENAME
    *" VALUE(START_ROW_SHEET1) TYPE I
    *" VALUE(START_COLUMN_SHEET1) TYPE I
    *" VALUE(START_ROW_SHEET2) TYPE I
    *" VALUE(START_COLUMN_SHEET2) TYPE I
    *" VALUE(END_ROW_SHEET1) TYPE I
    *" VALUE(END_COLUMN_SHEET1) TYPE I
    *" VALUE(END_ROW_SHEET2) TYPE I
    *" VALUE(END_COLUMN_SHEET2) TYPE I
    *" TABLES
    *" IT_DATA1 STRUCTURE ALSMEX_TABLINE
    *" IT_DATA2 STRUCTURE ALSMEX_TABLINE
    *" EXCEPTIONS
    *" INCONSISTENT_PARAMETERS
    *" UPLOAD_OLE
    DATA DECLARATION
    DATA: excel_tab TYPE ty_t_sender,
    excel_tab1 TYPE ty_t_sender.
    DATA: ld_separator TYPE c.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    SHEET TYPE OLE2_OBJECT,
    range TYPE ole2_object,
    worksheet TYPE ole2_object.
    DATA: h_cell TYPE ole2_object,
    h_cell1 TYPE ole2_object.
    DATA: ld_rc TYPE i.
    MESSAGE DEFINATION
    DEFINE m_message.
    case sy-subrc.
    when 0.
    when 1.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    when others. raise upload_ole.
    endcase.
    END-OF-DEFINITION.
    PARAMETER CHECK
    IF START_ROW_SHEET1 > END_ROW_SHEET1.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_COLUMN_SHEET1 > END_COLUMN_SHEET1.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_ROW_SHEET2 > END_ROW_SHEET2.
    RAISE inconsistent_parameters.
    ENDIF.
    IF START_COLUMN_SHEET2 > END_COLUMN_SHEET2.
    RAISE inconsistent_parameters.
    ENDIF.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    ld_separator = cl_abap_char_utilities=>horizontal_tab.
    OPENING EXCEL FILE
    IF application-header = space OR application-handle = -1.
    CREATE OBJECT application 'Excel.Application'.
    m_message.
    ENDIF.
    CALL METHOD OF APPLICATION 'Workbooks' = WORKBOOK.
    m_message.
    CALL METHOD OF application 'Workbooks' = workbook.
    m_message.
    CALL METHOD OF workbook 'Open' EXPORTING #1 = FILE_NAME.
    m_message.
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
    m_message.
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 1.
    m_message.
    CALL METHOD OF SHEET 'Activate'.
    m_message.
    GET PROPERTY OF application 'ACTIVESHEET' = sheet.
    m_message.
    MARKING OF WHOLE SPREADSHEET
    CALL METHOD OF sheet 'Cells' = h_cell
    EXPORTING #1 = START_ROW_SHEET1 #2 = START_COLUMN_SHEET1.
    m_message.
    CALL METHOD OF sheet 'Cells' = h_cell1
    EXPORTING #1 = END_ROW_SHEET1 #2 = END_COLUMN_SHEET1.
    m_message.
    CALL METHOD OF sheet 'RANGE' = range
    EXPORTING #1 = h_cell #2 = h_cell1.
    m_message.
    CALL METHOD OF range 'SELECT'.
    m_message.
    Copy marked area (SHEET1) into Clippboard
    CALL METHOD OF range 'COPY'.
    m_message.
    Read clipboard into ABAP
    CALL METHOD cl_gui_frontend_services=>clipboard_import
    IMPORTING
    data = excel_tab
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE a037(alsmex).
    ENDIF.
    PERFORM separated_to_intern_convert TABLES excel_tab IT_DATA1
    USING ld_separator.
    Clear the clipboard
    REFRESH excel_tab.
    CALL METHOD cl_gui_frontend_services=>clipboard_export
    IMPORTING
    data = excel_tab
    CHANGING
    rc = ld_rc
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    Working in Second Excel Work Sheet
    CALL METHOD OF APPLICATION 'Worksheets' = SHEET EXPORTING #1 = 2.
    m_message.
    CALL METHOD OF SHEET 'Activate'.
    m_message.
    GET PROPERTY OF application 'ACTIVESHEET' = sheet.
    m_message.
    Mark Sheet2
    CALL METHOD OF sheet 'Cells' = h_cell
    EXPORTING #1 = START_ROW_SHEET2 #2 = START_COLUMN_SHEET2.
    m_message.
    CALL METHOD OF sheet 'Cells' = h_cell1
    EXPORTING #1 = END_ROW_SHEET2 #2 = END_COLUMN_SHEET2.
    m_message.
    CALL METHOD OF sheet 'RANGE' = range
    EXPORTING #1 = h_cell #2 = h_cell1.
    m_message.
    CALL METHOD OF range 'SELECT'.
    m_message.
    Copy Marked Area (Sheet2) into Clippboard
    CALL METHOD OF range 'COPY'.
    m_message.
    Read Clipboard into ABAP
    CALL METHOD cl_gui_frontend_services=>clipboard_import
    IMPORTING
    data = excel_tab1
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE a037(alsmex).
    ENDIF.
    PERFORM separated_to_intern_convert TABLES excel_tab1 IT_DATA2
    USING ld_separator.
    Clear Clipboard
    REFRESH excel_tab.
    CALL METHOD cl_gui_frontend_services=>clipboard_export
    IMPORTING
    data = excel_tab1
    CHANGING
    rc = ld_rc
    EXCEPTIONS
    cntl_error = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    OTHERS = 4
    Leaving Application .
    CALL METHOD OF application 'QUIT'.
    m_message.
    FREE OBJECT application.
    m_message.
    ENDFUNCTION.

  • AWM download(s) from OTN fail -- no zip file found

    The AWM download link(s) on OTN all seem to be broken at this point (Nov 13).
    On the BI & DW Tech Center page (( http://www.oracle.com/technology/tech/bi/index.html )) > Downloads > AW Manager, the link points to a 10.2.0.1.0A version on "download.oracle" (( http://download.oracle.com/otn/java/olap/AWM_102010A_Win32.zip )) that does not exist.
    On the 10g Oracle OLAP page (( http://www.oracle.com/technology/products/bi/olap/index.html )) > Downloads > AWM, the link points to the newer 10.2.0.2.0A version again on "download.oracle (( http://download.oracle.com/otn/java/olap/AWM102020A_Win.zip )). However that zip file doesn't exist either.
    I've tried poking some alternative file names, but to no luck.
    Please have the PMs fix the links / post the file.
    Thanks.

    These previous AWM 10.2 links should be working. However, you should be using the latest AWM 10.2.0.3.0 for all Oracle OLAP 10.2 releases. AWM 10.2.0.3.0 works with Oracle OLAP 10.2.0.1.0 and 10.2.0.2.0 releases, including all the Oracle OLAP specific 'letter' patches. AWM 10.2.0.3.0 only requires Oracle OLAP 10.2.0.3.0 for the ability to run new features found in AWM 10.2.0.3.0 such as Sparsity Advisor.
    By the way, I have informed the owner of the following page to update their AWM link under Downloads to the latest 10.2.0.3.0 version:
    http://www.oracle.com/technology/tech/bi/index.html
    Thanks

  • How to set value from one view to other view's context node attr b4 save

    HI all,
    My requirement is as below:
    There are two views in component BP_CONT.
    BP_CONT/ContactDetails    IMPL class
    BP_CONT/SalesEmployee   SALESEMPLOYEE    STRUCT.SALESEMPLOYEE
    I want to set value from first view to second view's context node's attribute.
    i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
    of second view in the same component.
    please send me code snippet for doing the same.
    Thanks in advance.
    seema

    Hi Seema
    You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
    first access the component controller  as below in BP_CONT/SalesEmployee  (in do_prepare_output method) or in (specific setter method)
    lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
    lv_partner type ref to cl_crm_bol_entity,
    lv_role type string,
    lv_partner_no type string.
    lv_employee TYPE REF TO if_bol_bo_property_access,
    lv_compcontroller  = me->COMP_CONTROLLER.
    lv_partner ?= lv_compcontroller  ->typed_context->-partner->collection_wrapper->get_current( ).
    lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
    IF LV_ROLE = 'SALESEMPLOYEE'
      lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
    endif.
    now set the value
    lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
    CHECK lv_employee IS BOUND.
        lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value =  lv_partner_no  )
    Thanks & Regards
    Raj

  • Creation of Material from SAP VIEW using CDESK.

    Hi  Experts,
    I have one question related to creation of Material from SAP View.
    CAD file created say SM1000.prt
    Create DIR in CAD View say SM1000
    Scenario 1 :   Create Material in Background from CAD VIEW or SAP VIEW from cad desktop, It creates material SM1000
                               in background.
    Scenario 2 : Open CDESK ( Transaction)
                            Click on OPEN,
                            Selecting the DIR created SM1000
                            Create the material in background in SAP View, it gives message " enter material number"
    Why am not able to create the material from SAP view using CAD Desktop. If any modifications needs to be done in CDESK CUS to solve this please let me know.
    Thanks,
    Sudharshan

    Hi Sudharshan,
    maybe the reason for this is that your CAD applications provides a special material number and the customizing in CDESK is defined to use this number. In this case the number or value can by provided from the CAD application only from the CAD View.
    In the SAP view the material gets created like in MM01 for example and so mabye you have to enter a material number.
    Best regards,
    Christoph

  • Problm download excel from ALV

    Hi Experts,
             I am facing a problem when downloading data from alv into a excel file. all the datas written in english are coming correctly but the japaneese or other chars are replaced by '#'. I am using FM 'GUI_DOWNLOAD'. How can I solve the problem?

    Hi Mini,
               kindly explain your requirement, why you have output in combination of two languages.
              if you are talking about individual runs, kindly give value to sy-langu of the resepective language.
               if not solved , pls let me know.
    Thanks,
    Pavan

Maybe you are looking for