Load business partner (supplier ) from XML

Hi ,
I have two similar sap companies demo1 and demo2  I need to copy supplier object ( business partner object with  cardType = supplier  )   from demo1 company to demo2 company. To perform this action i am using code below
''''' code to save bp object as xml
Dim oBP As SAPbobsCOM.BusinessPartners = clsGlobals.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
clsGlobals.SBOCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
oBP.GetByKey("bp1")
oBP.SaveXML("c:\bp1.xml")
'''' code to load bp object from xml (after connenct to demo2 company)
Dim oBP As SAPbobsCOM.BusinessPartners = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
oBP = m_diCompany.GetBusinessObjectFromXML("c:\bp1.xml", 0)
If oBP.Add() <> 0 Then
      Throw New Exception(oCompany.GetLastErrorDescription)
i got exception " You cannot set the field if business partner is a vendor "
Very important note : with bp object with cardType = customer this code working fine
If any one can help us with this problem?
Thanks.

Thanks for all answers ,
I resolved this issue by adding new bp as supplier , after that i updated the bp from xml .
source code:
m_diCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
                    Dim oBP As SAPbobsCOM.BusinessPartners = m_diCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
                    oBP.CardCode = m_newCardCode
                    oBP.CardType = SAPbobsCOM.BoCardTypes.cSupplier
                    If oBP.Add() <> 0 Then
                        GlobalDll.log.writeToLog("add bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                        errFlag = True
                        sapErr = m_diCompany.GetLastErrorDescription
                        Throw New Exception(sapErr)
                    End If
                    If oBP.UpdateFromXML(xmlFilePath) <> 0 Then
                        GlobalDll.log.writeToLog("update from xml bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                        errFlag = True
                        sapErr = m_diCompany.GetLastErrorDescription
                        Throw New Exception(sapErr)
                    End If
                    If oBP.Update() <> 0 Then
                        GlobalDll.log.writeToLog("update  bp err with cod:" & m_newCardCode & " to db with name:" & check.Caption)
                        errFlag = True
                        sapErr = m_diCompany.GetLastErrorDescription
                        Throw New Exception(sapErr)
                    Else
                        File.Delete(xmlFilePath)
                        GlobalDll.log.writeToLog("bp with cod:" & m_newCardCode & " was added to db with name:" & check.Caption)
                    End If

Similar Messages

  • GETWA_NOT_ASSIGNED short dump when load business partner master data

    Hi
    I've this error GETWA_NOT_ASSIGNED short dump when load business partner master data, it's running in BI 7.0 with support package 12.
    The error is because the field symbol is that pointed to the line of an internal table that was deleted.
    I think that it's an incompatibility between subroutine and unicode.
    Do you have idea about correct this error?
    Regards
    Jose.

    Hi Ravi
    Yes, it's a dump
    It's when running a process chain to load Business partner master data
    The error say:
    -.You address a field symbol that pointed to the line of an internal table that was deleted.
    -.You address a field symbol that was previously reset using UNASSIGN or that pointed to a local field that no longer exist.
    -. You address a global function interface, although the respective function module is not active - that is, is not in the list of active calls. the list of active calls can be taken from this short dump.
    I think that it's for the unicode corversion because I've the last support package 12 installed and the rest of the process chain are running perfect.
    My hotmail mail is [email protected] if you need the screen shot.
    Regards and thanks a lot
    Jose

  • Business Partner extract from R/3 (or SRM) to MDM without XI

    Dear SAP Experts,
    do you have any solution for extraction of Business Partner data from R/3 (or SRM) to MDM without XI? I know transaction mdmgx and the reference data went to the MDM well. How can I do the same for master data without XI? Please write me a step-by-step solution, if you can, because we haven't got too much time, to solve this issue.
    Thanks a lot!
    Best regards,
    Ádá

    Hi Adam,
    there are different reasons for this:
    1. MDMGX selects data directly from tables. Customizing tables are very simple tables, thus it was possible to implement a direct access. Master data itself is stored in distributed, multiple tables. It's not this easy to extract the data, thus MDM_CLNT_EXTR is using special extractors for the master data objects. Those object extractors are delivered by the object owners, not by the MDM group.
    2. ALE IDoc and Proxy messages are the common way for data exchange between SAP systems. There are predefined IDoc and XML message types for master data. This was not the case for customizing data, so we decided to use FTP for MDMGX just as an exception.
    3. The MDM data model for business partners has to combine different data models: R/3's customer and vendor with CRM's/SRM's business partner. Those models have to be combined to a general MDM Business Partner model. This requires a structural and value mapping of the different structures. Currently this is done on XI using a XSLT Message transformation.
    BR Michael

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • Entering Business Partner data from IC Webclient - CRM2007

    Just wanted to check that if I enter Business partner data from the IC Webclient is the data stored in the CRM backend tables for example BUT000, BUT050 etc and if so is this done on the fly or a scheduled update? If not what tables are they stored in.  Also can I see the same information once it is entered in the webclient via the CRM transaction BP Thanks

    Hi Niten,
    The tables are the same (for example: but000 for master partner data, but050 for relations, and so on...).
    The data is updated when you press the respective save button, or when you press the 'end' button at telephony bar (to end an Interaction Center Interaction).
    And yes, you can then check the information in BP t-code.
    Just try it and see by yourself
    Kind regards,
    Garcia

  • Extracting Business Partner information from CRM to XI

    What is the best approach to extract Business Partner information from CRM to XI

    Hi,
    by IDOCs of course
    you can create them just like I did:
    /people/michal.krawczyk2/blog/2006/11/14/xipi-data-type-enhancements-standard-business-partner
    (you jut need to change from proxy to ALE - another module)
    but bisically it's a standard to generate
    a business partner record and send it as an IDOC from CRM
    Regards,
    michal

  • How to get business partner name from sap user

    Hello,
    We want to get in the code the business partner name from sap user.
    What function modules should we use to perform it?
    Thanks in advance,
    Sergey

    HI,
    You can use the FM:CRM_CENTRALPERSON_GET
    pass the input parameter IV_USERNAME as the user name
    You can get the result in the export parameter EV_NAME as user's first name last name
    regards,
    PP

  • Problem with Business partner flow from R/3  to CRM

    Hi,
    We are setting up a process to flow of Business Partners from R/3 to CRM. 
    We have configured PIDE correctly but the problem is when I am creating any customer in R/3 we are getting DUMP.  
    Kindly help me in this regards.
    Thanks

    Hi,
    Check out the following Middleware Configuration :
         <b>CRM Middleware configurations</b>     
    1.     Source client for Client copy
         Using t-code SCC3 in both CRM and ISU to get the source client used for client copy.      Get source client for profile SAP_ALL.
    2.     RFC Destinations
         Use t-code SM59 and check if the following RFC destinations have been created:
    •     CRM
    o     R/3 Destination for CRM e.g. CRTCLNT240
    o     R/3 Destination for ISU e.g. ISTCLNT240
    o     Logical Destination for Middleware R&R queues – one for current client and one for client 000.                                                                            e.g. SAPCRM_MW_RR_240, SAPCRM_MW_RR_000     
    o     TCP/IP Destination for IPC dispatcher e.g. IPC_RFC_DISPATCHER
    o     TCP/IP Destination for IPC server e.g. IPC_RFC_SERVER
    •     ISU
    o     R/3 Destination for CRM e.g. CRTCLNT240
    o     R/3 Destination for ISU e.g. ISTCLNT240
    3.     Logical Systems
         Using t-code SALE check if the following logical systems have been created:
    •     CRM
    o     Own logical system – e.g. CRTCLNT240
    o     Logical system for ISU – e.g. ISTCLNT240
    o     Logical system for source client used in client copy – e.g. CRTCLNT200
    •     ISU
    o     Own logical system – e.g. ISTCLNT240
    o     Logical system for CRM – e.g. CRTCLNT240
    o     Logical system for source client used in client copy – e.g. ISTCLNT200
         Check if own logical system is assigned to the client.
         Path: Sending and Receiving systems -> Logical Systems -> Assign Client to Logical      System.
         Convert Logical System name in application tables
         Use t-code BDLS to convert logical system names in the application system.     
    1.     Enter old logical system name retrieved in step 1. e.g. CRTCLNT200
    2.     Enter new logical system name e.g. CRTCLNT240.
    3.     Select radio button Conversion of Client-Dependent Tables and execute the transaction.
    This process needs to be carried out 4 times: twice in CRM and twice in ISU.
    •     CRM
    o     Old CRM logical system -> New CRM logical system. e.g. CRTCLNT200 -> CRTCLNT240.
    o     Old ISU logical system -> New ISU logical system. e.g. ISTCLNT200 -> ISTCLNT240.
    •     ISU
    o     Old CRM logical system -> New CRM logical system. e.g. CRTCLNT200 -> CRTCLNT240.
    o     Old ISU logical system -> New ISU logical system. e.g. ISTCLNT200 -> ISTCLNT240.
    4.     Middleware Parameter tables
         Use t-code SM30 to maintain middleware parameters in following tables
    •     CRM
    o     Table SMOFPARSFA:
         Change value for following parameter entry:
         Key - R3A_COMMON
         Para name - CRM_DEFAULT_DESTINATION
         Value - Old ISU logical system -> new ISU logical system
              E.g. ISTCLNT200 -> ISTCLNT240     
    •     ISU
    o     Table CRMRFCPAR:
         Delete the previous entry for the following key:
         User - CRM
         Object name - *
         RFC Destination - Old RFC destination for CRM e.g. CRTCLNT200.
         Load types - All Load Types
         Create new entry with following data:
         User - CRM
         Object name - *
         RFC Destination - New RFC destination for CRM e.g. CRTCLNT240.
         Load types - All Load Types
         In Queue flag - X
         Send XML – No XML
    o     Table CRMPAROLTP:
         Change value for following parameter entry:
         Para name - CRM_DEFAULT_DESTINATION
         User - CRM
         Value - Old CRM logical system -> new CRM logical system
              E.g. CRTCLNT200 -> CRTCLNT240
    5.     Admin Console (Sites and subscriptions)
         Using t-code SMOEAC in CRM change attributes for the following sites.
    •     CRM site
    o     Name: Change name from old CRM logical system -> new CRM logical system e.g. CRTCLNT200 -> CRTCLNT240
    o     Description: Change description from old CRM logical system -> new CRM logical system e.g. CRTCLNT200 -> CRTCLNT240
    o     Site attributes: Change RFC destination from old CRM RFC destination to new CRM RFC destination e.g. CRTCLNT200 -> CRTCLNT240
    o     Click on get values button to refresh logical system details.
    •     ISU site
    o     Name: Change name from old ISU logical system -> new ISU logical system e.g. ISTCLNT200 -> ISTCLNT240
    o     Description: Change description from old ISU logical system -> new ISU logical system e.g. ISTCLNT200 -> ISTCLNT240
    o     Site attributes: Change RFC destination from old ISU RFC destination to new ISU RFC destination e.g. ISTCLNT200 -> ISTCLNT240
    o     Click on get values button to refresh logical system details.
         Check if ISU site is assigned to following subscriptions.          
    •     All Business Agreements (MESG)
    •     All Business Partner Relationship (MESG)
    •     All Business Partners (MESG)
    •     All Business Transactions
    •     IS-U Connection Objects (MESG)
    •     IS-U Contracts (MESG)
    •     IS-U Points of Delivery (MESG)
    •     Product Materials (MESG)
    6.     CRM Middleware Queues
         Inbound Queues:
    I.     Execute transaction SMQR.
    II.     Change AS group from ‘DEFAULT’ to ‘parallel generators’.                Path: Edit -> Change AS Group
    III.     Register following queues:
    •     CRM     
    o     CSA*
    o     R3A*
    •     ISU
    o     R3A*     
    Outbound Queues:
    I.     Execute transaction SMQS.
    II.     Change AS group from ‘DEFAULT’ to ‘parallel generators’.                Path: Edit -> Change AS Group
    III.     Register following queues:
    •     CRM     
    o     CSA*
    o     R3A*
    •     ISU
    o     R3A*     
    R&R Queues:
    I.     Execute transaction SMOHQUEUE in CRM.
    II.     Check if all queues have status ‘Released’.
    III.     Start Queue Demon by clicking on ‘Start Queue Demon’.
    <b>Please reward points if it helps.</b>
    Regards,
    Amit Mishra

  • IDOC error when using LSMW+XIF to load business partner data

    Hi experts,
        i have configured the LSMW using idoc type 'CRMXIF_PARTNER_SAVE01', but it gives somes errors like below (LSMW_BP456 is the BP no)
    E  Partner LSMW_BP456 (4A01EE5D47261621E10000000A0A0ACB ): the following err
    W Partner data processed with key PartnerGUID 4A01EE5D47261621E10000000A0A0
    W Partner data processed with key PartnerID LSMW_BP456
    E No update is defined for BP role 000000
    E Validation error occurred: Module CRM_BUPA_MAIN_VAL , BDoc type BUPA_MAIN
    E Error status 'A ' calling validation service
    In fact i have loaded product succesfully using this interface, so i am sure the basic setting is done for XIF interface.
    And i found the error messages come when executing below code in fm 'CRMXIF_PARTNER_SAVE' in debug mode. I am not very familiar with BDOC and it seems that the error occured when processing bdoc.
    call MW flow service synchronous (error handled by caller)*
      IF lv_callmode = 'S' OR lv_callmode IS INITIAL.
        CALL METHOD cl_smw_mflow=>validate
    Any advice ? thanks

    Hi,
    I have looked into the issue. If you are trying to create the BP with general role 000000, i think it might not be possible via LSMW.
    The error message is correct, because role 000000 is indeed not relevant for update because if you can see in the customising Tx BUSD, 'FLAG - Do not update' will be active. This is the reason why you are getting the error message of 'No update is defined for the role 000000'.
    When you insert a partner in role "000000 General Business Partner",the error message "BP role cannot be updated" will be returned. This error message is very specific for this issue. You can create BP in different roles apart from the general role.
    Indeed if you try to change the 'Do not update' flag to inactive state and process the LSMW project you will be able to create the BP but it is strictly not recommended.
    This role is a technical role which exists for the creation of BP, and immediately you will fall back to other roles available for the partner.
    So i feel you need to change the role before you create BP with this role via LSMW.
    I hope this helps.
    Regards,
    Venkat

  • Post Business Partner data from SBL CRM to SAP CRM

    Hi CRM Gurus,
    I am very new to SAP CRM. I have got an assignment wherein I will get the XML file from Siebel CRM, which will contain the "Business Partner" data.
                                             I need to upload this data into SAP CRM by mapping all the fields available in the XML file.
                              Please let me know the step by step process to reach the goal.
    Regards
    Sandy

    Sandeep, since this is a conversion related task you might want to browse http://sap.help.com and search for the so called 'XIF Adapter'. This adapter is part of SAP CRM's Middleware and provides the functionality to import and export individual objects using XML/SOAP technology.
    Second option you could evaluate is BP creation through the usage of the standard BADI's that SAP delivers. Let me know whether this gets you started, Tiest.

  • Business Partner Replication from CRM to R/3

    Hello friends,
    I am not able to replicate BP from CRM to R/3. When i create a business partner i see bdoc
    in SMW01 with status in yellow colour and there is no error description. If i try to debug
    the replication in foreground, i can see all the entries which i entered in CRM done in R/3,
    but it stops at the Customer attribute screen(Additiona fields as seen in Extras in the task
    bar) and doesnot goes further, even if i enter something it remains in the same state. As
    per me the customer attribute field in not mandatory in R/3, i dint found the settings for
    it in SPRO but logically if R/3 system allows me to save the customer without entering the
    attributes then my thinking should be right.
    Kindly give me some pointers to resolve this or please let me know the check points,
    prerequisites for replication of customers from CRM to R/3.
    Thanks & Regards,
    Yogesh

    Hi Yogesh,
    Check the R/3 transaction OB20, Double clidk on "Create Customer (Centrally) "
    Here we maintain the options for all the field e.g required / optional etc..
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash.

  • Replication of Business Partner Data from ECC to legacy

    Hi,
    My requirement is to replicate any changes made to Business Partner,should immediately get reflected in the legacy.
    Which is the best method to follow.I am planning to use ABAP proxies instead of IDOCS.
    As the replication needs to be immediate,Can I use ABAP Proxy.?
    And for tigerring this proxy I need to enhance the code for Business Partner(BP) to call the proxy.
    Is my approach correct or do I need to follow any other approach.
    Regards,
    Vinod Kumar.

    Hi,
      The approach should be based on the kind of data you want to upload in SAP. if you want to upload some standard process documents like Sales order/ purchase order then it will be good to use IDOC. As we have Standard IDOCs available in SAP to upload such document in ECC. In case you want to track the change in data from BP which is not part of any standard process then in that case you can go for ABAP proxy.
       If you are using ABAP proxy you dont need to call it from BP. From BP the changes will be sent to PI (in the form of File/database Query/JMS Queues ..etc ). Then PI will call inbound proxy from ECC and post the data.
    Please let me know if you have any other Qs.
    Shweta.

  • Migration of  Business Partner data,  from a legacy system, does not work

    Hi All,
    We use a non-SAP application where  our customers sign a loyalty  program. The database created is replicated to CRM 7.0. However, when we create the Target Group in the Web Client UI,  the number of Business Partner in CRM is different from the number of BP registered in  the legacy system.
    Any comment can be helpfull.!
    Regards
    Marí

    Maria,
    Please explain the way the data has been replicated,,, ( Errors in few records - answer to the mystery)
    Is there any segmentation basis used while creating the target group? ( Segmentation Basis - answer to the mystery)
    What are the data sources used for segmentation? ( Different query settings -  answer to the mystery)
    Regards,
    Piyush

  • Sqlldr is loading only 1st record from xml document

    Hi,
    I am trying to load XML doc with multiple records using sql*loader.
    I have registered my XSD perfectly.
    This is my control file
    LOAD DATA
    INFILE *
    INTO TABLE Orders APPEND
    XMLType(xmldata)
    FIELDS(
         xmldata LOBFILE (CONSTANT FULDTL_2.xml)
    TERMINATED BY '???')
    BEGINDATA
    FULDTL_2.xml
    -- Here, what I have to give for TERMINATED BY '???'
    My xml doc
    <Order ID="146120486" Status="CL" Comments="Shipped On 08/05/2008"/>
    <Order ID="143417590" Status="CL" Comments="Handset/Device has been received at NRC" ShipDate=""/>
    sqlldr is loading only 1st record from the file.
    How can I make it to load all the records from my xml doc.
    Thanks in advance.

    thanks for both the replies above - essentially the same correct solution.
    something worth noting now that I've written and tested both a SAX solution and a DOM solution is that there is a significant (4 x) time penalty using SAX.
    I considering dividing the vector I am storing/recovering into chunks and saving each chunk separately using DOM to speed things up...
    any thoughts on this approach?

  • Business partner retrieval from BOL

    Although I am not new to ABAP and CRM I have difficulties understanding how the BOL/GENIL principal works and how to make full use of it.
    Problem: I have developed a custom BSP which is called from IC Webclient (ZC_ICWEB).
    I would like to know if there is a way of retrieving the business partner which has been identified (either via identification or inbox) in my own BSP.
    Is the BOL always available in whatever BSP (custom or standard) you are in? How can I read this object and what query do I need to execute in order to obtain PARTNER?

    Hi ,
    Get the Variables stored in the gloabl Context from the interation center framework
    Use the following code ,use the interface if_iccmp_global_data_cont_con to get the global variables
    DATA: lr_gdc TYPE REF TO if_crm_ui_data_context.
    lr_gdc = cl_crm_ui_data_context_srv=>get_instance( me ).
    lr_entity = lr_gdc->get_entity( name = if_iccmp_global_data_cont_con=>gdc_currentcustomer ).
    GDC_CURRENTCUSTOMER gives the confirmed BP in the IC_Agent Role
    Regards
    Vikranth

Maybe you are looking for

  • Opening raw from Olympus EM1 in Snow Leopard

    Hy everybody, maybe it is not the right place... I've got a problem with my Imac running 10.6.8, because Preview does not displays the orf of my new camera, Olympus OMD EM 1. I have read that Preview share the same raw converter of Iphoto and Apertur

  • Do you need a special external hard drive for iMac?

    Do you need a special external hard drive for iMac?

  • How to give F4 Help for out put screen

    Hi , I have out put grid display which is editable , in that i want to give F4 help for one of the eidtable field. if any body know about this please me . My problem is i need to add F4 for my out put screen. Thanks , saleem.

  • Vector art and compatibility

    does anyone know a vector art program that is compatible for macs? the one i find so far are only windows.

  • Nokia n8 3g staying on

    Has their been a solution for the n8 3g's signal staying on all the time, tried turning off all apps, tried turning packet data to only when needed, access is turned to manual, only had this problem for the last two days, only way to turn off 3g conn