Jdbc to multi idocs

After a message is sent to xi through sender jdbc adapter, I need to map this message to several idocs according to the key value of the rows in message.
For example, the following message should be mapped to two idocs as we have two different key values among all the rows.
<jdbc_s>
<row>
   <key> 1</>
   <col> abc</col>
</row>
<row>
   <key> 1</>
   <col> cde</col>
</row>
<row>
   <key> 2</>
   <col> def</col>
</row>
<row>
   <key> 2</>
   <col> efg</col>
</row>
<jdbc_s>
Must I use BPM ? and How?
Is there none-BPM way availabe ?
Regards,
Hui

thanks ,but it seems that this method dose not support IDOC.
that target IDOC message splits are not supported since the IDOC adapter is not part of the AE.
> Hi,
>
> <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible">yes it
> is!!</a>
>
> Regards,
> Robin

Similar Messages

  • JDBC to Multiple IDOC scenario

    Dear Experts,
    My Scenario is JDBC to Multiple IDOC scenario.
    I am reading 100 records and generating 100 IDOC's at the target ECC system, the problem which I am facing is if I have any issue with 1 record the total message gets failed in SXMB_MONI due to mapping failure.
    So again I need to reset all 100 records in my source database and I should reprocess the same.
    Is there any way to process the 99 and fail only one record which causes error.
    Is Stored procedure will fix this issue or do I need to use BPM for this to achieve.
    Please advice.
    Thanks,
    --Sai

    Hi Sai,
    As you are selecting 100 records in one go, all the records will come as a single message in PI.
    Please find below my suggestion for this issue.
    1. Selecting one record per message will not be efficient. So please do not use it.
    2. Create a secondary sctucture. Generate it only if there is an error in the record. You may set up an alert for that message. So if any error occurs, other 99 idocs can go normally, while you will get an aleart for the failed record.
    3. Another option is to create an idoc for error record also. You can do this by providing some default values in place of error fields. You can then monitor such idocs in ECC.
    Personally, i feel 2nd option is the best. Let me know if you need more information on this.
    Regards,
    Gavaksh

  • Idoc state 56.  jdbc to multiple idoc.

    hi,
    i have made a jdbc to multiple idoc scenario.
    i disabled so many mandatory field.
    i defined a external defination for the idoc.
    i changed occurance for "IDOC" segment.
    i can send multiple idoc successfully to ECC.
    BUT:
    I found that state 56 of the idoc with tcode we05 IN ECC.
    how should i resolve the issue?

    Hi ,
    In WE02 or WE05 you can find the details
    status 56 is Idoc with errors added , so check you scenario
    Hi,
    Just take the payload from the moni and check your mapping first ( TEST TAB)
    Regards,
    Jude
    Edited by: jude bright on Oct 21, 2009 10:49 AM

  • Proxy to JDBC Sync, with Idoc Receiver

    Hello all,
    I have to set up following synchronous scenario.
    PROXY -> PI -> JDBC   |   JDBC -> PI -> PROXY
                                           JDBC -> PI -> IDOC
    In other words, I need that the response from the JDBC Receiver adapter is sent back to R3 to an IDOC and the originating PROXY.
    How can I achive this? I mean how can I send the synchronuos response back to the originating PROXY, and in the other hand send an asynchronous message to the IDOC.
    This is a message with a large quantity of info, so I'm not sure what to use or how to use it.
    Thanks for your help.
    Felipe

    Hi Felipe
    PROXY -> PI -> JDBC | JDBC -> PI -> PROXY
    JDBC -> PI -> IDOC
    The message to the IDOC need to be sent from response ?
    Is your proxy SYNC?
    Use a BPM for this
    1. receive the message from Proxy.(SYNC)
    2. Send it to JDBC (SYNC)
    3. Map the proxy request to JDBC request and JDBC response to Proxy response.
    4. Send the JDBC response to IDOC
    Thanks
    Gaurav

  • JDBC to IDoc ( error when mapping multiple JDBC records to IDoc)

    Hi,
    I am working on JDBC to IDoc scenario, I have declared row as 0 to unbounded and by default the IDoc structure is 1..1.
    Inorder to map multiple rows from JDBC to get multiple IDoc's, I have changed the occurrence of IDoc in "Messages" tab of Message mapping to 0 to unbounded.
    I have mapped "row" to "IDoc".
    When I test the mapping, it works fine, giving the same number of IDoc's with that of row.
    When I test end to end, in SXMB_MONI, it gives me following error:
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>MSGGUID 54A3A64E895D48EC3F20C69FEFE2E82B: Tag found instead of tag IDOC BEGIN=</SAP:P1>
    can any one help me out with this.
    Thanks in advance.

    Hi Jwalith,
    Check this blog from Michel
    The specified item was not found.
    Make sure that you changed occurance as per this blog.
    hope this is helpful
    regards,
    Venkat.

  • Multi IDOCs to be sent to R/3 - how

    I have a multi mapping that for 1 File produces 5 Finance IDOCS and 1 Stock IDOC.
    I have figured out how to do the message mapping.
    But now realise I cannot send all of these IDOC to SAP because IDOC Adapter is not in AE hence I get this error
    Messages in multi-message format can only be sent to one Adapter Engine
    Is there any BLOGS that explain how to create a BPM to now process my transformed MULTIPLE IDOCS and get them into my R/3 system.

    So see the below links
    File to Multiple IDocs (XSLT Mapping) - File to Multiple IDocs
    The specified item was not found. - IDOC bundling
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.
    Various multi-mappings and Optimizing their Implementation in Integration Processes (BPM) in XI.
    1:N mapping without using BPM --> IDOC to multiple files
    regards
    kummari
    Edited by: kummari on Jul 4, 2008 7:58 AM

  • 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

  • BMP scenario for Multi Idocs

    Hi ,
    Iam working on Idoc to File scenario for sending multiple Idocs. Iam using BMP for sending the Idocs. The problem is when I test only one Idoc is seen at the target file. ie., the first Idoc sent. The second Idoc is not getting transferred to the receiver.
    In BPM Iam using loop and when the stop message is sent then it comes out of the loop.
    Can some one help in resolving the problem.
    Best Regards
    Suresh Kasu

    Hi,
    Iam using only one IDOC type.
    Iam using the following steps:
    Start->
    Fork->
    Loop->
    Receive->Transformation->Container operation->
    Loop->
    Fork->
    Transformation->
    Send->
    Stop.
    one more Receive for Stop Message
    Click the link to get the image.
    http://www.mediafire.com/?sharekey=d6de576d1148fe26d2db6fb9a8902bda
    Best Regards
    Suresh

  • Create multi IDOCs from one message

    Hello ,
    I receive one XMl message and I want to split it in several IDOCs.
    <ORDERS>
    <PO>1<PO/><POdata>........<>
    <PO>2<PO/>....
    </ORDERS>
    to
    <ORDERS>
      <IDOC>
        ...for PO 1
    <ORDERS>
    <ORDERS>
      <IDOC>
        ...for PO 2
    <ORDERS>
    I think, I read a thread here, but I can not find it again.
    Who can help me?
    As I can remember it is not neccessary to use BPM.
    thanks
    Werner Magerl

    Hi Werner,
    this scenario is not possible without BPM
    yet...(it will sould be with the next SP)
    so you have to use BPM
    Regards,
    michal

  • Mapping JDBC: row to IDoc with two hierarchy

    Hi, well i am getting data from database in following structure:
    +-  of type "P" for ART.
    Can somebody help me?!
    br

    Hi Carsten,
    I 'll suggest you to not bring complex Application logic in XI better use Application logic on other side like once data reaches to R3 use a RFC/BAPI where you can easily handle such type of issues as you can harness ABAP knowledge in a better fashion.. and more over it will be easy to maintain also..
    Regards,

  • Getting ROUTING_BACK_ERROR in the IDOC to JDBC Scenario

    Hello,
    I am working on the scenario IDOC to JDBC .Here from IDOC i have successfully inserted the entries in the table usig JDBC adapter.But it is giving the error in the acknowledgement as below
    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="OUTBINDING">ROUTING_BACK_ERROR</SAP:Code>
      <SAP:P1>,XD1_WEB</SAP:P1>
      <SAP:P2>,EDI,,</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error in back routing Error in communication channel</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Regards,

    Hi Muthu,
            Sorry for the late reply, i missed the auto mail.
    Anyways is the problem solved?
    Actually the acknowledgement is asked by sender SAP system which pots idoc so it donot matter if your target is JDBC,
    You can see this weblog where the author sends an idoc to xi and xi posts a file and sends back an acknowledgement to SAP server.The technical reason which i think is that SAP system posts and sees the target as a Business system or business service or an intregation process so it donot matter if target is JDBC or file.
    The weblog is:
    /people/saravanakumar.kuppusamy2/blog/2005/01/20/configuration-tips-for-a-business-serviceintegration-process-to-send-back-ale-audit-idoc
    I mean get a try to this, if this donot work we can troubleshoot or think of alternative solution.
    Have a great day!!
    Anirban.

  • IDOC to JDBC:System Acknowledgment

    Hi,
    We have a scenario IDOC-PI-JDBC. We are using PI7.31 single stack.
    We need to get the System acknowledgement, and we want to update the status of the IDOC accordingly(error/successful) once its processed.
    -Is it possible in IDOC to JDBC flow?
    -As per my understanding in IDoc sender channel  we should check the acknowledgement option. Other than this do we need to do any other setting to get the system acknowledgement?
    -Does JDBC receiver adapter by default sends the system acknowledgement ?
    - Can we get the acknowledgement if we have multiple receivers?
    Please help with info.
    Thanks,
    Tina

    Hi,
    JDBC by default is synchronous. Just create the inbound service interface as synchronous and test, you will find the response. you build the response ICO based on the structure. Even if it insert/delete/update statements, JDBC will return the number of success records. Check the help documentation on JDBC.
    As IDOC is asynchronous, you can not do it directly. but you can achieve this using request response bean.
    --Naresh

  • Idoc- JDBC

    Hi Team,
    I have a scenario from Idoc->JDBC ,where the idoc comming to XI ultimately needs to update fields from more than 1 tables in a database.Under such case how can I design my JDBC adapter?
    Thanks and Regards
    Atanu Mazumdar

    >needs to update fields from more than 1 tables in a database.Under such case how can I design my JDBC adapter?
    There are two possible ways we can do this.
    option 1) using seperate statement tag for every update table.
    option  2) If you have mulitple tables say 5 or even greater than 5, you might want to try this...
    In  this create a query for updating all the 6 tables and pass this string in access field below.
    <StatementName>
    <anyName action=u201D SQL_DMLu201D>
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>    
    </key>
    </anyName > 
    </StatementName>
    Note: If one of the table update fails all other updates will not go through. JDBC adapter treat entire structure elements as one transaction in both the options. Just remember this.

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

  • Outbound IDOCs: queue in PI communication channel

    Hi,
    i've got data delivered as IDOCs. I'd like to read the data at a specific moment in our scheduling process but we don't have any influence when they will be send, that means we need the data today exactly at 2:23 a.m. and tomorrow at 2:55 a.m. and so on but the data will be send between 10 p.m. and 1a.m.
    There are some solutions in the partner profile select - collect idocs, but we can't use this, because we dont't have access on this installation where the idocs come from. so we need to cache them into PI or the IDOC adapter of PI
    After mapping the data will be send to JDBC or as IDOC.
    Is there a possibility to buffer the incoming IDOCs in the outbound adapter - delayed processing - and trigger the adapter by our scheduler? Or maybe can i queue them after mapping? I know, that we could solve this challenge with ccBPM, but I like to do it without BPM. We are using PI 7.0.
    Thanks in advance
    Ronny

    Hi,
    Can you tell me what exactly the report IDX_PACKET_WIZARD does? I couldn't find more information about it but it seams that i just can start some queued IDOCS, but how can i put a IDOC into a queue in PI?
    Is it not possible to receive the IDOC first in the "partner profile" (hope you know what i mean) and later in the IDOC adapter of PI?
    Is there a EHP1 for PI 7.0? I thought that EHP1 is only out for 7.1. And if this is true, how does it works with the collecting of IDOCs it's possible to cache them with the collector? And is it also possible to start them by type, i mean first "entities", later PO's.
    Thanks in advance
    Ronny

