JDBC Mapping

Hi,
I want to create a JDBC-XI-BAPI szenario (Async/Sync-Bridge). After receiving the data from the JDBC sender I have a problem with the message mapping (Mapping between the received data (xml) to bapi).
If I test the received data in the IR>Message-Mapping>test I get an error but I don't know how to solve the problem.
has anybody an idea how the correct mapping or adapter configuration (adapter sender) looks like?
Best Regards

Hi,
I have always the same problem like yesterday.
The problem is that the received runtime xml message misses the <b>namespace</b> and the <b>messagetype</b> ut I have created a datatype, messagetype. Mapping the messagetype to the bapi and all looks fine. If I test the runtime data I get an error:
RuntimeException in Message-Mapping transformation: Cannot produce target element /p3:BAPI_MATERIAL_EXISTENCECHECK. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
Regards

Similar Messages

  • Idoc - to - JDBC mapping..

    Can any one help me on  step-by-step   Idoc to JDBC  mapping ..

    Check this link for jdbc receiver adapter. and follow the instructions. If you need more assistance let us know with your requirement
    For configuring JDBC adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    For creating jdbc structure on the inbound side
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • Performance of jdbc mapping lookup vs BPM Process

    Hello fellow consultants,
    I have project on AEX upcoming and now I`m deciding the strategy.
    I have to implement few processes for which I will use BPM. But inside these processes I have few jdbc calls for logging to the oracle db.
    Regarding the performance - what is better approach?
    make these jdbc calls as a jdbc lookup in mapping
    perform it as a regular part of bpm process
    Thank you for suggestions
    VB

    Hi VB,
    I have a different opinion than Fouad although I can understand his point, but for me, lookUps are rarely good and well implemented and it should be used in a very specific, required and critical scenarios. This is because this lookUp connection is not manageable, out of monitoring stuff and I don't think in the mapping step is the correct moment to open a JDBC connection with partner all of sudden.
    My Idea is more for the point number 2, where you have everything well explicit step by step, opening the connection being manageable, with monitoring even though it may bring one or two steps more to your BPM but I'm more concerned at this moment to follow the best practice of integration and thinking in Performance I don't think there will be a gain that would justify the JDBC Lookup.
    Regards,
    Diego 

  • IDOC to JDBC - mapping test versus actual run

    Hi
    When I test the message mapping for the idoc-to-jdbc sender scneario, where one sales order idoc has multiple line items in segment E1EDP01, the statement => access structures repeat properly for 2 line items. Here I am giving the idoc xml file (data file) in the payload in the test tab of message mapping)
    However in the communication channel log (with sql statement log = true), when I try to process an actual idoc from ECC, in the sql log of the processed message, I can see an insert statement only for the first line item of the sales order.
    Please can somebody guide me as to what must be the problem?
    Statement occ is 1.
    tablename occ is 1.
    Access structure occ is 0...unbounded.
    The segment E1EDP01 is currently mapped to acess node.
    The sales order number is repeated over the 2 line items using below mapping -:
    E1EDP01 (with context as root) => "useasmany" => split by value => Item no.
    Please advise.

    Hello Gary,
    Make the statement 0..unbounded or 1..unbounded then make the access 0..1. One statement is needed per action
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm
    If the statements are so complex, you  can also opt to use SQL_QUERY instead.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm
    Hope this helps,
    Mark

  • XI Flat File to JDBC Mapping Error

    Hi,
    I have been trying to insert some records from a flat file into a sybase database using the FILE adapter (with file content conversion) as a sender and the JDBC adapter as a reciever, but I keep getting mapping errors like:
    RuntimeException during appliction Java mapping com/sap/xi/tf/_mm_hh_file__hh_sybase_nombres_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:mt_hh_sybase_nombres/STATEMENTNAME. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start
    I have read through some blogs and I still can't figure out what is wrong.
    Flat pipe separated file:
    Hans|Robert|Hahn|Gallegos
    Karina|Maria|Cordoba|Gutierrez
    Datatype for this file looks like this:
       Record                         1
          Row                          1...Unbounded
             Nombre                  1
             SegundoNombre     1
             ApPaterno              1
             ApMaterno             1
    Because the FILE adapter uses Content conversion, the file translates to:
      <?xml version="1.0" encoding="utf-8" ?>
      <ns:hh_test xmlns:ns="http://me.com">
      <Record>
         <Row>
          <Nombre>Hans</Nombre>
            <SegundoNombre>Robert</SegundoNombre>
            <ApPaterno>Hahn</ApPaterno>
            <ApMaterno>Gallegos</ApMaterno>
         </Row>
         <Row>
           <Nombre>Karina</Nombre>
           <SegundoNombre>Maria</SegundoNombre>
           <ApPaterno>Cordoba</ApPaterno>
           <ApMaterno>Gutierrez</ApMaterno>
         </Row>
        </Record>
      </ns:hh_test>
    My database table looks like this:
    Nombres
    ApPaterno
    ApMaterno
    Datatype for this table looks like this:
    STATEMENTNAME    1..Unbounded
      nombres                  1
        action                    optional
        TABLE                  1
        access                  1
          Nombres             1
          ApPaterno           1
          ApMaterno           1
    MAPPINGS as follows:
    Record ------> no mapping
    Row ------> STATEMENTNAME
    Constant ------> action
    Constant ------> TABLE
    Nombre + SegundoNombre ------> Nombres
    ApPaterno ----> ApPaterno
    ApMaterno ----> ApMaterno
    How do I do the mapping ? I've been through a lot of blogs and threads but I haven't found an example like this, a flat pipe separeted multiline file with records to be inserted in a database.
    Message was edited by:
            Hans Hahn

    Hans,
    The error shows you have an error in mapping. Also you have mapped constant for ACTION and TABLE. Here you have to hardcode the value INSERT or UPDATE etc for ACTION and the name of the table for TABLE.
    Check this weblog where he has mentioned everything what you are looking for:
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Also once when you are done with mapping try to execute it in the test tab of mapping editor.
    ---Satish

  • Sender JDBC Mapping error

    Can some one help me with the following error please?
    I just want to read store column from Oracle database table SA_BO_SALES_TEST and create a Flat File. I have JDBC-XI-FILE scenario. I use the same Data Type for Sender(JDBC) and receiver(FILE) Message Type.
    the data type is
       DT_STSSales_SA_BO_SALES
          resultset
            row
              STORE
    The message type is
    MT_STSSales_SA_BO_SALES         
       resultset
            row
              STORE
    The message mapping is between the same message type(MT_STSSales_SA_BO_SALES) for source interface and destination interface.
    The sender JDBC Adapter has
    Query SQL Statement -
    SELECT STORE FROM SA_BO_SALES_TEST WHERE PROCESS_DATE IS NULL
    Update SQL Statement -
    UPDATE SA_BO_SALES_TEST SET PROCESS_DATE='01-JAN-2006' WHERE PROCESS_DATE IS NULL
    Document Name -
      resultset
    When i execute this scenario, The payload from any pipeline steps is
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <STORE>1021</STORE>
      </row>
    - <row>
      <STORE>1021</STORE>
      </row>
    - <row>
      <STORE>1021</STORE>
      </row>
      </resultset>
    and it updates the Oracle table with PROCESS_DATE='01-JAN-2006' . But
    One of the pipe line step "Request Message Mapping" is failed with the error.
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_STSSales_IDOC_BAPI_POSTR_CREATE~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_STSSales_IDOC_BAPI_POSTR_CREATE~ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hi Prasad,
    <i>converted into the following XML wihtout any errors</i>
    <i><?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_STSSales_SA_BO_SALES xmlns:ns0="http://zalecorp.com/sts_posdm_sales_10"><resultset><row><STORE>1021</STORE></row><row><STORE>1021</STORE></row><row><STORE>1021</STORE></row></resultset></ns0:MT_STSSales_SA_BO_SALES></i>
    If you have given the name for your Datatype as "<ns0:MT_STSSales_SA_BO_SALES xmlns:ns0="http://zalecorp.com/sts_posdm_sales_10">", then the RESULTSET tag is not to be used.
    You will have to enter this Value <b>MT_STSSales_SA_BO_SALES</b>  in the SENDER JDBC ADAPTER > DOCUMENT NAME and <b>http://zalecorp.com/sts_posdm_sales_10</b> in SENDER JDBC ADAPTER> DOCUMENT NAMESPACE and then <b>Remove the Result Set tag.</b>
    just take a look at the Document Name part of the JDBC adapter in this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Regards,
    Bhavesh

  • IDOC-XI-JDBC: mapping error

    Hi sap gurus...
            I had a problem in IDOC mapping to JDBC.
    If any body have mapping template or any blog.. related to MATMAS.. please help me..
    I don't know how to map the idoc structure to JDBC structure..
    points will be given immediately..
    Kumar

    Hi sheetal
    My IDOC structure is----
    MY JDBC Struc is
    as................................................................MT_MATMAS_MSSQL(Msg type name)
    This struc...is common----
    STATEMENTNAME(0..1)
    ............................................................................TEST (1..1)
    .................................................................................ACTION ..REQUIRED
    .................................................................................TABLE...(MATMAS TABLE IS CREATED IN MSSQL)
    .................................................................................ACCESS(1..1)
    ......................................................................................BEGIN ...REQUIRED
    ......................................................................................EDI_DC40..1...1
    ......................................................................................E1MARAM...1...9999
    ......................................................................................E1UPSLINK..1...1
    THIS IS MY JDBC STRUCTURE..
    I sent the screen shorts to your company email id..please check it and help me..
    i am able to get the idoc from sap r3 to Xi ,,, now i want to send that idoc to database..
    help me please.
    Kumar..
    [email protected]

  • Idoc to jdbc mapping duplicate source node to target structure

    Dear all,
    I am working on PI 7.1
    My sceniro
    IDOC to JDBC  [sap to mssql ]  where the target is a table structure shown below: I execute a stored procedure to insert the below message type into sql table.
    <ns0:MT_SP_LFBK xmlns:ns0="http://test.com">
    - <Statement_Name>
    - <storedProcedureName action="EXECUTE">
      <table>spr_test</table>
      <BANKS type="Char">BOA</BANKS>
      <BANKL type="char">122207</BANKL>
      <BANKN type="char">4555--0</BANKN>
      <LIFNR type="char">1100000218</LIFNR>
      <KOINH type="char">varchar</KOINH>
      <BKONT type="char">01</BKONT>
      <BANKA type="varchar">S.A.</BANKA>
      </storedProcedureName>
      </Statement_Name>
      </ns0:MT_SP_LFBK>
    The mapping is between source CREMAS02 and the above target structure. Everything works fine.
    The problem is when the  vendor has more than one bank account number the IDOC CREMAS02 replicates the below segment E1LFBKM for each BANK account information. Since target and source are mapped one to one how can i map the second bank account information to the same target structure or genereate a new target Message type for the second bank account  information and send it to sql ?
    <E1LFBKM SEGMENT="1">
      <MSGFN>005</MSGFN>
      <LIFNR>110000021</LIFNR>
      <BANKS>BOA</BANKS>
      <BANKL>122207</BANKL>
      <BANKN>4555-0</BANKN>
      <BKONT>02</BKONT>
      <BANKA>S.A.</BANKA>
      <BNKLZ>3000000</BNKLZ>
      </E1LFBKM>
    Thank you ,
    Teresa

    Hi Teresa,
    which segment have you mapped with <storedProcedureName action="EXECUTE"> ?
    Because according to me , if you send <E1LFBKM> to <storedProcedureName action="EXECUTE">
    , you will be able to use your stored procedure several times, in fact each times that you have a <E1LFBKM>.
    Reminds: inside <Statement_Name> you can do several SQL actions like execute one or several stored procedures (could be different).
    Of course, after that your table should accept to have several bank account for a same customer.
    So to have something like that:
    <Statement_Name>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    </Statement_Name>
    regards
    mickael

  • Issue for JDBC to JDBC mapping ?

    Hi Experts,
    I have the following mapping scenario at hand, please suggest the best way to acheive it.
    I have to map from Oracle table of System A to Oracle table in System B.
    Sender table A has a multiple sets of header and detail records, denoted by H or  D.
    For one header there may be many detail records.
    Transfer number is unique to each header.
    These are arranged in no particular order.
    The requirement is to group them into ordered sets of same tranfer number, header followed by all the details. How can this be acheived?
    SOURCE
    Record Type     TNo     f1     f2     f3
    H          100     AA     *     *
    D          100     *     BB     cc
    D          100     *     dd     ee
    H          200     FF     *     *
    D          200     *     GG     HH
    D          100          II     JJ
    H          300     KK     *     *
    D          300     *     LL     MM
    D          300     *     NN     OO
    D          200     *     RR     SS
    D          300     *     PP     QQ     
    DESTINATION
    Record Type     TNo     f1     f2     f3
    H          100     AA     *     *
    D          100     *     BB     cc
    D          100     *     dd     ee
    D          100          II     JJ
    H          200     FF     *     *
    D          200     *     GG     HH
    D          200     *     RR     SS
    H          300     KK     *     *
    D          300     *     LL     MM
    D          300     *     NN     OO
    D          300     *     PP     QQ

    IN Oracle System A add a column 'flag' to the table invoice (assume)
    In Msg Mapping have normal message mapping such that
    Source msg can have recordtype,tno,f1,f2,f3, flag
    Target msg  includes statementname,tablename,action='Insert' and access have recordtype,tno,f1,f2,f3,
    in Sender JDBC CC
    Select Query
    select recordtype,tno,f1,f2,f3 from invoice where flag=0;
    Update Query
    update invoice set flag=1 where flag=0;

  • IDOC-JDBC Mapping

    Hi,
    I am mapping idoc to jdbc structure. My problem is i am not getting the data for some fields in the idoc structure and there is a custom field under a custom segment and i am also not getting the data for this field.
    I have seen the incoming XML payload and there is no data for these fields.
    can anybody suggest me how can i solve this issue. 
    Thanks,
    sneha

    Hi,
    1. at first check TCODE : WE02 in R3
    and check if your custom segment is there
    2. if so then reload metadata (IDX2 from XI)
    3. also check if the IDOC signature that you've uploaded to XI
    (via repository) has those custom fields
    4. you can also delete the cache to be sure
    XI has the valid data in it
    Regards,
    michal

  • RFC - XI - JDBC(mapping only the last row of a record)

    Hello all,
    in a mapping response from an oracle base after a RFC call with a select statement, i have the following response :
    <StatementSelect_response>(cardinality 0..1)
    <row1>(cardinality 0..unbounded)
    <field1>1</field1>
    <field2>2</field2>
    </row1>
    <row2>
    <field1>3</field1>
    <field2>4</field2>
    </row2>
    </statement>
    i have to map those fields in a RFC_response like :
    <RFC_response>(0..1)
    <field1>
    <field2>
    </rfc _response>
    Problem : I only need to send back to the rfc_response the last records of my StatementSelect_response in order to have the following message :
    <RFC_response>
    <field1>3
    <field2>4
    </rfc _response>
    How can i select only the last row of my records plz ?
    Thanks by advance

    VJ wrote:>
    > Hi,
    >
    > public void LastRow(String[] a,ResultList result,Container container){
    >
    > int len = a.length();
    > Result.addValue(a\[len-1\]);
    >
    > }
    VJ,
    Please don't confuse him. If you want to update the thread, let me leave it aside.Coz it shouldn't cause him trouble. Can u check a.length() is correct? it has to be a.length, isn't it?
    We all here to help others, not under any motivation of compete..
    Sorry, if I hurt you..
    raj.

  • JDBC mapping to IDOC issue

    We are retrieving information from our SQL server and trying to map it to the picking IDOC SDPIID01. We are having a problem in trying to get the correct mapping to occur. The result list is as follows:
    <mt_SQLPickConfirmation>
      <row>
        <Processed />
        <Trans_ID />
        <Trans_IDOC />
        <VBELN_VL />
        <VBELN />
        <TANUM />
        <KODAT />
        <KOMUE />
        <WADAT_IST />
        <POSNR_VL />
        <POSNN />
        <PIKMG />
        <NDIFM />
        <CHARG />
        <MATNR />
        <ORPOS />
      </row>
    </mt_SQLPickConfirmation>
    and the IDOC is as follows:
    <SDPIID01>
      <IDOC BEGIN="">
        <E1VPDLH SEGMENT="">
          <VBELN_VL />
          <VBELN />
          <TANUM />
          <KODAT />
          <KOMUE />
          <WADAT_IST />
          <E1VPDLI SEGMENT="">
            <VBELN_VL />
            <POSNR_VL />
            <VBELN />
            <POSNN />
            <PIKMG />
            <NDIFM />
            <CHARG />
            <MATNR />
            <ORPOS />
          </E1VPDLI>
        </E1VPDLH>
      </IDOC>
    </SDPIID01>
    Now some of the information goes into the segment E1VPDLH and some of the information goes into the segment E1VPDLI. The problem is trying to create a new IDOC everytime the field TRANS_ID changes.
    We have tried to manipulate the context but still have problems with the output. The data can contain many rows with the same TRANS_ID number. Every time the TRANS_ID number changes we need a new IDOC created. All of my trys have failed. I either get one IDOC with a header segment and all the line items segments for each row or I get multiple IDOCS that do not contain the correct line item information.
    Any help is appreciated. Attached is a sample of the data.
    <?xml version="1.0" encoding="utf-8"?>
    <mt_SQLPickConfirmation>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>1</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593473</VBELN_VL>
              <VBELN>0000208489</VBELN>
              <TANUM>0000208489</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000001</POSNR_VL>
              <POSNN>900002</POSNN>
              <PIKMG>240</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>DN07212</MATNR>
              <ORPOS>000001</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>2</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593503</VBELN_VL>
              <VBELN>0000208530</VBELN>
              <TANUM>0000208530</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000001</POSNR_VL>
              <POSNN>900002</POSNN>
              <PIKMG>30</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>DM19200</MATNR>
              <ORPOS>000001</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>3573932</TRANS_ID>
              <TRANS_IDOC>2</TRANS_IDOC>
              <VBELN_VL>0080593503</VBELN_VL>
              <VBELN>0000208530</VBELN>
              <TANUM>0000208530</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000002</POSNR_VL>
              <POSNN>900003</POSNN>
              <PIKMG>630</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>DR19460</MATNR>
              <ORPOS>000002</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>2</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593503</VBELN_VL>
              <VBELN>0000208530</VBELN>
              <TANUM>0000208530</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000003</POSNR_VL>
              <POSNN>900004</POSNN>
              <PIKMG>900</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>DN07216</MATNR>
              <ORPOS>000003</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>3</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593504</VBELN_VL>
              <VBELN>0000208531</VBELN>
              <TANUM>0000208531</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000001</POSNR_VL>
              <POSNN>900002</POSNN>
              <PIKMG>450</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>D903116</MATNR>
              <ORPOS>000001</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>3</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593504</VBELN_VL>
              <VBELN>0000208531</VBELN>
              <TANUM>0000208531</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000002</POSNR_VL>
              <POSNN>900003</POSNN>
              <PIKMG>150</PIKMG>
              <NDIFM>-100</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>DY17820</MATNR>
              <ORPOS>000002</ORPOS>
         </row>
         <row>
              <PROCESSED>N</PROCESSED>
              <TRANS_ID>3</TRANS_ID>
              <TRANS_IDOC>SDPIID01</TRANS_IDOC>
              <VBELN_VL>0080593504</VBELN_VL>
              <VBELN>0000208531</VBELN>
              <TANUM>0000208531</TANUM>
              <KODAT>20051219</KODAT>
              <KOMUE>X</KOMUE>
              <WADAT_IST>20051219</WADAT_IST>
              <POSNR_VL>000003</POSNR_VL>
              <POSNN>900004</POSNN>
              <PIKMG>400</PIKMG>
              <NDIFM>0</NDIFM>
              <CHARG>12DE05W1</CHARG>
              <MATNR>D109050</MATNR>
              <ORPOS>000003</ORPOS>
         </row>
    </mt_SQLPickConfirmation>
    This should contain three IDOCS That look like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <SDPIID01>
      <IDOC BEGIN="">
        <E1VPDLH SEGMENT="">
          <VBELN_VL>0080593473</VBELN_VL>
          <VBELN>0000208489</VBELN>
          <TANUM>0000208489</TANUM>
          <KODAT>20051219</KODAT>
          <KOMUE>X</KOMUE>
          <WADAT_IST>20051219</WADAT_IST>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593473</VBELN_VL>
            <POSNR_VL>000001</POSNR_VL>
            <VBELN>0000208489</VBELN>
            <POSNN>900002</POSNN>
            <PIKMG>240</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>DN07212</MATNR>
            <ORPOS>000001</ORPOS>
          </E1VPDLI>
        </E1VPDLH>
      </IDOC>
      <IDOC BEGIN="">
        <E1VPDLH SEGMENT="">
          <VBELN_VL>0080593503</VBELN_VL>
          <VBELN>0000208489</VBELN>
          <TANUM>0000208489</TANUM>
          <KODAT>20051219</KODAT>
          <KOMUE>X</KOMUE>
          <WADAT_IST>20051219</WADAT_IST>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593503</VBELN_VL>
            <POSNR_VL>000001</POSNR_VL>
            <VBELN>0000208530</VBELN>
            <POSNN>900002</POSNN>
            <PIKMG>30</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>DM19200</MATNR>
            <ORPOS>000001</ORPOS>
          </E1VPDLI>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593503</VBELN_VL>
            <POSNR_VL>000002</POSNR_VL>
            <VBELN>0000208530</VBELN>
            <POSNN>900003</POSNN>
            <PIKMG>630</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>DR19460</MATNR>
            <ORPOS>000002</ORPOS>
          </E1VPDLI>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593503</VBELN_VL>
            <POSNR_VL>000003</POSNR_VL>
            <VBELN>0000208530</VBELN>
            <POSNN>900004</POSNN>
            <PIKMG>900</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>DN07216</MATNR>
            <ORPOS>000003</ORPOS>
          </E1VPDLI>
        </E1VPDLH>
      </IDOC>
      <IDOC BEGIN="">
        <E1VPDLH SEGMENT="">
          <VBELN_VL>0080593504</VBELN_VL>
          <VBELN>0000208489</VBELN>
          <TANUM>0000208489</TANUM>
          <KODAT>20051219</KODAT>
          <KOMUE>X</KOMUE>
          <WADAT_IST>20051219</WADAT_IST>
          <E1VPDLI SEGMENT="">
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593504</VBELN_VL>
            <POSNR_VL>000001</POSNR_VL>
            <VBELN>0000208531</VBELN>
            <POSNN>900002</POSNN>
            <PIKMG>450</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>D903116</MATNR>
            <ORPOS>000001</ORPOS>
          </E1VPDLI>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593504</VBELN_VL>
            <POSNR_VL>000002</POSNR_VL>
            <VBELN>0000208531</VBELN>
            <POSNN>900003</POSNN>
            <PIKMG>150</PIKMG>
            <NDIFM>-100</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>DY17820</MATNR>
            <ORPOS>000002</ORPOS>
          </E1VPDLI>
          <E1VPDLI SEGMENT="">
            <VBELN_VL>0080593504</VBELN_VL>
            <POSNR_VL>000003</POSNR_VL>
            <VBELN>0000208531</VBELN>
            <POSNN>900004</POSNN>
            <PIKMG>400</PIKMG>
            <NDIFM>0</NDIFM>
            <CHARG>12DE05W1</CHARG>
            <MATNR>D109050</MATNR>
            <ORPOS>000003</ORPOS>
          </E1VPDLI>
        </E1VPDLH>
      </IDOC>
    </SDPIID01>
    Any ideas how to achieve this?
    Thanks,
    Jim

    Hi Stefan,
      We got similar scenario as you gave mapping solution above. But this time its BAPI. For IDoc, I exported IDoc signature, changed max occurs to unbounded and in message mapping imported that IDoc as XSD, with which we are able to generate multiple IDoc's, when ever there is change in VBELN_VL in source.
    Here in this scenario whenever there is change in TRANS_ID we have to make new BAPI call and get the response back.
    How do we acheive the same? Can we do this by message mapping? or Do we need to use BPM?? Can I change the occurence here same as we did for IDoc?
    Here are the source and target(Expecting like this):
    <?xml version="1.0" encoding="utf-8"?>
    <b><mt_PhysCountEnt></b>
       <b><row></b>
          <TRANS_ID><b>1847204</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT ('20060103','2005','000',<b>'1000006021'</b>) ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>004</b></ITEM>
          <MATERIAL>D117030</MATERIAL>
          <BATCH>10OC05W1</BATCH>
          <ENTRY_QNT>900</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT/>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
       <b></row></b>
       <b><row></b>     
          <TRANS_ID><b>1847204</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT('20060103','2005','000','<b>1000006021</b>') ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>003</b></ITEM>
          <MATERIAL>D117020</MATERIAL>
          <BATCH>31OC05W1</BATCH>
          <ENTRY_QNT>600</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT/>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
       <b></row></b>
       <b><row></b>
          <TRANS_ID><b>1847204</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT('20060103','2005','000','<b>1000006021</b>') ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>002</b></ITEM>
          <MATERIAL>D117020</MATERIAL>
          <BATCH>24OC05W1</BATCH>
          <ENTRY_QNT>0</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT>X</ZERO_COUNT>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
       <b></row></b>
       <b><row></b>
          <TRANS_ID><b>1847204</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT('20060103','2005','000','<b>1000006021</b>') ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>001</b></ITEM>
          <MATERIAL>D117020</MATERIAL>
          <BATCH>10OC05W1</BATCH>
          <ENTRY_QNT>175</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT/>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
       <b></row></b>
       <b><row></b>     
          <TRANS_ID><b>1847205</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT('20060103','2005','000','<b>1000006023</b>') ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>002</b></ITEM>
          <MATERIAL>D999475</MATERIAL>
          <BATCH>07NO05W1</BATCH>
          <ENTRY_QNT>120</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT/>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
       <b></row></b>
       <b><row></b>
          <TRANS_ID><b>1847205</b></TRANS_ID>
          <PROCESSED>n</PROCESSED>
          <TRANS_RFC>ZAPI_MATPHYSINV_COUNT('20060103','2005','000','<b>1000006023</b>') ITEMS, RETURN</TRANS_RFC>
          <ITEM><b>001</b></ITEM>
          <MATERIAL>D509D03</MATERIAL>
          <BATCH>07NO05W1</BATCH>
          <ENTRY_QNT>295</ENTRY_QNT>
          <ENTRY_UOM>EA</ENTRY_UOM>
          <ENTRY_UOM_ISO/>
          <SALES_VAL/>
          <ZERO_COUNT/>
          <MATERIAL_EXTERNAL/>
          <MATERIAL_GUID/>
          <MATERIAL_VERSION/>
          <b></row></b>
    <b></mt_PhysCountEnt></b>
    TARGET:
    <?xml version="1.0" encoding="UTF-8"?>
    <b><ns0:ZAPI_MATPHYSINV_COU</b>NT xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <COUNT_DATE>20060103</COUNT_DATE>
       <FISCALYEAR>2005</FISCALYEAR>
       <PERCENTAGE_VARIANCE>000</PERCENTAGE_VARIANCE>
       <PHYSINVENTORY><b>1000006021</b></PHYSINVENTORY>
       <ITEMS>
          <item>
             <ITEM><b>004</b></ITEM>
             <MATERIAL>D117030</MATERIAL>
             <BATCH>10OC05W1</BATCH>
             <ENTRY_QNT>900</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT/>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
          <item>
             <ITEM><b>003</b></ITEM>
             <MATERIAL>D117020</MATERIAL>
             <BATCH>31OC05W1</BATCH>
             <ENTRY_QNT>600</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT/>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
          <item>
             <ITEM><b>002</b></ITEM>
             <MATERIAL>D117020</MATERIAL>
             <BATCH>24OC05W1</BATCH>
             <ENTRY_QNT>0</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT>X</ZERO_COUNT>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
          <item>
             <ITEM><b>001</b></ITEM>
             <MATERIAL>D117020</MATERIAL>
             <BATCH>10OC05W1</BATCH>
             <ENTRY_QNT>175</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT/>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
       </ITEMS>
       <RETURN/>
    <b></ns0:ZAPI_MATPHYSINV_COUNT></b>
    <b><ns0:ZAPI_MATPHYSINV_COUNT</b> xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <COUNT_DATE>20060103</COUNT_DATE>
       <FISCALYEAR>2005</FISCALYEAR>
       <PERCENTAGE_VARIANCE>000</PERCENTAGE_VARIANCE>
       <PHYSINVENTORY><b>1000006023</b></PHYSINVENTORY>
       <ITEMS>
          <item>
             <ITEM><b>002</b></ITEM>
             <MATERIAL>D999475</MATERIAL>
             <BATCH>07NO05W1</BATCH>
             <ENTRY_QNT>120</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT/>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
          <item>
             <ITEM><b>001</b></ITEM>
             <MATERIAL>D509D03</MATERIAL>
             <BATCH>07NO05W1</BATCH>
             <ENTRY_QNT>295</ENTRY_QNT>
             <ENTRY_UOM>EA</ENTRY_UOM>
             <ENTRY_UOM_ISO/>
             <SALES_VAL/>
             <ZERO_COUNT/>
             <MATERIAL_EXTERNAL/>
             <MATERIAL_GUID/>
             <MATERIAL_VERSION/>
          </item>
       </ITEMS>
       <RETURN/>
    <b></ns0:ZAPI_MATPHYSINV_COUNT></b>
    Thank You
    Indrasena

  • SAP Business Connector JDBC Mapping

    Dear all,
    I am using SAP BC to connect and query a MS SQL Database. I have a SAP Function Module called in SAP ABAP with the query in importing parameters and would expect the result in the given tables parameter.
    Mapping the importing parameter to the query was easy but the query´s result is from type Object. Can please anybody explain to me how I can map the result to the Functions Module tables parameter.
    Best regards for help and tips.
    Roman

    Are you using pub.db.query ? This returns according to documentation:
    results com.wm.util.Table
    An instance of com.wm.util.Table that contains the results of the query
    So you should have no problem to pass that result to a table parameter.
    If you have problems with the usage of the SQL services, you can let BC generate an example service (use the function in the browser UI).
    CSY

  • JDBC to Idoc mapping - create multiple Idocs from 1 JDBC input

    I am importing data using JDBC and I want to put the data in an IDoc on a SAP system.  my data is about 100,000 rows, but my Idoc (ZIDOC) is defined as 1-35,000 for the segments.  I have followed Ossnote 814393, and also set up my Interface Mapping to use my JDBC source and the Idoc as the target.  In my Message Mapping, i use the source as my JDBC Message Type, and the target is my External Definition Idoc (changed to be 1 to unbounded). 
    My incoming JDBC mapping is:
    JDBCinput     (1:1)
      -row            (0...Unbounded)
          -part        (1:1)
          -unit        (1:1)
          -type       (1:1)
    my outgoing Idoc (from external definition) is:
    ZIDOC           (1:1)
      -IDOC          (1...Unbounded)
         -Begin       (required)
         -EDI_DC40  (1:1)
         -Zsegment   (1...35,000)
            -part        (1:1)
            -unit        (1:1)
            -type       (1:1)
    I currently map JDBCinput = ZIDOC and IDOC,  row = Zsegment, and the rest of the rows match. 
    When I use this mapping, my first 35,000 rows from my JDBC input gets mapped to ZIDOC with 35,000 segments, but the remaining 65,00 rows from my JDBC input just seem to be lost, as only this one ZIDOC is created.  I would expect to see 3 Idocs created, 2 with 35,000 segments each, and the 3rd Idoc created with 30,000 segments.
    Does anyone know what I need to change to get this mapping to work and create the extra needed Idocs?  Can this be done with out using a BPM?
    Any guidance? 
    Thanks
    Jake

    HI,
    Just try out with context change and check if it works
    In this type of case, it is easy to use Java mapping so that you can generate target structures as you like.
    Hope this helps,
    Regards,
    moorthy

  • What's the format of the datasource tag in jbosscmp-jdbc.xml

    Hi,
    I made a CMP when I use Lomboz to generate the classes, and xml files, but I still don't know how to relate my CMP to datasource.
    I thought may be I should configure the jbosscmp-jdbc.xml, because when I look in this file and found:
    <defaults>
    <datasource>PLEASE_MODIFY_THIS</datasource>
    <datasource-mapping>PLEASE_MODIFY_THIS</datasource-mapping>
    <preferred-relation-mapping>PLEASE_MODIFY_THIS</preferred-relation-mapping>
    </defaults>
    But I don't know how to "modify this", What do those tags mean? what are those for? and what are the Formats?
    My database -- mySQL
    datasouce xml file -- test-ds.xml:
    <datasources>
    <local-tx-datasource>
    <jndi-name>jdbc/test</jndi-name>
    <connection-url>jdbc:mysql://devsz-ma3.cn1.belton.com.hk:3306/test?useUnicode=true&characterEncoding=UTF-8</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>touchpanel</user-name>
    <password>touchpanel</password>
    </local-tx-datasource>
    </datasources>
    I need help, can you tell me some about that, thanks
    next is my CMP entity bean:
    package ejb.product;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.EntityBean;
    import javax.ejb.EntityContext;
    import javax.ejb.RemoveException;
    * @ejb.bean name="Product"
    *     jndi-name="ProductBean"
    *     type="CMP"
    *  primkey-field="productId"
    *  schema="Product"
    *  cmp-version="2.x"
    * This is needed for JOnAS.
    * If you are not using JOnAS you can safely remove the tags below.
    * @jonas.bean ejb-name="Product"
    *     jndi-name="ProductBean"
    * @jonas.jdbc-mapping  jndi-name="jdbc/test" jdbc-table-name="FL_PRODUCT"
    *  @ejb.persistence
    *   table-name="FL_PRODUCT"
    * @ejb.finder
    *    query="SELECT OBJECT(a) FROM Product as a" 
    *    signature="java.util.Collection findAll()" 
    * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product a where a.NAME = ?1" 
    *       signature="java.util.Collection findByName(java.lang.String name)" 
    * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product a where a.DESCRIPTION = ?1" 
    *       signature="java.util.Collection findByDescription(java.lang.String desc)" 
    * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product a where a.BASE_PRICE = ?1" 
    *       signature="java.util.Collection findByBasePrice(double basePrice)" 
    * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product " 
    *       signature="java.util.Collection findAllProducts()" 
    * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product a where a.BASE_PRICE > ?1" 
    *       signature="java.util.Collection findExpensiveProduct(double maxPrice)" 
    * * @ejb.finder
    *       query="SELECT OBJECT(a) FROM Product a where a.BASE_PRICE < ?1" 
    *       signature="java.util.Collection findCheapProduct(double minPrice)" 
    * This is needed for JOnAS.
    * If you are not using JOnAS you can safely remove the tags below.
    * @jonas.finder-method-jdbc-mapping  method-name="findAll"
    *     jdbc-where-clause=""
    * @jonas.jdbc-mapping  jndi-name="jdbc/test"
    *     jdbc-table-name="FL_PRODUCT"
    public abstract class ProductBean implements EntityBean {
         protected EntityContext ectx;
          * The  ejbCreate method.
          * @ejb.create-method
         public java.lang.String ejbCreate(String productId, String name, String desc,double basePrice) throws javax.ejb.CreateException {
              // EJB 2.0 spec says return null for CMP ejbCreate methods.
              // TODO: YOU MUST INITIALIZE THE FIELDS FOR THE BEAN HERE.
              // setMyField("Something");
              System.out.println("Entering ProductBean.ejbCreate()");
              setProductId(productId);
              setName(name);
              setDescription( desc);
              setBasePrice(basePrice);
              System.out.println("Leaving ProductBean.ejbCreate()");
              return productId;
          * The container invokes this method immediately after it calls ejbCreate.
         public void ejbPostCreate(String productId, String name, String desc,double basePrice) throws javax.ejb.CreateException {
         * Returns the productId
         * @return the productId
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="PRODUCT_ID"
         *     sql-type="varchar"
         * @ejb.pk-field
         * @ejb.interface-method
         * This is needed for JOnAS.
         * If you are not using JOnAS you can safely remove the tags below.
         * @jonas.cmp-field-jdbc-mapping  field-name="productId"
         *     jdbc-field-name="PRODUCT_ID"
         public abstract java.lang.String getProductId();
         * Sets the productId
         * @param java.lang.String the new productId value
         * @ejb.interface-method
         public abstract void setProductId(java.lang.String productId);
         * Returns the name
         * @return the name
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="NAME"
         *     sql-type="varchar"
         * @ejb.interface-method
         * This is needed for JOnAS.
         * If you are not using JOnAS you can safely remove the tags below.
         * @jonas.cmp-field-jdbc-mapping  field-name="name"
         *     jdbc-field-name="NAME"
         public abstract java.lang.String getName();
         * Sets the name
         * @param java.lang.String the new name value
         * @ejb.interface-method
         public abstract void setName(java.lang.String name);
         * Returns the description
         * @return the description
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="DESCRIPTION"
         *     sql-type="varchar"
         * @ejb.interface-method
         * This is needed for JOnAS.
         * If you are not using JOnAS you can safely remove the tags below.
         * @jonas.cmp-field-jdbc-mapping  field-name="description"
         *     jdbc-field-name="DESCRIPTION"
         public abstract java.lang.String getDescription();
         * Sets the description
         * @param java.lang.String the new description value
         * @ejb.interface-method
         public abstract void setDescription(java.lang.String description);
         * Returns the basePrice
         * @return the basePrice
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="BASE_PRICE"
         *     sql-type="double"
         * @ejb.interface-method
         * This is needed for JOnAS.
         * If you are not using JOnAS you can safely remove the tags below.
         * @jonas.cmp-field-jdbc-mapping  field-name="basePrice"
         *     jdbc-field-name="BASE_PRICE"
         public abstract double getBasePrice();
         * Sets the basePrice
         * @param double the new basePrice value
         * @ejb.interface-method
         public abstract void setBasePrice(double basePrice);
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#ejbActivate()
         public void ejbActivate() throws EJBException, RemoteException {
              System.out.println("ejbActivate() called.");
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#ejbLoad()
         public void ejbLoad() throws EJBException, RemoteException {
              System.out.println("ejbLoad() called.");
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#ejbPassivate()
         public void ejbPassivate() throws EJBException, RemoteException {
              System.out.println("ejbPassivate() called.");
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#ejbRemove()
         public void ejbRemove() throws RemoveException, EJBException, RemoteException {
              System.out.println("ejbRemove() called.");
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#ejbStore()
         public void ejbStore() throws EJBException, RemoteException {
              System.out.println("ejbStore() called.");
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
         public void setEntityContext(EntityContext arg0) throws EJBException, RemoteException {
              this.ectx = arg0;
         /* (non-Javadoc)
          * @see javax.ejb.EntityBean#unsetEntityContext()
         public void unsetEntityContext() throws EJBException, RemoteException {
              this.ectx = null;
    }

    you can try this
    <defaults>
    <datasource>java:/jdbc/test</datasource>
    <datasource-mapping>MySQL</datasource-mapping>
    <create-table>false</create-table>
    <remove-table>false</remove-table>
    </defaults>
    JaimeS

Maybe you are looking for

  • Check for NULL values

    Hi, I have a table with columns a1, a2, a3, a4 and a5. The column a1 is the primary key for the table. I want to check if all the other columns except a1 have null values. How can I do that? Thanks, Machaan

  • Help with rescuing data from faulty disk

    Sorry the long wall of text, I wanted to explained everything as detailed as possible to not mess with the chronological order (TL; DR down below!) Ok, here's the thing. I have two hard drives, a ssd [sda] (for the OS [arch linux, ubuntu and win7], m

  • Calculating duration between cue point?

    I'm using Flash Pro CS3. My project is AS2 targeting FP8. I have an flv component on stage. My .flv has cue points and I have buttons underneath the component that show the title of each navigation cuepoint in a dynamic text field. I have another dyn

  • How configurate a SAP System Registry in Web Dynpro ?

    Hi everybody, When i deploy a web dynpro application, i obtain the following error: "No default system is configured in SAP System Registry" In menu Window->Preferences->SAP AS Java, i need to register SAP instance. However, i don't know how to retri

  • Exporting file in Flash CS5.5

    Hi, I created an animation segment with Flash Professional CS5.5. and am trying to export it in Quick Time format but everytime I try, one or more of the images are lost. Also, some images leave trace behind. I fiddled around with the settings by cha