Adding custom fields to CRM Sales transactions

What are the steps to add custom tab and fields to CRM transactions?
By the way, we are on CRM 6.0 and are using SAPGUI.
Thanks in advance
Srini

I tried using Easy Enhancement Workbench (EEWB) and was able to successfully generate the task under the project.
But now I am getting short dumps in transaction CRMD_ORDER. Snap shot of the error is below.
What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_EX_CRM_CUSTOMER_I_BADI=====CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.
Runtime Errors         MOVE_CAST_ERROR
Except.                CX_SY_MOVE_CAST_ERROR
Date and Time          01/26/2011 16:52:47
Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_MOVE_CAST_ERROR', was not
     caught in
    procedure "IF_EX_CRM_CUSTOMER_I_BADI~CRM_CUSTOMER_I_SET_TITLE" "(METHOD)", nor
     was it propagated by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    It was tried to assign a reference to a rereference variable using the
    'CAST' operation ('?=' or 'MOVE ?TO').
    However, the current content of the source variable does not fit into
    the target variable.
    source type: "\CLASS=ZCL_IM_EEW_CUSTOMER_I01"
    target type: "\INTERFACE=IF_EX_CRM_CUSTOMER_I_BADI"
Also, is there a clean way to back out these changes? Will deleting the project undo these changes?
Thanks in advance
Srini

