CRM Bdoc to IDoc Conversion

Hi All,
I have extended BUS_TRANS_MSG Bdoc with custom Fileds ( as per requirement) and am looking to Convert the BDoc to IDoc.
So Can any one know how to convert Bdoc to Idoc in SAP CRM 7.0.
Kindly help me on this.
Thanks,
Raja

Hello,
The best way to interface data from CRM to external systems is by using the XIF adapter.
The XIF adapter can be used to create outbound extractions via CRM middleware. Look in this forum or read the documentation for CRMXIF_ORDER_SAVE in your system to get a basic understanding.
Basically you need to setup an outbound subscription to the XIF adapter for all business transactions.
If you want to brute force the problem use the CRM_ORDER_READ function module combined with custom selects on CRMD_ORDER_INDEX to grab most of the data needed.
some helpful links:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f?quicklink=index&overridelayout=true
XIF adapter
regards,
Wim Olieman

Similar Messages

  • CRM BDOC like IDOC ?

    Hi,
    please tell me if BDOC is the same as IDOC or where are differences. How is the administration of BDOCs handled?
    Sorry, don't know - new to CRM.
    Kind regards,
    Clemens

    Hi Clemens,
    Please check this links perhaps it may help for quick introduction.
    http://www.sapgenie.com/mysap/crm/middleware.htm
    http://www.sapgenie.com/mysap/crm/bdoc.htm
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Middleware: BDoc to IDoc conversion - init and delta

    Hi,
    First of all let me just say, that I know nothing about CRM (I'm an XI guy), but need to investigate on a matter, so please take that into accound when reading this post and responding to it.
    Scenario:
    Business Partners, Business Transaction Messages (orders and activities) need to be replicated to an external system. This is achieved by converting BDocs for the respective messages into IDocs via CRM Middleware and then sending IDoc to XI which in turn posts data to external database. This process should function both INIT and DELTA.
    So far so good.
    The problem is when having created for instance a new direct order and saved it. The BDoc is generated and converted to IDoc (CRMXIF_ORDER_SAVE02). In the fields OBJECT_TASK in the IDoc I get the expected 'I' for INSERT. This is what I expect.
    Now, if I make a change to the order and saves it again the generated IDoc still contains just an 'I' for INSERT in the before mentioned fields. This is not to be expected - should be an 'U' for UPDATE, but this does not happen.
    Anybody have any ideas why this happens and what is wrong?
    Best Regards,
    Daniel

    Hi,
    Thanks for your answer. I'm on CRM 5.0. The note you mentioned seems not to be related to my problem. My question is regarding "download" of data from CRM to XI through CRM middleware. When trying to do this the "change pointers" (fields OBJECT_TASK and/or TASK) are not set correctly in the IDoc's generated by middleware (everything is writtens INSERTs), which means I cannot from XI determine by the data received if I'm to perform an update/insert/delete into the database.
    Best regards,
    Daniel

  • SAP CRM 7.0 -- How tro make Conversion from Bdoc to IDoc

    Hi All,
    I have extended BUS_TRANS_MSG Bdoc with custom Fileds ( as per requirement) and am looking to Convert the BDoc to IDoc.
    So Can any one know how to convert Bdoc to Idoc in SAP CRM 7.0.
    Kindly help me on this.
    Thanks,
    Raja

    Hi Raja,
    Is there any reason that you want to convert this Bdoc to Idoc. let me know, will take from there.
    thanks

  • XML IDoc conversion: No known segments identified

    Hi all,
                     am working on a File to IDoc scenario. In runtime, error occurs at Call Adapter phase.
    <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>XML IDoc conversion: No known segments identified</SAP:P1>
    Can anyone help me in diagnosing.
    Thanks,
    Chilanka

    Hi,
    This issue wis not with Mapping.
    The issue is that the utout of the mapping does not confirm to the Idoc metadata,
    Exactly why I want to look at the output of the mapping.
    Regards
    Bhavesh

  • Error in IDOC: XML IDoc conversion: No known segments identified

    Hi Team
    i am facing error in my scenario.  When we are testing my  interface, another  Interface is picking up the Messages and resulting into an error.
    There is no mapping involved in my scenario.
      <?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>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>XML IDoc conversion: No known segments identified</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error: XML IDoc conversion: No known segments identified</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    please help me out
    thanx in advance

    Hi,
      Do The following:
    1) Delete the IDX2 entry and try to reimport once again....and in the IR also do the same.
    2) Have a look into this SAP Note- 742093
    3) Check the IDX1 entry , RFC destination entry... may be not pointing correctly.
    4) If any field which is mandatory in the idoc must not be disabled...take care about it.
    Hope this will help you...
    Regds,
    Pinangshuk.

  • Issues in employee replication from ECC to CRM through ALE/IDOC

    Hi,
    We are replicating the employees from ECC to CRM through ALE/IDOC.
    Some times for some employees, the Idoc status in CRM is  52(Application document not fully posted) in CRM (WE02 tcode)
    If I see the details its showing as " Identification Category BPCCOD is Not Assigned to Any Identification Type"
    What I need to do now to avoid this.
    Pl suggest
    Regards
    BABU.

    Hi Babu, I'm having the same error when I replicate my employes. I have define  BPCCOD in  spro - Cross-Application Components - SAP Business Partner - Business Partner - Basic Settings - Identification Numbers,  but this configuration does not resolve my problem.
    Could you resolve this problem?.
    Pls. let me know...
    Regards,
    George

  • IDOCType PORDCR101 : XML IDoc conversion: No known segments identified

    Hello all,
    I'm strugling with the mapping to the IDOC create puchase order PORDCR1.PORDCR101.
    The source structure for the moment is exactly the same as the target strcuture i.e. our IDOC.
    So I would not expect to much problems with this one.
    However, when sending the message we get the following error in SXI_MONITOR:
    <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>XML IDoc conversion: No known segments identified</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: XML IDoc conversion: No known segments identified</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I also augmented the trace lvl to 3 and got the following in the Trace-part of TC SXI_MONITOR and
    suspect it starts to get wrong already in the beginning
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">---- Outbound IDoc-Adapter -
    </Trace>
      <Trace level="1" type="T">----
    </Trace>
    Trace level="1" type="T">Convert one IDoc</Trace> .
      <Trace level="2" type="T">Convert Control Record</Trace>
      <Trace level="2" type="T">Convert Data Records</Trace>
      <Trace level="3" type="T">Segment= E1BPMEPOHEADER</Trace>
      <Trace level="2" type="T">Ignore unknown Segment E1BPMEPOHEADER</Trace>
      <Trace level="2" type="T">Ignore segment field: COMP_CODE</Trace>
      <Trace level="3" type="T">Segment= E1BPMEPOHEADERX</Trace>
      <Trace level="2" type="T">Ignore unknown Segment E1BPMEPOHEADERX</Trace>
      <Trace level="3" type="T">Segment= E1BPMEPOADDRVENDOR</Trace>
      <Trace level="2" type="T">Ignore unknown Segment E1BPMEPOADDRVENDOR
    I already found the four or so other threads on the SDN website about this error and in the mean-time tried them (delete and reload the structure with IDX2, set the begin and segment-attribute to 1, make sure that the segments-names self are also mappend) but to no avail.
    We just implemented two other IDOC's (DELVRY03 and WMMBID02) and they arrive at SAP without problmens.
    Hope you have form ideas to get me out of this one.
    Tnx and best regards.
    Bart.

    Hi Bart,
    We had a similar problem.... It took us 2 days to find out what the problem was... Nothing on SDN was helpfull so far... First we incremented the trace level of XI to see the debug messages... Then we saw that certain segments could not be identified and are ignored, others not...
    So further investigation in IDX2 to the specific IDoc with problems showed us a list with all used segments and their versions. Some segments had only 1, others had more versions....
    So we could identify the problem as a segment version problem. It seemed that our IDoc Communication Channel took not the most recent version. So we changed the "Segment Version" to the most recent one and the problem was solved!
    Please reward points if this was usefull to you...
    cheers!
    Pedro

  • XML IDoc conversion: No known segments identified PPCC2PRETTICKET01

    Hello to everybody,
    I'm working with JDBC adapter to IDOC scenario with standard message PPCC2PRETTICKET01 and I found this message:
    IDOC_ADAPTER">ATTRIBUTE_IDOC_RUNTIME
    XML IDoc conversion: No known segments identified
    I've read previous thread and I've already try to Reimport the Idocs into Repository
    and Delete the Idoc metadata from the in Transaction IDX2 and reimport the same.
    I'm in SAP NetWeaver 2004s.
    Do you have another ideas?
    Many thanks

    Hi,
    I've filled up control record in message mapping, I tried with Apply C R but it doesn't work.
    I don't know how to disable EDI_DC40 in message mapping because the fields are red.
    I've filled up every segment field with a constant with the right segment name but nothing.
    This is the payload after the error but since the JDBC adapter in:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <PPCC2PRETTICKET01>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="EDI_DC40">
      <TABNAM>EDI_DC40</TABNAM>
      <DIRECT>2</DIRECT>
      <IDOCTYP>PPCC2PRETTICKET01</IDOCTYP>
      <MESTYP>PPCC2PRETTICKET</MESTYP>
      <SNDPOR>SAPXI0</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>XIDEV100</SNDPRN>
      <RCVPOR>SAPDEV</RCVPOR>
      <RCVPRT>LS</RCVPRT>
      <RCVPRN>SYSDEV300</RCVPRN>
      </EDI_DC40>
      </IDOC>
      </PPCC2PRETTICKET01>
    Thank for more ideas.
    Fabrizio

  • Send custom error message using IDoc conversion rule?

    Hello,
    I am using an Idoc conversion rule in BD79 to load cost centers.  In my conversion rule I use a conversion exit function module to concatenate 2 specific characters and sending cost center value together and then this output value placed in the receiving cost center field.  This works fine, but now I want to send a custom error message to the idoc and fail the idoc if the sending cost center value is greater than 8 digits. 
    Does anyone know how to send an error message or update an idoc with an error message using a conversion rule (bd79)?
    Thank you,
    Rhonda

    Hi Rhonda,
    Any luck on the below.. i have a similar issue...
    Sorry to hijack your thread...

  • XML IDoc conversion: No known segments identified ,only few times

    Hi all,
    Our scenario is in production and is working fine,few times i get the below error.
    This is a Daily run scenario.This week it ran 5 time right and 2 , times it failed  to create Idocs for the same sccenario.
    Can any one help me.
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
    <SAP:P1>XML IDoc conversion: No known segments identified</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error: XML IDoc conversion: No known segments identified</SAP:Stack>
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error

    check if these discussions help you:
    XML IDoc conversion: No known segments identified
    IDOCType PORDCR101 : XML IDoc conversion: No known segments identified
    Regards,
    Abhishek.

  • Idoc Conversion rule, Change pointers and Filters

    Hi Experts,
        Please any one can help me out, i need material or clear picture about Idoc Conversion rule, Change pointers and Filters where we can use these concepts what is the befit for these concepts.
    Thanks in advance,
    Ramesh.

    Hi,
    Check this link. It has got some of the tutorials you are looking for.
    http://www.****************/Tutorials/ALE/ALEMainPage.htm
    Cheers
    VJ

  • Idoc conversion rule

    Hi,
    What is idoc conversion rule? Why we need this?
    While upgrading from 4.7 to ECC 6.0 what all precautions need to be taken for the existing standard idocs and custom idocs in the system.
    Thanks & Regards,
    Soumya.

    Hi,
    ALE allows the user to perform an SAP transaction in the sending system, after-which the following steps occur:
    1 or more communication IDocs (intermediate documents: container for the application data) are created in the sending system database. An ALE distribution model, that needs to have been configured, determines which systems the IDocs are to be sent
    These communication IDocs, that contain the relevant application data of the transaction that was performed, are then passed to the ALE communication layer
    This layer performs an RFC call, using the port definition and an RFC destination determined through the customer model
    The IDocs are then transferred to the respective receiving systems. These could be SAP R/3, R/2 or external systems
    If the receiving system is an SAP system then:
    In the case of master data distribution the same transaction that was performed on the sending system is again performed on the receiving system with the data contained in the IDoc. This allows the data to go through the SAP checks before posting occurs
    In the case of transaction scenarios the relevant data is passed to the respective transactions in order to load the required application document. Eg. A PO is loaded on the sending side, yet a SO is created on the receiving system
    Master data has another difference:
    It can be set up in such a way that any changes made to specific fields in master data tables can automatically trigger off the ALE distribution process for that particular master data object
    If a master data object is created or changed on a sending system and distributed to another system the respective transaction is used to either create or change that respective master data object on the receiving system
    In general, if standard SAP can't perform the task required then neither can ALE. It doesn't add functionality, it merely decouples it and allows you to distribute it onto other remote systems.
    The Detail as described by SAP
    In the output processing one of the function modules of the application creates an IDoc, the so-called master IDoc. This IDoc is sent to the ALE layer where the following processing steps are applied:
    Outbound processing
    Receiver determination
    An IDoc is similar to a normal letter in that it has a sender and a receiver. If the receiver has not been explicitly identified by the application, then the ALE layer uses the customer distribution model to help determine the receivers for the message.
    The ALE layer can find out from the model whether any distributed systems should receive the message and, if so, then how many. The result may be that one, several or no receivers at all are found.
    For each of the distributed systems that have been ascertained to be receiver systems, the data that is specified by the filter objects in the customer distribution model is selected from the master IDoc. This data is then used to fill an IDoc, and the appropriate system is entered as receiver.
    Data selection
    Segment filtering
    Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -> Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.
    Field conversion
    Receiver-specific field conversions are defined under Functions for the IDoc processing -> Conversions.
    General rules can be specified for field conversions; these are important for converting data fields to exchange information between R/2 and R/3 Systems. For example, the field "plant" can be converted from a 2-character field to a 4-character field.
    The conversion is done using general EIS conversion tools (Executive Information System).
    Version change
    SAP ensures that ALE functions between different R/3 System releases. By changing the IDoc format you can convert message types of different R/3 releases. SAP Development use the following rules when converting existing message types:
    Fields may be appended to a segment type;
    Segments can be added;
    ALE Customizing keeps a record of which version of each message type is in use for each receiver. The correct version of the communication IDoc is created in the ALE output.
    The resulting IDocs (it is possible that several IDocs could be created in the receiver determination) are referred to as communication IDocs and are stored in the database. The dispatch control then decides which of these IDocs should be sent immediately. These are passed to the communications layer and are sent either using the transactional Remote Function Call (RFC) or via file interfaces (e.g. for EDI).
    If an error occurs in the ALE layer, the IDoc containing the error is stored and a workflow is created. The ALE administrator can use this workflow to process the error.
    Inbound processing
    After an IDoc has been successfully transmitted to another system, inbound processing is carried out in the receiver system, involving the following steps in the ALE layer:
    Segment filtering
    Segment filtering functions the same way in inbound processing as in outbound processing.
    Field conversion
    Specific field conversions are defined in ALE Customizing.
    The conversion itself is performed using general conversion tools from the EIS area (Executive Information System).
    Generalized rules can be defined. The ALE implementation guide describes how the conversion rules can be specified.
    One set of rules is created for each IDoc segment and rules are defined for each segment field.
    The rules for converting data fields from an R/2-specific format to an R/3 format can be defined in this way. An example of this R/2 - R/3 conversion is the conversion of the plant field from a 2 character field to a 4 character field.
    Data transfer to the application
    Input control
    When the IDocs have been written to the database, they can be imported by the receiver application.
    IDocs can be passed to the application either immediately on arrival or can follow in batch.
    You can post an inbound IDoc in three ways:
    by calling a function module directly: A function is called that imports the IDoc directly. An error workflow will be started only if an error occurs.
    by starting a SAP Business Workflow. A workflow is the sequence of steps to post an IDoc.
    by starting a work item A single step performs the IDoc posting.
    The standard inbound processing setting is that ALE calls a function module directly. For information about SAP Business Workflow alternatives refer to the online help for ALE programming.

  • Idoc Conversion Rules

    Hi all,
    Good Morning Friends. I am looking for proper documentation which can help me to understand the concept of <b>Idoc conversion rules</b>. I search a lot in help.sap.com and also google resources, but couldn't figure out any. I am very much interested in comprehending this concept from quite a long time. Can anyone help me to find out good doc's on this concept. If you have any documents you can plz forward them to <b>[email protected]</b>.
    Any kind of help will be appreciated and will be awarded points without failing.
    Have a nice day !!
    Thanks and Regards,
    Varun.

    HI Ferry LIanto,
    Thanks for your immediate reply. I have gone through this. I also want to learn the theoritical aspects behind this concept. Is there any documentation available in help.sap.com regarding this or are there any other resources available to learn this very much in detail ? I have tried rigorously, but couldnt trace any. If possible can you please help me in this regard ?
    Thanks and Regards,
    Varun.
    Message was edited by: varun sonu

  • CRM Bdoc Documentation

    Hi,
    Can anybody please send me some CRM Bdoc documentation.I will reward the person with points.Hoping for some help on this..
    My mail id is [email protected]
    Thanks and Regards,
    Amit.

    Hi Amith,
    Please have a look the following link for your information.
    http://help.sap.com/saphelp_crm50/helpdata/en/b7/d4ef3a1cc5862ae10000000a11402f/frameset.htm
    Best Regards,
    Johnny.

