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>

Similar Messages

  • Add a custom field for Product Allocation

    Hi experts,
    I have copied S140 to S501 to add a custom field for product allocation.
    I have added the custom field in MCVBAKUSR, so it is visible in MCVBAK.
    However, I don't know whether I can populate data into custom field. I searched in forum, someone said it can be done in SAP enhancement MCS10001. But it can't work. I have tried to place a break-point in the code, and seems that throughout the order creation and product allocation check, it hasn't get into the codings in enhancement MCS10001.
    Can anyone give me some idea on it? Thanks.

    You should have simply extended VBAK table. It would've taken care of extending MCVBAK, etc. Then VBAK field would have to be populated in a user exit USEREXIT_CHECK_VBAK in MV45AFZB, when a document is being created/changed.

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

  • Data syncup issue - Custom extractor for revenue recognition data from ECC into BW

    Hi there,
    We have created a custom extractor on top of a Function Module (FM) in ECC that reads data primarily from VBREVE table. Currently, we have close to 10 million records and full load isn't a preferred option so we built in a delta mechanism using "Created On" (ERDAT) and "Posting Date" (BUDAT). The idea is to do an initial full load and then switch over to delta loads on a nightly basis for data where:
    "Created On" OR "Posting Date" is within last 6 months.
    This will ensure if any updates are made to the existing VBREVE entries, this change will be reflected in the BW DSO, provided the "Created On" or "Posting Date" fall within last 6 months. The issue comes up if in ECC a billing plan is cut down to a smaller term, let's say from 3 years to 2 years, the entries for the 1 year will be deleted from VBREVE table. How can I pick up this change in BW DSO since this data has already been loaded in the past? Addition of entries are okay but I need to address the deletion on entries in VBREVE table so that it reflects this in BW DSO. Any ideas how I can accomplish this? In the example on the screenshots, BW still shows the before image and I need to be able to get it to sync up with ECC as per the after image.
    -Rohit

    Dear Rohit,
    The case is complicated , there can be workaround using the changedon date from VBAK table. if the billing plan is changed in the sales order VBAK will be updated for changedon.
    1) If the billing plan deletion is a very specific case, then using the change log tables find out which are the sales order for which there has been billing plan change. Store this sales order details in DSO day wise. call it DSO1
    2) Create a self transformation to the DSO ( DSO2) where you are currently loading from the table VBREVE (DSO2 to DSO2 -For loading data from the same DSO) .Transformation should have reverse record mode given as a constant.
    3) load the data DSO2 from DSO2 by filling up sales order details from DSO1 in the DTP filter.
    ( This will reverse the complete entry for the sales order in DSO2 for the sales order for which billing plan has been changed)
    4) Now load afresh for these sales order again from source system to DSO2 from the table VBREVE.
    You can also use VBAK changedon date to trigger this load.
    Hope I have not confused you
    Regards
    Gajesh

  • Search on the custom field in Product doesn't work

    Hello everyone!
    Lately I was configuring additional custom field for product header and succeed. Then I wanted to add this field as a search criteria for product search and I followed help on help.sap.com and note 1026956. Here are the steps I did:
    1. I've extended structures CRMT_PRIL_QUERY_ADVSEARCH_PROD and CRMT_PRIL_QUERY_ADVSEARCH_IOBJ with my custom attribute.
    2. I went to Master Data->Products-> Basic Settings ->Add Attributes to Search Structure and added my custom attribute there.
    3. Then I found out that it's not enough and I should perform additional steps not included in note and help. I did these steps suggested by Shanthala Kudva in thread [Can't enable the extendable set type attributes in product search UI|Can't enable the extendable set type attributes in product search UI;.
    After that I was able to configure UI and see the search criteria, but when I try to search using custom field I get error message: "Search criteria PRODUCT_ANKER.ZCAT_NUMBER in scenario CL_CRM_PRSEARCHSCENARIO_GETLST not included in tool/filter"
    How to find out the reason of this behavior? Did I miss something in configuration?
    P.S. Set type called ZPRODUCT, attribute ZCATNUMBER. In structures appended component called ZCAT_NUMBER with component type ZCATNUMBER. In table CRMC_PRSEA_ATTR the record has the attributename ZCAT_NUMBER, attribute_id ZCATNUMBER. Maybe I messed up with that?
    Regards,
    Alex.

    Hi Alexander,
    I know this is an old post, but currently i am facing the same issue of not being able to see my custom fields in the BSP Component Workbench.
    I tried to follow all steps maintained in SAP Note # 10269656 & 1541480, but no luck.
    Can you please tell me what do you mean by "Should not add the extended attributes directly to Search Structure, as SAP expects the attributes to be in APPEND structure"? Can you please let me know how the values are to be maintained in the Search structure table "CRMC_PRSEA_ATTR", which is also accessed using the IMG Meanu path "Master Data -->  Products --> Basic Settings --> Add Attributes to Search Structure"
    Appreciate your help.
    Suresh Karri

  • Customer fields replication in Sales order from R/3 to CRM

    Hi all,
    I want to replicate, for Sales orders, one field (ZFIELD_A) on item level (VBAP) from R/3 to CRM .
    I used transaction EEWB on CRM with the option "Adding new fields to Business transactions" and I flagged checkbox "Also used in R/3".
    All worked fine and all the repository objects where created both in CRM and R/3, and the fileds was appended in structure CUSTOMER_I (CRM).
    The problem is when I replicate the data, because of existing customer fields  in R/3.
    In R/3 I have exisiting fields on BAPE_VBAP
    ZFIELD_1  [CHAR1]  - existing
    ZFIELD_2  (CHAR1] - existing
    ZFIELD_A  [CHAR30] (the new one)
    Assuming the above field values are X-Y-thisisatest
    the value of ZFIELD_A in CRM will be "XYthisisatest", since R/3 sends, in structure BAPIPAREX all the three Customer fields.
    In the generated (from EEWB) method ZEEW_DATAEXCHANGE01->CRM_DATAEXCH_R3D_MBDOC_FILL, called when transferring the order to CRM , all the first 30 positions are moved to ZFIELD_A from CRM.
    A solution would be to change the generated coding of the above method, by truncating the first 2 chars, but it's not so nice (and I also could loose the changes after a generation of the EEWB project).
    Anyone has a nicer idea?
    thanks a lot,
    Fabrizio

    Hi
    Go through the following NOTEs
    736595,833585,863611,873771.
    Regards
    Nadh.

  • Enabling Quote custom field for External Pricing Response

    Hi All,
    Using UI configuration (adaptation) we are able to define new fields and enable them for standard web services. The result is that they are included in the relevant WSDLs and can be mapped using PI/HCI to equivalent fields in an external system such as SAP ECC.
    Looking at Quote's for example, we have defined a new field at Product Item Line level and have the following services we can enable it for.
    Enabling for the CustomerQuoteRequestExternalSalesDocumentDataOut outbound service adds the field to the External Pricing request part of the resulting WSDL, however it is not enabled for the response which is key to our requirement.
    Is it possible through PDI to enable this field for the inbound equivalent for CustomerQuoteRequestExternalSalesDocumentDataOut??? If not, is it possible to create the field through PDI and enable it that way?
    Thanks
    Indi

    Hi Chandan,
    Thanks for the response.
    The External Pricing interface for Quotes is synchronous so has no IDoc as such. We send some parameters to fetch a price from SAP ECC, and the response contains all the pricing information.
    In terms of the response, we're able to pass the value we need from SAP ECC to HCI, however there is no place in the WSDL for us to pass it to the field we have defined in C4C.
    The WSDL for External Pricing contains both the request and response structures, therefore two root nodes. Adaptation only allows us to enable the field for the request (outbound) node. I'm trying to work out how we can enable our custom field for the response (inbound) node within the WSDL structure.
    Thanks
    Indi

  • Mass update of a custom field at Product Revenue level

    We are trying to update a custom field at Product Revenue level using the Opportunity Web Service. The webservice call is timing out as we have thousands of Opportunities.
    I would appreciate if anybody gives input on how we can massively update a custom field using Opportunity Web Service.
    OR
    Is there a way to mass update a custom field at Product Revenue level other than using a web service.
    Thanks for your help!
    -purna

    If you are not very much obsessed with Webservices, the other workaround is the Data Loader Tool. It was discussed earlier in this forum.
    Pl refer-
    Re: Product Revebue Updation
    Hope this helps.
    Rgds,
    Amit Sahu

  • Introduction of additional customer fields in productive system

    Dear experts,
    in the SAP help and OSS-notes (SAP Note 891144) it is strongly recommended NOT to introduce additonal customer fields for the new General Ledger Accounting in already productive systems. I would like to know if this because of technical  reasons , e.g. field creation or assignment is technically not possible because transaction data is already in the system, or because of  the problemsfor the reporting when the fields are not correctly filled .
    Thanks a lot.

    Hello,
    In my opinion, the purpose of this OSS note 891144 is to inform about the risk when you Define Document Splitting Characteristics for General Ledger. In that customizing point, the 2 fields zero balance and mandatory field must be ticked in order to avoid any consistancies related mainly to document posting without profit center, Bus Area or Segment ...
    If document splitting is activated, means document must be posted with profit center (or Bus Area or Segment if they are activated) information in order to have correct info and correct reports
    But please contact SAP directly if you have problems regarding this
    Best regards
    Tarek
    Edited by: Tarek AYACHI on Sep 2, 2011 5:47 PM

  • Map Profit Center as custom field to product

    Hi,
    We want to map Profit Center(35 characters) to a custom field in product for some analysis. We want to map it to Custom Attribute 2 (XARLPROA2) this is a 40 character long field.
    We do not want to see this field in Reports in UI. Please let us know is this the right approach or would you suggest some other field to which wecan map Profit Center.
    Regards
    Neel

    Hi Neel
    I am assuming that you are referring to display attribute and not navigation attribute that needs to be added to product. Yes, thats the same as adding an attribute in standard BW way.
    And then, in the SPM UI you can display attributes in the contextual menu of a particular product.
    But if you do need to do analysis on it then on top of adding the attribute, you need to flag it as navigation and then bring it in the following:
    The respective cube(s) 0ASA_C*
    Add it into the multiprovider 0ASA_MP01
    Add it to the Query
    Log into SPM UI and refresh all data sources (make sure that no other users are logged in at that time), log out
    Clear browser cache and log back in
    Create report with that nav att
    Hope that helps!
    Regards
    Rajesh

  • URGENT : PCUI  or WebDynpro or CAF for Oppurtunity Mangement/CRM from EP

    Dear Portal Gurus,
    We need to develop some custom developments for Oppurtunity Management (CRM) functionality thru EP.
    Pls suggest what is the way to go about doing it ?
    Is PCUI from the CRM + B2B_SHOP the only option ?
    Or
    Can anything be done via web dynpros or CAF ....
    What is the best way to do in a manner so as to make use of SAP's latest and the greatest technology in  a timely fashion.
    Thanks.
    Josh
    Message was edited by: Josh Mannings
    Message was edited by: Josh Mannings

    Hello
    We went for WebDynpro ABAP and that works perfect !
    Best Regards
    Kristoffer Engh

  • IDOC/BAPI for Production order creation from Legacy system

    Hi all
    We are using an interface to create Production orders from legacy to SAP. Would you recommend an IDOC or a BAPI to create Production orders. If IDOC or BAPI then could you please mention which one?
    thanks a bunch

    Hi John,
    For your purposes, please use BAPI for production order creation from legacy system. There is no standard inbound IDoc available to use. SAP has an IDoc for outbound interface only (message type LOIPRO).
    If there is an inbound IDoc available, I would recommend to use an IDoc.
    IDoc technology has excellent error handling and will allow you to reprocess an error (if any).
    BAPI is also good approach to use and fast in term of  processing.
    For BAPI approach, you can use BAPI BAPI_PRODORD_CREATE.
    Hope this will help.
    Regards,
    Ferry Lianto

  • User's custom field for metadata entrance

    It would be wonderful if the user could add a series of metadata custom fields.
    I'm thinking in a situation where you might be photographing for a national museum or an art gallery where you could enter a custom field for the artist's name, date of birth & death, nationality, restoration details (who did what & when?), etc..

    I second that one, too. It would be immensely useful. After all, LR is a database, so adding custom fields shouldn't be too difficult, should it?
    I'd be happy for these to be internal only, not exportable.
    David.

  • Adding customized fields for Travel Expenses

    Hi,
    I would like to add some customized fields for user input during the creation of travel expense form.  Is this possible?  If yes, any advise on the steps to create customized fields for data entry of travel expense form?
    Thanks.

    Hi Yvonne ,
    Thank you for the tip , it was helpfull.
    We are using field BUS_REASON "Business Partners", We changed label for data element but is not showed in TRIP transaction we can see it in PR05 transaction.
    How can I change labels for TRIP transacction?
    We did the change in CMOD transaction
    Thanks.

  • Adding custom field to product master general tab

    Hi All,
             i want to add a custom field in Product master creation (commpr01) ,could any one help me out on this !
    Many thanks and Regards.

    Hi
    You can create field using EEWB or follow the following simple process
    1. Create the required field as " attribute" using the tcode COMM_ATTRSET
    2. Assign it to a set type using the same tcode COMM_ATTRSET
    3. Assign this set type to the product category usign the tcode COMM_HIERARCHY in the set type tab and use the view ID as "BASIC"
    The field will then be available to you in the product master to the products with are created with the named product category
    Hope this helps
    Regards
    Rekha Dadwal
    Edited by: Rekha Dadwal on Mar 19, 2008 1:19 PM

