Template handling with VBA

Hello friends,
to set a permanent template for new queries in VBA  I use command <Run "sapbex.xla!templatePermanent">. If a template should be selected from a list I can define it in VBA with command <Run "sapbex.xla!templateChoose">.
With which VBA command i can define, that a new workbook on embed is empty?
Greets,
Stephan

I got it. The corresponding code has to be <Run "sapbex.xla!templateEmpty">.

Similar Messages

  • Problems with missing template handler

    Hello,
    We have put the name testmiss.cfm in the missing template
    handler in the administrator. Still, the default ColdFusion error
    message shows when a cfinclude has template=a nonexisting file and
    when in an html form,
    action=a nonexisting cfm file. I have testmiss.cfm in both
    the root with Application.cfm and the directory with all the other
    cfms but still no luck.
    Any idea what we are doing wrong?
    Thank you very much.

    bill0 wrote:
    > Thanks for all the help but still no luck.
    >
    > The directory is d:\wSites\GBMain\html\CFMS> and I am
    mapped to it as x:\CFMS.
    > Most of the cfm files are in CFMS but Application.cfm is
    1 directory up in
    > html. I have tried misscfm.cfm in both html and CFMS but
    had no luck having it
    > find a non existant template referred to in a cfinclude
    or a form's action
    > attribute. The default ColdFusion error handler is what
    shows. The missing
    > template handler box says /misscfm.cfm. Misscfm.cfm is
    text followed by a
    > <cfabort>. We use ColdFusion MX6.1
    >
    > I hope that is enough information to figure what am I
    missing and/or doing
    > wrong.
    >
    >
    Is the 'misscfm.cfm' file somewhere in the
    'd:\wSites\GBMain\html\CFMS\'
    directory. I will presume this is the 'web root' as defined
    in your web
    server (IIS or Apache or built-in or ???). The missing
    template handler
    file needs to be in the ColdFusion root. This is going to be
    a
    directory such as
    '{drive}:\JRun4\servers\{server}\cfusion-ear\cfusion-war\misscfm.cfm'
    for J2EE flavors OR '{drive}:\CFusionMX\wwwroot' for Standard
    I think.
    It has been a very long time since I have dealt with
    Standard.
    This is probably completely different from the above web
    root. That is
    the point I am trying to get across. ColdFusion has TWO roots
    where it
    will look for a CFML file. But the Missing and Sitewide
    templates can
    only be in the ColdFusion root listed above, they will not
    work in the
    web root.
    HTH
    Ian

  • Possibility to register Pre-/Post-Procedures for an SQL Template Handler

    I would appreciate to see the possibility to register pre-/post-procedures for an SQL template handler in ORDS 3.0.
    Why:
    We use Oracle VPD/Row-Level-Security to secure data access. Hence a trigger sets a couple of attributes in the database session context at login time which are then used in static RLS predicates to limit which records the user can see/modify.
    With ORDS 3.0 all sessions are opened under the same technical user (e.g. APEX_REST_PUBLIC_USER), hence all users have the same/no attributes in the session context and could see/modify all data.
    To avoid this situation, I need to set the attributes (e.g. the authenticated user) in the database session context before the actual query/plsql handler is executed.
    Also, resetting the session context after the handler is executed would be good.
    This scenario is in line with scenarios 'One Big Application User' and 'Web-based applications' in http://docs.oracle.com/cd/B28359_01/network.111/b28531/vpd.htm#DBSEG98291.
    Different solution approach:
    Kris suggested to write a PL/SQL handler where the pre-procedure is called before the business logic procedure/query. This is ok for me as long as I modify data and only need to return no or little data.
    As soon as I need to return a lot of data (e.g. select c1, c19, c30 from t1), this approach will force me to write a lot of code in the PL/SQL handler in order to marshal the c1, c19 and c30 to JSON and put it in the HTTP response.
    But this is the beauty of ORDS - I can simply define a template, write a GET SQL Handler 'select c1, c19, c30 from t1'  and have the data available as REST service, without writing any code to write JSON marshaled data in the HTTP response.

    I tried to log the request at Oracle REST Data Services (ORDS) but I could only start a new discussion: Possibility to register Pre-/Post-Procedures for an SQL Template Handler
    As I mentioned there, the PL/SQL handler approach works for me as long as I have no or only little data to send back to the client (e.g. put/post/delete succeeded or an error message why the call failed).
    If I need to return a lot of data from the PL/SQL handler I would need to, as far as I understand, to marshal the data to JSON and write it to the response body in the PL/SQL handler.
    I don't want to do the marshaling, because ORDS does it better.
    However, this works for me:
    I write a pipelined stored procedure that takes as input the attributes I need to set in the session context. I then can reference it in the SQL handler:
    select * from table(my_pipelined_function(:USER, ....)
    Now the JSON/HTTP response is created by ORDS again.
    I still needed to code a couple of lines, but it is way better than duplicating the functionality already existing in ORDS.
    With the hooks it would be perfect because I would not have to write any code (apart from the procedure to set the session context attributes), just configure the REST services in ORDS.

  • Missing Template Handler is missing in action.

    After a bit of struggle I found out how to input a missing
    template
    handler into our aged 4.5 Unix ColdFusion server. I was able
    to have it
    server up the custom 404error.htm file developed by our web
    department.
    And this worked, sort of.
    The problem was that this HTML file makes use of Apache
    <!-- include
    virtual...--> directives which, of course, ColdFusion does
    not understand.
    So, I say no problem, I've dealt with this already before and
    expanded
    on some existing code that reads the html file and replaces
    all these
    virtual includes with the contents of the included file using
    <cfile...>
    tags and reFind() functions. This version even uses a Custom
    Tag and
    recursion to handle virtual includes inside of virtually
    included files.
    And this works great!
    http://www.cdpr.ca.gov/errors/404error.cfm.
    But when I then went into the ColdFusion administrator and
    replaced the
    HTML file path
    '/rootDir/subDir/subDir/htdocs/errors/404error.htm'
    with the corresponding CFML path
    '/rootDir/subDir/subDir/htdocs/errors/404error.cfm' it stops
    working.
    ColdFusion starts to display the default ColdFusion 404 not
    found error
    rather then my specified Missing Template Handler.
    What's wrong here? Why can't I server up a CFM file from the
    exact same
    place I can serve up an, albeit incomplete, HTML file?

    User Since V1.5 wrote:
    >
    > I will be very happy if someone points out what I'm
    missing.
    >
    Everything you have describe is true. The main point is that
    sometimes
    people do not want to and that there are reasons not to let
    IIS handle
    ColdFusion missing templates.
    To be as clear as possible, if you have set IIS to check for
    the
    existence of a cfm file and then throw either a default or
    custom HTTP
    404 error page this will overwrite anything that could of or
    would of
    been done with a ColdFusion missing template page.
    Sometimes this is a bad thing. For one example, there are
    techniques
    and development methodologies that build a 'template' or
    'response'
    completely in memory and a cfm file does not actually exist
    in this
    case. This is more advanced then many people work with but it
    is
    possible. In this case your having IIS check for the
    existence of a
    template would defeat the purpose. Another example is that a
    server
    wide missing template handler used by the ColdFusion server
    can be
    passed simple information about the error from ColdFusion,
    this does not
    happen with the IIS methodology.
    So the missing template handler exists for cases where for
    one reason or
    another somebody does not want to have IIS checking for the
    existence of
    a cfm template before handing off the request to the
    ColdFusion server.
    As with many things in life, it is all about choices and what
    works for
    one person may not work for another.
    A common difficulty with the missing template handler is that
    it does
    not necessarily live in the web server root. It has to live
    in the Jrun
    (aka Java) server web root which often is different then the
    web server
    root.
    I.E. A common configuration may be this.
    c:/inetpub/wwwroot <!-- web server root -->
    c:/jrun/servers/cfusion/cfusion-ear/cfusion-war <!-- Java
    server web
    root --->
    The latter is where the ColdFusion server wide missing
    template hander
    template file would have to live in this example
    configuration.

  • Office Administrative Template installation with 32 and 64 bits clients

    Hello,
    I would like to install the Office Administrative Templates (2007, 2010, 2013) but I don't really understand how.
    I have several clients computers :
    -Windows XP and 7 (the XP will disappear but not now so I have to handle with)
    - 32 and 64 bits (OS and associate Office version)
    - two Office languages (English and French)
    In this case, what I have to put in the domain controllers (or in the central store for GPO, not matters), to cover all the cases ?
    I do not understand the x86 or x64 Office administrative templates versions neither how the languages are managed.
    Thanks a lot.

    The Office2013 Admin Templates+OCT is available in both 32bit and 64bit formats
    http://www.microsoft.com/en-us/download/details.aspx?id=35554
    Because the download contains the Templates *and* the OCT (OPAX/OPAL and various DLLs etc), and, the OCT itself and also the OCT output file (a customization MSPfile) is architecture-specific, that is why there is a 32bit and a 64bit download.
    The ADMX/ADML files themselves, are not architecture-specific.
    ADMX and OPAX, is language-neutral, the language-specific details are contained within ADML/OPAL.
    https://technet.microsoft.com/en-us/library/cc178992.aspx#section2
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Missing Template Handler Issues

    Hi there, we're having some problems setting this up. We get
    the custom page we've created but still see the default coldfusion
    information..... Here's what we've done..
    (1) Set the path correctly in the Coldfusion Admin &gt;
    Settings. 'Missing Template Handler'.
    (2) Made the changes in IIS as described here...
    http://kb.adobe.com/selfservice/viewContent.do?externalId=95ee04fb&amp;sliceId=1

    You are using CF8 right? Because it works just fine for me.
    Here is what I did to test.
    1) created a simple cfm template with nothing more than
    &lt;cfoutput&gt;helloworld&lt;/cfoutput&gt; and
    saved it as missing.cfm in my webroot (
    http://localhost/missing.cfm
    2) logged into the coldfusion administrator and added
    /missing.cfm into the box where it asks for the missing template
    relative path.
    3) hit submit changes.
    then browsed out to
    http://localhost/SomeStrangePageThatDoesntExist.cfm
    and as expected saw only &quot;missing&quot;
    The only thing I can think of is that you have in your
    missing template page another cfinclude that is failing.
    Try the above approach and see if you continue to get the
    error.

  • Can you specify a missing template handler that lives under another site?

    I have configured a dedicated site, separate from my website, for my ColdFusion administrator (CFIDE).  So I have my website here: http://www.public-site.com/ and my ColdFusion admin here: http://www.cfadmin-site.com/ .  They both live on the same server but under different directories.  So now I am configuring my ColdFusion settings and wondering if there is some way to configure the missing template handler and site-wide error handler to use files that live under the public site directory so that I can give my users a consistent look?
    I am guessing that this is not possible but thought I would ask.  I may be left with creating the modules under my ColdFusion admin directory and then using <cflocation> to redirect the user back to the public website environment.  Or embedding some javascript to redirect them.  Any other thoughts?

    OK, now I think I see where you are coming from about not needing to redirect *lightbulb* and perhaps I can explain to you what I am seeing.  Again, here is my setup:
    web root: D:\wwwroot\public-site\
    cf web root: D:\wwwroot\cfadmin-site\
    Now let's say I have a file in the web root like this: D:\wwwroot\public-site\error.cfm  If I try to enter that in my site-wide error handler in ColdFusion it tells me that the file does not exist.  Makes sense.
    So I moved my file to the cf web root like this: D:\wwwroot\cfadmin-site\error.cfm and set my site-wide error handler accordingly.  Now when I force an exception I get an error that my site-wide error handler failed.  In the logs I see this error:
    "Error","jrpp-26","11/08/10","14:02:30",,"'' The specific sequence of files included or processed is: D:\wwwroot\public-site\error.cfm'' "
    java.security.PrivilegedActionException: coldfusion.runtime.TemplateNotFoundException: File not found: D:\wwwroot\public-site\error.cfm
    So now that a template is executing ColdFusion is looking for the site-wide error handler in the web root of the public site.  But the ColdFusion administrator will not let me enter that path in the site-wide error handler setting of the administrator page.
    Did you run across this too?  Surely we don't need to have the file in both locations.

  • Section/Template Handles for Sakai Integration

    Hello,
    I am working with Shepherd University's Learning Management System, the open-source Sakai, and trying to integrate it with our iTunesU account. There is already a tool (albeit a bit older and possibly out of date, I'm not sure) for Sakai that is to integrate with iTunesU, but there are a couple credentials and variables I don't have off-hand. I know, from our account information, the shared secret, the different credentials for Administrator, etc. But, my problem comes in needing a section handle for the location to have the sites inserted, and a template handle for the system to follow in creating new pages on iTunesU. Though we have an iTunesU account, it is rather new and we haven't used it much, so we are not very familiar with the system.
    I've seen that I could get the handles for the sections and pages using a ShowTree command, but the process to get to that is rather long for one single inquiry, and thus far I'm having much trouble in getting that to work. Also, I'm not sure if this will get me the handles for any templates I have set-up. Is there any easier or better way just to get this basic information? Thus far I do not even know the handle, offhand, for the top-level of our account's site, much less any of the sections or tracks underneath it. Any help would be much appreciated!
    Regards,
    Adin J. Ray

    please check:
    SAP Note Number: 923359
    Terminology has been changed as of SAP NetWeaver 7.0 (2004s) Support Package Stack 6:
    The configuration wizard was called "Template Installer" and is sometimes refered to as "Central Technical Configuration" or "CTC".
    The configuration tasks, which are selected and started from a list in the configuration wizard, were formerly called "templates".

  • Rtf Templates created with BI Publisher 11.1.1.3.0 not working in APEX

    I created templates using BI Publisher v10 Desktop that I used to create Report Layouts in APEX and everything worked just fine. However, I've upgraded to BIP 11.1.1.3.0 Desktop and the rtf templates don't work. I suspect that the problem is with the graphs.
    Is there something in my APEX environment that needs to be upgraded or modified to be compatible with the BIP v11 templates? Are templates created with BIP v11 compatible with APEX Reporting?

    I'm having a similar issue with 11.1.1.3.0
    My RTF templated uploaded to APEX correctly, and seems to load and generate ok. The OUTSIDE formatting on the report (title, etc) all seem to show fine, but the actual repeating data block doesn't show any of the data or columns or boxes..... Just the column headers.
    VERY FRUSTRATING......

  • Upload data from excel with vba by calling a function module

    Hello all,
    i have a problem with the function module "ALSM_EXCEL_TO_INTERNAL_TABLE". I will call this function module with vba to load data from excel to sap with a Buttonclick. I have copied this function module and set it remotable. But i can´t call it from excel.
    Can you give me some tips how can i
    upload data from excel with vba by click a button.
    The problem seems the function: call method cl_gui_frontend_services=>clipboard_import in the function module, because when i comment this function call the vba-call is true but no results. 
    How can I call the function module correct with vba?
    Thanks a lot for your tips!!!!
    Chris
    Message was edited by:
            Christoph Kirschner

    HI
    Uploading data directly from Excel file format
    * Upload data direct from excel.xls file to SAP
    REPORT ZEXCELUPLOAD.
    PARAMETERS: filename LIKE rlgrap-filename MEMORY ID M01,
                begcol TYPE i DEFAULT 1 NO-DISPLAY,
                begrow TYPE i DEFAULT 1 NO-DISPLAY,
                endcol TYPE i DEFAULT 100 NO-DISPLAY,
                endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    * Tick don't append header
    PARAMETERS: kzheader AS CHECKBOX.
    DATA: BEGIN OF intern OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern.
    DATA: BEGIN OF intern1 OCCURS 0.
            INCLUDE STRUCTURE  alsmex_tabline.
    DATA: END OF intern1.
    DATA: BEGIN OF t_col OCCURS 0,
           col LIKE alsmex_tabline-col,
           size TYPE i.
    DATA: END OF t_col.
    DATA: zwlen TYPE i,
          zwlines TYPE i.
    DATA: BEGIN OF fieldnames OCCURS 3,
            title(60),
            table(6),
            field(10),
            kz(1),
          END OF fieldnames.
    * No of columns
    DATA: BEGIN OF data_tab OCCURS 0,
           value_0001(50),
           value_0002(50),
           value_0003(50),
           value_0004(50),
           value_0005(50),
           value_0006(50),
           value_0007(50),
           value_0008(50),
           value_0009(50),
           value_0010(50),
           value_0011(50),
           value_0012(50),
           value_0013(50),
           value_0014(50),
           value_0015(50),
           value_0016(50),
           value_0017(50),
           value_0018(50),
           value_0019(50),
           value_0020(50),
           value_0021(50),
           value_0022(50),
           value_0023(50),
           value_0024(50),
           value_0025(50),
           value_0026(50),
           value_0027(50),
           value_0028(50),
           value_0029(50),
           value_0030(50),
           value_0031(50),
           value_0032(50),
           value_0033(50),
           value_0034(50),
           value_0035(50),
           value_0036(50),
           value_0037(50),
           value_0038(50),
           value_0039(50),
           value_0040(50),
           value_0041(50),
           value_0042(50),
           value_0043(50),
           value_0044(50),
           value_0045(50),
           value_0046(50),
           value_0047(50),
           value_0048(50),
           value_0049(50),
           value_0050(50),
           value_0051(50),
           value_0052(50),
           value_0053(50),
           value_0054(50),
           value_0055(50),
           value_0056(50),
           value_0057(50),
           value_0058(50),
           value_0059(50),
           value_0060(50),
           value_0061(50),
           value_0062(50),
           value_0063(50),
           value_0064(50),
           value_0065(50),
           value_0066(50),
           value_0067(50),
           value_0068(50),
           value_0069(50),
           value_0070(50),
           value_0071(50),
           value_0072(50),
           value_0073(50),
           value_0074(50),
           value_0075(50),
           value_0076(50),
           value_0077(50),
           value_0078(50),
           value_0079(50),
           value_0080(50),
           value_0081(50),
           value_0082(50),
           value_0083(50),
           value_0084(50),
           value_0085(50),
           value_0086(50),
           value_0087(50),
           value_0088(50),
           value_0089(50),
           value_0090(50),
           value_0091(50),
           value_0092(50),
           value_0093(50),
           value_0094(50),
           value_0095(50),
           value_0096(50),
           value_0097(50),
           value_0098(50),
           value_0099(50),
           value_0100(50).
    DATA: END OF data_tab.
    DATA: tind(4) TYPE n.
    DATA: zwfeld(19).
    FIELD-SYMBOLS: <fs1>.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                mask      = '*.xls'
                static    = 'X'
           CHANGING
                file_name = filename.
    START-OF-SELECTION.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = filename
                i_begin_col             = begcol
                i_begin_row             = begrow
                i_end_col               = endcol
                i_end_row               = endrow
           TABLES
                intern                  = intern
           EXCEPTIONS
                inconsistent_parameters = 1
                upload_ole              = 2
                OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE:/ 'Upload Error ', SY-SUBRC.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT intern.
        intern1 = intern.
        CLEAR intern1-row.
        APPEND intern1.
      ENDLOOP.
      SORT intern1 BY col.
      LOOP AT intern1.
        AT NEW col.
          t_col-col = intern1-col.
          APPEND t_col.
        ENDAT.
        zwlen = strlen( intern1-value ).
        READ TABLE t_col WITH KEY col = intern1-col.
        IF sy-subrc EQ 0.
          IF zwlen > t_col-size.
            t_col-size = zwlen.
    *                          Internal Table, Current Row Index
            MODIFY t_col INDEX sy-tabix.
          ENDIF.
        ENDIF.
      ENDLOOP.
      DESCRIBE TABLE t_col LINES zwlines.
      SORT intern BY row col.
      IF kzheader = 'X'.
        LOOP AT intern.
          fieldnames-title = intern-value.
          APPEND fieldnames.
          AT END OF row.
            EXIT.
          ENDAT.
        ENDLOOP.
      ELSE.
        DO zwlines TIMES.
          WRITE sy-index TO fieldnames-title.
          APPEND fieldnames.
        ENDDO.
      ENDIF.
      SORT intern BY row col.
      LOOP AT intern.
        IF kzheader = 'X'
        AND intern-row = 1.
          CONTINUE.
        ENDIF.
        tind = intern-col.
        CONCATENATE 'DATA_TAB-VALUE_' tind INTO zwfeld.
        ASSIGN (zwfeld) TO <fs1>.
        <fs1> = intern-value.
        AT END OF row.
          APPEND data_tab.
          CLEAR data_tab.
        ENDAT.
      ENDLOOP.
      CALL FUNCTION 'DISPLAY_BASIC_LIST'
           EXPORTING
                file_name     = filename
           TABLES
                data_tab      = data_tab
                fieldname_tab = fieldnames.
    *-- End of Program
    <b>Excel Upload Alternative - KCD_EXCEL_OLE_TO_INT_CONVERT</b>
    *Title : Excel Uploading
    TYPES:   BEGIN OF t_datatab,
             col1(25)  TYPE c,
             col2(30)  TYPE c,
             col3(30)  TYPE c,
             col4(30)  TYPE c,
             col5(30)  TYPE c,
             col6(30)  TYPE c,
             col7(30) TYPE c,
             col8(30)  TYPE c,
             col9(30)  TYPE c,
             col10(30)  TYPE c,
             col11(30)    TYPE c,
           END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab INITIAL SIZE 0,
          wa_datatab TYPE t_datatab.
    Data : p_table type t_datatab occurs 0 with header line.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA: it_tab TYPE filetable,
          gd_subrc TYPE i.
    field-symbols : <fs>.
    *Selection screen definition
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename
                   DEFAULT 'c:test.xls' OBLIGATORY.   " File Name
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      REFRESH: it_tab.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select File'
          default_filename = '*.xls'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      LOOP AT it_tab INTO p_file.
    *    so_fpath-sign = 'I'.
    *    so_fpath-option = 'EQ'.
    *    append so_fpath.
      ENDLOOP.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    * END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3,
                wa_datatab-col4,
                wa_datatab-col5,
                wa_datatab-col6,
                wa_datatab-col7,
                wa_datatab-col8,
                wa_datatab-col9,
                wa_datatab-col10,
                wa_datatab-col11.
      ENDLOOP.
    *&      Form  UPLOAD_EXCEL_FILE
    *       upload excel spreadsheet into internal table
    *      -->P_TABLE    Table to return excel data into
    *      -->P_FILE     file name and path
    *      -->P_SCOL     start column
    *      -->P_SROW     start row
    *      -->P_ECOL     end column
    *      -->P_EROW     end row
    FORM upload_excel_file TABLES   p_table
                           USING    p_file
                                    p_scol
                                    p_srow
                                    p_ecol
                                    p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    * Has the following format:
    *             Row number   | Colum Number   |   Value
    *      i.e.     1                 1             Name1
    *               2                 1             Joe
      DATA : ld_index TYPE i.
    * Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = LT_INTERN
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
         MOVE lt_intern-col TO ld_index.
         assign component ld_index of structure
         p_table to <fs>.
    move : lt_intern-value to <fs>.
    *     MOVE lt_intern-value TO p_table.
          AT END OF row.
            APPEND p_table.
            CLEAR p_table.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "UPLOAD_EXCEL_FILE
    Regards
    Pavan

  • UD - Stock posting of materials handled with HU

    Hello Masters,
    I have one scenario and need your help for same.
    Material will be received in storage location with HU management active. (Example: 60 pcs are received as GR against PO) According to HU definition, system will create handling units (2 HUs are created, one with 50 pcs and another with 10 pcs). As material master will have inspection type 01 active, system will create inspection lot. After quality inspection I found 5 pcs with defects and needs to be scrapped but when I go for 'Inspection Lot Stock' tab in UD there is no option of splitting HU. I can post goods only in term of HU and not material quantity.
    So my query is, how inspection lot quantity can be splited and posted partially into scrap and unrestricted?
    I hope I was clear enough in explaining my query but in case any other information is required then please let me know.
    Thanks in advance.
    Best Regards,
    Devang

    Thanks Luke for your reply.
    Is there any exit available which can allow splitting of HU during UD-stock posting?
    As there can be many instances where material will be handled with HU and though in actual material will be removed (unpacked) from HU for inspection, to perform same in sytem can be skipped if system split HU during UD-stock posting and create new HU in background according to qty moved to different stocks.
    I hope I was able to explain possible scenario.
    Please let me know if you any such exit which can help in mapping such scnarios.
    Thank you in advance,
    Devang

  • BI 7.0 : Refresh of only one Query with VBA in  a MultiQueryWorkbook

    Does anyone know how to refresh only one query with VBA in a Workbook with several queries on different sheets?

    Hello together,
    thanks for your replies.
    In the backend EHP1 is installed and I think we don't need an extra update for the frontend. But in the VBA code of the frontend the code didn't changed.
    Our BEX Analyzer Addin version is:  7100.4.1100.34
    BEx Patch Level is: Support Package 11 Revision 1606
    The VBA code is:
    Public Function SAPBEXrefresh(allQueries As Boolean, Optional atCell As Range) As Integer
    'In the 7.0 Analyzer, ALL the items in the workbook can be refreshed, but refreshing
    'a query individually is not supported
    On Error Resume Next
      extErrorBegin ("3.x API SAPBEXRefresh called")
      If allQueries = True Then
        Common.MenuRefresh
        SAPBEXrefresh = 0
      Else
        SAPBEXrefresh = 700
        p_extErrorText = "With 7.0, this API is partly supported to refresh ALL items in the workbook, NOT an individual Query"
      End If
      extErrorEnd
    End Function
    As you can see a individually query with this VBA code is still not supported.
    Does anyone know how to change this code or if we need a special update?
    Daniel
    Edited by: Marc Schlipphak on Jan 19, 2010 7:35 PM

  • Can we set the Option "Show add-in user interface errors" with VBA?

    Does anyone know if the advanced Option "Show add-in user interface errors" can be set with VBA in Project Pro 2013?
    \Spiro Theopoulos, Montreal, QC (Canada)

    Spiro,
    Sorry but as far as I know that option is not available through VBA.
    John

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • MS Project and print automatically a planning per ressource with VBA code for instance

    Hello, i'm in MS project 2010 and i would like to print automatically a planning per ressource (PDF) with VBA code or other quick way.
    Somebody can help me with a simple macro VBA and how to install/use it?
    regards,
    M.

    Probably oyu need the loop:
    Dim Res as Resource
    for each Res in ActiveProject.Resources
        'Apply resource filter then print
    Next Res
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

