Problem with Multiple record creation using BAPI BAPI_PRICES_CONDITION

Hi,
I am working on IS Media Sales And Distribution wherein i am using BAPI BAPI_PRICES_CONDITION for condition record creation in TCODE JC9B. I am able to create one record using this BAPI for one sales promotion but having problem while creation of multiple records for the same sales promotion wherein my internal table have multiple records. It gives me error that data in BAPICONDIT is missing.
I am aatching followig code for reference
BAPI have field of varkey which i am filling as combination of sales org. + distn channel + sales promotion + delivery type
In this varkey  delivery type is changing for sales promotion Can be said that one sales promotion can have multiple delivery type .
Am i giving the correct varkey for each itration of internal table ?
I am attaching code for reference.
Here loop it_cond contain one promotion and multiple delivery type.
sales org   distn ch  promotion     delivery
0100             01        zsalesprom   03
0100             01        zsalesprom   z3
  LOOP AT it_cond INTO wa_cond.
Get next condition number
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr                   = '01'
          object                        = 'KONH'
  QUANTITY                      = '1'
  SUBOBJECT                     = ' '
  TOYEAR                        = '0000'
  IGNORE_BUFFER                 = ' '
       IMPORTING
          number                        = number
  QUANTITY                      =
  RETURNCODE                    =
EXCEPTIONS
  INTERVAL_NOT_FOUND            = 1
  NUMBER_RANGE_NOT_INTERN       = 2
  OBJECT_NOT_FOUND              = 3
  QUANTITY_IS_0                 = 4
  QUANTITY_IS_NOT_1             = 5
  INTERVAL_OVERFLOW             = 6
  BUFFER_OVERFLOW               = 7
  OTHERS                        = 8
      IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
Here i am concacating varkey for each new delivery
CLEAR : l_min,l_length,l_var.
CONCATENATE wa_cond-vkorg wa_cond-vtweg wa_cond-wrbakt INTO l_var.
l_length = STRLEN( l_var ).
IF l_var+14(2) IS INITIAL.
WRITE wa_cond-lifart TO L_VAR+14.
l_length = STRLEN( l_var ).
ENDIF.
W_LINE = W_LINE + 1.
*First table in BAPI
        wa_bapicondct-operation = '009'.
        wa_bapicondct-cond_usage = 'A'.
        wa_bapicondct-table_no = '506'.
        wa_bapicondct-applicatio = 'J0'.
        wa_bapicondct-cond_type = 'RATE'.
        wa_bapicondct-varkey = l_var.
        wa_bapicondct-valid_to = wa_cond-datbi.
        wa_bapicondct-valid_from = wa_cond-datab.
        wa_bapicondct-cond_no = number. "
        APPEND wa_bapicondct TO it_bapicondct.
*Second table in BAPI
        wa_bapicondhd-operation = '009'.
        wa_bapicondhd-cond_no = number.
        wa_bapicondhd-cond_usage = 'A'.
        wa_bapicondhd-table_no = '506'.
       wa_bapicondhd-created_by = sy-uname.
       wa_bapicondhd-creat_date = sy-datum.
        wa_bapicondhd-applicatio = 'J0'.
        wa_bapicondhd-cond_type = 'RATE'.
        wa_bapicondhd-varkey = l_var.
        wa_bapicondhd-valid_from = wa_cond-datab.
        wa_bapicondhd-valid_to = wa_cond-datbi.
        APPEND wa_bapicondhd TO it_bapicondhd.
*Third table in BAPI
        wa_bapicondit-operation = '009'.
        wa_bapicondit-cond_no = number.
        wa_bapicondit-cond_count = wa_cond-cond_count.
        wa_bapicondit-applicatio = 'J0'.
        wa_bapicondit-cond_type = 'RATE'.
        wa_bapicondit-calctypcon = 'C'.
       wa_bapicondit-scaletype  = 'A'.
        wa_bapicondit-cond_value = wa_cond-kbetr.
        wa_bapicondit-condcurr = wa_cond-konwa.
        wa_bapicondit-promotion = wa_cond-wrbakt.
        APPEND wa_bapicondit TO it_bapicondit.