Maybe you are looking for

  • Scheduled Discoverer report link for viewer in portal

    Hi, When a link for scheduled report for plus users is created in portal Oracle suggestes the following. This is good since it does not need the run number and the same link will work for all reruns. http://<host.domain>:<port>/discoverer/plus?cn=cf_

  • PO creation for approved requisitions

    Hi Gurus, can anybody please throw some light and help me with this scenario. We have release procedure setup for requsitions for cost centers only. The approval levels we have are 1000-5000 is level1, 5001-10000 is level2 and 10001+ is level3. If a 

  • Network drives failure

    I apparently made the serious error of buying a network drive-- and while I was able to load my iTunes files onto it, suddenly the folder disappeared and I cannot find ANY method of finding it and removing it so I can salvage my files. The drive make

  • How to use Add Shipments functionality in Shipment document creation

    Dear All, We wanted to use the Add Shipments functionality in the Shipment document creation / change. We have two different shipment types. I want to add shipments of one shipment type in to Shipment document of anohter shipment type. I am not able

  • SAP RVBCONVMAT2BM Set Batch Management to materials with stock

    Dear Gurus: We are trying to make mass changes in material master, to activate arround 2,000 materials with batch management flag. We heard about the SAP program release RVBCONVMAT2BM, to let us do it in ma massive action. Could anyone of you can giv