Function module to create business partner

Hi,
  I want to create the business partner and iam using the 'BAPI_BUPA_FS_CREATE_FROM_DATA2'  but it is not updating the record in but000.
  its very urgent, popints will be rewarded.

DATA : PARTNER_CATEGORY TYPE BAPIBUS1006_HEAD-PARTN_CAT,
CENTRALDATA TYPE BAPIBUS1006_CENTRAL,
PERSON_DATA TYPE BAPIBUS1006_CENTRAL_PERSON,
ADDRESS_DATA TYPE BAPIBUS1006_ADDRESS,
TELEFONDATA TYPE TABLE OF BAPIADTEL WITH HEADER LINE,
FAXDATA TYPE TABLE OF BAPIADFAX WITH HEADER LINE,
E_MAILDATA TYPE TABLE OF BAPIADSMTP WITH HEADER LINE,
WA_RETURN TYPE BAPIRET2,
PARTNER_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP,
TITLE_KEY TYPE AD_TITLE.
PARTNER_CATEGORY = '1'. "Person
PARTNER_GRP = '0002'.
CENTRALDATA-SEARCHTERM1 = SEARCHTERM1.
CENTRALDATA-SEARCHTERM2 = SEARCHTERM2.
TRANSLATE TITLE TO UPPER CASE.
IF TITLE = 'MR.'.
TITLE_KEY = '0002'.
ELSEIF TITLE = 'MS.'.
TITLE_KEY = '0001'.
ENDIF.
CENTRALDATA-TITLE_KEY = TITLE_KEY.
PERSON_DATA-FIRSTNAME = FIRSTNAME.
PERSON_DATA-LASTNAME = LASTNAME.
PERSON_DATA-TITLE_ACA1 = TITLE_ACA1.
PERSON_DATA-TITLE_SPPL = TITLE_SPPL.
PERSON_DATA-NAMEFORMAT = NAMEFORMAT.
PERSON_DATA-BIRTHDATE = BIRTHDATE.
PERSON_DATA-CORRESPONDLANGUAGE = CORRESPONDLANGUAGE.
PERSON_DATA-*** = ***.
PERSON_DATA-MARITALSTATUS = MARITALSTATUS.
PERSON_DATA-NATIONALITY = NATIONALITY.
ADDRESS_DATA-STANDARDADDRESS = 'X'.
ADDRESS_DATA-HOUSE_NO = HOUSE_NO.
ADDRESS_DATA-STREET = STREET.
ADDRESS_DATA-PO_BOX = PO_BOX.
ADDRESS_DATA-POSTL_COD1 = POSTL_COD1.
ADDRESS_DATA-CITY = CITY.
ADDRESS_DATA-REGION = REGION.
ADDRESS_DATA-COUNTRY = COUNTRY.
ADDRESS_DATA-LANGU = LANGUAGE.
TELEFONDATA-TELEPHONE = TELEPHONE.
APPEND TELEFONDATA.
FAXDATA-FAX = FAX.
APPEND FAXDATA.
E_MAILDATA-E_MAIL = EMAIL.
APPEND E_MAILDATA.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
BUSINESSPARTNEREXTERN = BP_NO
PARTNERCATEGORY = PARTNER_CATEGORY
PARTNERGROUP = PARTNER_GRP
CENTRALDATA = CENTRALDATA
CENTRALDATAPERSON = PERSON_DATA
ADDRESSDATA = ADDRESS_DATA
IMPORTING
BUSINESSPARTNER = BP
TABLES
TELEFONDATA = TELEFONDATA
FAXDATA = FAXDATA
E_MAILDATA = E_MAILDATA
RETURN = RETURN.
Reward if useful.