*Fourth table in BAPI
        wa_bapicondqs-operation = '009'.
        wa_bapicondqs-cond_no = number.
        wa_bapicondqs-cond_count = wa_cond-cond_count.
        wa_bapicondqs-currency = wa_cond-kbetr.
        wa_bapicondqs-condcurr = wa_cond-konwa.
       wa_bapicondqs-cond_unit = 'EA'.
        wa_bapicondqs-LINE_NO = W_LINE."'0001'.
        APPEND wa_bapicondqs TO it_bapicondqs.
*Fifth table in BAPI
        wa_bapicondvs-operation = '009'.
        wa_bapicondvs-cond_no = number.
        wa_bapicondvs-cond_count = wa_cond-cond_count.
        wa_bapicondvs-currenckey = wa_cond-konwa.
        wa_bapicondvs-currenciso = wa_cond-konwa.
       wa_bapicondvs-currency = wa_cond-kbetr.
       wa_bapicondvs-condcurr = wa_cond-konwa.
       wa_bapicondvs-curren_iso = wa_cond-konwa.
       wa_bapicondvs-LINE_NO = W_LINE."'0001'.
        APPEND wa_bapicondvs TO it_bapicondvs.
        CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
  PI_INITIALMODE       = ' '
  PI_BLOCKNUMBER       =
          TABLES
            ti_bapicondct        = it_bapicondct
            ti_bapicondhd        = it_bapicondhd
            ti_bapicondit        = it_bapicondit
            ti_bapicondqs        = it_bapicondqs
            ti_bapicondvs        = it_bapicondvs
            to_bapiret2          = it_bapiret2
            to_bapiknumhs        = it_bapiknumhs
            to_mem_initial       = it_cnd_mem_initial
         EXCEPTIONS
           update_error         = 1
           OTHERS               = 2
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           wait          = 'X'
IMPORTING
  RETURN        =
        CLEAR : wa_bapicondct,wa_bapicondhd,wa_bapicondvs,wa_bapicondqs.
        CLEAR : wa_bapicondit.
      ENDLOOP.
    ENDIF.
  ENDIF.
Kindly Suggest.
Thanks
Parag

Solved By myself
There is problem while passing data to internal table for item level

