Jdbc to file scenario - base mapping error

hello all,
i am facing a similar issue discussed in this thread,
Re: JDBC to FILE scenatio: How to map the resultSet?
1. i changed the document name and namespace
2. i checked for the occurence of the filed elements
3. i tried using the documentname and namespce both from the MONI and MAPPING TEST TAB...but still the same base mapping runtime exception error.
Please advice.
Thanks
i have been following the

Aarthi,
Can you give us the following details,
1. select query that you are using in your JDBC sender adapter
2.the Document Name and namespace that you have given in the JDBC adapter
3. the source datatype that you have created for your JDBC side along with the occurence of each element.
This will help us nail the causwe for your problem.
Regards,
bhavesh

Similar Messages

  • File to JDBC to File Scenario

    Dear Bhavesh,
    I am doing a File to JDBC to File Scenario from your reference blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3928. [original link is broken] [original link is broken] [original link is broken] [original link is broken] This scenario is same as File to RFC to File scenario I believe. The only change I found is in Message Interface.
    The Message Interface used here are:
    1.     OB File Request
    2.     OB Abs File Request
    3.     IB File Response
    4.     IB Abs File Response
    5.     Abs Syn File Request File Response
    6.     Abs Syn JDBC Request JDBC Response.
    I am able to get the response from JDBC but while mapping to file I am getting mapping error. In fact I have followed ur Blog as it is.
    The IP steps are:
    Receive Step , Syn Send (Abs Syn File Request File Response) Step , Send Step.
    Could you please help me out, if you have time .
    Thanks in advance.
    Shaik

    Hi ,
    Sorry for pointing you the thread.
    I have created the IR as it is in File RFC File Scenario, but I have created Abs Syn Message Interface for JDBC request and Response.
    I have two Abs sync Message Interface and two mapping programs, namely
    Source Interface:
    Abs Sync Message Interface
       File Request
       File Response
    Target Interface:
    Abs Sync Message Interface
      JDBC Request
      JDBC Response
    Mapping Interface:
    File Request to JDBC Request
    JDBC Response to File Response.

  • JDBC-XI-FILE scenario. How to extract data from more than one table in JDBC

    Hi,
    I was asked a question like in JDBC-XI-FILE scenario........ How to extract data from more than one tables (i.e from JDBC system) ?? What is the logic to do the same ??
    I am not sure whether this is a valid question..........but any help in this regards is highly appreciated.
    Regards
    Kumar

    HI,
    Yes it can be possible ,please see the following links
    JDBC  Receiver with Oracle Stored Procedures
    configuring jdbc adapter with multiple tables
    RFC -> XI -> JDBC Scenario Updating Multiple Tables
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC Adapter multiple Selects
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=jdbc%20with%20multiple%20tables&cat=sdn_all
    Regards
    Chilla..

  • Help with jdbc to file scenario

    Hi guys,
    I want to do a JDBC to file scenario. I need to do a SELECT * query from my table.
    An external application does the updation into my tables. I needed XI to connect to my JDBC system whenever there is an update in the tables and post it as a file.
    Please guide me on this guys
    Varun

    as pointed out have a indicator in ur table that is updated by the external system for setting that the record is read when the jdbc is polled. this would be help for avoiding reading the same records again and again whioch results in duplication. u can follow this blog (reve engg    )
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step

  • File - to - JDBC- to - File  Scenario using Stored Procedure

    Hi,
      I want to do File - to - JDBC - to - File  scenario, because I'm getting data in a file format and that data i want to load in a database. Database level i have a stored procedure. if any exceptions. my stored procedure will give the Response. so, now i want to store that resposne in a file..
    for this. what are the steps we have to use. is this scenario will comes in Synch ronous or Asynchronous  ? and  I have searched the web blogs also. al the blogs are related to Http or Soap  with JDBC . so, please give me some input  help about this...
    how many data types we have to create... any body having step step procedure for this...
    regards
    Jain

    Hi,
    You will need a BPM in your design as Sender File adapter does not support Synchronous messaging. Refer my answer in this thread (page 2) and have your design accordingly....instead of RFC you will have a file adapter as the ultimate receiver.
    Re: BPM FILE--> JDBC--> RFC
    Just take care of below things:
    1) JDBC message format is as per the guidelines
    [Message format for sending req to JDBC|http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm]
    2) check for the format of your source and target file format (if it is a Flat-file with a xml structure that XI can parse then no need of FCC but if it is a CSV file then you will need FCC)
    Regards,
    Abhishek
    Edited by: abhishek salvi on Apr 14, 2009 7:32 PM

  • File to idoc mapping error

    Hi,
    I am mapping a flat file to idoc in xi. If I execute the test data it works fine. But in actual run, it gave me the following mapping error:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_MT_APPayment_to_FIDCCP02_: Runt
    imeException in Message-Mapping transformatio~
    Exception of class CX_XMS_SYSERR_MAPPING
    Is it due to some mapping error or some basis config issue?
    Thanks,
    Jassi

    Hi Jassi,
    This may be a mapping issue, try this:
    a)in interface mapping see if grids are formed at source and target after executing the test option,
    b)also take the xml of the idoc from sxmb_moni , copy it and paste it at the source of the mapping ( use the src tab now) and execute the mapping, is your file structute formed?
    Check the following link:
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Amaresh

  • JDBC to File Scenario

    Hey Experts,
    I have a scenario from JDBC to File (xml) scenario.
    The problem is that the data is being picked up from the data base and is sent through the sender JDBC channel to the receiver file adapter channel where the file content conversion is done. But when I check the output text file, it is empty. When I go to SXMB_MONI to check if there is any error, every thing is fine with a checkered flag on the message. My sender and the receiver data types are the same.
    Here is the scenario:
    DT_sender and DT_receiver ---> row
                                                          NAME
                                                          ID
                                                          GRADE
    payload from the sender channel is:
    <MT_DB2FILE_SENDER>
    < row>
    <NAME>CNCN</NAME>
    <ID>222</ID>
    <GRADE>A</GRADE>
    </MT_DB2FILE_SENDER>
    When the content conversion is done with the parameters :
    Recordset structure : row,1
    row.fieldNames : NAME,ID,GRADE
    row.fieldSeparator : \t
    row.endSeparator: 'nl'
    The text file that is generated is empty. I have tried out all the posts that are related to this topic. But I could not find the suitable answer. ANy help would be greatly appreciated.
    Regards.

    Hey
    I m a little confused here
    In your earlier reply,you posted
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:MT_DB2FILE_RECEIVER xmlns:ns0="http://jdbc2jdbc" />
    and now you are posting this
    <?xml version="1.0" encoding="utf-8" ?>
    - <MT_DB2FILE_SENDER>
    - <row>
    <NAME>CHAD</NAME>
    <ID>204</ID>
    <GRADE>A</GRADE>
    </row>
    - <row>
    <NAME>TYLER</NAME>
    <ID>204</ID>
    <GRADE>A</GRADE>
    </row>
    - <row>
    <NAME>AMER</NAME>
    <ID>204</ID>
    <GRADE>A</GRADE>
    </row>
    - <row>
    <NAME>BASHIR</NAME>
    <ID>204</ID>
    <GRADE>A</GRADE>
    </row>
    - <row>
    <NAME>WENBIN</NAME>
    <ID>206</ID>
    <GRADE>A</GRADE>
    </row>
    - <row>
    <NAME>lilian</NAME>
    <ID>139</ID>
    <GRADE>A</GRADE>
    </row>
    </MT_DB2FILE_SENDER>
    The above looks like a sender structure to me.
    Could you please confirm this is exactly the payload you are getting in sxmb_moni under Technical routing .
    Thanks
    Aamir

  • JDBC to file scenario - Time limit exceeded

    Hi All,
    I am getting timelimit exceeded error in the inbound queues when I am processing the interface JDBC-XI-file. I have tried many options like registering the queues, changed the integration engine configuraion parameters for timeout , checked the memory space. When less data is being sent like 50kb then it is executing successfully. With large data the messages are getting stuck in the queues and then giving the timeout error.
    Also when I  am checking in sm50 it showing that some rfc is going on hold.
    Please suggest .
    Thanks,
    Aparna

    Thanks for the reply Pragati.
    What will be the UDF code for RFC lookup in case of passing the data in Queue. I am currently using the below code for gettng single value.
    Also is it possible to get multiple output values which can be mapped to different target fields. Currently I am using different rfc lookups for different target fields. So if I can combine them into single rfc lookup them this may effect the performance.
       //write your code here
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    // Create document builder to create DOM XML document
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = null;
    factory.setNamespaceAware(false);
    factory.setValidating(false);
    try {
            // Create XML document using document builder
            builder = factory.newDocumentBuilder();
    } catch (Exception e) {
           importanttrace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
            return null;
    // filling the string with our RFC-XML (with values)
    String m ="<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns1:ZFI_GET_COCODE xmlns:ns1=\"urn:sap-com:document:sap:rfc:functions\"><COMPANYID>" + a + "</COMPANYID></ns1:ZFI_GET_COCODE>";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    Payload result = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel("BS_SAP_DEC210","CC_RECEIVER_RFC_test");
    // 2. Get a RFC accessor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    // 3. Create a xml input stream representing the function module request message.
    InputStream inputStream = new ByteArrayInputStream(m.getBytes());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup
    result = accessor.call(payload);
    /*InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    if (result == null) {
                    importanttrace.addWarning("result of RFC call is null");
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    Document docResponse = null;
    InputStream in = result.getContent();
    String res = "";
    try {
            docResponse = builder.parse(in);
            if (docResponse == null) {
                    importanttrace.addWarning("docResponse is null");
    res =  docResponse.getElementsByTagName("COMPANY_CODE").item(0).getFirstChild().getNodeValue();
    if (res == null) {
                    importanttrace.addWarning("res is null");
    catch (Exception e) {
          importanttrace.addWarning("Error when parsing RFC Response - " + e.getMessage());
    try {
            // Free resources, close the accessor..
            if (accessor != null) {
                    try {
                            accessor.close();
                    } catch (LookupException e) {
                            importanttrace.addWarning( "Error while closing accessor " + e.getMessage());
    } catch (Exception e) {
            importanttrace.addWarning("Result value not found in DOM - " + e);
    // return the result obtained above
    return res;
    Thanks.

  • IDoc to Flat file scenario - abap mapping

    Hi All,
    I have to do some IDOC to Flat file scenarios. In Order to generate the file in required format I will have to add all segments(Nodes) of Idoc in FCC receiver. We also have other option of doing it through ABAP Mapping which I found in one blog.
    Now my question is : Is it better way of doing it through FCC or ABAP Mapping?
    Ofcourse from development point of view ABAP Mapping looks easier as FCC is very time consuming task.
    Is there and performance issues in either of the approach?
    Thanks and Regards,
    Atul

    Hi VJ and Harald,
    Thanks for your replies.
    I am not having PI7.1 however the given blog was very informative.
    I will try using file port approach as suggested.
    Thanks and Regards,
    Atul

  • Reg:JDBC to FILE Scenario

    Hi All,
    My scenario is JDBC to File.
    In receiver file communication channel I will be using  the  Conversion Agent tool and the file name should reflect either the value of the Field say <NAME>TEST</NAME> ,then my output file name will be TEST.CSV or the Busines Service name ie BS_TEST ,then it should be BS_TEST.CSV
    Please suggest me on this.
    Thanks in Advance,
    Lavanya.B

    Hi,
    Check this blog for using the Busines Service name as your file name:
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    the same you can use the Variables from Payload to get the field name as file name check [this|http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm] link and go to variable subsitution section second option  If the variable refers to an element in XML schema, add the prefix payload:
    Sachin

  • No such base Map error

    I am trying to run Oracle Mapviewer demos and I keep getting the error "No such base map: mvdemo.demo_map. Error: new MVBaseMap(), inspite of setting the correct base map in the map cache along with the data source. Can anyone tell me how I can get rid of this?

    I found this in the forums -
    <?xml version = '1.0' standalone = 'yes'?>
    <map_cache_admin_request>
    <create_cache_instance data_source="TEST">
    <cache_instance name="ETRS89" image_format="PNG">
    <internal_map_source base_map="ETRS89" data_source="TEST"/>
    <cache_storage root_path="/private/scrtach"/>
    <coordinate_system srid="25833" minX="391000.0" maxX="395000.0" minY="5801000.0" maxY="5807000.0"/>
    <tile_image width="256" height="256"/>
    <zoom_levels levels="10" min_scale="1000" max_scale="500000">
    <zoom_level tile_width="33866.666666666664" tile_height="33866.666666666664" level_name="level0" scale="500000.0"/>
    <zoom_level tile_width="16977.9696" tile_height="16977.9696" level_name="level1" scale="250659.0"/>
    <zoom_level tile_width="8511.370666666666" tile_height="8511.370666666666" level_name="level2" scale="125660.0"/>
    <zoom_level tile_width="4266.929066666667" tile_height="4266.929066666667" level_name="level3" scale="62996.0"/>
    <zoom_level tile_width="2139.0863999999997" tile_height="2139.0863999999997" level_name="level4" scale="31581.0"/>
    <zoom_level tile_width="1072.3541333333333" tile_height="1072.3541333333333" level_name="level5" scale="15832.0"/>
    <zoom_level tile_width="537.5994666666667" tile_height="537.5994666666667" level_name="level6" scale="7937.0"/>
    <zoom_level tile_width="269.4432" tile_height="269.4432" level_name="level7" scale="3978.0"/>
    <zoom_level tile_width="135.06026666666668" tile_height="135.06026666666668" level_name="level8" scale="1994.0"/>
    <zoom_level tile_width="67.73333333333332" tile_height="67.73333333333332" level_name="level9" scale="1000.0"/>
    </zoom_levels>
    </cache_instance>
    </create_cache_instance>
    </map_cache_admin_request>
    Where should I put this tag?

  • How to pass values at runtime in JDBC - XI - File scenario

    Hi friends,
    In my scenario, data is coming from R/3 and i need to filter records from oracle database based on this data. There are 4 database tables that need to be queried using 2 select statements. The resultset after the execution of query will be mapped to the target flat file structure.
    here are my queries:
    1) Can I avoid BPM as data needs to be collected from the two database calls which involves two sender JDBC adapter instances with only one target structure?
    2) Can I use stored procedure in this scenario? If yes, than how to pass values to stored procedure at runtime via sender JDBC adapter.
    Thanks and regards,
    Nitin aggarwal.

    Hi Nitin,
    "..So i want to know if i can write multiple select statements in the stored procedure.."
    Read the below line that is mentioned in the SAP help documentation fro Sender JDBC adapter:-
    <i>Specify an SQL EXECUTE statement to execute a stored procedure, which contains exactly one SELECT statement.</i>
    I dont think it can be achieved...but there must be some workaround for this. You can probably use a join statement.
    Read this, again from the documentation:-
    <i>The expression must correspond to the SQL variant supported by the relevant JDBC driver. It can also contain table JOINs.</i>
    Regards,
    Sushumna

  • File to HTTP Mapping error in PI 7.1

    Hi Team,
    In my file to HTTP scenario- Im using file content conversion at source side . under MT , i have used Record node, under Record fileds. At target side I have used External definition. To generate multiple  records , Im using 0...unbound occurance in External defination.
    Example:
    MT_SOURCE
    -Record
    --fileds
    External_Definition
    -fileds
    After 0..unbound the structures looks like..
    Source:
    Message
    -Messages1
    --MT_SOURCE
    ---Record
    fields
    Target:
    Messages
    -Messages1
    --ExternalDefinatuion
    ---fields
    Now I record context to Messages1 from MT_SOURCE and mapped with Externl_Definition node. My reguirement is , For every record occurance the target structure should generate . I have changed the occurance in Interface mapping as 0..unbound. BUt when im testing with 2 Records ,  i got the below error...
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">ADAPTER_NOT_MMF</SAP:Code>
      <SAP:P1>PLAINHTTP</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Adapter PLAINHTTP cannot process message packages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    If I used file adapter at receiver side , the messages are processing successfully , so mapping is correct . If I use HTTP im getting the error in MONI. Can anyone suggest whats the issue is ?
    Cant we handle multiple records/messages in HTTP adapter.

    Hello,
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="INTERNAL">ADAPTER_NOT_MMF</SAP:Code>
    <SAP:P1>PLAINHTTP</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:Stack>Adapter PLAINHTTP cannot process message packages</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    If I used file adapter at receiver side , the messages are processing successfully , so mapping is correct . If I use HTTP im getting the error in MONI. Can anyone suggest whats the issue is ?
    Cant we handle multiple records/messages in HTTP adapter.
    Multi-mapping is not possible when you use Plain HTTP Adapter. You could use SOAP Receiver Adapter and check Do Not Use SOAP Envelope also make sure that your content-type is correct as checking this option changes the content-type to application/xml.
    Hope this helps,
    Mark

  • BPM - Bundle 2 Files to 1 - Mapping error.

    I'm using BPM to bundle 2 messages into 1. The two Data Types for the Abstract MT are completly diferent. I got the BPM to work but my final Message are in different order. IF I check each xml before the transformation they are both in perfect order. The sequence is changed only for the Message2.
    How can assure the same order of the lines as they are in the inbound message?
    Message1
    RecordSet Structure: Header,1,Line,*,Footer,1
    RecordSet Sequence: Ascending
    Header.keyFieldValue     0
    Line.keyFieldValue     2
    Footer.keyFieldValue     4
    Message1 example:
    0abc
    2def
    2ghi
    2jkl
    4mno
    Message2
    RecordSet Structure: Header,,Line1,,Line2,,Footer,,EOF,*
    RecordSet Sequence: Variable
    Header.keyFieldValue     11
    Line1.keyFieldValue     22
    Line2.keyFieldValue     23
    Footer.keyFieldValue     33
    EOF.keyFieldValue     88
    Message2 example:
    11ABC
    22def
    23iii
    22ijk
    23iii
    33RTE
    11VBN
    22hjk
    23iii
    22yui
    23iii
    33QWE
    88EOF
    The target message DATA TYPE:
    HeaderG (from Message2)
    Line1G (from Message2)
    Line2G (from Message2)
    FooterG (from Message2)
    EOFG (from Message2)
    HeaderD (from Message1)
    LineD (from Message1)
    FooterD (from Message1)
    Target Message example (HOW IT SHOULD BE):
    11ABC
    22def
    23iii
    22ijk
    23iii
    33RTE
    11VBN
    22hjk
    23iii
    22yui
    23iii
    33QWE
    88EOF
    0abc
    2def
    2ghi
    2jkl
    4mno
    And the result I'm getting is:
    11ABC
    11VBN
    22def
    22ijk
    22hjk
    22yui
    23iii
    33RTE
    33QWE
    88EOF
    0abc
    2def
    2ghi
    2jkl
    4mno
    See how it sorts all the Header, Line1, Line2, Footer together in that order. AND IT is removing all the other Line2 '23' because the are the same.
    I guess the error is in the Message Mapping I'm doing in the BPM, but I don't think there is any option to change the sequence, I might be wrong.
    Sorry for my english, I've tried to make it clear.
    Thanks in advance for any help.

    Hi
    i do not think so there is any error in the mapping side , check the file content content conversion parameters at the reciever side as the sequencing of the output file depends on the content conversion parmeters .
    Thanks
    sudhir sharma

  • Reg: JDBC to IDOC Scenario Message Mapping

    hi Friends
    i am designing a Scenario JDBC - IDOC for accounting document interface using ACC_DOCUMENT03 idoc.
    i need the mapping program for that to map the JDBC fields with the IDOC fields, so can anyone help me the mandatory fields and the constant values for the IDOC which has to be mapped.Along with this can i know why the constants will be assigned to the fields like Begin =1 , MSGFN = 009 etc how these constants are defined.
    Thanks&Regards
    suman.

    Hi,
    for mapping constants in graphical msg mapping, select your target IDOC field..........then you have a constant in the below screen.........click it and then double-click on constant to change the value of the constant field.........then map this constant to your target IDOC field.
    for knowing which are the mandatory fields, ask your functional guys to tell you the mandatory fields in data segment of your IDOC and regarding Control segment EDIDC, you have to map fields which have sender and reciever system details.
    Regards,
    Rajeev Gupta
    Edited by: RAJEEV GUPTA on Feb 2, 2009 7:55 AM

Maybe you are looking for

  • Searching and Accessing Information of Files

    I have Windows XP and I use NetBeans. I was wondering how I can access the information of a file. I need my program to search for a file in my computer for a file that was Last Modified in a certain date... So... is there a way to access this feature

  • UB[Stock transport order] - Partners

    Hello, I have a define a partner function to a UB Purchase order. Where can I configure to determine automatically? Is there any user exit to do it ? I debug code and I discover in program SAPLMEPO (MM06EF0P_PARTNERS) FORM PARTNERS that in line 97  '

  • Integration between SAP BI 3.5 and Business Object

    Hi experts I'm working on a SAP ECC 5.00 environment with SAP BI 3.5 We want introduce the Business object application for the SAP Bi reporting, without upgrade SAP BI to 7.0 release. Can you suggest me a documentation or similar explaining the pros

  • Did the instructio​ns for my new printer and not printing

    i have a chromebook 14-q037wm and just bought hp deskjet 1512 all in one printer and not having any luck printing. maybe someone can walk me through the set up and i could get it to work. thanx

  • Why do I keep getting unauthorised purchases

    I Keep getting purchases and I don't know how they got there. Can you please help so I can stop all these bills pilling up.