Error at Opening the same Form (add Items)

Hallo,
i add a Folder and items to the Form BusinessPartners.
When i open the Form BusinessPartners second Time i get an Error:
System.Runtime.InteropServices.COMException Data Source Alias Already Exists
at the line with ouserdatasource = .....
What´´s the Problem and how can i  fix it ?
if (pVal.FormType == 134 && pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD && pVal.Before_Action == true)
                        oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, 1);
                        ouserdatasource = oForm.DataSources.UserDataSources.Add("FoldersDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 4);
                        oItem = oForm.Items.Add("PJ", SAPbouiCOM.BoFormItemTypes.it_FOLDER);
                        oit = oForm.Items.Item("9");
                        oItem.Left = oit.Left + 40;
                        oItem.Top = oit.Top;
                        oItem.AffectsFormMode = false;
                        oItem.Width = 150;
                        oFolder = (Folder)oItem.Specific;
                        oFolder.Caption = "PV-Projects";
                        oFolder.GroupWith("9");

Hi,
You have only added user data source by:
ouserdatasource = oForm.DataSources.UserDataSources.Add("FoldersDS", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 4);
However, you can not add it again when you run it the second time. You need to release it before you exit so that you can run more than one time.
Thanks,
Gordon

Similar Messages

  • How to retrict user cannot open the same form more than once (Forms 6i)

    Our users always open the same forms more than once. For example the customer form, the user may access a customer record in the first form, however, he will open a new customer form to edit the same record, the result is he cannot save the record because the record is locked in the first customer form.
    How can I control the user cannot open the same form more than 1 time.
    Best Regards,
    Kane

    The customer form is only an example, I found there will cause a lot of problems is I cannot control the user from calling 1 program more than 1 than within application. Sometimes a user (not good in using computer) will overlap the form for many times.....
    Is there any simple way to do that?...can I have some PL/SQL statement or build-in functions that let me easily found our what forms the user has already opened, then I can control whether I let him open this form or not.
    Urgent...please
    Thanks

  • Error in opening the adobe form to create a PCR

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

  • Opening  the same form more then one time in the same session

    H! I want to accomplish the following .... I have a form that has a button. The code in the when-buttin-pressed trigger is a call_form - to open another form. I want to be able to push this button as many times as the user may want and the form should keep opening a new form. Meaning I can have 10 forms of the second form open if I want. The user basically wants to be able to flip between the data on the same form opening up this form a couple of times in different windows. when I use the call form the button on the initial form is becoming disabled - not allowing me to push it again to open another form without closing the one already open. Please HELP!

    Sounds like you need Run_product rather than Call_form.
    It will establish multiple database sessions, and the user will be responsible for terminating them. And I am not sure, but this may only be possible in client/server forms.

  • Getting Error While Opening the Oracle Form 6i in 10g

    Hi All ,
    FRM-10102: Cannot attach PL/SQL library XXX. This library attachment will be lost if the module is saved.
    I am getting above error message while opening Oracle 6i Form in 10g.
    I get the following Alert message when I try to attach the library to my form -
    Attached library name
    S:\.........xxx.pll contains non-portable directory specification. Remove path? Yes/No?
    If I select 'No', the Form compiles and runs without any error.
    But if I select 'Yes', I get the following error message:
    FRM-40039: Cannot attach library xxx while opening form.
    All files (fmb, fmx, pll, plx) are on the same path. I detached and then re-attached the library but this didn't work for me?
    Help Appreciated.
    Thanks & Regards,
    Ram.

    use the shiped batch program frmplsqlconv.bat to convert all your forms/librarys from Forms 6i to 10g.
    you can call it in wizard mode from the start menu (e.g. OracleDeveloperSuite <OraHome> => Forms Developer => Forms Migration Assistant (GUI Mode) and follow the instructions step by step
    or you can call it by batch to convert all your forms/librarys. The batch file is found in
    <ORA10g_HOME>BIN\frmplsqlconv.bat
    =>
    frmplsqlconv.bat <formname>

  • Error while opening the ADOBE FORM via mail

    Hi to all,
    I have created a program to attached ADOBE FORM to mail.
    When I execute the program, it sends ADOBE FORM to my mail ID successfully.
    But when I open my mail and try to open attached ADOBE FORM, it gives error
    ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).
    Please can any tell me, what the problem is and what the solution is for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 1, 2011 2:22 PM

    Thanks for reply,
    below is the code.
    data:
      l_fm_name         TYPE rs38l_fnam,
       l_formname   TYPE fpname VALUE 'ZTESTF1' ,
      fp_docparams      TYPE sfpdocparams,
      FP_FORMOUTPUT     TYPE FPFORMOUTPUT,
      fp_outputparams   TYPE sfpoutputparams.
    data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.
    START-OF-SELECTION.
    data: st  TYPE  ZTABFM11.
    data: it type table of sflight.
    data: wa like LINE OF it.
    data: wa_st like LINE OF ST.
      fp_docparams-langu   =      'E'.
      fp_docparams-country =      'US'.
      fp_docparams-fillable =      'X'.
      fp_outputparams-nodialog = 'X'.
      fp_outputparams-preview =   'X'.
      fp_outputparams-device   =  'LP01'.
      fp_outputparams-getpdf  =   'X' .
      fp_outputparams-dest   =    'LP01'.
      fp_outputparams-reqimm  =   'X'.
      fp_outputparams-reqdel  =   'X' .
      fp_outputparams-xfpoutdev = 'LP01'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = l_formname
        IMPORTING
          e_funcname = l_fm_name.
      E_INTERFACE_TYPE           =
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    select * from sflight into TABLE it.
      loop at it into wa.
        wa_st-CARRID = wa-CARRID.
        wa_st-CONNID = wa-CONNID.
        wa_st-FLDATE = wa-FLDATE .
        wa_st-PLANETYPE   = wa-PLANETYPE.
        append wa_st to st.
        endloop.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
              st               = st
        IMPORTING
          /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4
       CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             = result
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = FP_FORMOUTPUT-PDF
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_ATT_CONTENT_HEX  .
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Fill the details.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'flight details' ).
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'flight details'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA:
      lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
      l_send type ADR6-SMTP_ADDR value 'mail id '.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
      lo_sender = cl_sapuser_bcs=>create( sy-uname ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
      lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'Form sucessfuly send to person' type 'I'.
    plesase can any one, provide the soultion.
    i shall be thankful toy you for this.
    regards
    pavneet rana

  • Error while opening the custom forms-''function not available to this respo

    Error: Function not available to this responsibility , change responsibility or contact ur system administrator
    Hiiiii,
    While accessing the custom forms in release 12i we are facing the popup error and the form is not getting opened up: "Function Not available to this responsibility. Change Responsibilities or Contact your System Administrator"...
    I check the custom top path in $APPL_TOP/admin/adovars.env... its fine there..
    but the $Apache_top is not there...
    can u plz tell me the solution....
    Thanks
    Meenakshi Verma

    user609981 ,
    If ur referring to forms, u need to search in appropriate forum, as this forum is only for OAF queries, and if its realted to OAF page, check the the function of oa page is attached to the specific responsibilty .
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Prevent double running the same FORM application

    Dears,
    Anyone knows how to prevent users from running same FORM application in the same computer twice? Is there any ways to detect the application is already running and refuse to run it again?
    Thanks,
    Vic

    i have a tree-menue where i use code like this in the when-tree-node-activated trigger which opens new forms:
    frmId := find_form(frmToOpenName);
    -- Open form only if there's no instance (for current user) of it at the moment
    if id_null(frmId) then
    open_form(.....);
    else
    go_form(frmId);
    end if;
    of course, if the user opens another tree-menue, he can open the same form again. but in one browser (i use 9i), he can open it only once.

  • Open new window in the same form

    Hi
    I created a form with 6 records displayed. I have a check box for each record. I would like to select a record and make the check box checked. Once I check a checkbox I would like to automatically open a new window in the same form with further details of the checked record. Could you please help me how I could work on this.

    Dear you have to create relation between the blocks then you can achieve this like:
    1) Create two canvases in your form (canvas1 and canvas2).
    2) Create a window in your form with name Window2 now you have two windows (Window1 and Window2).
    3) now set the property 'Primary Canvas' of each window (Window1 = Canvas1, window2 = Canvas2)
    4) Now create database block of you main table with (CAT, NAME, DEPT) fields and select the Canvas1 in the layout wizard.
    5) Create another database block with same table but this time select only 3 fields (CAT,SAL, DATE) and at the time of creation mention relation between blocks in the Data block wizard (block1.cat = block2.cat) and select the Canvas2 in the layout wizard.
    6) Now create check box field name MASTER_CHBOX in first block and set Database Item property no of this check box item and set the Value When Checked property to Y and N for Value When unChecked.
    7) Create a trigger on CheckBox Item and paste below code in it.
    if :MASTER_CHBOX = 'Y' then
    show_window('WINDOW2');
    go_item('SAL');
    end if;
    Regards.
    Omer

  • Error while opening the receipt entry form in AR module.

    Error while opening the receipt entry form in AR module. We have created one new responsibility of Receivables for new operating unit . When we open the corresponding
    forms , we are getting the error message as :
    NO_DATA_FOUND
    FRM-40735: PRE-FORM trigger raised unhandled exception ORA-20002.
    Kindly help in resolving.
    We have ERP version of 11.5.10.2

    Please also see the following docs.
    Transactions Workbench Error: Listing of ORA Errors [ID 1336495.1]
    FRM-40735 ERROR OPENING LIFE EVENT REASONS FORM BENLEVRS [ID 1517593.1]
    APP-AR-96996: The Defined Sales Representatives Have Incorrect Id'S [ID 437107.1]
    ARXSUDRC Receipt Classes Errors With APP-AR-96994: Please Define Sales Representatives [ID 357454.1]
    Thanks,
    Hussein

  • Regarding UCF_AcroForm error displayed when trying to open the pdf form

    Hi,
         Iam receiving the pop up when trying to open the pdf form.The Error is Server Error Class: UCF_AcroForm Method: Error.The Error displayed in some system and in some other system the form is working fine.The Form is created using the Designer 8.0.The form is working fine in reader 8.0.Is there any problem in the reader version.Is there any solution for this problem please provide.
    Thanks and Regards,
    SatheshKumar R

    Sathesh,
    Similar issue has been reported at SDN so searching would have helped you. See below threads for solutions:-
    UCF_AcroForm error
    MSS UCF_AcroForm error displayed when trying to display form in PCR
    Chintan

  • Error while trying to open the same JSP page.

    Hi partners,
    After solving some issues with JSP deployment, we are getting another error message.
    This is when we try to open the same JSP page at the same time.
    500 Internal Server Error
    javax.servlet.jsp.JspException: oracle.express.idl.util.OlapiException: ORA-22275: invalid LOB locator specified at oracle.dss.addins.jspTags.PresentationTag.doStartTag(PresentationTag.java:194) at Principal.jspService(_Principal.java:68) [SRC:/Principal.jsp:6] at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java(Compiled Code)) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java(Compiled Code)) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:513)
    I mean this is a concurrency problem.
    Any information about this will be really appreciated.
    Best regards!!!!!
    Francisco Mtz.

    After running the BI_Checkconfig tool I got an inconsistent OLAP API Metadata
    result, it was because a partner was modifying the OLAP metadata without saving
    the changes.
    After saving the changes in the OLAP metadata, I ran the BI_Checkconfig tool
    again with success (no metadata errors).
    Now the pages are displayed without any error message.
    Best regards!!!!
    Francisco Mtz.

  • Getting error while trying to open the web forms in classic planning app

    hello,
    I am new to OTN forum. can someone please help me to resolve my issue in classic planning application.
    i have created two web forms in classic planning . but while i am trying to open the web forms ,its showing the error like
    the" data form Report1(Report name) is invalid. Check log for details.
    i have checked the log file also but was not able to understand the errors.
    Before this i have tried lots of things to make this issue fixed like updated JVM size then in task manager i have checked the memory usages for process .
    but these were not helpful to solve.
    Kindly anyone suggest me the solution.......

    It is probably worth refreshing the metadata to see if that fixes the problem; error message might indicate that the form has members on that have not yet been passed to Essbase.
    You dont give the version you are using, but for v11.1.2.1 you do this through Workspace, menu options Administration/Application/Refresh Database - tick Database and Refresh. Its advised that you back up your Outline and data before refreshing.
    Hope this helps.
    JB

  • How can I avoid opening the several instances of the same form?

    Hi Friends,
    I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory.
    How can I avoid opening the multiple instances of the same form? I want the activate the form which is already open instead of opening the new instance of the same.
    Anybody knows solution please help me.
    Thanks
    Gopinath Kona

    Hi,
    U must be using the built-in OPEN_FORM in your code. Instead of that, check it using the following code....
    IF ID_NULL(FIND_FORM('form_name')) THEN
    OPEN_FORM('form_name with the path');
    ELSE
    GO_FORM('form_name'); --shifts the control into the form which is already open.
    END IF;
    hope it helps...
    null

  • Excel cannot open the new form. The Form contains schema validation errors.

    i am running the approval workflow on a document library, while trying to open Excel
    file i get the error.
    Excel cannot open the new form. The Form contains schema validation errors.
    Detailed error:
    Element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}Body' is
    unexpected according to content model of parent element '{http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}SharePointListItem_RW'.<o:p></o:p>
    Expecting: {http://schemas.microsoft.com/office/infopath/2009/WSSList/dataFields}WorkflowLink,
    {http://schemas.microsoft.com/office/inf....
    neeraj

    Hi,
    According to your description, my understanding is that when you are running approval workflow and opening the Excel file, then it will occur the error above.
    For a better troubleshooting, I suggest you can try to create a new normal excel file and then run the workflow and open the file to test if it works. It will help to figure out if this is the file itself issue or the SharePoint issue.
    Also, please provide some more detailed information such as screen capture, it will easier to find the root cause of the issue.
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Connecting to Sony 46'' ex700

    I have a Macbook from late 2007 and I wanted to hook it up to my Sony Led Tv. I have the correct cables and it works fine on the Samsung TV, but the Sony tv doesn't seem to recognize the macbook. Any solutions? Thanks

  • Cannot "Revert to Original" in iPhoto

    iPhoto 11 (9.2.1) After editing photos in Elements 4.0, I no longer can "Revert to Original" in iPhoto.  It is blanked out.  If I edit with iPhoto, there is no problem.  Elements 4.0 is listed in iPhoto preferences as the default editor.  As per a re

  • How do I best implement a comparable parameterized class?

    I am trying to implement a parameterized Wrapper class that I want to make Comparable, and the ordering is supposed to be consistent with equals(). How can this be done? I'm kind of lost ... My first approach looked like this: class Wrapper<T> implem

  • Configuring Multiple OMSs Behind a Netscaler (SLB) Challanges

    Greetings, We are working through a active active OMS configuration (R4) with a Citrix Netscaler (SLB). We do not yet have the SLB setting correct. We are unable to re-secure the first oms's agent using the configured SLB name. Could you please share

  • Deadlock occurs with set_maxsize() on in-memory db's using shmem: (patch)

    Calling set_maxsize() for a database's memory pool on in-memory db's using shared memory after the db_open will cause a mutex deadlock. A look into the code revealed this mutex lock/unlock mismatch. --- db-4.6.21.orig/mp/mp_fmethod.c     2007-06-01 1