Error with function in indesign cc 64bit

When trying to use the function below, I get this error. Upto now we use the 32bit version (cs6), but with the switch to CC, we're using the 64bit version on windows 7 enterprise (64 bit).
Any suggestions?
G
function datum_en_username() {
                                 var get_username = 'myName = GetUserName\n'
          get_username = get_username + 'Set myInDesign = CreateObject(\"InDesign.Application.CS9\")\n'
          get_username = get_username + 'Set myDoc = myInDesign.ActiveDocument\nmyDoc.InsertLabel \"getUserName\", myName\n'
          get_username = get_username + 'Function GetUserName()\n'
          get_username = get_username + 'Dim objWSHNet, strCurrentUser\n'
          get_username = get_username + 'Set objWSHNet = CreateObject(\"WScript.Network\")\n'
          get_username = get_username + 'strCurrentUser = objWSHNet.UserName\n'
          get_username = get_username + 'Set objWSHNet = Nothing\n'
          get_username = get_username + 'GetUserName = strCurrentUser\n'
          get_username = get_username + 'End Function'
          var datum = new Date();
          app.doScript(get_username, ScriptLanguage.visualBasic);
          username = app.activeDocument.extractLabel('getUserName');
          return [datum, username];

Try launching InDesign (and Extendscript Toolkit if running from there) as administrator.

Similar Messages

  • Error with Function Module for Automatically Reversing FI Documents

    We are trying to use BAPIACREV to automatically reverse a document as part of workflow but get an error with 2 of the import parameters stating they were never transferred:
    1) OBJ_KEY_R
    2) OBJ_SYS
    Does anyone know how to resolve this?

    Hi,
    OBJ_KEY : Reference Key
    This key value must be created while posting the document and this key must be maintained in any of SAP tables
    for example : If the it is Accounting document then all detail found in BKPF and BSEG table, you can find OBJ_KEY in BKPF-AWKEY field.
    OBJ_SYS : Logical system of source document
    Logical system may be maintained in some table.
    for example : If the it is Accounting document then all detail found in BKPF and BSEG table, you can find OBJ_SYS in BKPF-AWSYS field.
    or you can use following FM to get logical system
    CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
    OWN_LOGICAL_SYSTEM = L_V_OWN_LOGICAL_SYSTEM
    EXCEPTIONS
    OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1
    OTHERS = 2

  • Error with function returning "multiple" values

    Hi
    i am trying to write a function to return "multiple" values
    however, it returned the following error during compilation
    Compilation errors for FUNCTION sch1.myfn
    Error: PLS-00382: expression is of wrong type
    Line: 19
    Text: RETURN V_res;
    Error: PL/SQL: Statement ignored
    Line: 19
    Text: RETURN V_res;
    ques :
    1 - is there a need to always declare a table ? as it'll only return a single record with multiple columns
    CREATE OR REPLACE TYPE result as table of result_t;
    CREATE OR REPLACE TYPE result_t as object
    (user varchar2(100), comments varchar2(4000));
    CREATE OR REPLACE FUNCTION myfn (IN_ID IN VARCHAR2, IN_BEGIN IN DATE) RETURN result IS
    type V_res_t is RECORD (user varchar2(100), comments varchar2(4000));
    V_res V_res_t;
    BEGIN
    select a.user, a.comment
    into V_res.user, V_res.comments
    from view1     A,
    (select distinct id,
    begin_time,
    max(time) over(order by time desc) max_time from view2 b
    where id = IN_LOTID
    and begin_time = IN_BEGIN) b
    where a.id = b.id
    and a.begin_time = b.begin_time
    and a.time = max_time
    and a.id = IN_ID
    and a.begin_time = IN_BEGIN;
    RETURN V_res; --> this is the line that the system keep complaining
    END;
    Note : pls ignore whether the return results is correct but i am expecting it to always return a single row
    pls advise
    tks & rgds

    And if you really want to return a type as a table of, work with PIPELINED function :
    SQL> CREATE OR REPLACE TYPE result_t as object
      2  (user# varchar2(100), comments varchar2(4000));
      3  /
    Type created.
    SQL> CREATE OR REPLACE TYPE result as table of result_t;
      2  /
    Type created.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION myfn (IN_ID IN VARCHAR2, IN_BEGIN IN DATE) RETURN result
      2  pipelined is
      3  user# varchar2(100);
      4  comments varchar2(4000);
      5  BEGIN
      6  pipe row (result_t(user#,comments));
      7  return;
      8  END;
      9  /
    Function created.
    SQL>PS: there is non sense to use pipelined function in my example, it is just an example to return a type as table.
    Nicolas.

  • SSIS Error with Oracle 10.2 in 64Bit environment

    I am trying to debug a SSIS package in BIDS which was developed in a 32 Bit environment. The machine on which I am trying to bebug is a 64Bit with Windows 2003. Our DBA has installed both the 64 Bit as well as the 32 Bit client on the 64bit machine.
    When I open the package in BIDS, I am able to see the list of providers. I can create a data source using .NET Providers for Oledb\Oracle Provider for OLE DB and when I click the TEST button, the test succeeds. However, when I try to bebug the package, it errors out with the following error.
    [bill_to_dim [83]] Error: System.InvalidOperationException: The 'OraOLEDB.Oracle.1' provider is not registered on the local machine. at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager90.AcquireConnection(Object pTransaction) at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction) at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper90 wrapper, Object transaction)
    I have checked to ensure that the oraOLEDB10.dll is registered on the machine. the Oracle\Home folder has full rights
    What I dont understand is that if the connection succeeds in Design time why does it fail at Run Time.
    Any help will be appreciated.
    Thanks!
    AB

    jy**** wrote:
    I've resolved this legendary issue recently.
    You have to uninstall 10.2 but install Oracle 11g client 32bit &amp; 64bit both <font face="tahoma,verdana,sans-serif" size="1" color="#000">version</font> and have to change registry little bit.
    For some reason my colleague fixed that issue with some patches on Oracle 10g installation, but that doesn't work for me...
    Please refer to the link for detail...
    [http://knol.google.com/k/jeyong-park/accessing-oracle-data-source-from-64bit]
    Edited by: [email protected] on Sep 24, 2009 5:51 PM
    Nice writing, Thanks for your instruction!

  • Error with Function Module

    Hi Guys,
    I have created a custom function module ,and transported to Production server,but the thing is am getting an error like "Error generating the test frame".What could be the reason?Give me your suggetions on the same.
    Warm Regards,
    Mohandoss P.

    Hi,
    I you have complex type in the parameter list you will get this error for example generic types, xtrings, strings, object references.
    But, function module can be called from programs.
    Check for Oss notes if you want to solve this problem
    Best regards..

  • Error with function module TABLE_COMPRESS?

    Hi all,
    What is the alternate function module for TABLE_COMPRESS?
    This is going fine in 4.7 version.
    But in ECC 6.0, if we use this function module we r getting SLIN error (Obsolate statements) .
    How can we rectify this SLIN error?
    So we have to use another funtion module for the same purpose.
    Can any one help on this?
    Rewards to all.
    Thanks & Regards
    Anu.

    Hi,
    I you have complex type in the parameter list you will get this error for example generic types, xtrings, strings, object references.
    But, function module can be called from programs.
    Check for Oss notes if you want to solve this problem
    Best regards..

  • Error with function that returns a rowtype...

    i have a function that returns a rowtype. below is a simplified version:
    create or replace function "GETC"
    return mytable%rowtype
    is
    rec mytable%rowtype;
    begin
    rec.rowid := 1;
    return rec;
    end;
    eventually i'll want to call this from java. but for now i'd settle for calling it from the XE web front end (and sqlplus).
    SQLPLUS: i try to call it from sqlplus by first declaring a variable where i can store the return:
    var a mytable%rowtype;
    it instantly stops me saying that i can only declare a var of a particular type. so what do i do?
    XE interface: i tried various ways to call getc(), but they were all unsuccessful. what should i be doing?
    thanks so much for your time.
    marko

    Given a function like this:
    CREATE OR REPLACE FUNCTION get_employee
         ( p_empno emp.empno%TYPE )
         RETURN emp%ROWTYPE
    AS
         v_result emp%ROWTYPE;
    BEGIN
         SELECT * INTO v_result
         FROM   emp
         WHERE  empno = p_empno;
         RETURN v_result;
    END get_employee;You can call it within PL/SQL like this:
    DECLARE
         rec emp%ROWTYPE;
    BEGIN
         rec := get_employee(7902);
         DBMS_OUTPUT.PUT_LINE(rec.ename);
    END;However,
    1. Unless there is a column named "ROWID" in the table (unlikely since it would conflict with the actual rowid and is therefore not allowed), the type will not have an attribute named "rowid".
    2. "1" would not be a valid rowid anyway.
    3. %ROWTYPE defines a PL/SQL type, which will not be recognised in other environments such as SQL and Java.

  • ObjectModel.dll Error with multiple users: InDesign CS6

    I have 3 users (myself included) who are having issues with InDesign CS6. We've had issues since upgrading/installing. I've done uninstall's, cleans, fresh downloads and installs, upgrades to the latest versions, and still we are having this issue. I have also done individual file replacements such as the identified ObjectModel.dll on faulty machines with (suspected) known good files from a new download.
    Faulting application name: InDesign.exe, version: 8.0.0.370, time stamp: 0x4f72c3ee
    Faulting module name: ObjectModel.dll, version: 8.0.0.370, time stamp: 0x4f72c3d4
    Exception code: 0xc0000005
    Fault offset: 0x0002cd16
    Faulting process id: 0x1770
    Faulting application start time: 0x01ce26490287a001
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\ObjectModel.dll
    Report Id: 5a6d3609-923c-11e2-ba48-c8f7332601d7
    Is there any more data that can be provided or will phone support be required?
    I've even had the same (above) issue just opening InDesign CS6

    Completed download and installation of 8.0.1.406. InDesign opened normally but could not even open the file. Here is the event log:
    Faulting application name: InDesign.exe, version: 8.0.1.406, time stamp: 0x50335e39
    Faulting module name: DOCUMENT FRAMEWORK.RPLN, version: 8.0.0.370, time stamp: 0x4f72c565
    Exception code: 0xc0000005
    Fault offset: 0x0001b4db
    Faulting process id: 0x10bc
    Faulting application start time: 0x01ce2676af15693d
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\Required\DOCUMENT FRAMEWORK.RPLN
    Report Id: 30da0a23-926a-11e2-ba48-c8f7332601d7
    Restarted PC, InDesign crashed upon load.
    Faulting application name: InDesign.exe, version: 8.0.1.406, time stamp: 0x50335e39
    Faulting module name: ObjectModel.dll, version: 8.0.0.370, time stamp: 0x4f72c3d4
    Exception code: 0xc0000005
    Fault offset: 0x0002cd16
    Faulting process id: 0x1730
    Faulting application start time: 0x01ce2677b5479f73
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\ObjectModel.dll
    Report Id: 40052559-926b-11e2-8c56-c8f7332601d7
    Canceled recovery of file, opened InDesign, attempted to open file, InDesign crashed again:
    Faulting application name: InDesign.exe, version: 8.0.1.406, time stamp: 0x50335e39
    Faulting module name: DOCUMENT FRAMEWORK.RPLN, version: 8.0.0.370, time stamp: 0x4f72c565
    Exception code: 0xc0000005
    Fault offset: 0x0001b4db
    Faulting process id: 0xb84
    Faulting application start time: 0x01ce2678068109a1
    Faulting application path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\InDesign.exe
    Faulting module path: C:\Program Files (x86)\Adobe\Adobe InDesign CS6\Required\DOCUMENT FRAMEWORK.RPLN
    Report Id: 75a1f9b5-926b-11e2-8c56-c8f7332601d7

  • Stand-alone application generates error with function 'Ramp Pattern' (bug in application builder?)

    Hello,
    in my program a main.vi links to a sub-VI via 'open VI reference' and 'invoke node'. In this sub-VI the function 'Ramp Pattern' is used. The program itself runs normally, but if I build a stand-alone application using application builder I get an error message 'error 1003 occurred ..'. I believe this error is directly related to the build specifications which are as follows: the main.vi is referenced in a main build specification, the sub-VI in its own specification where the target is a LLB.
    I appended an example-program that exhibits the error (when executing 'Application.exe' and pressing 'calculate ramp'). The error does not occur when disabling the 'ramp pattern' function and rebuilding the application.
    I would rate this to be a bug in the application builder and would appreciate any help on how to solve this problem. However, due to the structure of the whole program the sub-VI has to remain in its own LLB.
    Attachments:
    RampPattern.zip ‏198 KB

    There can be reasons why a VI might appear broken when loaded from an executable. For example, if you have different versions of the same VI or enum that differ in such a way as to break the calling VI, that can cause a broken arrow when loaded from the executable. If you have DLLs being called and the runtime engine can't find the DLL, that can cause a broken arrow that you might not see otherwise. Finally, there is a bug related to a VI appearing broken when its not.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • ORA-06521: PL/SQL: Error mapping function with 10.1.0 external procedure

    We have an external procedure running fine on 8.1.7 on VMS. After compiling and linking succesfully under 10.1.0, I get ORA-06521 PL/SQL: Error mapping function and ORA-06522: ERROR - vms_dlsym for file x, where x in the filename of the linked executable. Another external procedure that does not connect to the 10.1.0 database runs fine. What could be causing this error in Server 10.1.0 on VMS?
    Thanks,
    Dave

    Here is the code to create the function:
    CREATE OR REPLACE FUNCTION f1
    (h_file_name IN VARCHAR2)
    RETURN BINARY_INTEGER
    IS EXTERNAL
    LIBRARY l1
    NAME "f1"
    LANGUAGE C
    WITH CONTEXT
    PARAMETERS
    (CONTEST,
    h_file_name string);
    Here is the beginning of the Pro*C:
    int f1(epctx, h_file_name)
    OCIExtProcContext *epctx;
    char h_file_name[70];
    char h_line_txt [251];
    int lineno;
    FILE *fptr;
    /* register the connection context ... */
    EXEC SQL REGISTER CONNECT USING :epctx;
    The function loads a flat file into the database. It is probably not related but are unable to SQLPLUS/ or SQLLDR/ into the database from an OS autheniticated account (get ORA-12547: TNS:lost contact.) Thanks for taking the time to look at this. There aren't many people trying this on VMS, I'd bet.

  • InDesign CC | Error with indd file - "Cannot open the file...Adobe InDesign may not support file format"

    I encountered a very strange error with InDesign CC after saving a file created in CS4. I'd attach the file but I'm not sure how to do this, if I'm able to. The file is 44kb and doesn't seem like it should be (file I saved had a large book cover). Now since the original CS4 file was overwritten using InDesign CC, the file is corrupt and I'm getting the error message displayed below. The file is not open within another application. Has anyone gotten this before?

    Thanks for your response Peter. Below is the gibber contained in the first four lines. In the first line, where it reads "mimetypeapplication" and then "indesign-idml-package", I would assume that this should've been a valid idml file.
    PK        *meEËv‰+   +       mimetypeapplication/vnd.adobe.indesign-idml-packagePK        *meE!t/k   {<     designmap.xmlÝ[ýrÚH ÿ;y •ê.µ[uk 6¶IÀ)À áb  þÈÞÖÖÖ 0e1£ IŽÙ¿ò wUw/—'¹îÑ× cc;gv«²FÝ==¿îéîé CýýíÌ5n¨ô™à ³¼U2 Êmá0>i˜ çÇ?훆  î WpÚ0çÔ7ß ¼®¿'Ì ÆÜ Z   s >9 g” ¦!)q¨¼L ï¢â1%A(é ³RÝ3 O '´á©\Ú*ý°WúÑ4P÷a¬Å lÜËœþ5€™ ÷Ö²¸¿E 1¢[¶˜YMüÔá‡Ôg n1gæZ`‚å ûšLÀ Ó8ìuS 8‹i ©; ¤ð! r~Ê|˜?¤ # ׌°\ÂÿöwŒ°62R)ú‚q( 0´i 솞’9•0f´k íîÏ ûRŒ úábk¸e\Ñ‘Ñ $ ŽñÃðª×ÿѸ©˜ÆकŠùð`tŽÚ»åÚîîO•2@ .sÚ ²Ã Šó]øT=ƒ³ 0ćÉÇ •-—r\›b±C:&¡ tfdB‹¥  ÌiÏ f_RŸÊ z4 QÇ¡NŒÓ‹¥Úb6bœ àÈÞ8 ÒäΐŒi{6¿FçØ¡ »O›¡' ¿aŽ‰ëSóàõ«ú)á“  ÅÎO ¿t #>q™?

  • Error with data transfer in functional module

    Hi all,
    I need to upload file to the employee through BDS. (oaor transcation).  i am using functional module
    function zin_bds_dms_upload.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(P_CLASS) TYPE  BDN_CON-CLASSNAME
    *"     VALUE(P_OBJCT) TYPE  BDN_CON-OBJKEY
    *"     VALUE(P_DESCR) TYPE  BDN_CON-DESCRIPT
    *"     REFERENCE(P_PATH) TYPE  SAPB-SAPFILES
      data: begin of i_bds_conn occurs 10, " ITAB for the actual
             bdn_tab_i type  num08,
            client type mandt,
            classname type      seoclsname,
            classtype     type bds_clstyp,
            objkey  type  bds_typeid,
            log_system    type swo_typeid,
            loio_id   type char42,
            doc_ver_no    type num08,
            doc_var_id    type num08,
            doc_var_tg    type bds_var_tg,
            descript    type sdok_descr,
            langu   type spras,
            comp_id   type bds_compid,
            mimetype  type  bds_mimetp,
            crea_user   type sdok_crusr,
            crea_time   type sdok_crtst,
            chng_user   type sdok_chusr,
            chng_time   type sdok_chtst,
            contrep   type bds_conrep,
            docuclass   type sdok_prv_m,
            doc_type    type sdok_prv_s,
            expirytime    type sdok_prv_m,
            bds_docid   type sdok_prv_l,
            loio_id_to    type sdok_loid,
            rela_id     type      bds_relaid,
            state   type sdok_phsta,
            bds_status    type bds_state,
            stor_tab  type saearstat,
            bdn_tab_d     type bar_keep,
            note_type     type bds_state,
            objecttext type toasp-objecttext,
            objecttext2 type toasd-objecttext,
            objecttext3 type toasr-objecttext,
            ntext type tojtt-ntext,
    end of i_bds_conn.
      data: begin of bds_doctype_list occurs 10,
      mandt type mandt,
      classname type bapibds01-classname,
      contrep type bapibds01-contrep,
      docuclass type bapibds01-doc_class,
      docuclass_text type toasd-objecttext,
      doc_type type bapibds01-doc_type,
      doc_type_text type toasp-objecttext,
      appl_type type toadd-appl_type,
      appl_type_text(50) type c,
      standard type toadv-standard,
      check_box type toadv-standard,
      end of bds_doctype_list.
      data: file_extension type toadd-doc_type, " file-extension
      i_files type bapifiles occurs 1 with header line,
      i_signature type bapisignat occurs 1 with header line,
      logical_system type bds_conn00-log_system.
      data: classname_select type bdn_con-classname,
      classtype_select type bdn_con-classtype,
      objkey_select type bdn_con-objkey,
      mask(20) type c,
      answer type c,
      mimetype type toadd-mimetype,
      i_toadd type toadd,
      file_path type sapb-sapfiles,
      filename_all type sapb-sapfiles,
      file_path_memory(250) type c, " path für SAP memory
      file_path_length type i, " length of the file_path
      file_name type sapb-sapfiles.
      classname_select = p_class.
      classtype_select = 'BO'.
      objkey_select = p_objct.
      filename_all = p_path.
      get parameter id 'OAP' field file_path.
      if sy-subrc <> 0. " no file_path found.
        file_path = space.
      endif.
      concatenate ',.' '' ',.' '' '.' into mask.
    -- split filename -- *
      perform split_path(oaall) using filename_all file_path file_name.
    -- set new file_path to SAP memory -- *
      file_path_length = strlen( file_path ).
      if file_path <> space and file_path_length < 250.
        file_path_memory = file_path.
        set parameter id 'OAP' field file_path_memory.
      else.
        file_path_memory = space.
        set parameter id 'OAP' field file_path_memory.
      endif.
    -- check documentclass -- *
      perform get_file_extension using file_name
      file_extension.
    -- check file extension -- *
      if file_extension = space.
    -> if no docuclass is found from the document
    -> default docuclass from the doctype!
        file_extension = bds_doctype_list-docuclass.
      endif.
    -- get the mimetype of the docuclass -- *
      perform mimetype_get(oaall) using file_extension
      changing i_toadd.
      move i_toadd-mimetype to mimetype.
    -- fill file and signature structure -- *
      clear: i_files, i_signature.
      refresh : i_files, i_signature.
      i_files-doc_count = 1.
      i_files-directory = file_path.
      i_files-filename = file_name.
      i_files-mimetype = mimetype.
      append i_files.
      i_signature-doc_count = 1.
      i_signature-prop_name = 'BDS_DOCUMENTCLASS'.
      i_signature-prop_value = file_extension.
      append i_signature.
      i_signature-prop_name = 'BDS_CONTREP'.
      if bds_doctype_list-contrep = space.
        i_signature-prop_value = ' '.                           "#EC NOTEXT
      else.
        i_signature-prop_value = bds_doctype_list-contrep.
      endif.
      append i_signature.
      i_signature-prop_name = 'BDS_DOCUMENTTYPE'.
      i_signature-prop_value = bds_doctype_list-doc_type.
      append i_signature.
      i_signature-prop_name = 'DESCRIPTION'.
      i_signature-prop_value = p_descr.
      append i_signature.
      i_signature-prop_name = 'LANGUAGE'.
      i_signature-prop_value = sy-langu.
      append i_signature.
    -- create new document via KPro -- *
      call function 'BDS_BUSINESSDOCUMENT_CREATEF'
        exporting
          logical_system = logical_system
          classname      = classname_select
          classtype      = classtype_select
          client         = sy-mandt
          object_key     = objkey_select
        tables
          files          = i_files
          signature      = i_signature
        exceptions
          internal_error = 1
          others         = 2.
    endfunction.
    *& Form GET_FILE_EXTENSION
    try to get the extension of the uploaded file
    form get_file_extension using file_name file_extension.
    -- data declaration ------------------------------------------------ *
      data: length type i,
      single_c type c.
      data: begin of bds_doctype_list occurs 10,
      mandt type mandt,
      classname type bapibds01-classname,
      contrep type bapibds01-contrep,
      docuclass type bapibds01-doc_class,
      docuclass_text type toasd-objecttext,
      doc_type type bapibds01-doc_type,
      doc_type_text type toasp-objecttext,
      appl_type type toadd-appl_type,
      appl_type_text(50) type c,
      standard type toadv-standard,
      check_box type toadv-standard,
      end of bds_doctype_list.
      clear: single_c.
      length = strlen( file_name ).
      if length > 0.
        while length > 0.
          single_c = file_name+length(1).
          if single_c co '.'.
            length = length + 1.
            exit.
          else.
            length = length - 1.
          endif.
        endwhile.
        if length > 0.
          file_extension = file_name+length.
        else.
          file_extension = space.
        endif.
      else.
        file_extension = space.
      endif.
      if file_extension <> space.
        set locale language sy-langu.
        translate file_extension to upper case.              "#EC TRANSLANG
        set locale language space.
      endif.
    endform.                    "get_file_extension
    example  : class = PREL
    object = pernr_no
    desc =  'leav application'
    p_path = file_path
    I used this in abap program then it is uploading fine but when used in the web dynpro file is not uploading. On debugging it is showing error in function module SDOK_PHIOS_CHECKIN
    error key 5 ie error in transfer.
    So please suggest how to upload in web dynpro abap.
    Edited by: Bhavya belagal on Dec 22, 2010 11:55 AM
    Edited by: Bhavya belagal on Dec 22, 2010 12:09 PM

    Hallo Bhavya,
    Please do not post like this as it is not readable . Mostly when you describe it in a simple manner you would get more response.
    See this thread for answers from Thomas Jung [Re: Approach content repository other way then URL approach|Re: Approach content repository other way then URL approach]
    Wiki [http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass|http://wiki.sdn.sap.com/wiki/display/WDABAP/File%2bUpload%2busing%2bcl_fitv_gos%2bclass]
    Edited by: Baskaran Senthivel on Dec 22, 2010 2:42 PM

  • XSQL ERROR with bind-params in ref-cursor-function

    Hi Steve
    I always get the error
    ORA-01006 bind variable does not exist
    when using a bind variable in a <xsql:ref-cursor-function> action element.
    when I replace the bind variable with a @ - parameter substitution, all works fine.
    My configuration:
    XSQL 1.0.4.1 on Win200Pro ,Apache + Jserv + DB from ORA 8.1.7 installation
    My Source
    <xsql:ref-cursor-function
    dbconn="ekat"
    eblike="%"
    list="a0"
    bind-params="eblike"
    include-schema="no"
    null-indicator="no"
    id-attribute=""
    fetch-size="500"
    >
    {@dbconn}o.ekatkategcv.open_cv_ebh ('{@list}', :1)
    </xsql:ref-cursor-function>
    ( dbconn selects my schema, not changed often, which contains package ekatkategcv with
    function open_cv_ebh returning a cursor)
    Any fix would be appreciated to avoid reparsing on each call.
    BTW, is it right, that a ref-cursor funtion is reparsed whenever the content of
    a parameter used with @ changes?
    Best regards
    H.Buschmann ([email protected])
    null

    I have tried it using ? instead of :1, this method works fine.
    I haven't tried the name method (:bindvar) yet.
    Until now, I only used xsl:query and xsql:ref-cursor-function, so I didn't check
    the other action handlers with bind variables like :1
    null

  • DBMS_LDAP call fails with ORA-06512 Error Mapping function

    Hi,
    I am facing a problem with workflow integration with LDAP.
    I receive
    ORA-6512 Error Mapping Function on one particular line within the WF_LDAP.get_cfg_val procedure.
    WHILE my_entry IS NOT NULL
    LOOP
    my_vals := DBMS_LDAP.get_values (p_session,
    my_entry,
    p_name);
    The documentation says:
    ORA-06521 PL/SQL: Error mapping function
    Cause: An error was detected by PL/SQL trying to map the mentioned
    function dynamically.
    Action: Check the stacked error (if any) for more details.
    This is the trace of the error:
    ORA-06521 PL/SQL Error mapping Function
    ORA-06512 at SYS.DBMS_LDAP_API_FFI line 0
    ORA-06512 at SYS.DBMS_LDAP line 1332
    ORA-06512 at SYS.DBMS_LDAP line 1302
    ORA-06512 at SYS.DBMS_LDAP line 582
    This is the header of the catldap.sql file
    Rem
    Rem $Header: catldap.sql 07-jan-2000.19:15:20 akolli Exp $
    Rem
    Rem catldap.sql
    Rem
    Rem $Header: dbmsldap.sql 14-dec-2001.23:25:22 rbollu Exp $
    Rem
    Rem dbmsldap.sql
    Rem
    This is the output while running it (No errors):
    Library created.
    Package created.
    Package created.
    Package created.
    Package body created.
    Package body created.
    Package body created.
    Synonym created.
    Grant succeeded.
    Synonym created.
    Grant succeeded.
    Database is :
    compatible 9.2.0.0.0
    Am I missing something?
    I have searched all the forums and although there are many references to "Error Mapping Function", noone has reported it in the context of WF - LDAP Integration. So I am not sure how to proceed.
    Please help.
    thanks in advance,
    Libin

    Hi Libin,
    Can you please explain to me the parameters that you put in the Global Preferences, the LDAP_port,LDAP_user,and the others, because I don�t know where I need to search in the server this parameters and I don�t understand su much of OID.
    if you can give to me and little description of that parameters,this would thank for much.
    anticipated thanks
    Arlet

  • Communication error with the LOCAL_EXEC Function BAPI_PTMGREXTATTABS_CHECK

    Hello,
    We use timesheet (CATS) in a separate SAP system from the SAP system in which HR resides.
    I found out how the loosely coupled scenario with CATS works with a SAP HR system. We transfer the workschedule and absence data with report RPTIMEOVERVIEW_REPLICATE to the SAP system in which CATS is used. This data is then available in the PTIMEOV1 table to perform time checks in CATS. The distribution model for ALE takes care of the fact that the data is posted into table PTIMEOV1. With BD97 I set up that the BAPI: PTMGREXTATTABS.CHECK has RFCdestination for synchronous calls  = LOCAL_EXEC.
    When I want to record on an attendance code without clock times then the above works fine. The SAP system in which CATS resides looks into table PTIMEOV1. So far so good.
    However, when I want to record hours WITH clock times then I cannot save the data. The error message HRTIM00CATS667 shows up:
    "Communication error with the LOCAL_EXEC Function BAPI_PTMGREXTATTABS_CHECK is no t available  system"
    Diagnosis
    An error has occured during communication with the HR System. The HR data in the time sheet cannot be validated.
    From the error message description it seems that it wants to check the SAP HR system instead of looking for the check in the SAP system in which CATS resides.....
    When I change the value from LOCAL_EXEC to the system in which HR resides then the error disappears, but then it really checks into the SAP HR system (synchronous check with that SAP HR system) and that is not what the customer wants. The check should be local on the PTIMEOV1 table (in case the SAP HR system is down).
    I did not find any OSS notes on the topic....or other info on SDN.
    Can anyone help me out concerning this starnge error message, at least for me?
    Thanks very much in advance,
    Kind regards,
    Mirko

    "A point to add"
    I just noticed that following message is being continously receiving in the database alert_log:
    Sat Oct 9 16:04:52 2010
    WARNING: inbound connection timed out (ORA-3136)
    Sat Oct 9 16:05:32 2010
    WARNING: inbound connection timed out (ORA-3136)
    Sat Oct 9 16:06:30 2010
    WARNING: inbound connection timed out (ORA-3136)
    Sat Oct 9 16:07:10 2010
    WARNING: inbound connection timed out (ORA-3136)
    Sat Oct 9 16:09:35 2010
    Incremental checkpoint up to RBA [0x1d.1f9928.0], current log tail at RBA [0x1d.1f9a79.0]
    Sat Oct 9 16:11:52 2010
    WARNING: inbound connection timed out (ORA-3136)
    Sat Oct 9 16:29:40 2010
    Incremental checkpoint up to RBA [0x1d.1f9b87.0], current log tail at RBA [0x1d.1f9bf4.0]
    ~
    Please help.

Maybe you are looking for

  • My ipad does not find my micro sim card? Whats wrong?

    my ipad does not find my micro sim card. Whats wrong

  • Calendar - Week view now only 5 days - how can you see a 7 day view again?

    I like using the Week view in the Calendar, since upgrading to the latest OS a few days ago I can now only see 5 days in the Week view rather than the full 7 days I previously had.  Can I change the settings so I can see the full week again? Thank yo

  • Error while trying to create new calendar to sync with google calendar

    Hello everybody! I successfully syncronized my google calendar account with my iCal and everything works fine when I create or delete events. But when I try to create from iCal a new shared calendar it says "Calendar https://www.google.com/calendar/d

  • Problem Sign-in in the tomcat

    I created a servlet which handling user login. The login itself is based on the web.xml, it is run well on windows environment, but not in linux. Although, i have invalidated the session when the user logout, the next user who login still use the pre

  • Cannot open Header UDF Window

    Hello, At a customer's end, I was creating some UDF and formatted search. After doing this, the header UDF window has stopped opening. There is a note NO. 1539068 saying that this is due to corrupted user preferences. It asks to log a message. The cu