Similar Messages

  • Problem with internal order creation using BAPI_INTERNALORDER_CREATE. Help!

    Hi Experts,
    I am facing a strange problem in SAP. I have a scenario where I am integrating a .Net application with SAP R/3 via SAP XI.
    The .Net application is calling XI web service via SOAP adapter. The XI then sends the data to the SAP R/3 system via RFC adapter.
    XI calls the BAPI u201CBAPI_INTERNALORDER_CREATEu201D to create a new internal order in the R/3 system.
    This scenario works perfectly fine when tested via XIu2019s runtime workbench or any SOAP or web service testing tool. New internal order gets created in the R/3 system without any issue. But when I test the same via the .Net application I found that the order is getting created properly but some fields like currency and cost center are disabled or grayed out in change mode. Have you encountered this problem earlier? Any clue what could be the root cause?
    Please help!
    thanks
    Gopal

    Hi Sampanth,
        I think you did not understood my scenario. In real time or production situation I have to use .Net application to send data to XI. The XI will then send the same to R/3 system to create the internal order.
    The .Net code is calling the XI's webservice using C# code and sends the data as a SOAP request.
    How can .Net code grayout some fields in SAP R/3 system? Can you elaborate on what are you trying to explain?
    Thanks
    Gopal

  • Problem with Multiple Context Creation

    Hi,
    We are facing a java.lang.SecurityException Invalid Subject
    We need to create multiple Initial Contexts for a single thread.
    Following is the Scenario
    1) The user will access Servlet/Struts Action class which performs database call and EJB(one, two) calls with different Initial Contexts ( Credentials are different)
    2) At the same time the Timer Task runs in back ground which is invoked from servlet load-on-startup and runs for every 1 min.
    3) The Timer Task invoke an MDB this MBD will make an external EJB (three) call for business logic.
    {color:#ff0000}Please Suggest me the Sequence of step I am expecting are correct or not{color}
    1) The Timer Task will run in the same JVM where the Servlet/Action classes are loaded (WEB-CONTAINER)
    2) The Thread created for Servlet/Action class will not be shared by Timer Task.
    3) The Thread created for Timer Task and the MDB are different.
    4) So the Servlet - Thread, Timer Task Thread and MDB Thread are different.
    The Behavior of the Context is as follows according to Bea Document.
    [http://e-docs.bea.com/wls/docs81/jndi/jndi.html#476864]
    JNDI Contexts and Threads
    How to Avoid Potential JNDI Context Problems (Please Refer this Paragraph)
    I am closing the entire Context's immediately after lookup
    Still we are facing this java.lang.SecurityException Invalid Subject Exception Problem
    The Context of EJB which we are calling from MDB is sharing the Servlet/Action Class Context -- Credentials
    Example_
    {color:#ff0000}Servlet/Action Class Context Credentials -- are user1/pass1{color}
    {color:#ff0000}EJB (three) Context Credentials -- are user3/pass3{color}
    When EJB (Three) lookup is invoked it&rsquo;s throwing the following Exception
    *java.lang.SecurityException: [Security: 090398] Invalid Subject: user1*
    Please advise to solve this problem
    Thank You.

    Solved By myself
    There is problem while passing data to internal table for item level

  • Create materials with multiple organizational levels using BAPI

    Dear Gurus,
    I have to develop a program generating materials from an Excel file. I am using the BAPI_MATERIAL_SAVEDATA.
    On the Excel file a new material can be associated to 'n' organizational levels. For eg :
    MATNR              MTART            SALES_ORG            DISTR_CHAN
    01                       ZAAA                Z100                           Z1
    01                       ZAAA                Z100                           Z2
    We can add sales_data in the BAPI but in a structure, not in a table !
    The funny thing is that I have found online the /AFS/BAPI_MATERIAL_SAVEDATA which allowed n sales data line but this BAPI is delivered in a package specialised in footwear industry !
    I cannot find a good way to solve this problem. I will strongly appreciate any help to find a solution as I am blocked.
    Thanks a lot!
    Ben

    Thanks Jurgen for your quick answer.
    Just what do you put in the field 'Function' of the different tables ?
    Here's my code for headdata and salesdata :
      CLEAR ls_headdata.
      ls_headdata-function = 'INS'.
      ls_headdata-material = gs_datatab-matnr.
      ls_headdata-ind_sector = gs_datatab-mbrsh.
      ls_headdata-matl_type = gs_datatab-mtart.
      ls_headdata-sales_view = 'X'.
      APPEND ls_headdata TO lt_headdata.
      CLEAR ls_salesdata.
      CLEAR ls_salesdatax.
      ls_salesdata-function = 'INS'.
      ls_salesdatax-function = 'INS'.
      ls_salesdata-material = gs_datatab-matnr.
      ls_salesdatax-material = gs_datatab-matnr.
      ls_salesdata-sales_org = gs_datatab-vkorg.
      ls_salesdatax-sales_org = gs_datatab-vkorg.
      ls_salesdata-distr_chan = gs_datatab-vtweg.
      ls_salesdatax-distr_chan = gs_datatab-vtweg.
      ls_salesdata-sal_status = gs_datatab-vmsta.
      ls_salesdatax-sal_status = 'X'.
      ls_salesdata-valid_from = gs_datatab-vmstd.
      ls_salesdatax-valid_from = 'X'.
      APPEND ls_salesdata TO lt_salesdata.
      APPEND ls_salesdatax TO lt_salesdatax.
      CLEAR ls_salesdata.
      CLEAR ls_salesdatax.
      ls_salesdata-function = 'INS'.
      ls_salesdatax-function = 'INS'.
      ls_salesdata-material = gs_datatab-matnr.
      ls_salesdatax-material = gs_datatab-matnr.
      ls_salesdata-sales_org = gs_datatab2-vkorg.
      ls_salesdatax-sales_org = gs_datatab2-vkorg.
      ls_salesdata-distr_chan = gs_datatab2-vtweg.
      ls_salesdatax-distr_chan = gs_datatab2-vtweg.
      ls_salesdata-sal_status = gs_datatab2-vmsta.
      ls_salesdatax-sal_status = 'X'.
      ls_salesdata-valid_from = gs_datatab2-vmstd.
      ls_salesdatax-valid_from = 'X'.
      APPEND ls_salesdata TO lt_salesdata.
      APPEND ls_salesdatax TO lt_salesdatax.
      CALL FUNCTION 'BAPI_MATERIAL_SAVEREPLICA'
        EXPORTING
          noappllog                  = 'X'
          nochangedoc                = ' '
          testrun                    = ' '
          inpfldcheck                = ' '
      FLAG_CAD_CALL              = ' '
      NO_ROLLBACK_WORK           = ' '
      FLAG_ONLINE                = ' '
       IMPORTING
         return                     = ls_return
        TABLES
          headdata                   = lt_headdata
         salesdata                  = lt_salesdata
         salesdatax                 = lt_salesdatax
    (Of course I have other structures like clientdata, plantdata etc.)
    But I get the error message M3305 (The material &&&&& does not exist or is not activated)
    Edited by: Fonctionnel OSS on Oct 29, 2010 2:20 PM

  • Problem with P.O    change   using BAPI

    i want to chage only   Material , and  Quantity    on item level    , so please suggest me which fields  i have to  pass through  BAPI_PO_CHANGE .

    Hi Sandeep ,
    first u need to search in this forum , if u havent found any , then u need to start a new thread , have u seen the documentation of BAPI .
    regards
    Prabhu

  • Reena Prabhakar - Sales order creation Using BAPI

    Hi Reena,
    This is Dinesh,i also face problem in Sales order creation using BAPI if you can send me the code it would be great help to me.
    Regards,
    Dinesh

    Anyhow, here is the code that I am using currently which works perfectly well. Not sure if it will be of any help to you, since the values to the BAPI come from the Webdynpro application. I have values stored in my "Test data directory" which I use for testing from the backend.
    FUNCTION ztest.
    Call the BAPI to create Sales Order
      CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
        EXPORTING
          order_header_in     = l_order_header
        IMPORTING
          salesdocument       = l_salesdocument
        TABLES
          return              = it_return
          order_items_in      = it_order_items
          order_partners      = it_order_partners
          order_schedules_in  = it_order_schdl
          order_conditions_in = it_order_conditions
          order_text          = it_order_text.
      READ TABLE it_return WITH KEY type = 'E'.
      IF sy-subrc = 0.
    *-- error occured
        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      ELSE.
    *-- no error
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
    ENDFUNCTION.

  • Flat File with multiple record types (OWB 10.2.0.2)

    Hi!
    I`m using OWB 10.2.0.2 and I`m trying to load a flat file with multiple record types, using SQL LOADER.
    In the flat file editor in the Record tab, I`ve set the type values and the corresponding record names like this:
    Type Value Record Name
    ======== ===========
    T TRAILER
    0 DETAILS
    1 DETAILS
    2 DETAILS
    When using this flat file in a mapping to load the data in a staging table, the generated code looks like this:
    INTO TABLE TRAILER
    TRUNCATE
    REENABLE DISABLED_CONSTRAINTS
    WHEN (1:1) = 'T'
    INTO TABLE DETAILS
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    WHEN (1:1) = '0,1,2'
    The above clause (WHEN (1:1) = '0,1,2') is wrong as I expect one "INTO TABLE..." clause for each record type.
    Could this be a bug or am I doing something wrong?
    Thanks a lot for your help,
    Yorgos

    We`re using two target tables, one for the trailer record and the other for the details records.
    We are facing this problem from the moment we upgraded from OWB 10.1 to OWB 10.2.0.2, so we think it must be something with the way the sql loader code is generated in the new version.
    As our data sources are mainly flat files coming from mainframes, this is a huge problem for us. We even asked an expert in DW from Oracle to help us on this, but still haven`t found a solution.
    Is there any workaround for this or should we forget sql loader and go with an external tables + custom PL/SQL code solution?
    Your help is greatly appreciated Jean-Pierre.
    Regards,
    Yorgos

  • File to RFC with multiple records using BPM Scenario Error...!!!

    Hello Guru's,
      I have done the File to RFC with multiple records using BPM scenario as per the Materiel available in the sdn.sap. This involves BAPI (BAPI_MATERIEL_AVAILABILITY). I have done exactly the same what is their in the materiel. SXI_CACHE is also giving return value " 0 ". File is getting deleted from the source directory, but no file in target directory. SXMB_MONI is also showing no error (black Flag). BPM is also error free. Checked the interfaces also.
    Can any one tell me what mistake would i have done.
    Thanks in advance.

    Hi,
    There is one similar discussion I found,
    FTP TO RFC using BPM
    Thanks
    Swarup

  • Problems with ECATT recording using SAPGUI Record

    Hello,
    I got a problem with my recording. All the prerequisites are  done. The problem is,  that when the recording is done i don't see the recording in SECATT testcase. Normally when you do a recording you see at the bottom right of the gui a red/white icon active. When i do a recording now, this red/white icon isn't  active.
    For my it's a very strange error. I hope somebody can give me a hint where i can look,
    Thanks in advance.
    Kind regards,
    Maarten.

    Maarten,
    First when you start the recording using SAPGUI, you will get the pop-up whether to record this new session. You need to select Yes before continuing your recording.
    Secondly check the scripting values in the target system whether it is enabled or disabled using the RZ11 transaction. Mostly SAP Basis team have authorization to change these values for us.
    Here is the parameter we need to check in RZ11 - sapgui/user_scripting. It should be TRUE.
    Let me know if this helps.

  • Sales order creation with reference to quote using BAPI

    Hi All,
    I am trying to create a sales order with reference to quote using BAPI BAPI_SALESORDER_CREATEFROMDAT2.
    I am passing the Quote number and preceding doc.category (B) at the header level and
    at item level I am passing the quote number and the line item number in the quote for REF_DOC and REF_DOC_IT.
    The order is created but there seems to be some issue with the document flow.
    I do not see the Reference Doc number at the header level from the Sales order document flow whereas I can see the Reference Doc for each line item.
    In VBFA I can see the Ref.Doc number at the header level along with the Ref.Doc at the line item level.
    Why do you think it is not showing at the header level from Sales Document Document Flow?
    Is there any bug in the standard BAPI or is there any OSS note?
    Any answer would be greatly appreciated.
    Thanks
    Sandeep

    hi,
    Are you giving different quotation numbers in the different line items, if that is the case you will not get that in the header document flow, as it cann't point to all the quotations.
    Thanks,
    Mahesh.

  • Mass sales order creation using BAPI

    Dear All,
    Can anyone help in  mass sales order creation using Bapi BAPI_SALESORDER_CREATEFROMDAT2.
    For example if i want to create 3 sales order with three item per order . i am populating
    HEADER = 3 Records
    Item   = 9 records
    schedule = 9 records
    partner  = 1 record.
    Then after populating the records I am calling Bapi BAPI_SALESORDER_CREATEFROMDAT2
    to create order. It should have created three order but unfortunately it creates
    only one sales order. I debugged and found that records are correct both in header,
    item, scheudle and partners.
    Could you please guide me what I am missing for creation of mass orders.
    I appreciate your time and many thanks in advance.
    cheers
    chandra

    Hi Chandra,
    Do like this.
    Loop at Header table into wa_header.
    *-- Move BAPI Header data
    Loop at item table into wa_item where condition.
    *--  in this move all Item and Schedule line item  to the BAPI.
      At end of item .
    Use the below function modules.
    BAPI_SALESORDER_CREATEFROMDAT2
    BAPI_TRANSACTION_COMMIT.
    Endloop.
    Endloop.
    Regards,
    Balavardhan.K

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Material Master Creation Using BAPI

    Hi,
    I m using BAPI_MATERIAL_SAVEDATA for Material creation using BAPI.
    Now the problem is , i have created a Screen exit long back in Purchasing view.. the corresponding Z field is created in table MARC..
    How can i pass value to this Z field using BAPI.
    i tried with BAPI_MARC.. my Z field is not coming in that structure.
    Can anyone guide me how can this be achieved.
    Thanks in Advance
    Aravindh Mani

    Hi,
    The Function Module BAPI_MATERIAL_SAVEDATA has the options to pass the Z fields. There exits a structure parameters
    EXTENSIONIN
    EXTENSIONINX
    in BPAI. In EXTENSIONIN pass the data and value part you can pass  in EXTENSIONINX. So this will update the Z fileds in material
    master .

  • Select max date from a table with multiple records

    I need help writing an SQL to select max date from a table with multiple records.
    Here's the scenario. There are multiple SA_IDs repeated with various EFFDT (dates). I want to retrieve the most recent effective date so that the SA_ID is unique. Looks simple, but I can't figure this out. Please help.
    SA_ID CHAR_TYPE_CD EFFDT CHAR_VAL
    0000651005 BASE 15-AUG-07 YES
    0000651005 BASE 13-NOV-09 NO
    0010973671 BASE 20-MAR-08 YES
    0010973671 BASE 18-JUN-10 NO

    Hi,
    Welcome to the forum!
    Whenever you have a question, post a little sample data in a form that people can use to re-create the problem and test their ideas.
    For example:
    CREATE TABLE     table_x
    (     sa_id          NUMBER (10)
    ,     char_type     VARCHAR2 (10)
    ,     effdt          DATE
    ,     char_val     VARCHAR2 (10)
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('15-AUG-2007', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('13-NOV-2009', 'DD-MON-YYYY'), 'NO');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('20-MAR-2008', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('18-JUN-2010', 'DD-MON-YYYY'), 'NO');
    COMMIT;Also, post the results that you want from that data. I'm not certain, but I think you want these results:
    `    SA_ID LAST_EFFD
        651005 13-NOV-09
      10973671 18-JUN-10That is, the latest effdt for each distinct sa_id.
    Here's how to get those results:
    SELECT    sa_id
    ,         MAX (effdt)    AS last_effdt
    FROM      table_x
    GROUP BY  sa_id
    ;

  • Problem with multiple Toplink/JPA apps in same server

    Anyone have experence of running serveral Toplink/ EJB-3 Web apps in the same server (OC4J, alas)?
    We seem to get a problem with the second app failing to initialise toplink, with an entity not found message. Each app runs OK on it's own.

    Yes, they access the same datasource and most of the tables overlap.
    We're thinking it might help to have common entity classes and put them in a shared library, but I don't know if this is relevant (setting up shared libraries complicates testing and tends to snowball, I reckon we need about 15 jars all told).
    I''ve had some funnies on OC4J before which I think may be to do with it's use of ClassLoaders, for example I initially put persistence.xml in the libary jar with the data model, but for some reason I get the entity not found error that way. It only seems to work if it's in the classes folder.
    For the moment we're getting arround the problem with multiple OC4J instances in the server.

Maybe you are looking for

  • How to customize Terminal Tabs

    I am a long time iTerm user. I was able to configure the Window Title and tab with the following in my .bashrc file: PS1=$'\[\033]2;\u::$PWD\[\007\]\[\033]1;$(basename $(dirname $PWD))/\W\[\007\]$ ' I am have run into several issues with the latest i

  • Ipod 5 can't upload or play some of my video podcasts

    I have been watching Photoshop TV and loving it. Now i want to watch TheInDesigner video podcasts but I can't get them to upload to my ipod. I can listen to audio podcasts of this show but all the video versions are a no go. I have them loaded up on

  • No menu option for Review Acrobat 9

    I haev Acrobat Pro 9 on a windows XP machine.  I had previously created PDF from MS Word documents and sent them for shared review with no problem. Today, I do not have the option int he file menu to initiate this process anymore. Does anyone know wh

  • USB Printing - client-error-request-value-too-long

    A little while back, my iSight suddenly stopped working and so I did a full format and reinstall to 'fix' the problem. The problem wasn't 'fixed' through this action. Instead, I had to disconnect power and let the computer sit there for a bit and thi

  • How can I temporarily disable web filtering software, firewalls,popupblockers,etc.so I can pay my verizonwireless bill online?

    The problems you are experiencing are most likely the result of Web filtering software, firewalls, popup blockers or ad blocking software. You may resolve this issue by visiting your browser's website and searching for instructions on temporarily dis