Maybe you are looking for

  • Location of the SMC Reset button in a Mac Pro

    I'm having trouble finding the SMC reset button. +The hatter+ said, "use the SMC RESET button inside, under drive #4. " This page http://docs.info.apple.com/article.html?artnum=304123 said; "Another way to reset the SMC on a Mac Pro computer is: From

  • Issues with DVD and CD copying

    I used Nero to copy my own videos such as the ones I recorded from my camcorder and from my digital camera. I use a blank CD-R and DVD-R. After burning, they only can be played in my computer but not my DVD Player that connects to the TV. Do I have t

  • Keychain verification code not recieved on Google Voice

    Now that Mavericks has iCloud Keychain, I loaded it up, put in my Google Voice phone number (more out of habit than anything else) and thought all was good. Now, trying to activate keychain in iOS 7.0.3, the code is not delivered. Any thoughts?

  • What happen during shutdown oracle database

    Dear All, i have a questions and i enclosed some suggestions for the answer because I'm confused about the answers : What happens during shutdown oracle database : and the suggested answer : 1- When shutdown the database with NORMAL or IMMEDIATE opti

  • Installing Java EE SDK over SE SDK

    I am running Java SE 6 on WIndows XP. I have Java DB 10.4.1.3 Java 6 Update 11 Java 6 Update 7 Java SE SDK Update 11 installed. 1. Do I need to uninstall the SE SDK before installing Java EE 5 SDK? 2. Is it safe to assume that Java EE SDK is a supers