Help needed on Idoc - Jdbc scenario

Hi ,
  We have a IDOC - XI - JDBC scenario.when we post a IDOC from R3 it is showing successful in we02 with status 03 and there are no errors in SM58 of R3 system but the Idoc Is not reaching XI.This interface has been working fine from many months and there are no ports or anything changed.
Please provide me with some pointers to check where the Idocs are missing.
Thanks
Raghu.

Hi vijay...
  I even checked in IDX5 but there are no Idocs found there also.
  Any other pointers.
Thanks
Raghu.

Similar Messages

  • Need help in webservice to JDBC scenario

    Hi All,
    My scenario is a synchronous webservice to JDBC scenario. The SOAP request contains two fields one is ID & the other field is Date which is an optional field. I need to perform a SELECT statement on JDBC based on ID & Date. SOAP request will always contain ID field & Date may or maynot be there in the request. If Date present then search should be based on ID & Date , if Date not present search should be based on ID only. How to achieve this with the help of standard JDBC reciever structure or is there any other way to achieve this?
    Thanks
    Navin

    You can create your target structure as shown below and check the existence of DATE field in the source(using standard function "Exists" ) and then only create the target DATE node.
    <StatementName>
              <dbTableName action=u201DSELECTu201D>
                  <table>realDbTableName</table>
                  <access>
                      <col1/>
                     <col2/>
                     <col3/>
                  </access>
                  <key1>
                     <DATE/>
                     <ID/>
                  </key1>
              </dbTableName>
       </StatementName>
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417700%29ID0591392850DB01436613452367233705End?blog=/pub/wlg/3928
    Pooja

  • Help needed in Idoc To File Scenario

    Hi Experts,
    My scenario is Idoc to File.
    Here my job is to convert the purchase order idoc into xml file.
    In this there are three conditions.
                       converting the standard PO into xml file
    (ii)                 converting the PO with serial number  into xml file
    (iii)                converting the PO using serial number with subcontracting into xml file
    so what I feel is I need to create one scenario and based on the condition that particular PO will convert into xml file.
    Conditions:
                       if no condition is specified then it is standard PO first case
    (ii)                 if field tdline ne space then it is PO with serial number second case
    (iii)                if field pstyp eq 3 then it is PO using serial number with    subcontracting third case.
    Please guide how to do this scenario.
    IR:
    1)       how many data types I need to create
    2)       how many message types I need to create
    3)       how many message interfaces I need to create
    4)       how many message mappings I need to create
    5)       how many message interfaces I need to create
    ID:
    1)       how many receiver determinations I need to create
    2)       how many interface determinations I need create
    3)       how many receiver agreements I need to create
    And where to write the conditions at message mapping level or at receiver determination level.
    Kindly provide solution to every point.
    Regards,
    Venkat.

    1) if no condition is specified then it is standard PO first case
    2) if field tdline ne space then it is PO with serial number second case
    3) if field pstyp eq 3 then it is PO using serial number with subcontracting third case.
    you have to create
    1. outbound ( IDOC)
    2. 3 Inbound (same MT)
    create 3 mapping program each for 1 condition
    create 3 interface mappings
    ID:
    1 reveri BS.
    3 Interface determinations, so 3 receiver agrement.......
    you can put the condition on the mapping or in the condition tab of the interface determinations.

  • XI idoc-jdbc  scenario in details

    Hi Experts,
    Please provide me this scenario pn detail.
    Cheers
    Aman

    Hi,
    For IDOC to JDBC scenario:
    Refer the below weblog for help:
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 --> for jdbc receiver: file -JDBC
    1) First you need to install the JDBC drivers on XI server refer the below link for installation process.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    2) You need to do the IDOC configuration at R3 as well as at Xi end:
    Refer the below configuration steps:
    ALE configuration for pushing idocs from SAP to XI
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    IDOC testing using WE19
    /people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
    Pre-requisites for Outbound IDoc from R/3 to PI:
    Configurations required in R/3:
    Maintain Logical System (SALE)
    Define RFC Destination (SM59) which points to PI system
    Maintain Port (WE21)
    Maintain partner profile. (WE20):
    Maintain Distribution Model (BD64):
    Configuration required at Xi side:
    Go to IDX2: load the DOC metadata.
    3) For updating the table you need to write the stored procedure:
    Refer the below link for stored prcedure.
    JDBC:
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    Stored Procedures-
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://www.ics.com/support/docs/dx/1.5/tut6.html
    http://java.sun.com/docs/books/tutorial/jdbc/basics/sql.html
    http://www.sqlteam.com/article/stored-procedures-an-overview
    Thnx
    Chirag
    Reward points if it helps and close the threads.

  • IDOC---JDBC scenario error: "INTERNAL" HTTP_RESP_STATUS_CODE_NOT_OK

    i have a IDOC-XI--JDBC   scenario,
    the scenario fails at  the Call Adpater Pipeline step............giving following error:
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
    <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error when sending using HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
    pls help me.....
    Message was edited by:
            sudeep dhar

    but this error occurs after few message pass successfully.....
    means at an interval this error happens...then again few messgae pass successfully,
    This is the error which i get in MONI:
    ERROR_CATEGORY: INTERNAL
    ERROR_ID: HTTP_RESP_STATUS_CODE_NOT_OK
    and in the pipeline step i can see the error:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>
      <SAP:P1>401</SAP:P1>
      <SAP:P2>Unauthorized</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      </SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error when sending using HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Need help with CSV to JDBC scenario

    Hi experts,
    We have a CSV file with data which has to be inserted into a SQL server database.
    The sender data type is:
    snd_dt  complex type
    row element 0..unbounded
    name element  xsd:string 0..1
    date element xsd:string 0...1
    ratio element xsd:string 0...1
    The receiver data type is :
    rcv_dt complex type
    STATEMENT element
    ROW element
    action Attribute
    TABLE element
    access element  0...unbounded
    name element xsd:string 0...1
    date element xsd:string 0...1
    ratio element xsd:string 0...1
    Now I did the mapping and also did the steps in ID.
    In the database, for the table in the SQL server, the datatype for name is "char(3)", for date is "date" and for ratio is "decimal(9,2)"
    When I run the scenario, this gives me an error saying:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'NAME' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    I am doing a direct "INSERT" action into the table.
    How do I resolve this error?
    ANy help mwould be greatly appreciated.

    This is the exact error I am running into.
    SQL log statement:
    INSERT INTO  NAME() VALUES ()
    Error:
    Unable to execute statement for table or stored procedure. 'NAME' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    When I put this SQL statement in SQL server, there are field names inside the parantheses of VALUES. Is this the reason why there is error??
    Also, the receiver pay load looks like this:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_NAME_TABLE xmlns:ns0="http://jdbc2jdbc">
    - <STATEMENT>
    - <ROW action="INSERT">
      <TABLE>NAME</TABLE>
      <access />
      <access />
      <access />
    </ROW>
      </STATEMENT>
      </ns0:MT_NAME_TABLE>
    Regards.

  • Best approach for IDOC - JDBC scenario

    Hi,
    In my scenarion I am creating sales order(ORDERS04) in R/3 system and which need to be replicated in a SQL Server system. I am sending the order to XI as an IDoc and want to use JDBC for sending data to SQL Server. I need to insert data in two tables(header & details). Is it possible without BPM?  Or what is the best approach for this?
    Thanks,
    Sri.

    Yes, this is possible without the BPM.
    Just create the Corresponding Datatype for the insertion.
    if the records to be inserted are different, then there wil be 2 different datatypes ( one for header and one for detail).
    Do a mutlimapping, where your Source is mapped into the header and details datatype and then send using the JDBC sender adapter.
    For the strucutre of your Datatype for insertion , just check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    To access any Database from XI, you will have to install the corresponding Driver on your XI server.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Regards,
    Bhavesh

  • Help needed on IDOC segents mapping

    Hi All,
    I have a requirement.
    The scenario is File -- XI -- IDOC  and inside mapping i have a RFC look up.   The file is as below.
    ConractNumber1, line item1 Price, line itm1UOM,etc...
    ConractNumber2, line item2 Price, line itm2UOM,etc...
    ConractNumber3, line item3 Price, line itm3UOM,etc...
    The busniess requiremetnt is as below.
    There is a existing contract data in R3 and for every contract there are line items. In the text file i have existing contract number and some line items. What i need to do is,...  i need to add my line items at the end of the contrat in R3. For this reson.. there is a custum RFC is alreay in place, which takes Contratnumber as in put and returns NEXT AVAILABLE position  to update line item for that contact.
    Here I can write A RFC look up and get Next Availeble Position from RFC into PI mapping.... But my problem is i need to map that value IDOC Segment to look like E1EDK01[NEXT AVAILABLE Poistion].
    I know that we can do this by adding subtree provision in mapping... But is is not dayamic... like if i duplicate sub tree... i will get E1EDK01[1]... But not E1EDK01[54] where 54 is value form RFC lookup.
    Here Text file contains  recrods 1...Infinity..
    ecah and every record contains its own contract data and one line item to be added. next record may contain diffrent contract data or same contract data along with one more line item.
    Kinldy share your thoughts how to go ahead. I want to know how mapping should be done for that partcular idoc segment like E1EDK01[54] where 54 is value form RFC lookup
    Thnx
    Subbu

    Hi,
      I could not understand why you want the next available position to appear with E1EDK01 segment. I think as per your requirment you need to look for a field in IDOC where you can pass the next available position so that while posting the IDOC the Line item is posted at right place.
    Regards,
    Shweta

  • Help Needed in mapping business scenario

    Hi All,
    I have a RM inter unit despatches for this we are using STO. While doing inter unit despatches we have to pay freight on per kg (Gross Weight) for a source and destination. This has already been mapped by creating a condition type and condition record.
    But there is a scenario where in when inter unit despatches happens there is an agreement b/w transporter and company if the company does not load full truck then the company needs to pay a minimum amount which has been negotiated with the transporter in this case, the freight condition is not being payed only minimum gurantee amount is payed to the transporter.
    Could any of us help me in mapping only the minimum gurantee scenario in R/3.
    We are using STO to do inter unit despatches.
    Regards,
    Sreekanth

    hai
    i think u can use condition type AMIW

  • Help needed in doing the scenario using BAPI.

    Hi...
         Please help me out in doing the below sceanrio.
    Input is the material number or name.
    we have to check whether the material is available or not, and if it is available we have to find out the cost of that material.If the materila is not available we have to get the suppliers to get that material.
    This is the scenario.
    which type of BAPI we have to use for doing the above scenario.
    Please help in doing this sceanrio.
    Regards,
    Leela

    Hi,
    Use to this BAPI BAPI_MATERIAL_EXISTENCECHECK and provide the material no as the input. you can check whether that material exists or not.
    Also if you want to check the details of a particular material you can use BAPI_MATERIAL_GET_ALL (For costing you can find the details in Valuation data) and also BAPI_MATERIAL_GET_DETAIL
    Regards,
    Nithiyanandam
    Edited by: Nithiyanandam A.U. on Sep 5, 2008 7:53 AM

  • Help needed on idocs

    Hi All,
        Iam new to abap...i want to practice Idocs in my PC...i installed SAP R/3 system in my PC...Iam practicing all other concepts in client 800...how to practice idocs to send data from one client to other client...how to setup other clients?is it possible to pratice in my PC..i appreciate ur help.
    thnx in advance.

    hi sheshu,
       when i checked thru following navigation
    tools->administration->client administration->client maintenance->
    i got some clients like
    810, 811...
    but i cudn't open them.
    pls help me.

  • Help needed urgent using jdbc

    Hi,
    How to check the existance of the table in the database using JDBC?
    Thanks in advance

    Depends on what DB vendor you are using. For example if your using oracle you could check for a match in "select * from ALL_TABLES".
    Another way is to do a query on that table and catch a SQLException.
    Exception thrown = no table.
    No exception = table exists.

  • IDOC- JDBC    ---  ORA-00936: missing expression  - Error

    Hi all,
    I am working on a IDOC-> JDBC scenario.
    it works fine in development but in quality i amgetting the following message.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_SAP_COST' (structure 'Statement2'): java.sql.SQLException: ORA-00936: missing expression
    there is no issue with mapping and i compared and everything is exactly the same as development.
    Has someone come accross a similar issue.
    Regards,
    Tarun Bahal

    This is not an error with respect to XI. There is some problem with the SQL query generated after the mapping. Generally ORA____ kind of errors are comman in JDBC Senario and even Oracle maintains something like our SAP Note for each ORA errors. I am not sure about the URL for searching this error. You can check in this URL too, [ORA-00936 |http://ora-00936.ora-code.com/] http://ora-00936.ora-code.com/
    Since you are saying that it works fine in developement, you can check with the data. Whether it is generating the SQL Statement properly or not. Also confirm whether you have sufficient data in the quality systems to generate the SQL Statement properly.
    Edited by: Prasad Ulagappan on Oct 16, 2008 11:34 AM

  • Error: Could not insert message (INBOUND) into database in JDBC scenario

    Hello Experts,
    We have implemented an IDoc- JDBC scenario on PI 7.1.On sending an IDoc DEBMAS it gives the following error in SXMB_moni of PI.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message 167088e0-92c5-11de-c968-36d2afd1680e(INBOUND) into database. Reason: java.sql.SQLException: ORA-00904: "DSR_PASSPORT": invalid identifier
    Kindly advice.
    Thanks in advance,
    Elizabeth.

    >
    Elizabeth Jacob wrote:
    > Hello Experts,
    >
    > We have implemented an IDoc- JDBC scenario on PI 7.1.On sending an IDoc DEBMAS it gives the following error in SXMB_moni of PI.
    >
    > com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not insert message 167088e0-92c5-11de-c968-36d2afd1680e(INBOUND) into database. Reason: java.sql.SQLException: ORA-00904: "DSR_PASSPORT": invalid identifier
    >
    > Kindly advice.
    >
    > Thanks in advance,
    > Elizabeth.
    please check if DSR_PASSPORT is a valid field in the table or is it missing .
    Description of ORA-00904 error;
    ORA-00904:     string: invalid identifier
    Cause:     The column name entered is either missing or invalid.
    Action:     Enter a valid column name. A valid column name must begin with a letter, be less than or equal to 30 characters, and consist of only alphanumeric characters and the special characters $, _, and #. If it contains other characters, then it must be enclosed in double quotation marks. It may not be a reserved word.

  • Need information regarding IDOC to JDBC Scenarios.

    Hi,
    Kindly help me with the pre-requisites inorder to start with a scenario of IDOC to JDBC and also the scenario of JDBC to IDOC.
    Regards,
    Sreedhar, Av

    Hello Sreedhar,
    While we working in JDBC or JMS Adapters we should deploy the Drivers..
    Go through this links,
    /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
    To install JDBC driver follow the how to guide.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
    Configuration of JDBC Adapter for SQL Server
    JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
    Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
    UserID and Password.
    If the connection is not working find the correct port number.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
    JDBC- X I -  R/3 Scenario
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    Please check the driver path as mentioned below.
    JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
    Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
    No JDBC driver required.
    Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    follow this thread
    Re: Problem when connecting to MS Access through JDBC Adapter.
    SAP Note 850116 has details
    2)  While we working in IDOC  Adapters we should do  ALE Config of IDOC Settings .
    Do these configurations in R/3 and in XI...
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    Here in IDOC to JDBC interface we need not to config sender Adapter..
    1) The main usage of a sender adapter is to convert the input format into the XI supported XML format.
    Once the conversion is completed the sender agreement appends the header with the sender details.
    In case of these adapters we wont require sender agreement and sender communicationchannel for the
    following reasons.
    Sender agreement is associated with a namespace when we shoot an idoc frm r/3 if already contains its standard sap namespace. so those is need of sender agreement
    The sender communication channel use is to identify the sending system and adapter, as the idoc header contains the details there is no need to sender.
    These adapters resides on ABAP stack here the integration server takes care of IDOC/HTTP to XML conversion without requirement of adapter.
    The business system that is sending the adapter has already been assigned to a techinical system which normally acts as an integration server...
    IDOC to xi links
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/venugopalarao.immadisetty/blog/2007/01/24/troubleshooting-file-to-idoc-scenario-in-xi
    Hope this explanation is useful to u..
    Thanks,
    Satya Kumar
    Edited by: SATYA KUMAR AKKARABOYANA on Jun 3, 2008 9:57 AM

Maybe you are looking for

  • Printing to shared windows printer canon bj-200e

    Hi, Has anyone had any success with or know how to set up printing to a canon bj-200e which is shared on a windows XP machine? I've gone through as many of the directions as I could find but haven't had much luck. There doesn't appear to be any OS X

  • How to open a file with a link ?

    I am using servlets to design an application. The application supports uploading and downloading of .DOC and .RTF files. My problem is that I am opening an uploaded file via a link. OPen File The above is also working fine and opens the file in the I

  • Skype Translator For Skype

     I can not access Skype account on your desktop through outlook Account  

  • Remaining life 3 in general  tab, no of month in depreciation tab is 4mos

    Hi Experts, Iu2019m trying to upload the data below. After uploading the Monthly depreciation should have been 328.33 in 3 mos. When I check the uploaded data the monthly planned depreciation is 246.25 = 4 mos but the remaning life is still 3mos We a

  • Role assigned after workflow triggered

    a workflow has been processed before assigning an user to the role. now the message has been sent but not to anyone. Now, the user has been assigned to the role. but he wil not recevie msg as it is already been sent. so, how can i achieve that user g