CRM Orders Outbound using XIF

Hi All ,
   I need to generate XIF output in an XML file for orders and this XML file will be send to an 3rd party system. I would like to know what are all the settings and steps that I need to do to achieve this. 
And also I want to know how the structure of XML will be? whether it is an XML based on IDOC( e.g CRMXIF_ORDER_SAVE_U03 ) or it will be based on BDoc Structure.
Thanks in Advance
Pradeep

Hi Pradeep,
Try sending the order with report CRMXIF_ORDER_TEST. It uses functions CRMXIF_ORDER_MAPSEND & CRMXIF_ORDER_EXTRACT to extract the information and send it to the XIF site (be it an idoc or an XML). If necessary, you can debug by setting a break-point on the functions ans see if the extract is performed.
Transaction BDFG is exactly that: it provides the possibility to generate the XIF idoc structures based on the bdoc structure.
So if your Bdoc structure contains Z-fields, these will automatically be generated into your new idoc structure and all functionality (processing functions) will be generated as well.
Regards
Manohar

Similar Messages

  • Issue in BP creation in CRM 7 connected using XIF from CRM 4

    Hi All,
    We have connected CRM 7 and CRM 4 using XIF
    We are facing an issue where 2 IDOCs (with same Basic type CRMXIF_PARTNER_SAVE_M01) are generated at same time while using XIF adapter dring busines partner creation. First IDOC is succesful and other fails with error message " Business patner locked by you".
    Can you please share some expertise on this.
    Thanks & regards,
    Mohit SIngh

    Hi Bala,
    Which version of CRM are you using? There are some notes for CUST_HIERARCHY BDoc errors. Please have a look at them in the Support Portal.
    CRM_BUPA_MAIN_VAL is used for validation of rules set in CRM Server and maybe you dont have the same mandatory rules in MSA.
    Best Regards,
    Ankan

  • CRM -- PI-- ECC using XIF and bdocs

    Hi,
    I wanted to know the solutions we can have to intrgate CRM Site details using bdocs with PI using XIF in CRM and send to ECC Server like CRM >PI>ECC.
    Anyone who has done such a scenario kindly show some pointers on the same.
    Regards,
    Anirban

    Anirban,
    Seriously unless you are doing multiple backends or something strange, you don't even need PI for a CRM to ECC scenario.  The CRM middleware does not use PI at all and basically it is standard configuration on the CRM side to send over the information.
    Another question is why would you want to send the plant master from CRM back to ERP?  Honestly the plant master should probably always be maintained in ERP.  This scenario does not make sense from both a business and technical perspective.
    Take care,
    Stephen

  • Business Partner distribution from  CRM-PI-MDM using XIF and PI Proxy

    Hi,
    I would like to know if there is any step-by-step documentation on configuration of ABAP proxy with XIF in SAP CRM for distribution of Business partner information to MDM system. There is XI Content for this but there is no documentation which highlights configuration of proxy.
    I did looked at following links but was looking for any other document with details.
    http://help.sap.com/saphelp_crm50/helpdata/en/42/b6efbe82103120e10000000a1553f7/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f
    (Talks about using IDoc)
    Thanks,
    Divyakumar Jain

    HI,
    Have checked the blog
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Here you will get the steps to generate the client proxy in R/3.
    Or You can configure the proxy settings as per below blog
    You need to Setup the HTTP connection for ABAP Proxy,
    http://help.sap.com/saphelp_nw70/helpdata/en/da/11df3a9b10355ae10000000a11405a/frameset.htm
    Thanks
    Swarup

  • Export Marketing Attributes of Business Partners using XIF XML Interface

    Hello CRM Fellows,
    I've successfully configured the XIF Adapter to send out SOAP Requests to my external server. The Documents [Distributing Business Partner Master Data from SAP CRM to an External System using the CRM XIF Adapter|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f] and [SAP Network Blog: External Data Loads for CRM 4.0 using XIF adapter|The specified item was not found.] where very helpful there.
    We have the requirement to not only send the Business Partner and Relationship Master-Data to the external system. We also have to provide Marketing Attributes. But here I stuck in a problem. The BAdI CRMXIF_PARTNER_MAP is not triggered when I maintain only a Marketing Attribute via Transaction BP. I've searched if there is a XIF Object for Attributes but that is not available.
    Does anyone know how to send Marketing Attributes to an external system when they are changed?
    Best regards
    Gregor

    Hi Thierry,
    thank you for that suggestion. I've already found [ODS for Marketing Attributes|http://help.sap.com/saphelp_crm50/helpdata/en/07/d545a50869754fbad8062e17c2ea0e/frameset.htm] when I've searched in the CRM Documentation. I've just asked my BI colleague to do the extract to BW. I will then write a Web Service on the BW which can be called from the external system.
    Best regards
    Gregor

  • Run time error while closing the CRM Order using BAPI

    Hi Experts,
    Need your invaluable suggestions here.Apologies for the lengthy mail, intention is to give clear idea of the issue.
    I am facing an issue while closing the CRM orders. According to our business process, when an issue is solved we will keep the order in resolved status only. We will not directly close the order from the CRM tool, instead we have created a custom program for the same purpose.
    For the custom program we will give input as the order number and execute it, this will close the order.
    Here close the order means assigning it to Close status as well assign the reason code.
    We have created some reason codes for closed status.
    So when the program is run the Order moves from resolved status to closed status along with reason code.
    But of late we are facing some problems with this program, it is giving run time error for some CRM orders.
    Run time error message : The ABAP/4 Open SQL array insert results in duplicate database records.
    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught in procedure "CRM_SERVICE_OS_UPD_OST_DU" "(FUNCTION)", nor was it propagated by a RAISING clause.
    Please find my code which have used in the custom program
    Closing the resolved SOs in the system
        CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
            EXPORTING
              objnr                     = iv_guid
              user_status          = lc_status_closed
           EXCEPTIONS
             object_not_found          = 1
             status_inconsistent       = 2
             status_not_allowed       = 3
             OTHERS                        = 4.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining status'.
        ENDIF.
    Set reason code
    build lt_subject
        ls_subject-ref_guid = iv_guid.
        ls_subject-katalogart = 'A2'.
        ls_subject-codegruppe = 'ZR000003'.
        ls_subject-code       = 'ZR33'.                      " Reason code
        ls_subject-mode       = 'A'.
        APPEND ls_subject TO lt_subject.
    build lt_ossset
        ls_osset-ref_guid        = iv_guid.
        ls_osset-subject_profile = 'ZREASON03'.
        ls_osset-profile_type    = 'G'.
        ls_osset-subject         = lt_subject.
        APPEND ls_osset TO lt_osset.
    build lt_service_os
        ls_service_os-ref_guid  = iv_guid.
        ls_service_os-ref_kind  = 'A'.
        ls_service_os-osset     = lt_osset.
        APPEND ls_service_os TO lt_service_os.
    build lt_input_fields
        REFRESH: lt_input_fields, lt_field_names.
        CLEAR  : ls_input_fields, ls_field_names.
        ls_field_names-fieldname    = 'CODE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'CODEGRUPPE'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'KATALOGART'.
        APPEND ls_field_names TO lt_field_names.
        ls_field_names-fieldname    = 'SERVICE_PROFILE'.
        APPEND ls_field_names TO lt_field_names.
        ls_input_fields-ref_guid    = iv_guid.
        ls_input_fields-ref_kind    = 'A'.
        ls_input_fields-objectname  = 'SERVICE_OS'.
        ls_input_fields-field_names = lt_field_names.
        APPEND ls_input_fields TO lt_input_fields.
         CALL FUNCTION 'CRM_ORDER_MAINTAIN'
          EXPORTING
            it_service_os     = lt_service_os
          CHANGING
            ct_input_fields   = lt_input_fields
          EXCEPTIONS
            error_occurred    = 1
            document_locked   = 2
            no_change_allowed = 3
            no_authority      = 4
            OTHERS            = 5.
        IF sy-subrc <> 0.
          WRITE :  'Error at maintaining reason'.
        ENDIF.
        CALL FUNCTION 'CRM_ORDER_SAVE'
          EXPORTING
            it_objects_to_save   = lt_header_guid
            iv_update_task_local = lv_update_task_local
          IMPORTING
            et_saved_objects     = lt_saved_objects
          EXCEPTIONS
            document_not_saved   = 1
            OTHERS               = 2.
        IF sy-subrc <> 0.
          WRITE : 'Error at saving'.
        ELSE.
          WRITE : 'Successfully Closed'.
          COMMIT WORK AND WAIT.
        ENDIF.
    Run time error is coming at COMMIT WORK AND WAIT statement.
    Please let me know any corrections are required in the above program.
    When I analyzed the run time error I have found that it trying to insert the record in CRMD_SRV_OSSET for that CRM order, but already one record is present in the table for the same CRM order number.
    For most of the CRM orders there is no entry in this table so they are closing successfully but for a few orders for which there is an entry we are getting the above run time error.
    There is nothing wrong with the orders which have an entry already in the table CRMD_SRV_OSSET, I need to close these kind of orders with out run time error.
    Kindly provide your feedback.

    Hi Dinakar,
    You posted this in APO PPDS forum. This question should go to PP forum where someone could answer it.
    Please close this thread and open a new thread in PP forum so that you could get help quickly from the relevant experts.
    Regards - Pawan

  • How To upload business partner into sap crm using xif Adapter by XML File

    HI Guru's,
                 I got Requirement to upload the business partner information into sap crm system using xif adapters from xml file , please give  imformation how can achive this .
    Regards,
    Naveen Kumar MS

    Dear Naveen,
    please see the information given in note 448742 General notes on CRM external interfaces!
    Hope you can find the information!
    Regards, Gerhard

  • Cancel items from CRM order using CRMXIF_ORDER_SAVE

    Hi All,
    My requirement is to modify an existing crm order through 'CRMXIF_ORDER_SAVE'.  I need to copy this FM and modify so that whenever it is called from XI all the existing items are cancelled and new items from the xml are added.
    Can anyone give me some idea how to achieve this?
    Any input will be highly appreciable.
    Thanks
    Ajith

    Solved.. Used CRM_STATUS_CHANGE_INTERN_VB , CRM_ORDER_MAINTAIN and CRMXIF_ORDER_SAVE

  • How can we process the CRM Order again for second time in debugging mode

    Hi,
    Can anybody please tell me how can we process the CRM ORDER for second time.  that I want to process in debugging mode.
    Thanks,
    bsv

    Hi bsv,
    Are you trying to reprocess a BDOC for debugging purpose?
    If the BDOC is not with a final status, you will be able to reprocess it using the reprocess button in the smw01 search result list.
    And you may put /h on the popup when you click on the 'reprocess' button.
    If it is allowed to make some changes in the CRM ORDER for testin purpose, it would be easier to perform debugging.
    A more 'careless' way is to deactivate the outbound or inbound queue in transaction smqs or smqr, then in smq1 or smq2 to locate the interested queue, and click on button 'debug LUW'.
    Hongyan

  • Mapping XML into 3rd party system using XIF adapter

    Hi Gurus,
    First of all let me thank all of you for a tremondous contribution you are making for these kind of topics(CRM XIF) in SDN. I could solve half my problems by looking into your replies.
    But I have a new & similar problem now. I am able to create and send XML file of order data into 3rd party middleware system using XIF & SOAP framework. But the 3rd party system(business connector) is unable to parse this XML file in their system. They keep getting the error message invalid XML file. I tried testing that myself and it gives me the error 'SOAP-ENV' error. They even tried some workarounds using some SOAP wrappers but it still didn't work. They are asking me to provide a DTD (data type definition) to this XML file generated out of SAP. Not sure if anyone has seen a similar problem like this but our interface is stuck at this point.
    Any suggestions would be helpful.
    Thanks,
    Sunil

    Hi,
    We have figured out this problem for ourselves. The 3rd party system gets this error because SAP generated 2 XML tags in the beginning of the XML file which cannot be interpreted by XML spy or many XML parsing software’s. When we deleted the first 2 tags we stopped getting that error. But it wasn't a feasible solution for us to delete the first 2 lines in the XML file and then save it and then parse it. We preferred an alternative approach via IDOC's instead of processing XML files directly. Its also better because the size of XML file is much bigger (15 mega) than Idoc ( max of 4 mega bytes). But if you have to process  XML files only then you cannot do that for real time or near real time processing as the parsing of XML file nearly takes more than 10 min. And it is definitely not preferred way especially if your middleware system has the capability to process Idocs from a middleware architectural stand point.

  • How to update user status in CRM Order depending the delivery status in R/3

    Hi All,
    In my scenario the partial delivery allowed to the customer while creating the CRM Order. But as per my requirement the status should be updated when the complete order and delivery takes place.
       Let me describe you clearly:
    Suppose I want to deliver 5 quantities products to the customer but initially I want to deliver only 3 quantities and rest 2 quantities later. When I do the post goods issue of 3 quantities in R/3 system the status should not change in CRM system. When I will do the rest 2 quantities in post goods issue in R/3 then the user status should change in CRM Order. But in current when I do the delivery of 3 quantities the user status is changing in CRM Order.
    I need the user status should change in CRM only when the entire deliverytakes place in R/3.
    Thanx
    Chinmaya

    Whenever an item is fully delivered, by standard, a "Completely Delivered" status will be updated into the item. If the I suppose by referring to that you will know an item is partial or completely delivered. When all items in the order is fully delivered, the standard header status will set to "Completed". So, you will also know if the whole order is partial or completely delivered.
    If you want to add a user status, the simplest, you can make use of the ORDER_SAVE Badi. Just call the function CRM_STATUS_MAINTAIN_OW. You can update both header and item status.

  • CRM orders with error "Do not enter a business agreement for sold-to party"

    Dear SDN'ler,
    after creating orders in SAP CRM via ISA (CRM 4.0) and uploading them to R/3 all orders are created successfully in R/3 but an error message is sent back to SAP CRM in case of ALL orders.
    Error message is the following:
    "Do not enter a business agreement for sold-to party xyz"
    Message no. CRM_BILLING011
    Diagnosis
    The field "FI-CA active" is not selected for the sold-to party 6000201 in the business master record. Since the business agreement is used in the component FI-CA, excluding the control of processes, it makes sense to enter a business agreement.
    Procedure
    Delete the entered business agreement.
    ==> Could someone please give me some more information about the mentioned "business agreement"? Where do I find field "FI-CA active" (in R/3 or CRM customer master data?)?
    ==> And how can I eliminate this error message for CRM orders in SAP CRM?
    Thanks a lot.
    Best Regards,
    Rainer Gryschka

    Please check the customising setting under following path:
    SPRO --> Customer Relationship Management --> Master Data --> Business Partner -- > Business Agreement --> Define Basic Settings
    Alternatively you may also check following customisation table using SM30 --> CRMC_BUAG_ACTV

  • Error in Action when CRM Order is updated as Error from R/3 update

    Hi,
    Currently we are in CRM 6.0 SP04 and R/3 4.7 SP14
    Process:
    1) B2B user places order through ISA
    2) Order gets replicated R/3 from CRM through middleware (Scenario A setting)
    3) If there are any changes in order on either side, changes gets replicated.
    Requirement:
    We have a requirement from business to trigger workflow in CRM if order is in error. Following are the possible scenarios
    1) Error while saving order in CRM
    2) No errors in CRM. However, Order will get error in R/3 because of inconsistent configuration or master data between CRM and R/3. The BDOC will be green while replicating to R/3 and acknowledgement to CRM.
    3) BDOC status is in error
    Solution approach:
    We created an action to trigger event when order status set to "Contains error". The condition for Action trigger are Order have error free flag NE X(BUS 2000115 )  OR Status = I1030 OR status = I1056.
    Issues:
    1)     Scenario : Order is successfully create in CRM without any error. Order gets replicated to R/3 u2013 BDOC is green. However, the order gets error status in R/3 because of inconsistent configuration or master data. The acknowledgement BDOC updates the error status in CRM. However, Action does not get trigger when the order is updated as Error from R/3.
    Pls advise possible solution and also suggest any other way to achieve the required functionality to generate workflow for CRM order updated as Error from R/3.
    Regards,
    Anil Rithe

    Hi Anil,
    Try this, implement ORDER_SAVE BAdI.  This BAdI is triggered every time an order is saved, you could put in your logic to see if the order has errors, if yes trigger your workflow.
    I haven't tested but this should work for your case when the crm order is set to error status after the replication to R/3(the BDOC scenario).
    This may not be the most efficient method of doing, but this would definitely work.
    Make sure you use proper checks at the beginning  of your order_save BAdI implementation as this badi would get executed on save of every 1-order object.
    ~Kiran

  • How can we post data from CRM to SAP using ABAP proxies???

    Hi ,
      Can anyone hep me to create interface for the following scenario How can we post data from CRM to SAP using ABAP proxies???, can I find any document ???????
    Thanks in advance
    Andy

    Andy,
    Please look at these weblogs.
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    These should give a good idea about implementing Proxies.
    Regards,
    Ravi

  • Purchase order distrubution using EDI

    Hi, SAP gurus!
    I am trying to set up Purchase order distrubution using EDI. ORDERS idocs will be sent through middleware message broker. I added ORDERS idoc in LS partner profile outbound data and set up medium type 6 for PO output. Something else is missing since I can't add manually output to a purchase order - error message VN032: "Maintain outgoing EDI-connection data for partner"
    "Short Text
    Maintain outgoing EDI-connection data for partner &
    Diagnosis
    The system could not locate the EDI partner agreements (outbound) for partner .
    System Response
    You cannot use transmission medium 'EDI' with this partner.
    Procedure
    Maintain the EDI partner agreements for partner . Make sure to create entries for output control as well as for outbound parameters."
    What else is needed besides outbound idoc data in partner profiles?
    Maybe I have to do everything completely different?
    Thanks!

    If it's an EDI interface, you should be using a trading partner partner profile type (KU or LF) ... a customer or vendor ... not a logical system, although you can use LS it's not really an optimal solution and you need to create more generic configuration to generate your IDocs from your business documents.
    I cover configuration of output control for outbound EDI invoices in a series of blog postings at:
    http://it.toolbox.com/blogs/ehadzipetros/dazed-and-confused-output-control-ate-my-brain-33944
    http://it.toolbox.com/blogs/ehadzipetros/no-longer-dazed-and-confused-my-brain-finally-ate-output-control-34065
    http://it.toolbox.com/blogs/ehadzipetros/my-brain-on-output-control-a-contented-glow-34232 and
    http://it.toolbox.com/blogs/ehadzipetros/my-brain-on-output-control-bringing-it-all-together-34416
    I also cover it extensively in my new book from SAP Press "Architecting EDI with SAP IDocs". All steps are covered in the blog postings and the book.
    Good luck.

Maybe you are looking for