BAPI_ADDRCONTPART_SAVEREPLICA Create contact person issue

Dear SAP Gurus,
I'm coding a RFC for create customer with contact person. I used BAPI_PARTNEREMPLOYEE_GETINTNUM and BAPI_ADDRCONTPART_SAVEREPLICA in order to create the contact person for the corresponding customer.
The process is
1. get customer number by BAPI
2. create customer by BDC
3. create contact person
The issue is
The BAPI is successfully called, and the address data is into the table, eg. ADRC.
But in Tcode XD03 contact person view, I can not find the contact person information for this customer.
Could you please kindly advise?
BTW, the BAPI input parameters are all correct I think, I also did the test in SE37
Best Regards,
Shiliang
null

Dears,
Could you please kindly help?
BR

Similar Messages

  • How to create contact person with BAPI_ADDRCONTPART_SAVEREPLICA

    Dears,
        when using BAPI BAPI_ADDRCONTPART_SAVEREPLICA to create contact person,it exports the PERSON_NUMBER and ADDRESS_NUMBER, but no record found in table KNVK for customer or vendor .
       The parameters is as below,
      CALL FUNCTION 'BAPI_ADDRCONTPART_SAVEREPLICA'
        EXPORTING
          obj_type_p    = 'BUS1006001'
          obj_id_p      = <personal number>
          obj_type_c    = 'KNA1'
          obj_id_c      = <customer>
          obj_id_ext    = SPACE
          context       = '0005'
      also no return message and sy-subrc =0.
      what maybe the error? and any other method to create contact person ?
    Ths .

    DEAR,
        after test by my colleague, after creating contact person by BAPI_ADDRCONTPART_SAVEREPLICA , then he should input the parter and name into BI structure bknvk when he use bi fm to create customer, then the contact person will be associated with the customer.
       But i use BI fm 'VENDOR_BDCDATA' to create vendor, there is no such structure to do so. so no contact person associated with the vendor, but the contact person has been created and just not associated with this vendor in table KNVK.
       are there any other methods to do such things to associate contact person with my vendor after call BI FM  'VENDOR_BDCDATA' ?
    BR.

  • SRM: Create Contact Person Could not create user; contact your system admin

    Hi All,
    First, I am not sure this question should be posted here, or SRM General. From my point of view, here is more suitable.
    Our Problem:
    Activity "Create Contact Person With Reference" error with message:
    Step to reproduce:
    1. Login to SRM JAVA as super administrator
    2. Open tab "SRM Administration"
    3. Using the current query, search for Business-Partner no: 30000725
    4. Press "Create Contact Person with Reference"
    5. Fill all required fields, tick "Is contact person" checkbox
    6. Put: /SAPSRM/SUPPLIER as Role
    7. Save
    The following Message appear:
    Could not create user; contact your system administrator
    SPML Service error: Error reading request status.  Display Help
    Contact Person 2000000214 Created Successfully for BP 30000725  Display Help
    E-mail was sent
    The first error is intriguing. The username & password is created successfully in ABAP System (Our UME is in ABAP).
    QUESTIONS:
    1. What cause this problem? How to trace the error?
    2. We want the user have portal role automatically. How to achieve that?
    Thank you for any responses and helps.
    SRM ABAP Version:
    SRM_PLUS     700     0009     SAPKIBK209     SRM_PLUS for mySAP SRM
    SRM_SERVER     700     0009     SAPKIBKV09     SRM_SERVER
    SAP_ABA     701     0007     SAPKA70107     Cross-Application Component
    SAP_BASIS     701     0008     SAPKB70108     SAP Basis Component
    PI_BASIS     701     0007     SAPK-70107INPIBASIS     Basis Plug-In
    SRM JAVA Version:
    SRM JAVA: Release 7 SP Level 9.0
    BP SRM: Release 7 SP Level 9.0
    Edited by: Nur Agus Suryoko on Mar 11, 2011 11:36 AM
    Version information added

    Hi Fernando,
    Can you please tell me how you resolved this issue ??
    Regards,
    Adren

  • BAPI to create Contact person in Vendor master

    Hi
    We need to create Contact Person in Vendor master using BAPI.
    We already used BDCs in CREMAS IDOC posting to create contact person. Since we dont get the address number back in IDOC posting, we need BAPI which can create the contact person and return the address number created for that contact person.
    Regards
    Anand

    Hi,
    this is not supported by CREMAS idoc types and there is no plan to get this in the future.
    There is no BAPI and no direct function module to maintain a vendor.
    The only solution that is coming will be in ECC 2005 EhP 4 or EhP5 and available from class VMD_EI_API with method Maintain.
    If you need this functionality from the CREMAS idoctype, the only solution is to request a remote consulting project or an EoD project at SAP under component LO-MD-BP-VM.
    BR
    Alain

  • Create Contact Person With Reference to Supplier - Massive

    Hi all,
    We are running SRM 7.01.
    We create contact persons manually with button "Create Contact Person With Reference".
    How can we do this in a massive way for all our vendors?
    Thanks
    Ezequiel

    Did finish last sentence :/  Can anyone provide IMG path / tcode to disable partner registration notification .
    Thanks
    Kim

  • Create Contact Person

    Hi Experts,
    I need FM/BAPI to create contact person for Customers.
    - Rk

    HI
    Use FM BBP_CREATE_CONTACT_PERSON
    Regards
    Pavan

  • Create Contact Person via BAPI / CMD_EI_API (TCode VAP1)

    Hi everybody,
    I have to develop a function module, which has to be called from an external application (java). This function module should, create contact persons for customers (like Transaction VAP1 does).
    I did not find any function module or bapi for this, but I found class CMD_EI_API, which seems to possibly help me. Unfortunately, there is no documentation for this class.
    Could anyone help me getting the contact person's addresses into the system? Just hustle me into the right direction and I will walk by myself
    Thank you very much
    Ralf
    Edit: The contact persons addresses have to be maintained for existing customers.
    Edited by: Ralf Wenzel on Feb 21, 2012 12:19 PM

    I have this working.  I wrote a wrapper BAPI.  If inserting a new contact, you need to get a new partner number otherwise it won't work.  There is extra code in this function module that you can remove.  I left it as I used the logic for other customer update BAPIs.
    FUNCTION Z_CUSTOMER_CONTACT.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(CUST) LIKE  ZCUSTOMER STRUCTURE  ZCUSTOMER
    *"     VALUE(TESTFLAG) LIKE  WDL_FLAG-XFLAG DEFAULT ' '
    *"     VALUE(FBAPI) TYPE  CHAR01 OPTIONAL
    *"     VALUE(CONTACT) LIKE  ZCONTACT STRUCTURE  ZCONTACT
    *"  EXPORTING
    *"     VALUE(CUSTOMERNO) LIKE  BAPIKNA103-CUSTOMER
    *"     VALUE(RETURN) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1
    *"  EXCEPTIONS
    *"      CLIENT_ERROR
    *"      KNA1_INCOMPLETE
    *"      KNB1_INCOMPLETE
    *"      KNB5_INCOMPLETE
    *"      KNVV_INCOMPLETE
    *"      KUNNR_NOT_UNIQUE
    *"      SALES_AREA_NOT_UNIQUE
    *"      SALES_AREA_NOT_VALID
    *"      INSERT_UPDATE_CONFLICT
    *"      NUMBER_ASSIGNMENT_ERROR
    *"      NUMBER_NOT_IN_RANGE
    *"      NUMBER_RANGE_NOT_EXTERN
    *"      NUMBER_RANGE_NOT_INTERN
    *"      ACCOUNT_GROUP_NOT_VALID
    *"      PARNR_INVALID
    *"      BANK_ADDRESS_INVALID
    *"      TAX_DATA_NOT_VALID
    *"      NO_AUTHORITY
    *"      COMPANY_CODE_NOT_UNIQUE
    *"      DUNNING_DATA_NOT_VALID
    *"      KNB1_REFERENCE_INVALID
    *"      CAM_ERROR
       data: wa_header          type cmds_ei_header,
             wa_central_data    type cmds_ei_vmd_central_data,
             wa_central_datax   type cmds_ei_vmd_central_data_xflag,
             wa_address         type bapiad1vl,
             wa_addressx        type bapiad1vlx,
             wa_contact_addr    type bapiad3vl,
             wa_contact_addrx   type BAPIAD3VLX,
             wa_tax_ind_st      type cmds_ei_tax_ind,
             wa_tax_ind         type cmds_ei_cmd_tax_ind,
             wa_bankdetail_st   type cvis_ei_cvi_bankdetail,
             wa_bankdetail      type cvis_ei_bankdetail,
             wa_company_code_st type cmds_ei_company,
             wa_company_code    type cmds_ei_cmd_company,
             wa_functions_st    type cmds_ei_functions,
             wa_functions       type cmds_ei_cmd_functions,
             wa_tcontact        type CVIS_EI_PHONE,
             wa_phone_st        type CVIS_EI_PHONE_STR,
             wa_phone           type CVIS_EI_CVI_PHONE,
             wa_fcontact        type CVIS_EI_FAX,
             wa_fax_st          type CVIS_EI_FAX_STR,
             wa_fax             type CVIS_EI_CVI_FAX,
             wa_econtact        type CVIS_EI_SMTP,
             wa_smtp_st         type CVIS_EI_SMTP_STR,
             wa_smtp            type CVIS_EI_CVI_SMTP,
             wa_sales_data_st   type cmds_ei_sales,
             wa_sales_data      type cmds_ei_cmd_sales,
             wa_customer        type cmds_ei_extern,
             wa_cust_created    type cmds_ei_extern,
             is_customers       type cmds_ei_main,
             es_customers       type cmds_ei_main,
             wa_correct         type cmds_ei_main,
             wa_defective       type cmds_ei_main,
             wa_mes_correct     type cvis_message,
             wa_mes_error       type cvis_message,
             it_contacts        type cmds_ei_contacts_t,
             wa_contacts        type CMDS_EI_CONTACTS,
             messages           type BAPIRET2_T.
       FIELD-SYMBOLS: <bapiret2> type BAPIRET2.
       DATA: STATUS TYPE CHAR20,
             PARNR  LIKE KNVK-PARNR.
       constants: FILLCHAR VALUE '/',
                  gc_objtype_customer TYPE mds_ctrl_object VALUE 'CUSTOMER',
                  gc_insert           TYPE c VALUE 'I',
                  gc_delete           TYPE c VALUE 'D',
                  gc_current_state    TYPE c VALUE 'C',
                  gc_update           TYPE c VALUE 'U',
                  gc_true             TYPE c VALUE 'X',
                  gc_false            TYPE c VALUE ' '.
       include fbgenmac.
    * generate data record
       fbgenmac 'Z_CUSTOMER_CONTACT'.
    * Clear memory variables - needed if run in Test mode
    * Initialization
       CALL METHOD cmd_ei_api=>initialize.
       wa_customer-header-object_instance-kunnr = cust-kunnr.
       wa_customer-header-object_task           = gc_update.
       append wa_customer to is_customers-customers.
       call method CMD_EI_API_EXTRACT=>get_data
         EXPORTING
           is_master_data = is_customers
         IMPORTING
           es_master_data = es_customers
           es_error       = wa_mes_error.
       IF wa_mes_error-is_error is initial.
         STATUS = 'OK'.
         LOOP at es_customers-customers into wa_cust_created.
           wa_company_code = wa_cust_created-company_data.
           IF STATUS = 'OK' and wa_mes_error-is_error is INITIAL.
    *      is_customers = es_customers.
             free: wa_customer, wa_company_code_st,
                   wa_company_code, wa_address, wa_sales_data_st,
                   wa_contacts, wa_contact_addr,
                   wa_sales_data, wa_tax_ind_st, wa_functions,
                   wa_functions_st, wa_correct, wa_mes_correct,
                   wa_defective, wa_mes_error, wa_cust_created,
                   wa_tcontact, wa_phone_st, wa_phone,
                   wa_fcontact, wa_fax_st, wa_fax, wa_econtact,
                   wa_smtp_st, wa_smtp.
             FREE: is_customers.
             IF CONTACT-FIRSTNAME IS NOT INITIAL.
               CALL FUNCTION 'NUMBER_GET_NEXT'
                 EXPORTING
                   nr_range_nr                   = 'AP'
                   object                        = 'PARTNER'
                   QUANTITY                      = '1'
                   SUBOBJECT                     = ' '
    *           TOYEAR                        = '0000'
    **          IGNORE_BUFFER                 = ' '
                 IMPORTING
                   NUMBER                        = PARNR
    *           QUANTITY                      =
    *           RETURNCODE                    =
                EXCEPTIONS
                   INTERVAL_NOT_FOUND            = 1
                   NUMBER_RANGE_NOT_INTERN       = 2
                   OBJECT_NOT_FOUND              = 3
                   QUANTITY_IS_0                 = 4
                   QUANTITY_IS_NOT_1             = 5
                   INTERVAL_OVERFLOW             = 6
                   BUFFER_OVERFLOW               = 7
                   OTHERS                        = 8.
               IF SY-SUBRC = 0.
    * Add partner type 20
                 wa_contacts-task           = gc_insert.
                 wa_contacts-data_key-parnr = PARNR.
                 wa_contacts-data-pafkt     = '20'.
                 wa_contacts-datax-pafkt    = 'X'.
    *        wa_contacts-address_type_1 = ''.
    *        wa_contacts-address_type_2 = ''.
    *        wa_contact_addr-fullname   = CUST-NAME.
                 wa_contact_addr-firstname  = CONTACT-FIRSTNAME.
                 wa_contact_addrx-firstname = 'X'.
                 wa_contact_addr-lastname   = CONTACT-LASTNAME.
                 wa_contact_addrx-lastname  = 'X'.
    * Assign address data directly
                 wa_contacts-address_type_3-task  = gc_insert.
                 wa_contacts-address_type_3-postal-data  = wa_contact_addr.
                 wa_contacts-address_type_3-postal-datax = wa_contact_addrx.
    * e-mail address
                 wa_econtact-task = gc_insert.
                 wa_econtact-data-std_no = 'X'.
                 wa_econtact-data-e_mail = CONTACT-E_MAIL.
    *        wa_econtact-datax-std_no = 'X'.
    *        wa_econtact-datax-e_mail = 'X'.
                 wa_smtp-current_state = ' '.
                 wa_smtp_st-contact = wa_econtact.
                 append wa_smtp_st to wa_smtp-smtp.
                 wa_contacts-address_type_3-communication-smtp = wa_smtp.
    *        wa_contacts-contact_texts  = ''.
                 append wa_contacts to it_contacts.
               ENDIF.
               CALL FUNCTION 'NUMBER_GET_NEXT'
                 EXPORTING
                   nr_range_nr                   = 'AP'
                   object                        = 'PARTNER'
                   QUANTITY                      = '1'
                   SUBOBJECT                     = ' '
    *           TOYEAR                        = '0000'
    **          IGNORE_BUFFER                 = ' '
                 IMPORTING
                   NUMBER                        = PARNR
    *           QUANTITY                      =
    *           RETURNCODE                    =
                EXCEPTIONS
                   INTERVAL_NOT_FOUND            = 1
                   NUMBER_RANGE_NOT_INTERN       = 2
                   OBJECT_NOT_FOUND              = 3
                   QUANTITY_IS_0                 = 4
                   QUANTITY_IS_NOT_1             = 5
                   INTERVAL_OVERFLOW             = 6
                   BUFFER_OVERFLOW               = 7
                   OTHERS                        = 8.
               IF SY-SUBRC = 0.
    * Add partner type 30
                 wa_contacts-data_key-parnr = parnr.
                 wa_contacts-data-pafkt     = '30'.
                 append wa_contacts to it_contacts.
               ENDIF.
    * Assign contacts to customer structure
               wa_customer-central_data-contact-contacts = it_contacts.
    * Set object_task to modify
               wa_customer-header-object_instance-kunnr = cust-kunnr.
               wa_customer-header-object_task = gc_update.
               append wa_customer to is_customers-customers.
               IF FBAPI = 'X'.
    * MAINTAIN_BAPI seems to now work.  Fills in table addr_appl_to_int used in function module
    * ADDR_MEMORY_SAVE line 631.  It should be blank.
                 call method cmd_ei_api=>maintain_bapi
                   EXPORTING
                     iv_test_run              = TESTFLAG
                     iv_collect_messages      = 'X'
                     is_master_data           = is_customers
                   IMPORTING
                     es_master_data_correct   = wa_correct
                     es_message_correct       = wa_mes_correct
                     es_master_data_defective = wa_defective
                     es_message_defective     = wa_mes_error.
               ELSE.
                 call method cmd_ei_api=>maintain
                   EXPORTING
                     iv_test_run    = TESTFLAG
                     is_master_data = is_customers
                   IMPORTING
                     es_error       = wa_mes_error.
               ENDIF.
               IF wa_mes_error-is_error is initial.
                 if testflag <> 'X'.
                   commit work and wait.
                   LOOP at wa_correct-customers into wa_cust_created.
                     CUSTOMERNO = wa_cust_created-header-object_instance-kunnr.
                     SY-MSGID = 'F2'.
                     SY-MSGNO = '056'.     " Failure
                     SY-MSGV1 = ''.
                     SY-MSGV2 = ''.
                     SY-MSGV3 = ''.
                     SY-MSGV4 = ''.
                     CALL FUNCTION 'BALW_BAPIRETURN_GET1'
                       EXPORTING
                         TYPE       = 'E'
                         CL         = SY-MSGID
                         NUMBER     = SY-MSGNO
                         PAR1       = SY-MSGV1
                         PAR2       = SY-MSGV2
                         PAR3       = SY-MSGV3
                         PAR4       = SY-MSGV4
    *               LOG_NO     = ' '
    *               LOG_MSG_NO = ' '
                       IMPORTING
                         BAPIRETURN = RETURN.
                   ENDLOOP.
                   CALL FUNCTION 'ADDR_MEMORY_CLEAR'
                     EXPORTING
                       force              = 'X'
                     EXCEPTIONS
                       unsaved_data_exist = 1
                       internal_error     = 2
                       others             = 3.
                 ELSE.
                   ROLLBACK WORK.
                   LOOP at wa_correct-customers into wa_cust_created.
                     CUSTOMERNO = wa_cust_created-header-object_instance-kunnr.
                     SY-MSGID = 'F2'.
                     SY-MSGNO = '035'.
                     SY-MSGV1 = ''.
                     SY-MSGV2 = ''.
                     SY-MSGV3 = ''.
                     SY-MSGV4 = ''.
                     CALL FUNCTION 'BALW_BAPIRETURN_GET1'
                       EXPORTING
                         TYPE       = 'E'
                         CL         = SY-MSGID
                         NUMBER     = SY-MSGNO
                         PAR1       = SY-MSGV1
                         PAR2       = SY-MSGV2
                         PAR3       = SY-MSGV3
                         PAR4       = SY-MSGV4
    *               LOG_NO     = ' '
    *               LOG_MSG_NO = ' '
                       IMPORTING
                         BAPIRETURN = RETURN.
                   ENDLOOP.
                   CALL FUNCTION 'ADDR_MEMORY_CLEAR'
                     EXPORTING
                       force              = 'X'
                     EXCEPTIONS
                       unsaved_data_exist = 1
                       internal_error     = 2
                       others             = 3.
                 ENDIF.
               ELSE.
                 messages = wa_mes_error-messages.
                 LOOP at wa_mes_error-messages assigning <bapiret2>.
                   CUSTOMERNO = CUST-KUNNR.
                   CALL FUNCTION 'BALW_BAPIRETURN_GET1'
                     EXPORTING
                       TYPE       = <bapiret2>-type
                       CL         = <bapiret2>-id
                       NUMBER     = <bapiret2>-number
                       PAR1       = <bapiret2>-message_v1
                       PAR2       = <bapiret2>-message_v2
                       PAR3       = <bapiret2>-message_v3
                       PAR4       = <bapiret2>-message_v4
    *         LOG_NO     = ' '
    *         LOG_MSG_NO = ' '
                     IMPORTING
                       BAPIRETURN = RETURN.
                 ENDLOOP.
               ENDIF.
             ELSE.
               CUSTOMERNO = CUST-KUNNR.
               SY-MSGID = 'F2'.
               SY-MSGNO = '152'.     " Failure
               SY-MSGV1 = CUST-KUNNR.
               SY-MSGV2 = CUST-BUKRS.
               SY-MSGV3 = ''.
               SY-MSGV4 = ''.
               CALL FUNCTION 'BALW_BAPIRETURN_GET1'
                 EXPORTING
                   TYPE       = 'E'
                   CL         = SY-MSGID
                   NUMBER     = SY-MSGNO
                   PAR1       = SY-MSGV1
                   PAR2       = SY-MSGV2
                   PAR3       = SY-MSGV3
                   PAR4       = SY-MSGV4
    *         LOG_NO     = ' '
    *         LOG_MSG_NO = ' '
                 IMPORTING
                   BAPIRETURN = RETURN.
             ENDIF.
           ENDIF.
         ENDLOOP.
       ELSE.
         CUSTOMERNO = CUST-KUNNR.
         SY-MSGID = 'F2'.
         SY-MSGNO = '077'.     " Failure
         SY-MSGV1 = CUST-NAME.
         SY-MSGV2 = ''.
         SY-MSGV3 = ''.
         SY-MSGV4 = ''.
         CALL FUNCTION 'BALW_BAPIRETURN_GET1'
           EXPORTING
             TYPE       = 'E'
             CL         = SY-MSGID
             NUMBER     = SY-MSGNO
             PAR1       = SY-MSGV1
             PAR2       = SY-MSGV2
             PAR3       = SY-MSGV3
             PAR4       = SY-MSGV4
    *         LOG_NO     = ' '
    *         LOG_MSG_NO = ' '
           IMPORTING
             BAPIRETURN = RETURN.
       ENDIF.
    ENDFUNCTION.

  • Error while creating contact person

    Hi While creating contact person in customer master data
    I am getting the message Partner XXXXXX is not assigned to a partner function?
    What might be the possible reason,
    Thanks in advance
    Regards
    Jai

    Hi jaigss,
    Please check the below threads,
    Getting a "Business partner not found with partner function type requester"://Re: Partner function not found
    Approver Can replaced by Requestor..
    Thanks,
    Swamy H P

  • Create contact person for a Vendor

    Hi experts
    Someone could explaim the processes of contact person creation.
    I replicated the vendor from R/3 and now I need to send a BId to this vendor but the sistem ask for a contact person, so I tried go to transaction Manage business  Partner - Employ to Business Partner and tried to create a contact person for this vendor, but when I try to choose a roles for this user no roles is found and is not possible create the user.
    Where can I insert the roles to found when creating the user?
    Thanks
    Nilson

    Hi,
    Also you dont need to enter any roles while creating the Contact person for a vendor.You just need to enter the employee/user details who will be the contact person for the vendor and after you save all the data ,the CP for the vendor will be created and the system will issue a message "Contact person XXXX for BP yyyyy created".
    BR,
    Disha.
    Do reward points for  useful answers.

  • DEBMAS iDoc Contact Persons Issue

    Hi Folks,
    I have a DEBMAS06 iDoc that is creating a customer. In the main everything is perfect however there has just been an issue raised by the business.
    We use contact persons to determine where to send differnt output types, however in small companies, that person would be the same for all output types.
    When creating a customer in XD01, if you enter a contact person with the same name, SAP will issue a warning message that you can ignore, however, when using my iDoc, the first contact person entry is added but none of the rest of them are.
    Is there a way that I can add the same contact name for multiple contact types in my iDoc?

    Praveen,
    My iDoc has this format
    E1KNA1M
    --E1KNA11
    --E1KNA1H
    --E1KNVVM
    --E1KNB1M
    --E1KNVKM
    --E1KNVKM
    --E1KNVKM
    --E1KNVKM
    --E1KNKKM
    My four E1KNVKM segments look like this (I have deleted the number for privacy)::
    MSGFN     005
    NAMEV     Nezire
    NAME1     Turk
    TELF1     99999999
    PAFKT     ZA
    MSGFN     005
    NAMEV     Nezire
    NAME1     Turk
    TELF1     999999999
    PAFKT     ZB
    MSGFN     005
    NAMEV     Nezire
    NAME1     Turk
    TELF1     9999999999
    PAFKT     ZD
    MSGFN     005
    NAMEV     Nezire
    NAME1     Turk
    ABTNR     0007
    TELF1     99999999
    Yet it is only the 0007 segment that is created even though the entire iDoc has a success message.

  • Problem  while creating  contact person using SD_CUSTOMER_MAINTAIN_ALL

    Hi All,
    I am trying to create a contact person to a customer using FM SD_CUSTOMER_MAINTAIN_ALL.Following is the simple code that I am using.FM is not giving any exception.But the contact person is not getting created.can anyone help me regarding this.
    DATA: I_FKNVK TYPE TABLE OF FKNVK,
          wa      type FKNVK.
    MOVE '0009011357' to wa-kunnr.
    MOVE 'Bose' TO wa-namev.
    MOVE 'Lalit' TO wa-name1.
    MOVE  '9980055557'   to wa-TELF1.
    *MOVE 'City' TO wa-ort01.
    *MOVE 'DE' TO wa-parla.
    *MOVE '' to watelf1.
    *MOVE 'U' to wa-kz.
    APPEND wa to I_FKNVK.
    CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
    EXPORTING
      I_KNA1                              =
      I_KNB1                              =
      I_KNVV                              =
      I_BAPIADDR1                         =
      I_BAPIADDR2                         =
      I_MAINTAIN_ADDRESS_BY_KNA1          = ' '
      I_KNB1_REFERENCE                    = ' '
      I_FORCE_EXTERNAL_NUMBER_RANGE       = ' '
      I_NO_BANK_MASTER_UPDATE             = ' '
      I_CUSTOMER_IS_CONSUMER              = ' '
      I_RAISE_NO_BTE                      = ' '
        PI_POSTFLAG                         = 'X'
      PI_CAM_CHANGED                      = ' '
      PI_ADD_ON_DATA                      =
      I_FROM_CUSTOMERMASTER               = ' '
    IMPORTING
      E_KUNNR                             =
      O_KNA1                              =
      E_SD_CUST_1321_DONE                 =
    TABLES
      T_XKNAS                             =
      T_XKNBK                             =
      T_XKNB5                             =
      T_XKNEX                             =
      T_XKNVA                             =
      T_XKNVD                             =
      T_XKNVI                             =
        T_XKNVK                             = I_FKNVK
      T_XKNVL                             =
      T_XKNVP                             =
      T_XKNZA                             =
      T_YKNAS                             =
      T_YKNBK                             =
      T_YKNB5                             =
      T_YKNEX                             =
      T_YKNVA                             =
      T_YKNVD                             =
      T_YKNVI                             =
      T_YKNVK                             =
      T_YKNVL                             =
      T_YKNVP                             =
      T_YKNZA                             =
      T_UPD_TXT                           =
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        WAIT          = 'X'
    IMPORTING
       RETURN        =
    ENDIF.

    i see this so much on this site, users just posting solved and not giving details on how they fixed the problem, the SDN is meant to be for sharing!!
    If you find a fix, share it or don't bother being a part of the SDN community.(so annoying)

  • Create contact person for a debitor in background with bapi

    Hi,
    I want to create a conact person for a debitor in background with a BAPI. I found the BAPI BAPI_PARTNEREMPLOYEE_CREATE, but this BAPI creates the person in dialog-mode.
    Is there a BAPI-function to create a contact persons in background?
    best regards John

    The straight answer is that it doesn't work.
    The only workaround I've used befor is having a shared network folder that both your user and the user running the SAP dialog service have access to. This does work, but you could argue it is a little messy.
    That windows user is probably named SAPservice<SID> on the OS level (or equivalent for Linux).
    Windows Operating System User Settings in an SAP System - SAP NetWeaver Security Guide - SAP Library
    Share a folder and grant both acess. Afterwards you can run the bapi with the network path.
    espen

  • How to get list of FMs while creating Contact Person from User Admin Link

    Hi Experts,
    We are implementing SAP ECommerce for my SAP ERP. In one of our requirements, we need to develop MASS UPLOAD program which will take input as Contact Person's first name, last name, address and authorization details and create new Contact Person as it is done through User admin link.
    To develop above tool, I want to trace all the Function Modules which are called while creating new Contact Person from User admin link.
    Please provide your inputs on how I can get the trace of FMs.
    Thanks,
    Keya

    Hi Keya,
    For a B2C eCommerce solution, you are looking at FMs BAPI_CUSTOMER_CREATEFROMDATA1 and ISA_USER_CREATE and the table USAPPLREF which holds the reference to the customer and user.
    To get the FMs called, you would have to do a session trace during B2C user registration / B2B user creation from UME. You could search this forum on a 'how-to' for doing a session trace or lookup the development and extension guide that provides a lot of useful information.
    Cheers,
    Ashok.

  • Creating Contact Person via Function Module

    Dear ABAP Gurus,
    try to add customer contact person via SD_CUSTOMER_MAINTAIN_ALL.
    KNVK - Kundenstamm Ansprechpartner
      MOVE '0000010010' to itab-kunnr.
      MOVE 'Firstname' TO itab-namev.
      MOVE 'Lastname' TO itab-name1.
      MOVE 'City' TO itab-ort01.
      MOVE 'DE' TO itab-parla.
      MOVE '' to itab-telf1.
      MOVE 'U' to itab-kz.
      APPEND itab to my_knvk.
    BAPI aufrufen
      CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
        EXPORTING
          PI_POSTFLAG = 'X'
        TABLES
          T_XKNVK = my_knvk.
    Runs without error but person record not created. Any ideas ?
    Thanks in advance for your help.
    Thomas

    Check for the sy-subrc value in Debug mode .
    Check do you need to commit COMMIT statement to update the table.
    Also look at this
    Changing Customers using SD_CUSTOMER_MAINTAIN_ALL
    Regards
    Vivek
    <b> please reward points for all the useful answers </b>

  • How to create contact person on SAP Solution Manager

    Dear all.
    I installed SAP Solman SR3, I config solution manager for download support package. When I use the transaction AISUSER to assign user and contact person. I receive the information:" Partner 000xxxxxx not found". I saw in Solman SR2 didn't have this error.
    Now I want to define contact person ! Please help me if you know about this problem.
    thanks all so much.

    Hi Thao
    We have 2 column in AISUSER transaction table....
    one is USer in which userid for the person is entered
    sec is contact person in which S-Userid is entered(Delete the S and Leading Zeros from it)
    The error which you are facing is because when you enter the entry a check execute by the system is enquireing the table AIContacts which is update by a background job .....................so have you scheduled this standard job .........REFRESH_ADMIN_DATA_FROM_SUPPORT.
    Also posting the help log for the ur convenience....
    Procedure to remove the error
    Please check if you entered the correct number (S-User without S) or use the value help for this field. If the value help doesn't provide any data the report AI_SC_REFRESH_READ_ONLY_DATA has not been run yet. It should be scheduled daily with transaction SM_CONFIG_JOBS as job REFRESH_ADMIN_DATA_FROM_SUPPORT. However if you want to run this job successfully the user who created the job must be maintained in transaction AISUSER first. So you should ignore the warning for this purpose, maintain the partner for this user and continue maintaining this table after the job has fetched the contact data for the value help from SAP Support Portal successfully.
    Even then it can happen, that you don't find the partner number in the value help. The reason for this may be, that the user doesn't have enough authorizations for some actions, since only users with certaine authorizations are downloaded from SAP Support Portal. So you also may ignore the warning in this case, as long as there is no typo in the partner number.
    Hope it clarifies your doubt
    Regards
    Prakhar

