Custom Fields in BP to be replicated to KNA1

Hi.
I am working on the SAP CRM 4.0 and SAP r/3 4.6C.
I have extended the BP by custom fields by EEWB and also the KNA1 table in R/3.
ZBSTC000000000C is the structure in the BUT000 with the field ZZSHIPTOSTOR0001.
ZBSTC000000000C is also added in KNA1 table with the field ZZSHIPTOSTOR0001.
We would be creating the BP's in the CRM and have them delta downloaded to R/3.
The data in the field ZZSHIPTOSTOR0001 should also be replicated to the R/3.
<b>IN CRM.</b>
I have created the FM : Z_BANK_MASTER_SMOUTIL2 in the CRM and made entry in the table TPS34 for the Procss SMOUTIL2.
The Code is as below.
FUNCTION Z_BANK_MASTER_SMOUTIL2.
""Local interface:
*"  IMPORTING
*"     VALUE(I_HEADER) TYPE  SMW3_FHD
*"     VALUE(I_TRANSACTION_HEADER) TYPE  SMO8_TMSG
*"     VALUE(I_TRANSACTION_MESSAGE) TYPE  ANY
*"     VALUE(I_MESSAGE_EXT) TYPE  ANY
*"     VALUE(I_SITE_ID) TYPE  SMOG_SITE
*"     REFERENCE(I_RECIPIENTS) TYPE  SMW_RECTA2
*"     REFERENCE(I_QNAME) TYPE  TRFCQNAM
*"  TABLES
*"      T_BAPIMTCS STRUCTURE  BAPIMTCS
*"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
*"      T_BAPIPAREX STRUCTURE  BAPIPAREX
*"      TI_QRFCRCV STRUCTURE  QRFCRCV
*"  CHANGING
*"     REFERENCE(E_STATUS) TYPE  SMW3_RECST
*"     REFERENCE(E_SUCCESS_BEHAVIOUR) TYPE  SMOFSUCBEF
*"     REFERENCE(E_NO_STANDARD_UPLOAD) TYPE  XFELD
*"     REFERENCE(ERROR_SEGMENTS) TYPE  SMW_ERRTAB
*"     REFERENCE(E_BAPICRMUH1) TYPE  BAPICRMUH1
  data : ls_ZZSHIPTOSTOR0001 type ZILGCUSTOMFIELDS.
  data : ls_bapimtcs TYPE bapimtcs,
         lv_partner_guid TYPE bu_partner_guid_32,
         next_free_currdno TYPE currdno VALUE 1.
  CASE i_header-bdoc_type.
Extension for Business Transaction
    WHEN 'SALESDOCUMENT'.
Extension for Business Partner
    WHEN 'BUPA_MAIN'.
      CALL FUNCTION 'Z_MAP_BUPA_TO_MW'
        EXPORTING
          i_header              = i_header
          i_transaction_header  = i_transaction_header
          i_transaction_message = i_transaction_message
          i_message_ext         = i_message_ext
          i_site_id             = i_site_id
          i_recipients          = i_recipients
        TABLES
          t_bapimtcs            = t_bapimtcs
          t_bapicrmsfk          = t_bapicrmsfk
          t_bapiparex           = t_bapiparex
        CHANGING
          e_status              = e_status
          e_success_behaviour   = e_success_behaviour
          e_no_standard_upload  = e_no_standard_upload
          error_segments        = error_segments
          e_bapicrmuh1          = e_bapicrmuh1.
  ENDCASE.
*Use the following macro definition to get full Unicode support:
Macro MOVE_CASTING *************************************
  FIELD-SYMBOLS: <unicode_x1> TYPE x,
  <unicode_x2> TYPE x.
  DEFINE move_casting.
    assign &1 to <unicode_x1> casting.
    assign &2 to <unicode_x2> casting.
    move <unicode_x1> to <unicode_x2>.
  END-OF-DEFINITION.
