Idoc LOISTD01 to JDBC

Hello,
I've a interface IDOC to JDBC, I need update_insert into table of database.
My problem is a mapping with IDOC LOISTD01.
Structure of IDOC
E1PLSEL 1..unbounded
     E1MDPSL 1.. unbounded
Structure table of database
mt_database
  STATEMENT
     TABLENAME
         ACTION
         TABLE
         ACCESS
              field1
              field2
         KEY
             field1
How can i do the mapping?
Thanks very much

Hi,
I don't understand well the mapping you propose, but if your problem is the multiplicity try with the XML structures proposed in the JDBC from the SAP HELP:
http://help.sap.com/saphelp_nw04s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
It is well described how to made those things you said.
Regards
Gonzalo

Similar Messages

  • Mapping multi-segment IDOC to multiple JDBC INSERT statements

    Hi Everyone,
    This is probably going to be easy for the experienced PI developers out there but I'm just starting out in this technology. We are running PI 1.11 and the scenario is as follows. We have a bespoke IDOC message type ZSTOCK which can contain 1-many segments with the following field content:
    WERKS
    MATNR
    VBELN
    ACT_LABST
    AVL_LABST
    For each segment in the source IDOC, I want to generate an INSERT statement to insert a row in an SQL table via the JDBC adapter with the following columns:
    Plant
    Material
    SalesOrd
    ActStock
    AvlStock
    Basically, each field on the source IDOC segment maps directly onto the target column of the SQL table. The problem is, on a multi-segment IDOC only the first segment is generating a row in the SQL table. I've seen a number of threads on this forum that seem to tackle the same issue but the solution is either missing or unclear. I think the solution lies somwhere in the occurrences of the STATEMENT node in my target message type and perhaps specific definitions in the message mapping. Can anyone help solve this mystery?
    Thanks,
    Gary

    Hi Gary
    If you created a data type, try to change occurrence of STATEMENT node to 0..unbounded or 1..unbounded.
    In the message mapping, map the target STATEMENT node with the source 1-many segment.
    You can find [here|http://help.sap.com/saphelp_nw70/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/content.htm] more informations about the JDBC structure
    Regards,
    Giuseppe

  • IDoc Acknowledgement to JDBC status update

    Hi,
    JDBC --> XI --> SAP R/3 (IDoc ACC_DOCUMENT02)
    JDBC <-- XI <-- SAP R/3 (IDoc ALEAUD01)
    I have the following scenario... I am reading data from a database using the JDBC Adapter. The data is in the following format at source. Using the JDBC adapter I read the database for rows for which the status is blank, this is multiple documents.
    Invoice 1 Status 53
    Invoice 1 Status 53
    Invoice 1 Status 53
    Invoice 1 Status 53
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    Invoice 3 Status <blank>
    Invoice 3 Status <blank>
    Using a BPM process I split the source data into multiple messages and map them to the IDoc structure. In the above example Invoice 2 & 3 would be read from the database and split into 2 individual IDocs to be posted separately into SAP.
    IDoc 1
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    Invoice 2 Status <blank>
    IDoc 2
    Invoice 3 Status <blank>
    Invoice 3 Status <blank>
    I now want to extend this scenario to include acknowledgement messages which I can use to update the status in the source system.
    I have configured the ALEAUD01 message in the destination system and scheduled the RBDSTATE program to run periodically. I can see in the XI message monitor that my messages now have aknowledgement status.
    What I would now like to do and hopefully someone can help is to use the status information being fed back from SAP in the ALEAUD01 message to update the status field for individual lines in the source table. Can anyone help with this step???
    Regards,
    Pete

    I can see the limitation of ALEAUDIT as it is handled internally in XI. Using the bespoke route I can create a copy of ALEAUDIT and a bespoke IDoc ZALEAUD01 for example, which will send the status idoc to XI.
    In BPM I can configure a receive step to receive the IDoc... But, how do I then relate the IDoc I created to the particular segment in my ALEAUD01 IDoc.
    Regards,
    Pete

  • RFC , IDoc , XI and JDBC receiver communication channel--- Good Design

    Hi Experts,
    We have developed around 60+ interfaces on PI7.1 EHP1, in that 20 interfaces sending data to Data Base using JDBC receiver communication channel, 15 interfaces ABAP inbound proxy using XI adapter,10 Scenarios using IDoc receiver channel and 15 scenarios using RFC receiver channel.
    But I have created only one IDoc, XI , JDBC and RFC channel.
    Is it right idea/design or do I need to create more channels to handle multiple request.
    Please share your thoughts on this.
    Regards,
    JAM

    Hi,
    For XI,RFC and Idoc when it's pointing to one SAP system you don't need any further comm channels.
    For JDBC , if you are pointing to only one database you can use the same channel, if the target/databse changes you need more comm channels.
    Your Design is as per the standards.
    Regards,
    Sainath Chutke

  • 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

  • Accelerate PI Process (IDoc - XI - JDBC)

    Hello all,
    My scenario :IDoc from ECC6, JDBC with BPM and Acknowledgment back to R/3 after process.
    But, it seems that the acknowledgment generate from XI is a little bit "slow" and not very constant. Sometimes times, it takes more time than others and i don't know why.
    The process seems too long for my client, he needs more IDoc to be process in a minute and he doesn't want any serialization of processing.
    I've read some tuning guide but i don't see where i can improve my scenario.
    Is there any hints for accelerating this acknowledgement create from XI ?
    Do i have to replace the standard acknowledgement by a specific Idoc which will be send at the end of my BPM ?
    Hope i was clear.
    Thanks by advance.
    JP

    please visit the fine tuning article
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/412290ec-0201-0010-0790-dfd946efc5f4

  • JDBC --- XI ---- IDOC

    Hi Experts,
    I am working on a scenario SQL Database -
    XI -
    SAP(IDOC)
    Iam using JDBC as Sender Adapter and IDOC as Receiver Adapter,
    Through JDBC iam getting the records from the SQL D/B and iam sending the data to R/3.
    1) Now how can i limit the number of records to be fetched for one polling.
    2) Suppose if it gets 5 records at a time,now i must map one record to one idoc?how can i do this?
    Please help me regarding this.
    Regards
    Srinivas

    2) Suppose if it gets 5 records at a time,now i must map one record to one idoc?how can i do this?
    I have just implemented this following Michal's blog, it works just fine.
    The specified item was not found.
    Basically you:
    - export the IDOC to XSD
    - change the occurance of the IDOC-element to unbounded
    - import the XSD as en external definition
    - Use the external definition in your message mapping
    - Use the original IDOC everywhere else but the mapping (as interface)
    You cannot change the target message type to 0..unbounded. This will not create several separate IDOCS, just several IDOCS in the same message.

  • JDBC-XI-IDoc scenario -- Urgent

    Hi All,
    I am doing a scenario JDBC-XI-IDoc.
    Now the Oracle table in the source system, has a control table as well.
    This control table has 2 fields MSGID and MSGTSTAMP. These 2 fields has to be updated for each record.
    Now please tell me, how this can be handled?
    The MSGID and MSGTSTAMP r created in XI, so we need to send it back to source system, but how?
    Its urgent, early reply will b appreciated.
    Thanks in advance.
    Neetesh

    Hi Neetesh,
    Yes , you can do it using BPM.
    <i>So, it should be something like- XI triggers IDoc to R/3 and almost at the same time, sends back the MSGID and MSGTSTAMP to JDBC.</i>
    >>> Then I think you can do without Synch communication.
    -Receive the Message in BPM(after mapping)
    -Fork step to send both messages at same time
    -Send to Idoc 
    -Send to JDBC
    But you need to have 2 receivers.
    1) BPM->Idoc
    2) BPM->JDBC
    It will do.
    SO u can do without Synch communication also.
    Pls acknowledge
    Regards,
    Moorthy

  • IDoc string field to JDBC date field - Not working

    Hello everyone,
    Once again I must ask you something that is keeping me..
    I had a interface type RFC ASync to JDBC SQL Server, it was working fine. Then, I was asked to change to a type iDoc ASync to JDBC SQL Server.
    At first, it was not a problem, just manual work. But them, I am getting an error.
    In the RFC, I had a date field, that was directly related to the date field on the JDBC destination, so the mapping was pretty much straight forward. The SQL INSERT command was working fine on this cenario.
    Now, in iDoc, this field was automatically converted to a string, and somehow, PI is not understanding that string has to be mapped to a date field in the JDBC.
    Is there any 'workaround' for me to do this?
    Thanks!
    Ricardo Sancio Lóra
    Brazil

    The issue here is that somehow, the same SQL insert command that was working, does not work anymore.
    This is the SQL command took from RWB log monitor:
    INSERT INTO  aniversariantes_sap (matricula, nome, nascimento, unidade) VALUES (00000070, 'Ricardo Lora', '19851216', 00000000)
    If I run this query on my DB it works.
    But, in PI, it's not, here is the error:
    Could not execute statement for table/stored proc. "aniversariantes_sap" (structure "ANIVERSARIANTES_SAP") due to com.microsoft.sqlserver.jdbc.SQLServerException: Syntax error converting datetime from character string.
    I´ve tried cast() and convert() using mapping 'habilities', but also, does not work. Work if I run in the DB, but not if PI runs it.
    Wierd..
    Ricardo

  • Please help in configuring IDoc to JDBC scenario

    Hi all,
    i am very much new to SAP XI 3.0. We are trying to execute an IDoc-XI-JDBC scenario. The data in the segments of the IDoc should be populated into a table of the database.I am unable to do it as I am totally new to XI.Can any one please help me on the steps invovled in configuring the above scenario or please provide any document describing a similar configuration.
    Thanks in advance
    Pavan

    Hi Pavan,
    check these links (some on Idocs & some on JDBC)
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Regards
    Vishnu

  • 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]

  • XI:Concerns regarding CCMS alerts,IDOC,JDBC,FILE,PROXY

    Dear Experts,
    I have some doubts regarding below listed points.Please,help Me to find thesuitable answer for these.
    *1.if multiple messages to be sent(IDOC) through same JDBC adapter,how we'll do it(THROUGH SAME jdbc Aadpter,in same config scenario)?*
    *2.in receiver determination,if we have to send to multiple receivers according to payload content(conditional passing to receiver depends on payload),**how we'll acheive it?*
    *3.what is file content conversion?*
    *4.why proxy is known as adpterless scenario?*
    *5.in case of idoc/proxy why sender side no communication channel but in receiver side we are using communication channel?*
    **6.what is CCMS alert?
    *7.in a file2file scenario,if we want to convert one file content to other file content in a different form(as x->1,y>2),*
    *how we'll acheive it?*
    *7.if lots of data checkings are there in case of SAP R/3,by whcih way we'll go?(idoc/proxy/rfc)
    *8.how we'll decide whether to go for SOAP scenario?*
    *9.what is adapter module?whan we'll go for different adapter modules other than standard?*
    *how we can develop our own adapter modules?*
    *10. how to map one field to other field,when they are present in different noad with respect to source and target strucrture?*
    Eagerly waiting for youyr valuable opinion.
    Regards,
    Rasmiraj Tripathy

    Do a search in SDN first for these questions.
    You will find the answers to the most.
    Else post specific questions

  • IDoc - JDBC, acknowledgment not possible

    Hi Guys.
    I've this scenario, It makes a branch, to a BPM and to a JDBC. The problem is, i got an error at the JDBC acknowledgment response (Acknowledgment not possible)
                            IDOC
    Branch
                   BPM                 JDBC
              No errors              Acknowledgment
            in acknowledgment        not possible
    This scenario was made by a external consultant, and i don't know where is the JDBC acknowledgment defined.
    Does anyone know, where can i modified this and disable the acknowledgment response for the JDBC?
    Thanks in advance.

    HI,
    Go to BPM and check the Send Step .. Is it has mode as acknowledgement etc ?
    Also check is Exception Branch has been defined ?
    to suppress the ack for Idoc -[page no 10 - entry in table IDXNOALE in XI system
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Regards,
    Moorthy

  • IDOC - JDBC - RNIF SCENARIO

    Hi Experts,
    Currently i am working on invoice idoc to JDBC(synchronous) to rnif. could you please help me the steps. depending on the bill to or soldto or plant i have to get the 14 fields from sql server and send it to the RNIF adapter. could you please send me the steps for this scenario. using BPM.
    Advanced Thanks
    Regards
    Sundher

    Hi,
    In BPM: without mapping lookup , but with Sync JDBC call
    1) Receive Step to receive the Idoc message
    2) Call the JDBC synchronously
    3). Map the Response to RNIF Receiver Message
    4) Send the Message to RNIF
    You can make the Sync. Mapping i,e Mapping between Idoc message to JDBC call and JDBC Response to RNIF outside the BPM..
    Check out this blog-/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    btw, what is the volume of data? based on that, you can decide to choose, mapping lookup or Sync JDBC call with BPM
    Rgds,
    Moorthy

  • Eror in idoc to jdbc

    I am working on Idoc(sender)  to Jdbc partner profiles are created for the idoc . when i am triggering the idoc in ECC system in TC sm58 we are getting error as
          Idoc adapter inbound channel: Eror  Eror in sender.

    hi,
    In your R3 system, log on to transcaction SM58. This will contain the Log of the Transactional RFC and will give exact reason for the issue.
    1. In WE02 of your sending system check the status of the IDoc you have sent. It should be 03 if it was sent to external system.
    2. Check in SM58 of your sender system whether there is any trfc entries struck up.
    3)In SM59 of sender check whether the port and the rfc destination are working properly and also the login id used to login to XI is having relevant authorizations. It should be something like a RFCUSER having CPIC profile.
    4). Check in the SXMB_MONI of the sender and XI system whether messages have come or not and decide based on their status what has gone wrong if any failure is there.

Maybe you are looking for

  • How do I get rid of the up-next view in remote and go back to album

    I am used to the little 3 dot 3 line symbol in the Remote app taking me to the album view (IIRC) or it could have been the "now playing" button. Anyway this was, for me, a most useful feature of the remote app and I can't find it in the new version.

  • CS5.5 vs. CS5 PROBLEM with publishing Air for Android

    Hello, My Air app publishes fine to my 2.2 and 2.3 Android Phones from Adobe Flash Professional CS5 - and the app runs fine. Debugger is clean. When publishing from CS5.5 however, it puts the app on the phone, but the screen turns black and the app q

  • Using command button to select query - WAD 7.0

    Hello all Can anyone please tell me how to configure a command button (button group) to display a particular query in WAD 7.0? Here's what I mean - I have a web template with three queries. I have inserted 3 command buttons on the template. I want to

  • Variable Type Problem !

    i want to get a variable data type. how can i do it? th evariable might be a class object. how should i get it. please help me.

  • Multiple Purchased On..How do I merge?

    Good evening, Have had to replace my 3G iPhone twice in the last year because of problems with the phone. I tend to purchase a lot of music thru itunes on the phone and each phone I have had it creates another new Purchased on XXXXX's iPhone. Was won