Similar Messages

  • Adding Custom Fields to the Sales Order Screens - VA01, VA02 & VA03

    Hi,
    I have a requirement to add custom fields in the Sales Order Standard Screen. Could anyone please tell me is there any screen exit available to add a tab screen or is there any possibility without modifying the standard code.
    Please let me know with the details.
    Thanks & Regards,
    Goutham.

    Hi Narendran,
    Thanks for prompt reply, it was very useful.
    Could you please let me know the procedure you have followed in coming to this conclusion of what screens to be used.
    I understand that the program is SAPMV45A.
    Thanks & Regards,
    Goutham.

  • Adding custom field in shopping cart transaction

    Hello,
    I have done the following things apart from enhancing the INCL_EEW_PD_ITEM_CSF and INCL_EEW_PD_ITEM_CSF_SC structures.
    1) Executed BBP_DYNPROS_GENERATE for SAPLBBP_PDH_SEARCH and SAPLBBP_PDH_CUF
    2) As I realised later that CI_BBP_ITEM_SC and CI_BBP_ITEM were present in the system locally I tried one by one both the methods as follows.
    -Deleting the EEW includes and adding the tracking number in the above CI structures and activating the modify_screen badi with dispaly and input fields as X
    -As this didnt work, I deleted the CI structures and again created EEW inputs so that only EEW structures are present for the customer fields.
    but even then it didnt work. furthermore, I am not able to debug the implementation of badi BBP_CUF_BADI_2 at all from the bbpsc03 transaction.
    2) Carefully followed the notes
    sapnote458591 User defined fields preparation and use
    sapnote672960 User defined fields2
    3) Checked the notes (but didnt apply these as they dont precisely pertain to the item fields of bbpsc03)
    sapnote1016297 Header customer fields are not displayed in bbpsc02
    sapnote1034079 customer fields not visible in shopping wizard
    4) Additionally checking the notes  
    sapnote537392 CUF Cust Filds on the 'Default value for items'
    sapnote710474 CUF.User-defined fields on search screen
    Could you please guide me with any more inputs?
    thank you very much
    rita

    Hi,
    How about note 954391 - Customer fields are not displayed?
    Also check whether you haev extended the proper sructures in note 672960.You need to extend INCL_EEW_PD_ITEM_CSF_SC & INCL_EEW_PD_SEARCH_ITM_CSF_SC for customer fields on item overview .
    You can also use the BADI to BBP_CUF_BADI_2, method MODIFY_SCREEN, table ET_FIELDS, XINPUT = 'X' and XDISPLAY = 'X'. to control the display of the custom fields.
    Also after running the BBP_DYNPROS_GENERATE program,you can restart the SRM server and check.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Replicate custom fields from CRM sales order to R/3 sales order

    Hi Michael,
    I have a requirement to replicate custom setype data created for CRM sales order to R/3 sales order.These fields have been created at item level.
    Do you know the set of steps to achieve the same.
    Any help would be appreciated.
    Thanks,
    Chamu

    Hi,
    the CRM sales order cannot be extended using set types. Set types are a functionality that is limited to products.
    You can however enhance the orders by using the easy enhancement workbench (ransaction EEWB). It will allow you to add specific fields to all levels of the sales document and will take care of ALL the objects that are necessary to update and maintain he fields (functions, screens, bdocs, bapi's,...)
    Depending on you system, it will also generate the update modules for R/3 (don't bet on it). Otherwise you'll have to program the extraction and mapping of the new fields in R/3.
    Michael.

  • Adding custom fields in article master transaction - MM41.

    Hi ,
    Please find my requirement below.
    Create a new custom field in the MM41->Logistic Distribution View->Other Logistic data.
    The new field would be Shelf life  which would be added in MARC table MARC-ZIPRKZ.
    Now I would like to know how to bring this enhanced field MARC-ZIPRKZ into the Other Logistic data screen of MM41.
    Have seen lot of discussion in the community. But a clear step by step procedural advice and guidance  is highly appreciated.
    Regards
    Siva

    Hi Siva:
    Modification free enhancement of the article master is common.   Part of this implementation is technical and part of this is functional configuration.
    From a functional perspective, you'll want to consider far more than what you have indicated.  For example:
    MM41/42/43 Screen Sequence
    Reference Handling – Field Selection Groups
    Data Retention Levels / Copy Rules (e.g. when appending MARC)
    Change Pointers
    Conversion / Data Loading / ALE ARTMAS Inbound
    ALE ARTMAS Outbound
    MM46 Article Mass Update
    WRFMASSMAT Integrated Mass Change
    F4 Help / Check Tables
    Text Tables / Translation
    As far as data retention levels for extended fields, you can distribute customer-defined fields for MARC and other tables without including new segments in the IDoc.
    Please consider:
    Create Programs for Customized Subscreens
    Menu Path:  SPRO > Logistics - General > Material Master > Configuring the Material Master > Create Program for Customized Subscreen
    Read the IMG documentation here!
    Screen SequenceMenu Path:  SPRO > Logistics - General > Material Master > Configuring the Material Master > Define Structure of Data Screens for Each Screen Sequence
    Assign Screen Sequence to Article TypesMenu Path:  SPRO > Logistics - General > Material Master > Configuring the Material Master > Maintain Order of Main and Additional Screen
    BadI and User Exit for MM46
    BadI for WRFMASSMAT (see SAP Note 1024725)

  • Adding Customer Fields to AS91 - Asset Management

    Has anyone added customer fields to the AS91 transaction. I'm writing a conversion program to load legacy data and I would like to add more fields to the Origin tab.  If I can't do that, then I would like to add another tab to the transaction.  There is a CI_ANLU include which allows me to add the fields to the Asset Master Record, but there's not any screen exits to add those custom fields to the screen.
    Thanks.
    Linda

    Do following.
    1. Go to Transaction AOLA.Its a customising Transaction.
    2. Create your own Layout for ex. ZSAP.
    3. Go to tab page titles and make sure you have all tabs in place.
    4. Select tab where you want to put.
    6. Add a record in it.
    5. Under Groups you will find your screen prefix with U.for example if screen number is 9001 then under group box you will find U9001.
    Check Transaction AOLK. Where you have to assign layout to Asset Class.
    That will display the User defined screens in that tab.
    In SPRO following is the path.
    SPRO->Financial accounting->Asset Accounting->Master Data->Screen Layout
    Message was edited by: Deepak Bhalla

  • 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

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

  • CRM 7.0 / IS-U: adding custom fields to Business agreement for replication

    Hello Experts!
    We're working on replication of custom fields from IS-U to CRM 7.0.
    Can you help me with clarification of my understanding of these questions..?
    1) CRM/IS-U mapping tables for buag_main:
    Business Agreement(BUAG_MAIN) is a BO in CRM that corresponds to CRM table CRMM_BUAG and to Contract account in IS-U table FKKVKP.
    Table FKKVKP were enhanced with some z-fields,
    so we are going to enhance corresponding CRM table CRMM_BUAG (or CRMM_BUAG_H) with that new fields..
    But we see that these CRM and IS-U tables have far not the same field structures..
    So, the question: Which crm and is-u tables i should look, enhance and replicate for Business agreement?
    2) Access to Business agreement with possibility to add custom field:
    I couldn't find in Web UI where i can directly edit profile of Business Agreement..
    I've found just access to assignment block "Business agreement" on Account's profile overview page..(Role ServicePRO; Account details).
    There I used AET to add custom field..but I faced with problem when the 1st popup appeared: there was no enhanced object "Business Agreement"..
    Also in role "Utilities IC Agent" i've found "business agreement" profile but there I don't see buttons for adding custom fields..
    So, the question is: Where I can access Business agreement profile to enhance it with custom fields for replication with IS-U?
    3) CRM/IS-U data exchange functions:
    I tend to use tcode CRMC_BUT_CALL_FU:
    for CRM inbound event of BUAG object  - FM CRM_BUAG_MWX_PROCESS_EXT_STRUC..(as template).
    Question: Am I right that it fits my requirement to replicate custom fields from IS-U to CRM?
    Please tell me if you need more information..
    Looking forward to your answers.
    Thank you a lot in advance!
    Kind regards,
    Evgenia

    Hi Gobi,
    Thank you for advice. But:
    I've created fields not by using AET - I used documentation that Nicolas suggested me above.
    I've enhanced tables and structures that were mentioned there with my z-fields for both sides (CRM and ERP).
    Also I looked CRMC_BUT_CALL_FU for CRM Inbound BUAG_MAIN - corresponding standard FMs are marked for call.
    Any ideas?
    Thanks in advance.
    BR,
    Evgenia

  • Adding custom fields to FPE1/2/3 transactions

    Hi guys,
    My first thread here on SDN!
    I need to add custom fields (Document Locator Number - ZDLN, and Post Mark Date - ZPMD) from table DFKKOP to transactions FPE1/2/3 under ADDITIONAL DATA area while manually entering NEW BUSINESS PARTNER ITEM.
    The transaction is not BDT enabled and does not have a screen exit. The user exit and BaDI dont seem helpful to me.
    The screenshot below shows the user exits and BaDI for the transaction.
    Link: [Exits|http://img440.imageshack.us/img440/9319/1123201061827pm.png]
    What are my options to add fields to the transaction screen now?
    Thanks!!

    Hi,
    Yea i got the functional guys to configure it. Was a unique issue!.....But I know how they did it.
    You can add it through SPRO transaction. Go to the below mentioned path.
    Go to SAP Reference IMG
    Financial Accounting > Contract Accounts Receivable and Payable > Basic Functions > Posting and Documents > Document >
    Screen Preparartions > Include Own Fields in Detail Screens.
    Here you need to enter the details from FPE1 transaction screen.
    Activity Documentation:
    Include Own Fields in Detail Screens
    In this activity you can, if you have added customer fields to the document structures, include these customer fields in the entry screens of the transaction for posting documents.
    For the detail screens (business partner item and G/L account item) you can create a screen that contains your own fields. You must create this screen as a subscreen using the Screen Painter. In addition you have to create modules for the intialization and for data transfer (PBO and PAI).
    Activities
    If you have extended the document strutures to includes customer fields, and you need these fields in the entry screens for posting documents, you must create the screen using the Screen Painter.
    Carry out this step to create the screen and the modules that go with it in the system. You do not have to activate these afterwards.
    Further notes
    Read the field help for each field in the table. This describes the exact procedure.

  • Adding custom fields to FPE1/2/3 transaction screen

    Hi guys,
    I need to add custom fields from table DFKKOP to transactions FPE1/2/3 under ADDITIONAL DATA area while manually entering NEW BUSINESS PARTNER ITEM.
    The transaction is not BDT enabled and does not have a screen exit. The user exit and BaDI dont seem helpful to me.
    The screenshot below shows the user exits and BaDI for the transaction.
    Link: Exits
    What are my options to add fields to the transaction screen now?
    Please help out!

    Hi,
    Yea i got the functional guys to configure it. Was a unique issue!.....But I know how they did it.
    You can add it through SPRO transaction. Go to the below mentioned path.
    Go to SAP Reference IMG
    Financial Accounting > Contract Accounts Receivable and Payable > Basic Functions > Posting and Documents > Document >
    Screen Preparartions > Include Own Fields in Detail Screens.
    Here you need to enter the details from FPE1 transaction screen.
    Activity Documentation:
    Include Own Fields in Detail Screens
    In this activity you can, if you have added customer fields to the document structures, include these customer fields in the entry screens of the transaction for posting documents.
    For the detail screens (business partner item and G/L account item) you can create a screen that contains your own fields. You must create this screen as a subscreen using the Screen Painter. In addition you have to create modules for the intialization and for data transfer (PBO and PAI).
    Activities
    If you have extended the document strutures to includes customer fields, and you need these fields in the entry screens for posting documents, you must create the screen using the Screen Painter.
    Carry out this step to create the screen and the modules that go with it in the system. You do not have to activate these afterwards.
    Further notes
    Read the field help for each field in the table. This describes the exact procedure.

  • Adding custom fields in Delivery transaction

    Hi,
    I need to add custom fields in the delivery transaction(VL01N/VL02N) at Item level in Material tab screen.
    Are there any screen exits available for delivery order in any other tabs or Do I have to modify the standard program.
    Regards,
    Sudheer

    Hi sudheer
    there is no screen exits for vl01n adn vl02n
    you have modify the standard program
    regards
    kishore

  • Re :adding custom fields to standard transaction

    Hi ..
         I've added custom fields to vbap table..I have also
    added these fields in the va02 screen.
    Now whatever values I enter for the zfields(va02 ) must be saved in vbap table.
    How do i do this?.
    Should I write in MV45AIZZ .(PAI).
    what are the steps i have to follow?.
    Thanks and regards..
    tharun venkat

    zfield in the program means the corresponding field name u have given for the newly added field in the table.
    IN the layout u might have added some field ad have given some name (I/O) field name.

  • Adding custom fields to FD32

    Hi All,
    I need to add 4 new fields to "Status" screen of FD32 transaction. I cannot use the already existing standard fields so I need to add custom fields. I have searched the forum and found the following enhancement and BADI :
    RFDRRANZ
    FI_DUZI_ROUND_CML
    I tried to implement them but did not achieve the results that I wanted.
    There are so many forums on this topic but none of them had an actual solution.
    Did any had success adding custom fields to FD32? If yes, could you please let me know the solution.
    Thank You,
    Sonali.

    Hi,
    Business Requirement:
    As per the client Business critical requirements, additional fields are
    required in the Article Master. This is because the existing fields in
    the Article master are not adequate to capture the data.
    We have referred the SAP Note 925424 (Table MAW1) and 44410 (MARA) for
    this.
    Based on the above note 44410, we have added fields in MARA table,
    since Manufacturing
    activities are envisaged in future instead of proceeding with 925424.
    Whether, MAW1 (925424) also to be considered?  
    Since this is very critical requirement from client, we cannot avoid
    and do not have any
    alternate solution.
    These fields will be used in reports and pricing in sales &
    distribution.
    Apart from this, are there any other SAP notes to be referred?
    Is there any restrictions there in length for fields to be used in MARA table .
    By referring note 44410 , i added 20 fields in MARA table, in which some 4 fields are more than 40 characters .
    All custom fields are updated in MM41 and MM42 .
    Shall i proceed by this approach .Kindly guide me on this .
    Thanks and Regards,
    S.Sivakumar

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

Maybe you are looking for

  • Problem in saving a user exit

    Hi all ,        I am working on a user exit for the KKA2 transaction . I needed to maintain Text Elements  for the same(The main program where the text elements are maintained is SAPLXKAG) and while saving of the text elements i assigned the package

  • Hi, can I install windows XP with bootcamp on my iMac which is now on Maverick? Please help.

    Hello all, can I install windows XP with bootcamp on my iMac which is now on Maverick? Please advise. Thank you.

  • Problem with downloading photo from iCloud to iPhone's Photo Stream

    Hi Apple Support, I have two apple device, one iPad and one iPhone. For iPad, I turned on 'My Photo Stream' and 'Shared Photo Streams' function before, but iPhone not, and I installed iCloud client at my Win7 PC, so any photos which created by iPad w

  • Error in IAC based workflow through UWL

    Hi ITS Gurus, I was using WS20000081 leave request service in ITS 620 and SAP Inbox(BWSP) and it was working fine. Now we have upgraded the R/3 system to ECC 6.0 and published all the services to Integrated ITS 7.00 and the Kernel patch level is 55 a

  • LabVIEW application with cameras

    Hello, I have build an application with LabVIEW and I am using two GigE cameras. In NI MAX, I set the names cam0 and cam1 respectively. Everything is working properly in the computer where I have build the application, when I execute it but when I  e