ENDFUNCTION.
FUNCTION Z_MAP_BUPA_TO_MW.
""Local interface:
*"  IMPORTING
*"     REFERENCE(I_HEADER) TYPE  SMW3_FHD
*"     REFERENCE(I_TRANSACTION_HEADER) TYPE  SMO8_TMSG
*"     REFERENCE(I_TRANSACTION_MESSAGE) TYPE  ANY
*"     REFERENCE(I_MESSAGE_EXT) TYPE  ANY
*"     REFERENCE(I_SITE_ID) TYPE  SMOG_SITE
*"     REFERENCE(I_RECIPIENTS) TYPE  SMW_RECTA2
*"  TABLES
*"      T_BAPIMTCS STRUCTURE  BAPIMTCS
*"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
*"      T_BAPIPAREX STRUCTURE  BAPIPAREX
*"  CHANGING
*"     REFERENCE(E_STATUS) TYPE  SMW3_RECST
*"     REFERENCE(E_SUCCESS_BEHAVIOUR) TYPE  SMOFSUCBEF
*"     REFERENCE(E_NO_STANDARD_UPLOAD) TYPE  XFELD
*"     REFERENCE(ERROR_SEGMENTS) TYPE  SMW_ERRTAB
*"     REFERENCE(E_BAPICRMUH1) TYPE  BAPICRMUH1
  tables : bnka,but000.
  data : int type i.
  data : ls_ZZSHIPTOSTOR0001 type ZILGCUSTOMFIELDS.
  data : ls_ZBSTC000000000C type ZBSTC000000000C.
  data : ls_ZILGCUSTOMFIELDS type ZILGCUSTOMFIELDS.
  data : ls_bapimtcs TYPE bapimtcs,
         lv_partner_guid TYPE bu_partner_guid_32,
         next_free_currdno TYPE currdno VALUE 1.
  data : ls_but000 type but000.
  FIELD-SYMBOLS: <fs_msg_bupa> TYPE bus_ei_main,
  <fs_msg_bpext> TYPE bus_ei_extern.
  DATA lr_cast_illegal TYPE REF TO cx_sy_assign_cast_illegal_cast.
  DATA lr_cast_unknown TYPE REF TO cx_sy_assign_cast_unknown_type.
  DATA : LS_BNKA     TYPE BNKA,
         LS_BNKA_MEM TYPE BNKA,
         LT_BNKA     TYPE TABLE OF BNKA,
         LT_BNITAB   TYPE TABLE OF BNKT,
         UNAME       LIKE SY-UNAME.
  DATA: BEGIN OF PARAMETER_TAB OCCURS 0.
          INCLUDE STRUCTURE ZPARAMETER.
  DATA: END OF PARAMETER_TAB.
  loop at T_BAPIMTCS.
    if T_BAPIMTCS-currdno > next_free_currdno.
      next_free_currdno = T_BAPIMTCS-currdno + 1.
    endif.
  endloop.
  assign i_message_ext to <fs_msg_bupa>.
  if sy-subrc <> 0.
    exit.
  endif.
  LOOP AT <fs_msg_bupa>-partners
  ASSIGNING <fs_msg_bpext> WHERE header-object_instance-bpartnerguid EQ T_BAPIMTCS-OBJKEY.
    select single * from But000 where PARTNER_GUID eq T_BAPIMTCS-OBJKEY.
pack data into transfer structure
    CLEAR: ls_bapimtcs.
    ls_bapimtcs-tabname =  'ZBSTC000000000C'.
    ls_bapimtcs-segtype = 'DA'.
    ls_bapimtcs-currdno = next_free_currdno.
    ls_bapimtcs-objkey = lv_partner_guid.
    ls_bapimtcs-relkey = lv_partner_guid.
    move-corresponding But000 to ls_ZBSTC000000000C.
    move_casting ls_ZBSTC000000000C ls_bapimtcs-data.
    APPEND ls_bapimtcs TO t_bapimtcs.
  ENDLOOP.
ENDFUNCTION.
The table t_bapimtcs is populated with the structure ZBSTC000000000C.The data is also populated.
<b>IN R/3 system.</b>
I have created the FM "ZSAMPLE_PROCESS_CRM0_300".
The table TPS34 is added with CRM0_300 as procs and the FM "ZSAMPLE_PROCESS_CRM0_300" is assigned.
FUNCTION ZSAMPLE_PROCESS_CRM0_300.
""Local interface:
*"  IMPORTING
*"     REFERENCE(I_BAPICRMUH1) LIKE  BAPICRMUH1 STRUCTURE  BAPICRMUH1
*"  EXPORTING
*"     REFERENCE(E_NO_STANDARD_UPLOAD) LIKE  CRM_PARA-XFELD
*"  TABLES
*"      T_BAPIMTCS STRUCTURE  BAPIMTCS
*"      T_BAPIPAREX STRUCTURE  BAPIPAREX
*"      T_BAPICRMSFK STRUCTURE  BAPICRMSFK
*"      T_BAPICRMMSG STRUCTURE  BAPICRMMSG
*"  EXCEPTIONS
*"      EVENT_NOT_CALLED
  data : int type i.
  data : c_kunnar like kna1-kunnr.
  data : o_kna1 like standard table of kna1,
         n_kna1 like standard table of kna1,
         I_KNA1 like standard table of kna1,
         i_knb1 like standard table of knb1.
  data :   o_but000 like standard table of but000,
           n_but000 like standard table of but000.