Maybe you are looking for

  • HELP, NO MAC APPLICATION AFTER INSTALLING BOOT CAMP

    I recently decided to install Windows XP on my MAC. After doing so I no longer have acces to anything other than Windows. Its like the MAC side vanished. ?????? can anyone advise me how to fix this problem? Has anyone experianced the same problem? Me

  • Macbook screen not aligned to base

    Hi guys, I purchased a new MBP from Apple's website and noticed that the screen is not aligned to the base. It do not look normal at all as the laptop itself is not fixed properly. May I know if I can get help from anywhere to fix the issue? This is

  • Auto-Sort Files in Bridge on Startup

    Is there a way to have Bridge automatically have files sorted by Filename? Currently every time I launch bridge (on startup of computer) it is set to sort manually. How do I make the default sort by Filename?  I have looked and cannot find a way. I a

  • Problem with the 'up' key in G560e

    I have a problem that my 'up' key doesn't work at all. It's important because I need it to brighten my screen with 'Fn' key. Is it possible to brighten the screen somehow without using 'Fn' key? the 'up' key seems to be not working at all... Solved!

  • J2EE agent deployment failed due to authentication error

    Hi All, I had deployed java agent long back in weblogic domain, and was able to connect and execute odi scenarios using this java agent. Recently i have changed masterrepository password and as well SUPERVISOR password. While starting agent applicati