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.

Similar Messages

  • 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>

  • 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

  • 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

  • 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.

  • 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

  • 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

  • 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 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

  • XD01- Create Contact person - BAPI

    Hi,
    Can any one please let me know, is there any bapi to create customer contact person data (XD01). Or any alternative to upload Customer Contact person with contact person address data.
    Thanks,

    Hi,
    You can use this bapi to create customer along with personal contact data
    BAPI_CUSTOMER_CREATEFROMDATA1
    check the PI_PERSONALDATA in import parameter.
    Or if the customer is already create then u can use this Function modules to
    /SAPNEA/SMAPI_CUSTOMER_CHANGE
    BAPI_CUSTOMER_CHANGEFROMDATA1
    to add the personal data.
    Hope it helps.
    Regards
    Hiren K.Chitalia

  • Create Contact Person in SAP SRM 701

    Hello Experts,
    I'm new in SRM and having a problem with creation of contact person in SRM 701. I use NWBC to access it.
    Somehow after clicked menu Edit Contact Person (my user id have several administrator role actually and can't find menu related with contact person creation) I get the error as below:
    OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Access via 'NULL' object reference not possible.
    Method: /SAPSRM/IF_CLL_IDENT_MAPPER~GET_META_CONSUMER of program /SAPSRM/CL_CH_WD_IDEN_MAP_EBD=CP
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_MAP_IDENT====CP
    Method: OVERRIDE_LEAVE_INIT_SCREEN of program /SAPSRM/CL_FPM_OVRIDE_OIF=====CP
    Method: /SAPSRM/IF_FPM_OVRIDE_EVT_OIF~OVERRIDE_EVENT_OIF of program /SAPSRM/CL_FPM_OVRIDE_OIF=====CP
    Method: OVERRIDE_EVENT_OIF of program /1BCWDY/NBXOV5V3DFLBGUYTOQZC==CP
    Method: IWCI_IF_FPM_OIF_CONF_EXIT~OVERRIDE_EVENT_OIF of program /1BCWDY/NBXOV5V3DFLBGUYTOQZC==CP
    Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/NBXNB0X6L5SUQPT52K96==CP
    Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/NBXNB0X6L5SUQPT52K96==CP
    Method: IF_FPM_FLOORPLAN~GET_UIBBS_FOR_EVENT of program CL_FPM_OIF_INTERNAL===========CP
    Method: GET_NEXT_UIBBS of program CL_FPM========================CP
    Also, I used tcode BP to create CP and link it to the vendor, but I can't create user id for that CP. Also users_gen do not give any option to create user id with CP linked.
    I have no clue to trace the error and solve the problem. Also, is there any other way to create CP+user id via SAP GUI?
    Thank you

    Hi,
    You have to create CP from portal not GUI. Go to External Business Partner POWL, select the vendor you want to create CP and click on create CP with reference button.
    Regards,
    Iqbal

  • 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 Support Message via BAPI with additional partners

    Hi all,
    i need to create a support message (slfn) via  bapi / function module. The basic creation is no problem with BAPI_NOTIFICATION_CREATE.
    But i need to set additional partner(functions) like "approved by" in the support message. With this bapi i can only set the processor and creator of the message.
    How can i add additional partners via BAPI call?
    Any help would be much appreciated.
    Daniel

    Hi Daniel,
    i do not think there is a standard functionality for this.
    you can use function module CRM_DNO_UPDATE_PARTNER to set partner functions to a message. You will have to build your own RFC enabled function module around this, though.
    Then you can use it to add your partners after the message was created.
    Regards,
    Christoph

  • 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.

Maybe you are looking for

  • In need of help with Shockwave from experts and community please.

    I have seen posts where people are having the same issue with Chrome, but I am using Windows 8 playing my FB games using Firefox. I have filled out their little "box" that they ask me to about 10 times and I am over it. I went to see if my Adobe SW w

  • Knowing What Generation I POD you have

    How do you know what generation IPOD Nano you have ? is their some way to look it up on the Ipod ?

  • Trace Analysis

    Where can I obtain the details and "interpretations" of a trace, i.e., what does ringmode=1 mean?; what does CallState=1 mean? Where can I get whatever all the trace headings, messages, etc.??????? If anything, we don't have any CCM plugins, and we d

  • Embed data on maps (image)

    Hi all, I need to show some statistics (sales in the US) and to visualize it on a map. example: in the past month we had sales in: CA $10,000 NY $30,000 AR $40,000 MA $15,000 this info should be shown on a map with the appropriate number (so in the l

  • Users missing after server restart

    Hello, I have had 2 servers in the past week loose all the user accounts after a server restart. In both cases I had to restore from backup. Anyone else have this happen to them? Thanks!