tables : kna1.
  data : ls_ZBSTC000000000C type ZBSTC000000000C.
  data : ls_ZZSHIPTOSTOR0001 like kna1-ZZSHIPTOSTOR0001.
  case I_BAPICRMUH1-OBJNAME.
    when 'CUSTOMER_MAIN' OR 'BUPA_MAIN'.
  endcase.
  field-symbols : <fs_msg_kna1> type kna1,
                  <fs_msg_cuext> type ZBSTC000000000C.
  data : g_kunnr like kna1-kunnr.
  loop at T_BAPIMTCS where tabname eq 'BSC_MAINI'.
    move t_bapimtcs-data+0(10) to g_kunnr.
  endloop.
  loop at T_BAPIMTCS where tabname = 'ZBSTC000000000C'.
      move_casting t_bapimtcs-data ls_ZZSHIPTOSTOR0001.
  endloop.
  field-symbols : <unicode_x1>  type x,
                  <unicode_x2>  type x.
  define move_casting.
    assign &1 to <unicode_x1>casting.
    assign &2 to <unicode_x2>casting.
    move  <unicode_x1> to <unicode_x2>.
  end-of-definition.
ENDFUNCTION.
The table t_bapimtcs is populated with the data.
But i am not able to have the data in the table KNA1 table of the R/3 system.
How can i unpack the data in t_bapimtcs  and modify the table KNA1.
Could any one pls advise.
Thanks.
Muraghendra D

Hello Muraghendra, I had a very similar requirement in my project and ran in to similar problems. The idea of packing data on the CRM side and unpacking on the R/3 side was relatively straight forward, but how to update KNA1 or KNVV in my particular case, was a bit tricky. It turned out that one needs to manipulate an IDOC. In our correspondence with SAP on the matter they said the following:
+"In R/3 the processing(in both cases replication and updation) is done in the following manner.
1.The BAPIMTCS structures are converted to complex structures.
2.The complex structures are converted to Idocs.
3.The checks for required fields is made.
4.The data is saved to the data base via a batch input transaction.
Note: Unlike in CRM, R/3 does not use BAPIs for saving to data base.
The function module PI_BP_DE_BALE_VTBER in the R/3 system(this is present in the UD1 system) can be used as a template for converting the BAPIMTCS to complex structure and to Idocs. Once the data is present in
the Idocs, the batch input would take care of saving the data. The flow would be the same in both the cases (replication and updation).
You may register your function module with the event DE_BALE. This function module would be called just before the system executes Step 3.
Note: The Idocs that are used are mapped directly to the underlying tables table(for example KNA1, KNVV etc.) and will have the necessary field(in this case KNVV-PERFK)."+
In my particular example I had to enhance the business partner on the CRM side with the field PERFK. This field already exist on the R/3 side and the task was then to allow CRM to be the master of all customer updates and consequently transfer any changes of the field PERFK in CRM to KNVV-PERFK in R/3. I think you will find that this requirement is similar to your own requirement.
In the end my code looked like this in R/3:
  DATA: LV_FOUND   TYPE C,
        LS_E1KNVVM LIKE E1KNVVM,
        LS_E1KNA1M LIKE E1KNA1M,
        LS_IDOC_DATA LIKE EDIDD,
        LS_PERFK type BSS_CENTI.
  constants: c_vkorg_6002 type VKORG value '6002',
             c_vtweg_60 type VTWEG value '60',
             c_spart_60 type SPART value '60',
             c_msgfn_004 type msgfn value '004'.
  FIELD-SYMBOLS <unicode_x1> type c.
  FIELD-SYMBOLS <unicode_x2> type c.
  DEFINE move_casting.
    assign &1 to <unicode_x1> casting.
    assign &2 to <unicode_x2> casting.
    move <unicode_x1> to <unicode_x2>.
  END-OF-DEFINITION.
  CHECK NOT is_complex_structure IS INITIAL.
  LOOP AT it_bapimtcs WHERE tabname = 'BSS_CENTI'
      AND relkey(32) =
      is_complex_structure-header-object_instance-bpartnerguid.
    CLEAR LV_FOUND.
    CLEAR LS_E1KNVVM.
    move_casting IT_BAPIMTCS-DATA LS_perfk.
    LOOP AT CT_IDOC_DATA WHERE SEGNAM = 'E1KNVVM'. "Hvis E1KNVVM
      LS_E1KNVVM = CT_IDOC_DATA-SDATA.             "segmentet allerede
      LV_FOUND = 'X'.                              "eksisterer
      MOVe LS_perfk-zzperfk TO LS_E1KNVVM-perfk.
      CT_IDOC_DATA-SDATA = LS_E1KNVVM.
      MODIFY CT_IDOC_DATA.
      EXIT.
    ENDLOOP.
    IF NOT LV_FOUND = 'X'.
      CALL FUNCTION 'PI_BP_INIT_IDOC_STRUCTURES'
           IMPORTING
                ES_E1KNVVM = LS_E1KNVVM
           EXCEPTIONS
                OTHERS     = 0.
      MOVe LS_perfk-zzperfk TO LS_E1KNVVM-perfk.
      LS_E1KNVVM-MSGFN = c_msgfn_004. "Beskeden indeholder ændringer
      LS_E1KNVVM-VKORG = c_vkorg_6002.
      LS_E1KNVVM-VTWEG = c_vtweg_60.
      LS_E1KNVVM-SPART = c_spart_60.
      CT_IDOC_DATA-SEGNAM = 'E1KNVVM'.
      CT_IDOC_DATA-SDATA  = LS_E1KNVVM.
      APPEND CT_IDOC_DATA.
    ENDIF.
  ENDLOOP.