Maybe you are looking for

  • Iphone no longer backs up when plugged into itunes

    Hi guys, I think this started after updating to iOS5. Previously, when I would plug my phone in, it would sync AND create a backup. Now however, it simply does not. I recently realized on the summary screen that my latest backup for my iPhone was sev

  • Install HRCS 9.0 R5 with Linux Issue: Upgrade HRCS 9.0 Database PT8.52 to PT8.53

    Folks, Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 run

  • Customize the cms wysiwyg editor

    How can I customize the toolbars and menues in the wysiwyg editor? I have managed to customize the menu by editing "./servers/PortalServer/tmp/_WL_user/wlp-commonui-web-lib/ 842fj3/wlp/pinEdit/editor/config/config_menu_custom.js" However, I guess thi

  • Definition of various colours in project info

    The Project Info shows Bar Charts in three colours, namely green, yellow and red. I guess the green and red are selfexplanatory, but what meaning is attached to the colour yellow? Hank iMac 20 G-5, 768 of RAM; 12 PowerBook G-4, Matrox 300 GB, Sony HC

  • LG Spectrum doesn't hold charge after latest update

    About 2 weeks ago my phone automatically updated overnight.  I was surprised the next morning to find a different look on my phone and having to change things back to my settings.  Since then, my phone won't hold a charge for more than 5-6 hours.  It