Contact Person Business Address (VAP2) Street disappears inspite of manual

Hi,
We are facing a problem in the contact person Business Address street update (Transaction VAP2).
1. We are manually entering Street and house number in
    Business Address screen using VAP2.
2. Then System concatenates House number and Street and  
    puts it in Street address.
3. Then the street address moves one character right side
    leaving space on the left side.
4. It removes the address-street bit by bit on right side and 
    will remove the whole adddress.
Not sure what is causing it to happen.If you encountered this problem or have any solution , please reply me .
Thanks in advance,
Mallik.

Hi Markus,
Can you help me how did you manage to resolve this ?
Best Regards,
Aakriti

Similar Messages

  • Contact Person Business Address

    We have a requirement from our business users to have the business address of the contact person (which is maintained in R/3) available in CRM.  CRM only supports the Home Address and not the Business Address.  Has any one else had this requirement and, if so, what did you do to enable this?

    Hi, we have the same requirement!
    have you found any answers?
    Thanx,
    Best Regards,
    Cem

  • BADI to update contact person relationshiop address.

    Hi,
    I have a requirement where I need to copy the Business Partner standard address into the Contact Person Relationship Address.
    This need to happen whenever a Contact Person Relationship is created .Is there any relevant badi for the same? I have tried using the badi PARTNER_UPDATE as this gets called every time the BP gets saved.But I found that in the standard documentation for this badi, any custom implementation is not recommended.
    I tried using the ADDRESS_UPDATE badi as well but it is not getting invoked when adding a new contact person relationship.
    Should I use transaction BUS7 here and assign a function module to the events DSAVC or DSAVE?
    Please let me know the right approach of doing this.
    Thanks,
    Samrat.

    Hi Samrat,
    In this case, you can also try to create a trigger on the save of the address of the BP. Maybe the logi can be as follws :
    If the address is a standard address, then copy it to the Contact Person also.
    For this, implement the ADDRESS_UPDATE BADI. It will give you the complete address content. If you now need any BP data or relationship data, you can make use of the CALLBACK modules -
    BUPA_ADDR_CALLBACK
    BUPA_BUT050_CALLBACK             
    BUPA_BUT051_CALLBACK    
    BUPA_BUT052_CALLBACK    
    BUPA_BUT053_CALLBACK    
    Now that you have all available data, you can go ahead and save it to the contact person. Do the database updates in UPDATE TASK.
    Also, it is just a recommendation to avoid custom implmentations for PARTNER_UPDATE. Lots of customers implement this BADI accoding to their business requirements.
    Hope this helps.
    Cheers,
    Rishu.

  • Vendor Contact Business-Address (Assign Street/City/St/Zip to Contact)

    I cannot load business-addresses for Vendor Contacts, can some please help?
    Have successfuly loaded Vendor and its Contacts (via LSMW) and even created addresses (ADRC recs via BAPI) but cannot link that address to the contact and it seems like it should be so easy after getting this far.
    For example, note the two tables KNVK (Contacts) and ADRC below - I created a Contact manually (XK02) and Address (BAPI_ADDRESSORG_SAVEREPLICA)
    but note field KNVK-ADRND is blank. This is the link to the address rec and if I could only find a function to connect the two. In Dev I "slammed" the ADRC-ADDRNUMBER directly into KNVK-ADRND via UPDATE and it all works! The Contacts Business-Address shows up in the Vendor tcodes XK01-3 (Contacts scrn) but I can't get away with that in Prod - or can I - it's tempting?
    Table: KNVK
    PARNR        NAMEV         ADRND      PRSNR
    0000023245 TEST1                             0000023914
    Table: ADRC
    ADDRNUMBER STREET                      ADDR_GROU
    0000023916       E2190 STREET           BP
    Have tired (painstakingly) these functions:
    BAPI_ADDRESSORG_CHANGE() - am able to change an existing contact business-address, but not create it.
    BAPI_ADDRESSORG_SAVEREPLICA() - am able to create an address, ADRC rec, but not link it to the contact.
    BAPI_ADDRCONTPART_SAVEREPLICA() - does NOT support Street/City/St/Zip
    BAPI_ADDRESSCONTPART_CHANGE() - does NOT support Street/City/St/Zip
    ADDR_SINGLE_SAVE() - wont run cuz all vars are not setup deep inside.
    ADDR_PERSON_REFERENCE_INSERT() - does not like something.
    BUPA_OUTBOUND_ADDR1_SAVE() - struggling with params.
    Any ideas - thank you?

    Since the Vendor LSMW has no provisions to load contact addresses I wrote a separate report that used the same vendor load-data. In other words, this is a separate step after the LSMW is complete.
    To update the contact address I used a simple BDC for tcode MAP2 (edit-contacts). (Too many SAP ADDRESS functions to deal with and the BDC was only a few lines and very clear.)
    Note, tcode MAP2 uses PARNR to identify the specific contact in question. I had to first retrieve the PARNR for the contact created during the vendor load (LSMW) by their partner-function (PAFKT - this is easy) but also using their name (NAMEV & NAME1 which is hazy) since we had duplicates. ie same person same partner-function but with some other differences. In these cases, I just listed a msg on the output rpt that these could not be identified due to multiples.
    However, once you know the specific PARNR, the BDC is a breeze.

  • Contact Person Standard address data disappears on enter(first time)BP_CONT

    Hi,
    During the quick create contact person creation (via accounts), based on client requirements the screen setting has been changed. (UI Configuration).
    BP_CONT/ContactQuickCreateEF
    So we have data displayed from 2 context nodes.
    1. BUILHEADER
    2. BUILCNTSTDADDRESS
    We have done the enhancement for this view so get the bespoke field called Dept.No, and to provide dropdown.
    Now when we enter the data for the first time, and press enter, all the data entered in BUILCNTSTDADDRESS disappears.
    However after first time, the data stays back on the screen (works normally).
    But, if we dont press enter, and simply press the back button, the data gets properly saved.
    Do anyone have any idea what is causing this to fail for the first time.
    I bebugged for few hours to find that super class CL_BP_CONT_CONTACTQUICKCR_IMPL got a method called CHECK_DATA_WAS_CHANGED. This gets triggered which calls the onsumbitonenter twice.
    I also tried bypassing the enhancement via user parameter and this works fine.
    Any idea what is causing this?

    So, Rakesh, here you go:
    We've needed to enhance method IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTIES of CL_BSP_WD_MIXED_NODE class in such way:
    method IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTIES .
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$:(1):CL_BSP_WD_MIXED_NODE:IF_BOL_BO_PROPERTY_ACCESS:GET_PROPERTIES:END                                                                 A
    *$*$-Start: (1)---------------------------------------------------------------------------------$*$*
    ENHANCEMENT 1  ZGET_MIXED_PROPERTIES.    "active version
    "Getting model's attributes
    "if SAP still didn't do this
    DATA: lcl_struc TYPE REF TO cl_abap_structdescr,
           lv_struc_name TYPE abap_abstypename.
    IF es_attributes IS INITIAL.
       lcl_struc ?= cl_abap_structdescr=>describe_by_data( ES_ATTRIBUTES ).
       IF lcl_struc IS BOUND.
         lv_struc_name = lcl_struc->absolute_name.
         IF lv_struc_name CS 'CRMST_ADDRESS_BUIL'. "do this only for addresses just for now
           ME->MODEL_NODE->GET_PROPERTIES(  IMPORTING es_attributes = ES_ATTRIBUTES ).
         ENDIF.
       ENDIF.
    ENDIF.
    ENDENHANCEMENT.
    *$*$-End:   (1)---------------------------------------------------------------------------------$*$*
    endmethod.

  • How to modify the contact persons company address changes

    Hi Friends,
    My requirement is i want to update the address of the contact person in relationships. Actually when we are maintaining the relationships it is automatically taking the Accounts address in company address field but i wants to maintain the different address for each contact person related to the particular account for that i used Bapi_bupa_contp_addr_change functions module as well as Bapi Transaction Commit also but it is not helpful.
           I want to change the contact persons address as per flat file, so please let me is there any fuction module for changing the address of a contactt person in relationships.
    Regards
    Kumar

    Hi Kumar,
    could you solution this issue?
    I use this FM, I cna Insert new telephones por relationship but, I can't delete and update.
    Can U help me? my code:
    data : i_bapiadtel like BAPIADTEL occurs 0 with header line,
           i_bapiadtel_x like BAPIADTELX occurs 0 with header line,
           i_return LIKE bapiret2 OCCURS 0 with header line.
    i_bapiadtel-telephone = '937102020'.
    i_bapiadtel-std_no = 'X'.
    APPEND i_bapiadtel.
    i_bapiadtel_x-telephone = 'X'.
    i_bapiadtel_x-std_no = 'X'.
    i_bapiadtel_x-updateflag = 'D'.
    APPEND i_bapiadtel_x.
    CALL FUNCTION 'BAPI_BUPR_CONTP_ADDR_CHANGE'
      EXPORTING
        businesspartner = '0020034745'
        contactperson   = '0090004124'
      TABLES
        bapiadtel       = i_bapiadtel
        bapiadtel_x     = i_bapiadtel_x
        return          = i_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
    Thanks in advance.
    Sergio

  • Contact Person Email Address Update

    Hi Experts,
    May we know where in the SRM Portal we can see the relationship of a contact person to a vendor.
    Thanks,
    Abi

    the best way to do this is log in to the SAP GUI of SRM system
    use Transaction BP - type in the BP number for the vendor and then go to contact person
    you can see the same in the Portal ("Settings" tab/link) -> Business Partners
    (you can only see this Settings link- if you have the appropiate access rights)
    thanks
    -Adrivit

  • Address for contact person

    hi all,
    i have a req,
    req says "system would need to block Customer Master Data irrespective of account group getting copied to the Contact Person home address and then to General Data tab"
    i didnt understand it correctly.
    how the data is copied into contact persons home address?
    and to general data tab.
    is there any program? standard? or it could be user defined?
    thanks

    Hi Sai,
    Just check out the FM <b>'BAPI_BUPA_ADDRESS_ADD'</b>.
    Regards,
    Amit Mishra

  • No address data found in contact person

    Hi all
    I am getting an error while creating a transaction No address data  in the contact person.
    I am able to see the bp id of the contact person.
    I have maintained the first name and last name  and other details including the standard address in that bp.
    Kindly let me know from where the system picks the address and where do i maintain that.
    Thanks in advance
    Kumar Hari

    Hello,
    This is a common mistake when processing Contact Persons. In fact, the address data you see in the WebUI for your contact person is the address of the Company - Contact Person relationship and not the contact data of the contact person itself. The error message is probably referring to the address data of the person itself.
    Eg I work for my company, my address data as a contact person for my company will the the company's address, fax, e-mail, ... Beside that I also have my personal address, where I actually live with a private e-mail and so on.
    My company -_-_-_ has the contact person  -
    > Me
    Address data         (=address data eq to comp)       My personal address
    Hope this helps,
    Joost

  • Contact Person address Data not found

    Hi All,
    I am finding an strange error in Partner determination process for Contact Person.
    System is able to pick the contact person, but it always says no address data found for contact person. I had checked all config in partner dtermination procedure and can see that all setting related to address detremination is available. But still i am not able to get this data in my transaction for activity/lead or contract.
    Please suggest.

    Hello,
    This is a common mistake when processing Contact Persons. In fact, the address data you see in the WebUI for your contact person is the address of the Company - Contact Person relationship and not the contact data of the contact person itself. The error message is probably referring to the address data of the person itself.
    Eg I work for my company, my address data as a contact person for my company will the the company's address, fax, e-mail, ... Beside that I also have my personal address, where I actually live with a private e-mail and so on.
    My company -_-_-_ has the contact person  -
    > Me
    Address data         (=address data eq to comp)       My personal address
    Hope this helps,
    Joost

  • Fm to get the Contact person address if he doesn't ve thn his comp address

    Hi Gurus,
    This is seema,,am new to CRM .... got a doubt ... thought of posting it here...
    My req is i need to find out a contact person full address , incase if he does not have the address then i should refer to his company(has contact peron for) address and get it...
    am searching for FM where i cld achieve the above requirement..
    I had given a search for this before giving for a post...but i could not get it ...
    In the same requiremetn, i need to find out the person (employee) who is responsible for creating and his job title.. any FM to get employee details with his job title?
    Thanks for all your time.
    Seema
    Edited by: seema rajjot on Apr 6, 2010 3:00 PM

    Hi Seema,
    You can get the address of CP from tables BUT020, BUT021_FS, ADRC and ADR2 etc., In case if the CP address is empty, go table BUT051 and get the Company affiliated to it using the Relationship type BUR001. Then get the address of Company using the same tables again. Refer to the below link, it has details about how to read the BP address by Address type. If you want to read the default address use address type XXDEFAULT.
    [Read BP Address based on Address type and Update Address|http://www.divulgesap.com/blog.php?p=MTA5]
    Hope it helps.
    Regards,
    Ravikiran

  • Customer contacts person address

    Hi all.
      I need to display all the contact persons of a customer and who is having customer address as their home address.
    i e contact person home address = customer address.
    how can i find the CP's home address is same as taht of customer address.
    Thanks
    SAI

    Hello Sai,
    the addresses of the contact persons you can read with FB 
        call function 'ADDR_PERS_COMP_GET_COMPLETE'
         exporting
           addrnumber                    = KNVK-adrnr
      ADDRHANDLE                    =
           persnumber                    = KNVK-prsnr
      PERSHANDLE                    =
      ARCHIVE_HANDLE                =
         importing
           addr3_complete                = addr3_complete
         exceptions
           parameter_error               = 1
           address_not_exist             = 2
           person_not_exist              = 3
           internal_error                = 4
           wrong_access_to_archive       = 5
           others                        = 6.
    the customer addresses you can read with FB 
    ADDR_GET_COMPLETE  with key adrnr in KNA1.
    More information about the FB's you will get in the documentation.
    Best Regards
    Gerd Höß

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

  • Contacts lost from Address book

    I downloaded an SMS application from the net and since then all contact from my Address book have disappeared. How can I get them back or set my mail to automatically update my address book ?

    No Reply

  • NWIdM support with CRM Ecommerce b2b Contact Person

    We are using NWIdM in CRM eCommerce B2B scenario.  B2B Scenario uses BP:Contact Person and also uses customer hierarchy which is in CRM downloaded from ECC.  Wanted to know if NWIdM supports Contact Person Business Partner and can assign Internet User role to contact person and allow me to assign the contact person to different customers in hierarchy?

    Hello Dan
    That is a nice option. You can achieve this requirement using Integration events also, but it require a huge web services development
    1.Create the integration event on create / Update SR
    2.Create a batch process to read that Integration event Queue,(Development)
    3.Use the outcome of Queue to get the changes and IDs (Development)
    4.Send the Automated mail by program (Development)
    5.Delete the Queue.
    Dinesh CRMIT

Maybe you are looking for

  • Invoking a process to return a SQL query as XML results in empty XML tag (but testing the SQL works)

    I have a process that runs a SQL query and returns the results as XML.  When I test the query in the Process Properties tab in Workbench it appears to execute just fine.  I can also test the XML information and see that the results are coming back co

  • Problems after 10.7.1 update in Mac book air

    MBAir, 13', i7, 256G After installing update to 10.7.1, MBA is SLOWER, images show mixed pixels, and it freezes momentarily every few minutes. Activity monitor shows no extra activity. Permissions have been repaired. Software update indicates that co

  • Is it possible to transfer songs from iTunes into anotther program?

    My friends wants some songs from my iTunes library and copy them to his Zune program, but when we tried, the songs had a lock on them. Both programs are on the same computer and the computer is authorized to play the songs..any suggestion on what to

  • Frozen ipod and itunes not recognizing!!!

    My 40gb ipod has frozen on a song and I cannot turn it off or on... It's not responding to anything. I updated my itunes and it won't even recognise my ipod, my pc won't even recognise it. Please help me, what am I supposed to do?

  • IPhoto has duplicated my library during transfer!

    I've recently bought a MacBook Pro and transferred files and applications across from my previous iMac without any hassle. However, when it comes to my iPhoto library, my original 6,580 photos have been duplicated 5 times... the iPhoto library now co