I hope this helps. Otherwise, please ask again.
Rgds.
Anders

Similar Messages

  • Replicating Custom Fields for Products in CRM  from ECC

    Hi All,
    I am having difficulty in replicating SAP standard field values from ECC to custom fields for products in CRM. This is what i did:
    1. I created a new settype(ZMASTER_INFO) with a single attribute(ZIND_STD) and added
        this new settype to MAT_HAWA. (As all our materials fall under this material type).
    2. I am looking to map SAP standard field from ECC to this custom field of mine.
        I wrote the code in CRM BADI 
        'ZPRODUCT_CUSTOMER2->MAP_R3_TO_CRM_MATERIAL' with the following code:
    DATA: ls_ZMASTER_INFO TYPE ZMASTER_INFO_maintain.
    DATA: ls_category_bdoc       TYPE COMT_PROD_CAT_REL_MAINTAIN,
          ls_category            TYPE COMT_PROD_CAT_REL,
          lt_categories          TYPE COMT_PROD_CAT_REL_TAB,
          ls_settype             TYPE COMT_settype_ext,
          ls_cat_settype_rel     TYPE COMT_CAT_FRAG_REL,
          lt_cat_settype_rel     TYPE COMT_CAT_FRAG_REL_TAB,
          lt_cat_settype_rel_all TYPE COMT_CAT_FRAG_REL_TAB.
    LOOP AT lt_cat_settype_rel_all INTO ls_cat_settype_rel.
          CALL FUNCTION 'COM_SETTYPE_READ_SINGLE'
            EXPORTING
              IV_SETTYPE_GUID         = ls_cat_settype_rel-frgtype_guid
            IMPORTING
              ES_SETTYPE              = ls_settype
           EXCEPTIONS
             NOT_FOUND               = 1
             NO_IMPORT_VALUES        = 2
             NO_TEXT_FOUND           = 3 .
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      CASE ls_settype-frgtype_id.
          WHEN 'ZMASTER_INFO'.
          ls_ZMASTER_INFO-relation-owner = 'X'.
          ls_ZMASTER_INFO-relation-logsys = cs_product_bdoc-header-com_product-logsys.
          ls_ZMASTER_INFO-data-ZZ0010 = is_mara-STD_DESCR.
          ls_ZMASTER_INFO-DATA_X-ZZ0010 = 'X'.
          APPEND ls_ZMASTER_INFO TO cs_product_bdoc-data-ZMASTER_INFO.
          APPEND ls_settype-FRGTYPE_GUID TO cs_product_bdoc-data-MNT_SETTYPE.
       ENDCASE.
    ENDLOOP.
    Since in ECC i am not having any custom fields i did not write any code in ECC for TPS34 and TBE24. I just wrote this BADI in CRM and using the field S_MARA-STD_DESCR.
    I am not sure if i need to write the code in ECC. COUld anyone please confirm if i need the code in ECC?
    Also in the CRM BADI, lt_cat_settype_rel_all is EMPTY. Not sure how this gets its value.
    Could anyone please suggest if i am missing anything here? Any help is appreciated.
    Thanks,
    Karuna.

    Hi Karuna,
    One more solution is to change the BDoc data content before it hit the Database.
    this can be done in badi: Data_Exchange_badi (if u dont find this try with following search string: xchange)
    In the above mention badi you will find a method which is used to populated the contend jst after bdoc in CRM is being populated by R/3 data.
    Best Regards,
    Pratik Patel
    <b>Reward with Points!</b>

  • Steps for replicating GR custom field values from EBP to SAP R/3

    Dear SRM Gurus,
    We wre using SRM 5.0 extended classic scenario..
    We are having 3 custom fields for GR in SRM, we want to replicate these values to 3 other standard fields in SAP R/3..
    Can you pls tell us the Procedure, Steps and standard objects that has to be changed for replicating the GR field values from SRM to SAP R/3(4.6C).
    Thanks in advance,
    Chandra Sekhar.

    Hi
    <b>Please go through the following links -></b>
    Re: Confirmation screen field to be mapped to backend field
    Re: Creating Confirmations in SRM - What is the preferred method
    Re: GRN IDOC Transfer to ERP  - MBGMCR01 ( 2 IDOCS created)
    Re: Problem to send idoc for a Good Receipt created
    GR IDOC Number
    Re: Idoc error in Goods confirmation - urgent
    Re: Delete goods confirmation in SRM3.0
    Re: SRM / MM integratuion: goods receipt
    IDOC MBGMCR01: CO Ctd-pedido exceeded by 1 UN:
    <b>Some useful SAP OSS Notes to refer -></b>
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Note 521427 - FAQ: IDocs for goods movements
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Hope this will definitely help.
    Regards
    - Atul

  • Replicating GR custom fields from EBP to SAP R/3

    Dear SRM Gurus,
    We are using SRM 5.0, extended classic scenario..
    We have created 3 custom fields for GR in SRM and we want to pass these custom field values to SAP R/3(4.6C). Is there any BAdI or function module to replicate these custom field values from SRM 5.0 to SAP R/3.
    Please do the needful..
    Thanks in Advance,
    Chandra Sekhar.

    Hi
    <b>Please go through the following links -></b>
    Re: Confirmation screen field to be mapped to backend field
    Re: Creating Confirmations in SRM - What is the preferred method
    Re: GRN IDOC Transfer to ERP  - MBGMCR01 ( 2 IDOCS created)
    Re: Problem to send idoc for a Good Receipt created
    GR IDOC Number
    Re: Idoc error in Goods confirmation - urgent
    Re: Delete goods confirmation in SRM3.0
    Re: SRM / MM integratuion: goods receipt
    IDOC MBGMCR01: CO Ctd-pedido exceeded by 1 UN:
    <b>Some useful SAP OSS Notes to refer -></b>
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Note 521427 - FAQ: IDocs for goods movements
    Note 521488 - FAQ: MB_CREATE_GOODS_MOVEMENT
    Hope this will definitely help.
    Regards
    - Atul

  • 0CO_OM_OPA_6: Custom fields added, Data - available in RSA3, but not in PSA

    Hi Friends,
    I have added some custom fields to the 0CO_OM_OPA_6 data source. Following are the details.
    1) Custom fields: ZZEBELN (Purchasing Doc), ZZUSNAM (Username)
    2) Code populated in SE19 (BADI for this Datasource)
    3) RSA3: Test extraction pulls the records for both the custom fields correctly.
    4) RSA5, and RSA6 - Fields are unchecked for hidden and field only. They are made available.
    5) Extract Structure replicated into BW and its pulled over from extract structure into Transfer structure.
    6) Mapped to corresponding fields in BW update rule and transfer rules. (No routines or formulas exist)/
    7) When load extracted into BW, data is blank for both the fields in PSA itself.
    Our BW is 7.3 but we still use this datasource as 3.x transfer rules and datasource. In BW, it is connected to the Cube 0OPA_C11 via update rules and 3.x transfer rules only.
    Is there any reason for the data being populated into the RSA3, where as not into PSA. Please consider the above points, and let me know if I have done or missing anything here in my steps. I have gone thru several forums and havent got any specific replies for such issues. Have you come across such issues, please share your thoughts and views.
    Any of your replies will definitely help. Really appreciate your inputs.
    Thanks!!
    Prasith

    Hi Prasith ,
    After reading all the answers , what i feel we are  missing a major step ie  Re-initialization of the cube .
    As you changed the extract structure and added new fields and for this Data source i assume that deltas were  running already  , the BW  system cannot pull these new fields directly from ECC unless you have not done a  re-INit again .
    The Re-init is pretty simple and not as complex as LO.
    I would advise you to re-init for 01.2014 till 016.9999  , run full load and then delatas  will flow in later on . Check during the full load if you are able to see these fields in BW in (PSA/ Cube) .
    But be careful you need to do Re-init only on week ends when there are no transactions happening else you might end up in duplicate data .
    Hope this helps !
    Let me know how it goes .
    Regards
    Zeenath

  • F4 help for custom field

    Hi Experts,
    we have created custom field in SAles order and try to maintain a F4 help for that.
    we have created Search help with search help exit,when we click on F4 help the values are getting populated currectly in the pop-up in UI.  issue is when we select value from the multiple values the value is not getting replicated in the custom field.
    can you please let me know what the issue will be.
    Thanks in advance.
    Regards,
    Anil

    Hi Sheshagiri,
    Thanks for the reply.
    but the issue i think is not with the search help.
    search help we have created and the values are retrived correctly.
    when we select a value from the populated values the values is not been replicated in the specific field.
    please help me on this.
    Regards,
    Anil

  • Add ECC Custom Fields in CRM Web UI ERP Order item

    hi all,
    i have to Add ECC Custom Fields in CRM Web UI ERP Order item .
    I have :
    -  add the field on Web UI Screen.
    -  add the field on structure  TDS_item_COMV  and  TDS_item_COMC in ecc
    -  insert record for field on LORD_MAPPING table
    -  implemented badi BADI_LORD_DO_PA BADI_LORD_GET_INPUT_MODE.
    -  implemented method GET_I_S_STRUCT on crm with  :
    CASE COMPONENT.
        WHEN 'ZZSPOND'.
          RV_DISABLED = ABAP_False.
    endcase.
    - on method  do_prepare_output i have change value of fields with code :
    lr_loop = typed_context->erpadmini->collection_wrapper->get_first( ).
    WHILE lr_loop IS BOUND.
    posnr = lr_loop->get_property_as_string( iv_attr_name = 'POSNR' ).
    Does the current item has to be set for "Sponda Idraulica"?
    READ TABLE Z5CL_GSA_TOOL0001=>GT_ITEMS_SPOND INTO ls_spond
                                  WITH KEY posnr = posnr.
    IF sy-subrc = 0.
    lr_loop->set_property_as_string( iv_attr_name = 'ZZSPOND' iv_value = 'X' ).
    DATA : V_X TYPE STRING.
    V_X = lr_loop->get_property_as_string( iv_attr_name = 'ZZSPOND' ).
    ENDIF.
    lr_loop = typed_context->erpadmini->collection_wrapper->get_next( ).
    ENDWHILE.
    I can't change the field  value  because it is "not changeble"  .
    Can you help me ?
    Thanks in advance.

    Hi Celi,
    I have created some fields at header level of ERP Order, and the user is available to change them, replicating the information to SAP ECC (using interface LORD II). 
    All sales item information is treated using RFC ERP_LORD_GET_ITEM_MULTI, available in SAP ECC. 
    Please check the following point:
    If those structures below were expanded with your custom fields:
    SAP CRM:
    CRMST_L2_ITEM_COMV
    CRMST_L2_ITEM_COMC
    CRMTT_ADMINI_ERPIL
    CRMTT_ADMINI_I_ERPIL
    SAP ECC:
    TDS_RFC_ITEM_COMV
    TDS_RFC_ITEM_COMC
    Please check if for your scenario is necessary to implement the enhancement BADI_LORD_DO_PAI method ADD_SUPPLY_LIST. The code below works for header level.
      DATA: ls_supply TYPE tds_field_supply.
      IF iv_object_id EQ 'HEAD'.
        IF iv_module EQ 'VBAK_BEARBEITEN'.
          ls_supply-field = 'ZZCCINS'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNUM'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZCCNAME'.
          APPEND ls_supply TO ct_supply.
          ls_supply-field = 'ZZAUNUM'.
          APPEND ls_supply TO ct_supply.
        ENDIF.
      ENDIF.
    I hope it helps!
    Kind Regards!

  • Urgent : transfer of custom fields of a sales order from ECC to CRM

    Hi,
    We have a sales order which will be created in CRM and replicated to ECC.
    We have added some custom fields in table VBAK, which we are displaying in the sales order additional data tab B. When the user saves the sales order,we need to transfer the fields back to CRM.
    We are aware of the the BADI CRM_DATAEXCHG_BADI.
    Also i think we need to conisder the structure BAPIMTCS but not sure how exactly we can use it.
    On the CRM side these Z fields exist in the structure BAD_BUS_TRANSN_MESSAGE-CUSTOMER_H of the method CRM_DATAEXCH_R3D_MBDOC_FILL.
    Can someone guidde us on how exactly do we transfer the value from ECC VBAK-Z* to CRM  value BAD_BUS_TRANSN_MESSAGE-CUSTOMER_H.

    Hi Sameer,
    Thanks for the document.
    I tried doing the same steps recommended(in the document it was for a customer). However i dont think my values from the ECC side are being passed to the CRM side.
    I created a new Z structure and passed it via BAPIMTCS, but on the CRM side when i tired retrieving my Z structure,i dont think the system found it.
    There are 2 BAPITCMS structures, t_table_info and the other t_bapistruc.
    Do you know which one we need to fill up?
    Thanks,
    Neil.

  • Custom fields replication in sales order from CRM to ECC

    Hi Experts,
    We have added a few custom fields in CRM 7.0 (Ehp1) using AET. The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
    On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
    Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
    In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
    What is it that we have to do to ensure that custom fields are also replicated to ECC. Do we need to maintain field mapping between CRM and ECC, for custom fields, manually. How and where do we have to maintain the mapping. Also, please let me know the BADIs / exits that need to be implemented to achieve the above functionality
    Regards,
    Manohar

    Hi Manohar
    You can map these custom fields using the badi CRM_DATAEXCHG_BADI. Please see the documentation of the badi in SE18 in your system for further details.
    Regards
    Gavin

  • Issue with custom fields mapping from CRM to ECC.

    Hi all,
    I have issues with replicating custom fields in a Service order. I have created new fields with EEWB and EEWC. Now the structure has been changed in ECC and CRM. But i have to map this fields to correct structures. Also i need some logic to apply.
    But i have addressed in couple of threads about the custom function module as in user exit for FI generation.
    But i didnt understand the concept of this custom function module. why is this been used?
    Could anyone let me know with an good example on how this has to be acheived.
    Points are highly awarded.
    Kindly reply me.
    Thanks,
    Kiran...

    Hi,
    Here you go,
    After you create custom characteristics.
    1. Do Assign category.
    2. Map contents.
    3. Double check your master catalog has the mapped content.
    4. Publish master catalog.
    As per your message, you are not having any error message during import, which tells me that you are one step to close.
    Cheers, Renga

  • BP Custom Field replication - CRM to ECC

    Hello Developers,
    I have added custom fields to the CRM BUT000 (Business Partner) table, using AET.  Now,  I need to replicate these custom fiields to ECC.  We have configured, and are successfully replicating the standard BP fields from CRM to ECC.  However, the new AET custom fields are not replicating. 
    Can you please help me by identifying BADIs, Enhancements, or User Exits where I can insert the required code in order to accomplish this custom field replication, on both the CRM and ECC sides of this replication?  Is there a document that describes what is required? 
    We are running ECC 6.0, and CRM 7.0. 
    Thanks for your help!
    Duane

    Hi Brian,
    Thanks for your help.  I have resolved this, and the information that you provided was helpfutul.
    I had to create a function module in ECC, modeled after the SAP provided sample FM SAMPLE_INTERFACE_DE_BALE.   In addition to this, I had to configure entries in the standard SAP tables TBE24 and TBE34 (event DE_BALE), so that my new function module  would be  called. 
    Duane.

  • Replication of custom-fields in BP from CRM to ECC

    Hello all,
    I have created additonal attributes for a Business Partner in CRM7.0 (ZZKATR1 and ZZKATR2) using the tool AET.
    In ECC I've added these attributes to tabel KNA1 using an append structure.
    The replication of the BP from CRM to ECC is already working fine.
    So when I change a standard field this is replicated succesfully.
    Only now I want to enhance this replication with these additional attributes (custom-fields ZZKATR1 and ZZKATR2).
    So they also appear in ECC in table KNA1.
    Can anyone tell me how this is done? And what steps I have to take?
    Thanks a lot.
    Marco

    Hello Marco,
    Please see note 736595 and also the links below explaining the scenarios.
    http://wiki.sdn.sap.com/wiki/display/CRM/EnhancingtheCRMMiddlewareExample2
    /people/vikash.krishna/blog/2009/07/21/exchange-ecc-customer-master-standard-field-with-the-crm-z-fields-ecc--crm
    I hope this helps.
    Kind regards,
    Vanessa

  • Custom fields in the outbound dialing list

    Hi all. We use UCCX 7.1 Premium. I'm trying to set up the Outbound function. I need agents could see additional information about customer during an outbound call is proceeding. I can add a field of variables through the Desktop Admin interface but I can't understand how to fill this field by data from the dialing list e.g.
    Does anybody know how to add such custom field to the dialing list?
    Thanks.
    k_rus

    Hi,
    See these related threadS:
    Re: Replicating additional fields (R/3 4.7) to SRM product master
    Transfer Inforecord Conditions Scales  to SRM Product Master
    https://www.sdn.sap.com/irj/scn/threadmessageid=6669812#6669812
    Extending SRM Product Master
    BR,
    Disha

  • What are the steps to send sales order custom field from CRM to ECC

    Hi Xperts,
      We have created a custom field in sales order [ VBAK] and successfully replicate its value from ECC to CRM. But while doing the enhancement to replicate the field value from CRM to ECC [ When the SO is created in CRM ] we are not able to do so.
    We used a FM in CRM0_300, but while replicating the SO from CRM to R/3 it is not getting called.
    Please help us by providing the steps to do the full enhancement to replicate the custom field of SO from CRM to ECC.
    Thanks in Advance.

    Hi Anjaneyulu,
    We are faced with a similar situation as you.
    Here is our scenario with the steps that we performed so far:
    1.  We have added a few custom fields in CRM 7.0 (Ehp1) using AET.
         The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
    2.  On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
    3. Extended BAPI structures BAPISDITM and BAPISDITMX in both CRM and R/3 Side.
    4. As mentioned in the note 1053817, we have implemented BADI CRM_DATAEXCHG_BADI -> Method CRM_DATAEXCH_AFTER_BAPI_FILL in CRM (mapped fields from BDOC to BAPI structures)
    5. In the above note, for R/3 BAPI to R/3 API they have given to implement user exit USEREXIT_MOVE_FIELD_TO_VBAP which we found in MV45AFZZ. But in this we are unable to find BAPI Structure to map.
    Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
    In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
    Could you let us know if your issue is solved completely. Are you able to see the value of custom field, in ECC? Did you use AET to add fields in CRM.
    Could you please give us the steps that you have done.

  • How to replicate data from custom field in SRM to ECC

    Hi,
    I am using SRM 5.0, as per my requirement i need to get data from SRM (Web GUI) through custom fields in "Confirm Goods",
    and need to pass this data to ECC,
    I found that Message type MBGMCR; IDOC Type u2013 MBGMCR01 can be used for passing the data from SRM to ECC,
    How can i pass the new data to this IDOC in SRM
    and how can i get the data from this IDOC in ECC
    Please help.
    Thanks in advance,
    Jerin.
    Edited by: Jerin Joseph on Jul 23, 2009 5:06 PM

    Hello,
    This will help you.
    Re: Replicating GR custom fields from EBP to SAP R/3
    Thanks
    Ashutosh

Maybe you are looking for