FM to create a business partner

Hi
Which function module used to create a business partner like ship-to, sold-to sales employee, contact person  and assign to customer.
Best regards
Pravin

Hi ,
take a look in those functions :
1) BAPI_BUSINESS_PARTNER_CREATE
2) COM_PARTNER_BAL_CREATE
regards ,
Herzel .

Similar Messages

  • Error while creating a business partner / sponsor

    Hi experts,
    I am getting the following error (same as the one posted by one of the other users) when i try to create a business partner in the 'sponsor' role:
    Sponsor does not have a customer associated with it.
    Because of this error I AM STUCK!!! and cannot move forward with the rest of the customization. I searched all the settings and researched this error - couldnt find anything useful.
    Can you guys PLEASE HELP???
    Thank you,
    Ajay

    Dear Ajay,
    The sponsor should have a customer number behind
    Please have a look at the online help:[http://help.sap.com/saphelp_erp60_sp/helpdata/en/8d/b6283b85b6666be10000000a114084/frameset.htm]
    See Customizing Grantee Management   ->GM-GTE Customizing: Master Data  -> GM-GTE Master Data Customizing: Sponsor
    You can adjust your customizing in a way to create the customer automatically at the time of creating the sponsor, or you can first create the sponsor and link it to a customer afterwards. This will depend on how the sponsor Role (Standard is PSSP01) is set.
    you can find it in the IMG> Master Data Synchronization> Customer/Vendor Integration> Business Partner Settings> Settings for Customer Integration> Set BP Role Category for Direction BP to Customer
    and check options 'Customer-based' or 'Optional for Customer'
    Hope this will help
    Kind regards
    Mar

  • CAM_ERROR while creating a Business Partner using SD_CUSTOMER_MAINTAIN_ALL

    Hello All,
    I was trying to create a Business Partner(Ship to Party) using function module SD_CUSTOMER_MAINTAIN_ALL. When I am executing this through SE37 transaction, its working fine &
    creating a KUNNR value along with new ADRNR number.
    But when the same data is passed inside the program, its throwing CAM_ERROR(sy-subrc = 22).
    If anyone used this FM, please suggest. Thank you.

    Hello Ragu,
    I am passing the data to function module as shown below.
    *KNA1 population
                      ls_kna1-mandt = sy-mandt.
                      ls_kna1-ktokd = 'ZN02'.
                      ls_kna1-land1 = ls_adrc-country.
                      ls_kna1-name1 = ls_adrc-name1.
                      ls_kna1-name2 = ls_adrc-name2.
                      ls_kna1-ort01 = ls_adrc-city1."City
                      ls_kna1-regio = ls_adrc-po_box_reg.
                      ls_kna1-pstlz = ls_adrc-post_code1.
                      ls_kna1-sortl = ls_adrc-sort_phn.
                      ls_kna1-stras = ls_adrc-house_num1.
                      ls_kna1-spras = ls_adrc-langu.
    *BAPIADDR1 population
                      ls_bapiaddr1-name          = ls_adrc-name1.
                      ls_bapiaddr1-name_2        = ls_adrc-name2.
                      ls_bapiaddr1-city          = ch_adrc_struc-city1.
                      ls_bapiaddr1-postl_cod1    = ch_adrc_struc-post_code1.
                      ls_bapiaddr1-street        = ch_adrc_struc-street.
                      ls_bapiaddr1-house_no      = ch_adrc_struc-house_num1.
                      ls_bapiaddr1-str_suppl1    = ch_adrc_struc-str_suppl1.
                      ls_bapiaddr1-str_suppl2    = ch_adrc_struc-str_suppl2.
                      ls_bapiaddr1-location      = ch_adrc_struc-location.
                      ls_bapiaddr1-country       = ch_adrc_struc-country.
                      ls_bapiaddr1-langu         = ch_adrc_struc-langu.
                      ls_bapiaddr1-sort1         = ch_adrc_struc-sort1.
                      ls_bapiaddr1-sort2         = ch_adrc_struc-sort2.
                      ls_bapiaddr1-langu_cr      = ch_adrc_struc-langu_crea.
    *KNVV Population
                      ls_knvv-vkorg              = '1000'.
                      ls_knvv-vtweg             = '01'.
                      ls_knvv-spart               = '01'.
                        CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
                              EXPORTING
                                i_kna1                        = ls_kna1
                                i_knvv                        = ls_knvv
                                i_bapiaddr1                   = ls_bapiaddr1
                                i_maintain_address_by_kna1    = 'X'
                               i_no_bank_master_update       = 'X'
                               i_raise_no_bte                = 'X'
                                pi_postflag                   = 'X'
                               i_from_customermaster         = 'X'
                              IMPORTING
                                e_kunnr                       = lv_kunnr
                                o_kna1                        = ls_kna1_output
                              EXCEPTIONS
                                client_error                  = 1
                                kna1_incomplete               = 2
                                knb1_incomplete               = 3
                                knb5_incomplete               = 4
                                knvv_incomplete               = 5
                                kunnr_not_unique              = 6
                                sales_area_not_unique         = 7
                                sales_area_not_valid          = 8
                                insert_update_conflict        = 9
                                number_assignment_error       = 10
                                number_not_in_range           = 11
                                number_range_not_extern       = 12
                                number_range_not_intern       = 13
                                account_group_not_valid       = 14
                                parnr_invalid                 = 15
                                bank_address_invalid          = 16
                                tax_data_not_valid            = 17
                                no_authority                  = 18
                                company_code_not_unique       = 19
                                dunning_data_not_valid        = 20
                                knb1_reference_invalid        = 21
                                cam_error                     = 22
                                OTHERS                        = 23.
                            IF sy-subrc = 0.
                              EXPORT kunnr FROM lv_kunnr TO MEMORY ID 'Z_CUST_NUM'.
                              EXPORT adrnr FROM lv_adrnr TO MEMORY ID 'Z_ADDR_NUM'.
                            ENDIF.
    When I am executing this through SE37, its working perfectly. However when used in Sales Order Save exit, its throwing an error saying SY-Subrc = 22(CAM_ERROR).

  • Creating a business partner using data from a remote legacy system

    Hi Experts,
    I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
    But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
    I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
    But I am not sure if that RFC can be used for Business Partner creation.
    Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
    There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
    Thanks in advance,
    Torsten
    Edited by: Torsten Sander on Apr 22, 2008 2:48 PM

    Hi Experts,
    I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
    But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
    I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
    But I am not sure if that RFC can be used for Business Partner creation.
    Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
    There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
    Thanks in advance,
    Torsten
    Edited by: Torsten Sander on Apr 22, 2008 2:48 PM

  • Creating a Business Partner from XML

    I have a problem creating a Business Partner from an XML
    First I did get the XML from an existing one.  Deleted the DocEntry element but I always get this error :
    -5002 : Employee is not a Technician  [OCRD.DfTcnician] , '0'
    Even if I go to this element and put NOTHING, I get the error anyway
    What that means ?

    Yeah, I succeeded.  I had to get rid of dtfncien element completly and DocEntry element too and the bp was created
    Would have been so much useful to get an EMPTY xml representation of an object so we juste have to fill the needed properties to an empty one and create the object afterward.
    According to various threads, we have to GetAsXML() then, change whatever needs to be changed and then we create the object from this xml but there are a lot to get rid of sometimes in these objects

  • Any inbuilt Function Module available in CRM to create a Business Partner

    Hi All,
    I need to create a business partner in CRM not manually through GUI. I need to develop a function module that will create a Business Partner in CRM.
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create a business partner in CRM.
    When i researched i found that there is a BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 which can create a business partner in CRM.
    I dont know how to use this BAPI, can some one help me with some sample code.
    Also will the development of a function module differ in CRM when compared to ECC?

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

  • How to create a business partner whose BP category is person in crm portal?

    How to create a business partner whose BP category is person in crm portal.When I use Partner and account management>Partner function in portal,I create a new partner,the partner category is default organization,can not change.
    But I what to create a partner with the partner category person,how can I do it?
    Is there any other special function to ceate a BP in portal matching the function  with T code Bup1(create BP)in sap gui?
    By the way,I have the whole privileges in portal and crm.
    thanks

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

  • Create new  Business Partner in Loan Area

    Hi friends,
    I am facing the problem following:
    I can not create a new Business Partner (main Loan Partner) in Loan area.
    From Create new contract in Loan area, I create a new Business Partner (Organization) -> Result: Display screen is Create new contract
    I don't know why? I check in customizing but I can't find which step I missed.
    Please help me fix error
    Thanks and Best regards
    Ms. Minh

    Hi friends,
    it's done if create a Business Partner from T.code BP then assign to loan contract.
    But I want to fix error why I can't search and create a Business Partner from Loan Contract
    Thanks and Best regards
    Ms.Minh

  • How create a business partner (BUP1) with a default field?

    HI,
    I need to implement these changes, when the user calls the transaction BUP1:
    - The user must create a Business Partner with a field already filled by default.
    Any help will be appreciated.
    Regards
    Mark

    Hi Mark,
    When you create an Attribute set there is a check box named 'Default'. When you select this field then your attribute set will appear as default. You can do the same for the attributes, if you want to define a default value for an attribute.
    Also, in Customizing spro > Cross-Application Components> SAP business Partner --> business Partner --> Basic Settings --> Field Groupings --> Configure Field attributes per activity,  it is possible to define, if you create a customer, that the Attributes Set field should be : displayed, hidden etc.
    Hope this helps!
    Best regards,
    Roula Lazaridou

  • Case created without business partner, reason code and  result code

    In our CRM system, some cases was created without business partner, reason code and result code.
    We created some customer functions to make these fields as mandatory, it always work for our technique people and process expert, but it didn't work for some users occasionally. We cannot debug it.  
    Can anyone tell me why and how to solve it?
    Please help me !
    Regards,
    Shirley

    Hello Shirley,
    Well, then I would check the code, which calls your custom function modules.
    It may be possible, that you have an IF in the 'Main' program, which makes it possible to skip the custom FM for these users.
    The reason I am assuming this, is that normally you need just to change attributes for a field to make it mandatory, or customizing like SHD0 makes this possible. If you use custom FM, you have to call them somewhere and this is the point I would be looking for.
    Check the traces for the users and you should find, that the custom FM are not called for them.
    My opinion, of course
    Award points if this helps.
    Regards,
    Martin Kuma

  • Create a Business partner

    Hi Specialist
    I have some invoices in my transaction FBL5N according to one customer.  But if I am try to display my worklist i can't see the invoices...
    THen I tried to check the business partner and it isnt exist.
    Could you let me know the program to create the Business partner. I cant create it manually.
    Thank you

    Hi, In this transaction you should be able to see the Source object: Customer, Target obj. Business partner. If you dont see this options you have configuration issues.
    If you are running this for one customer you can untick the Background processing flag.
    Cristobal.

  • Problem in Creating a Business Partner Role

    Hi Frns,
    I am trying to create a BP Role from CAC->SAP Business Partner->Business Partner->Business partner Roles->Define BP Roles.
    I copied BUP003 and given my BP Role name as ZEmp.
    When i try to save it, it is giving an error message saying
    "NO STANDARD ASSIGNMENT DEFINED FOR BP ROLE CATEGORY BBP003".
    I have checked in BBP003 Category in the same.
    What could be the problem?
    Thanks in Advance
    Rohan

    Hi Roshan,
             You have Created a BP Role,
    You must also have assgned the Same to a BP Role Category Check the Settings for BP Role Category Assignment and when Appropriate you shall Assign Std Assignment of BP Role Category to your BP Role by Selecting the Check Box
    Referal Notes:
    BP Role Category
    Attribute of a BP role.
    Use
    The role category makes it possible for SAP and customer programs to program on the BP role.
    Dependencies
    The role category depends on a differentiation type.
    Any number of BP roles can be assigned to a role category, with one role always acting as the standard role per role category.
    It is possible to control the update of a role by assigning a role category to a role.
    Hope it Anwers your Queries..
    Thanks and Regards,
    RK.

  • Creating a Business Partner in CRM 5.0

    When I'm tryin to create business partner of type person in CRM 5.0, i'm getting following error
    "Run report CRM_MKTBP_ZCACL_UPDATE_30 first"
    what is this report for?
    What are steps and/or configurations needs to be there before creatign business partners?
    I would appreciate if anyone help me setting up any org structures needed.
    Thanks,
    Deepesh

    Hi Deepesh,
    This reports enables you to maintain the marketing attributes. If you run this report without test mode you will be able to maintain the marketing attribute of your BPs again.
    This report is required if you implemented a new SP or you have installed a new CRM.
    Hope this information will help.
    <b>Reward points if my post helps!!</b>
    Best regards,
    Vikash

  • How to create a Business Partner with internal number assignment

    Hello,
    We are using a CRM 7.0 system. We want to create a new Business Partner using LSMW. We chose IDoc basic type CRMXIF_PARTNER_SAVE_M03 to perform it. We want to create it with internal number assignment (we don't have BP ID or BP GUID). Unfortunatelly, when we leave PARTNER_NO and PARTNER_GUID fields empty, we get an error message that we should supply at least BP ID or BP GUID. So what values should we enter in order to create a BP with internal number assignment?
    Please put attention that we also don't want to enter any alternative external number because we don't want the end user to see after in the WebUI.
    Thanks in advance,
    Sergey Kozyrev

    Hello,
    Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
    p.s. If you don't see combobox mentioned above, it could be security issue.
    Kirill

  • Organizational objects do not create a Business Partner ID

    I am setting up SRM org structure with PPOCA_BBP/PPOMA_BBP transaction. I am creating, companies, plants, purchase orgs, purchasing groups and positions and the problem is that SRM is not assigning a Business Partner number to any of those.
    I have already checked that there is an internal and external number range setup for Business Partners. Do you have any hints why this could be happening? Your help will be appreciated.
    Thank you.

    Hi
    Which SRM version are you using ?
    I imagine you would like to synchronize business partner data, which are created in backend, into SRM. You can use Tcode BBPGETVD or BBPUPDVD or run/schedule bbp_vendor_sync (need customizing).
    You can create BP:->
    1) Either via middleware replication from R/3 to SRM - BBPGETVD.
    2) Either manually directly in SRM web transaction - BBPMAININT.
    <u>Please go through these pointers, which will definitely help -></u>
    Re: Errors: Business partner of organizational unit 50024549 has no address
    Re: Assinging users to Business Partners in EBP Org Structure
    Missing Business Partner
    Re: Error Changing Business partner address
    Re: Problem with BP. Assignment: Business partner person to user not unique
    Error in creation of Employee for Business Partner
    Re: Business Partner not created in PPOMA_BBP
    delete company code in ppoma_bbp
    Re: Business partner relationships -- "Is Identical To"
    Re: PPOMA_BBP / PPOCA /PPOSA without Address field
    Do let me know.
    Regards
    - Atul