Maybe you are looking for

  • More than 1 ms MOMO digital IO 7358 in LabView Real-Time 8.5, error downloading EPOS dll file into RT

    Hi all, I have several problems here, I tried to google but still I could not solve the problem. Here are my questions: 1. I tried to download an example program of EPOS which require to download a DLL file into the RT, but it failed, here's the erro

  • Problem in the import of WSDL to PI

    When trying to import a specific WSDL to PI 7.1 show me the following error: Unable to convert imported document to WSDL Reason: Element "simpleType" is not permitted in the "/schema/simpleType("__MANDT")/restriction" elementCheck the selected catego

  • Cover Flow and pictures of album...

    Alright, hey peeps, I have a SLIGHT(ya right) problem. When I take songs from my comp to my iPod classic (80g), when I go on "Songs" it shows an album right? Yeah, well, the thing is, when I go on SONGS, it only shows ONE album picture. Thats ok, but

  • Oracle 10G query

    I have following queries to be solved please help me out.... 1) Difference / Limitation of Oracle Standard Edition / Enterprise Edition 10..... latest ? 2) Can Data of Oracle 8. ..... Expo File will be Imported to 10....... latest ? If not than what

  • TS3938 I can't print because PowerPC applications are no longer supported?

    What has happened to my printer connection?  I received the "you can't open the application 7100 Series Utility Launcher because PowerPC applications are no longer supported.  I need help.