Similar Messages

  • How to create Business partner from uploaded file by Function module?

    Hi Experts,
    I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
    I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
    I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
    Please respond soon Its a requirement form the client.
    Prem.

    HI,
       You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
    call function 'BAPI_BUPA_CREATE_FROM_DATA'
              exporting
                businesspartnerextern              = g_bpartner-partn
                partnercategory                    = partnercategory
                partnergroup                       = partnegroup
                centraldata                        = centraldata
                centraldataperson                  = centraldataperson
                centraldataorganization            = centraldataorganization
    *       CENTRALDATAGROUP                   =
                addressdata                        = addressdata
    *       DUPLICATE_MESSAGE_TYPE             =
    *         IMPORTING
    *            BUSINESSPARTNER                    = G_BPARTNER-BUSINESSPARTNER
             tables
                telefondata                        = telefondata
                faxdata                            = faxdata
                e_maildata                         = e_maildata
                return                             = return
    *       ADDRESSDUPLICATES                  =
                addressnotes                       = addressnotes.

  • Bapi's or function modules to create, change( delete) partner functions

    Hi,
       Can anyone suggest BAPI or Function Modules for creating , changing the Partner Functions of the customer
    eg: To create customer XYZ as  bill-to-party of customer ZYX , i need  either a BAPI or Function Module.
    Thanks in Advance,
    Sabu

    Hi The following are the BAPI's to create and change the Partner Function.
    BAPI_BUS2001_PARTNER_CHANGE_M
    BAPI_BUS2001_PARTNER_CREATE_M
    Regards
    Vijay

  • Geocode Error while creating Business Partner in Audit Management

    Hi All,
    When I try to create business partner in PLMD_AUDIT and assign it to various partner roles like Auditor, Responsible person etc. I am getting error as " Geocoder SAP0: Country specification is (Customizing) " What should be done to avoid this error?
    Found details in spro:
    For "SAP0 Geocoder" there is no function module and destination assigned, Is it the cause of error? If it is the case then what should be assigned and Let me know the standard function module.
    Regards,
    Ram.

    hi Keerthi,
    553073 is the sap note for geocode error in country specification.
    Regards,
    Ram.
    Edited by: Ramachandran Jayaraman on Jun 9, 2008 3:18 PM

  • Function Module to create a Sales Order in CRM

    Hi Experts,
    I want to create a function module which creates a Sales Order in CRM.
    As of now, I'm making use of the function module 'BAPI_BUSPROCESSND_CREATEMULTI'.
    I have product ID and Quantity.
    Please let me know what all rest of the fields are mandatory to create a Sales Order using this function module.
    Thanks in Advance,
    lakshman.

    Depending upon the configuration many things could be mandatory. Assuming no such things in your system, Process type (order type) is required and it is good to give the Sold-To business partner and the Org Details, for the Header information. For the item information, you need the Product and Quantity.
    In theory, in CRM, you can create a transaction and "save" it with lot of errors. So, even if you don't give enough information, you will have a transaction with error. You can later fix it the input to fix the errors.
    Best way to know is to use your SAPGUI (CRM Online) version crmd_order and find for your implementation.
    Easwar Ram
    http://www.parxlns.com

  • Error while Creating Business partner in FPP1

    Hi,
    I can't create Business partner in standard T.code FPP1 in Test System and getting the following error
    "Application object BUPA: Table EBUPD does not exist".
    Kindly help me in solving this issue.

    Hi Venkatesh
    Please add the message class and message number - in this case R1 149 - next time you post a problem.
    There's probably an issue with your setup with for the Business Partner Screen Layout (area menu BUPT).
    The error is raised, because the EBUPD is not a table assiciated with the Business Parter (Application object BUPA). See transaction BUSG or table TBZ1H. It is in fact a dynpro structure.
    Now there's a table that links the dynpro structure fields to the db table fields, which should translate the structure EBUPD into table EKUN fields: TBZ1C. Technically, this is done in function BUS_DYNFLD_TO_DBFLD_CONVERT and it returns the dynpro structure instead of the DB table if there's no corresponding entry in TBZ1C.
    So please check if you can find following entry in TBZ1C (client dependent):
    OBJAP  DYNPTABNM  DYNPFLDNM  DBTABNM  DBFLDNM
    BUPA   EBUPD      +          EKUN     +
    Or via transaction BUSP - Screen field --> Database Field
    If the entry is missing I suggest you add it.
    Yep
    Jürgen

  • SLG1 error while creating Business Partner

    Hi,
    Im currently working on SRM 7.0 and keep receiving the following errors in SLG1. Can you kindly advise what might be the root cause for the below errors so ican fix the issue and ensure the same error doesnt pop up going further?
    Error type 1:
    Error: Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXX
    The region 00 is not defined for country DE
    Error type 2:
    Error: Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXXX
    The transport zone ZOC0000001 is not defined for country YY
    Error type 3:
    Error:Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXXX
    Email address "whatever email" is invalid
    Appreciate your feedback
    Akshay

    Hello Akshay,
    Resolution for Isuue 1:
    SAP Web Application Server -> General Settings -> Set Countries -> Insert Regions or Define Country Codes
    Region for country DE is not maintained in SPRO or bad data.
    Resolution for Issue 2:
    SAP Web Application Server - Application Server - Basis Services - Address Management - Maintain Transport Zones
    Maintain the transport zones in SRM.
    Resolution for Issue 3:
    email address should be a valid address. SRM checks the format e.g. xx @ yy . zzz
    I believe error could be due to incorrect data.
    Hope this solves.
    Ashutosh

  • How to create business partner temblet

    Dear friends,
            how to create business partner temblet .
      please send the following mail address
       [email protected]
                      Thangs in advance
    Regards,
    S.Siva

    hi
    Refer to the links below might get u some info
    General Business Partner-initial screen
    http://help.sap.com/erp2005_ehp_02/helpdata/en/39/0b77a9df3011d189fc0000e829fbbd/frameset.htm
    Business partner as Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/2f/3a2a09969611d2ac750000e829fbfe/frameset.htm
    Business Partner
    http://help.sap.com/erp2005_ehp_02/helpdata/en/43/a0dfe510d825e5e10000000a1553f7/frameset.htm
    Creating or Changing Master data Template
    http://help.sap.com/erp2005_ehp_02/helpdata/en/c7/adcef39296f94e8ef7077ce160200e/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/57/92f63aad7e3014e10000000a11402f/content.htm
    http://b1up.net/index.php?id=modules
    Reward if USeful
    Thanx & Regards.
    Naren..

  • How to create Business Partner in CFM

    Hello,
    I want to Know which TCode should be use while creating Business Partner in CFM Module
    Regards
    Reshma

    Dear Reshma,
    Please, use the transaction "BP" in CFM module to create a business partner.
    Regards,
    Paulo

  • Function Module to create Delivery with JIT Calls

    Hi SAP Guru's,
    We are working on SAP 4.6C version.
    I am looking for a function module to create delivery with JIT Calls.
    We are currently using the SAP standard function module "SHP_VL10_DELIVERY_CREATE" to create Delivery with JIT Calls. Each JIT Calls has apx 60-80 materials in it and each material refers to a unique Scheduling Agreement. This function module is taking very long time in production server to create delivery, it does not take much time in dev or quality server.
    We have JITV setting profile (For Sold To Party and Partner Description Profile) set as RELACE (to summarize the line items in JIT Call).
    Is there another function module that we can use to create delivery with JIT Calls?
    Thanks in Advance,
    Amit

    Hi there,
    There is no such function module.
    Regards
    Sanju

  • CRM - function module to create card account in deposit mangement

    Hi All,
    I need to function module to <b>display the details of business patner in CRM sytem</b>
    1. Function module to display address details of Business patner
    2. FM to display details of Identification number and identification type of Business patner.
    3. FM to display tax details of business patner.
    4. FM to display card details of Business patner
    5.)<b> Fm to create card account in deposit Mangement.</b>
    what is the transaction code to create card account in deposit management.
    Points will be awarded.
    Regards,
    vinoth.

    Hi Stefan,
    Thanks for the quick response.
    As you have suggested i am using the same set of Function Modules to create the service contracts.
    However can you please suggest how can i also change the address of the business partners i.e ship-to-party, sold-to-party, payee etc..
    And can you also suggest how to upload the header status of the service contract. (the value is getting set to default 'open')
    Thanks in advance

  • Function Module to Create or Change or Delete

    Hi Friends,
       Is there any function module to create or change or delete the business partners, there is a possiblity to do with CRMXIF_PARTNER_SAVE, but we are having some issue while calling in ISA applications.
    So please let me know is  there any possibility to get the functionality.
        We need to create the BP with all the details means central data, address data and communication data as well as some sales area data.
    Please share the helpful suggestions.
    Thanks,
    Bhaskar

    Try following Functions:
    BAPI_BUPA_FS_CREATE_FROM_DATA2
    BAPI_BUPA_CENTRAL_CHANGE
    or combination of both these FMs.
    Good Luck.

  • Function Module to create TSW Nomination

    Hi,
    I'm using 'RFC_TSW_NOM_CREATEFROMDATA' Function Module to create TSW Nomination.
    The problem I'm facing here is - I'm unable to pass 'THIRD_NOMNR' field in the Item-structure of this Function Module.
    (Partner Nomination). I searched in the structure bapitswnom03, but it is not available.
    Is this the only FM available to create Nomination?
    I tried OIJ_NOM_MAINTAIN_MULTIPLE by passing UPDKZ = 'I', but it is not working.
    Can anyone help me in providing the field name for Partner Nomination in Strucure bapitswnom03 or please provide me some other FM name.
    Thanks & Regards,
    Sowmya

    Hi,
    Try below FMs
    OIJ_NOM_MAINTAIN
    OIJ_IF_NOM_MAINTAIN

  • Role to create business partner

    Hi Experts,
    I am facing a problem that I want to create a role for the user and this role is for create business partner and the spacification is tat if one user careate a business partner then only that user can edit that business partner no other user can edit this business partner ( other user can see it only in display Mode).
    Regards,
    Sid

    Hi Sid,
    I must say - this is a very interesting problem !
    Can you try this approach - in the event AUTH1 (accessible from transaction BUS7), register your custom module. In this custom module, you would need to check if the BP you are trying to open has been created by you or not. Allow the activity to be 'Edit' only if you are the creator of the BP.
    Technically, you need to check if BUT000-CRUSR  = sy-uname.
    If this condition is violated, you will need to change activity mode to 03 (display).
    The event AUTH1 is triggered when you open a BP or try to switch to change mode, so it will be a good point for you to control the access.
    I hope this helps.
    Cheers,
    Rishu.

  • Badi before create Business Partner

    Hello Expert !!!
            when I create Business Partner in transaction BP , I have to add attribute set in tab marketing attributes everytime (depend on role that i create ).
            I want to program for automatic update attribute set .
           Do you know the Badi that i can code in that ? Badi  before create Business Partner?
      please help me
    advance thanks,
    kritamate

    hey everyone !!!!
    this all code in Badi Partner_update :
    method IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_UPDATE .
    FIELD-SYMBOLS: <ls_but000_new> TYPE but000,
                     <ls_but050_new> TYPE but050.
    CONSTANTS: lc_object_type TYPE crmt_prt_otype VALUE 'BUS1006'.
    DATA: lt_changed_object_guids TYPE crmt_ace_object_guid,
            lt_new_object_guids     TYPE crmt_ace_object_guid,
            ls_object               LIKE LINE OF lt_changed_object_guids,
            lt_but000_old           TYPE STANDARD TABLE OF but000,
            lt_but000_new           TYPE STANDARD TABLE OF but000,
            ls_but000_old           LIKE LINE OF lt_but000_old,
            lt_but050_new           TYPE STANDARD TABLE OF but050,
            lt_but050_old           TYPE STANDARD TABLE OF but050,
            ls_but050_old           TYPE but050,
            lv_partner_guid         TYPE bu_partner_guid,
            lt_return               TYPE STANDARD TABLE OF bapiret2,
            lv_tabix                TYPE sy-tabix.
    CLASS cl_bsp_bp_accmod DEFINITION LOAD.
    business partners ************************************************
      CALL FUNCTION 'BUPA_GENERAL_CALLBACK'
        TABLES
          et_but000_old = lt_but000_old
          et_but000_new = lt_but000_new
        EXCEPTIONS
          OTHERS        = 0.
    BP new or changed?
      LOOP AT lt_but000_new ASSIGNING <ls_but000_new>.
        ls_object-object_guid = <ls_but000_new>-partner_guid.
        READ TABLE lt_but000_old INTO ls_but000_old
                   WITH KEY partner = <ls_but000_new>-partner.
      New BP created
        IF sy-subrc NE 0 OR ls_but000_old-client IS INITIAL.
          COLLECT ls_object INTO lt_new_object_guids.
      BP changed
        ELSE.
          COLLECT ls_object INTO lt_changed_object_guids.
        ENDIF.
      ENDLOOP.
    data BP_guid type CRMT_TG_BP_GUID.
    DATA: L_ATTRIBSET TYPE CRMT_PROF_TEMPLATE.
    DATA : LW_VALUE TYPE CRMT_MKTPROF_COMW.
    DATA: T_VALUE TYPE TABLE OF CRMT_MKTPROF_COMW  .
    DATA: T_RETURN  TYPE TABLE OF  BAPIRET2 ,
           LV_BP_PERSON             TYPE  BU_PARTNER.
    CONSTANTS: C_ROLE(5)          VALUE 'ZMROL'.
    L_ATTRIBSET  =  C_ROLE.
    BP_guid = ls_object-object_guid. .
              LW_VALUE-ATNAME = 'ZMRO0001'.
              LW_VALUE-ATWRT = 'Z11'.
              INSERT LW_VALUE INTO TABLE T_VALUE.
    *LV_BP_PERSON = '20001678'."<ls_but000_new>-partner .
    CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
      EXPORTING
        iv_profile_template_id       = L_ATTRIBSET
       IV_BP_GUID                   = BP_guid
      IV_XDESCR                    = ' '
      IV_FCODE                     = 'C'
      IV_MSA                       = 'X'
      IV_COMMIT                    = 'X'
      IV_PARTNER                   = LV_BP_PERSON
      IV_CONVERT_VALUES            = 'X'
    TABLES
       IT_IMP_SELTAB                = T_VALUE
        ET_RETURN              = T_RETURN.
       if sy-subrc <> 0.
         endif.
    endmethod.
    message Shotdump :
    What happened?
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X).
    i don't what happen . Maybe because it cannot use this function in badi . I don't know . if you know ,please help
    advance thanks ,
    kritamate

Maybe you are looking for