Maybe you are looking for

  • New Macbook optical drive is...selective.

    Hi there, I was hoping you could help me out. I just got my new Macbook delivered to me a few days ago and it seems my optical drive is having issues. It will read: - burnt audio CD - regular dvd (Nirvana Unplugged) - burnt dvd (Data...House ep's) It

  • NW2004s SP12 - SP13: Model DC cannot publish Modelclasses to other DCs

    All, We are facing an issue with accessing the model classes in the another webdynpro DC once we upgraded our portal from sp12 to sp13. We referred to the following thread NW2004s SP12 -> SP13: Model DC cannot publish Modelclasses to other DCs We tri

  • SYSTEM CONFIGURATION

    HI, PL GIVE THE SYSTEM CONFIGURATION DETAILS  FOR INSTALLING SAP-ECC 6.0.

  • BODI Software i need to download from net

    Hi all, Am very new to BODI.. so can any one help me to learn about it.. can any one give me the path to download it..( bez .. i could not able to find out in google..) And any Documents on it.. Thanks Sreedhar

  • [SOLVED] Typing problem (I can't type anything anywhere) on Linux

    Hello, I've just installed SQL Developer 1.5.1.54.40 and I'm running it on Java 1.6.0_07 on a Linux machine. I've downloaded the      Oracle SQL Developer for other platforms, because my Linux ditribution is Debian, and there was no specific installe