Enhancing 0CRM_SALES_ACT_1 crm Datasource

guys i have read so many threads here to enhance 0CRM_SALES_ACT_1 crm datasource. i am adding 4 fields to this ds and would like to know how to enhance this. i would like this to delta capability.
do we have to use4 badi..if so can us send me sample abap code? what is the best practice and procedure

Hello,
You can enhance th edatasource from RSA6. Append the fields to the datasource structure and write a abap code in CMOD  for those added fields.
Also go through the below forum:
[CRM Extractors - Mapping in BWA1;
Regards,
Pratap Sone

Similar Messages

  • Enhancing the CRM datasource

    Hi experts,
    i have to enhance the CRM datasource with some additional fields and fill them.
    so far i am succesfull in doing the below.
    1. i have appended the fields to the extractstructure and also regenerated the datasource
    2. and when to the BADI for Messaging Flow for writing the code.
    the problem here is its giving a small popup screen in which it has few implementations given by SAP in which do i need to put the code (i am assuming that its the same as our old exit concept where we use the same exit for all transaction datasoruces just by using the case statement) so in that four which one should i use for putting the code and what others are used for.
    The below are the implementations available when i execute the badi for messaging flow.
    CRM_BTX_EEW_BWA
    CRM_BWA_ENHANCE_EX
    CRM_BWA_ORDER_1
    CRM_CSDR_BWA_MFLOW
    If not a big trouble i will be greatfull if somebody can give me the code sample for getting a field filled from someother table with simple logic.
    thanks and regards
    sreedhar

    Pls chk this link for Crm enhancement
    Enhance standard data sources in CRM
    BWA1 is for all standard crm datsource maintaince
    rsa2 for generic datasource
    BWA5 i think we use this Tcode after RSA5 activation additionally.
    yes(incase of delta)
    BWA7 do we have to use this tcode along with BWA1 for standard datasources also or else only for generic datasource.
    irrespective of the type of dtasource,use it if you want to load delta(you need to delta enable the datasource here)
    So we don't need to put the code as we traditionally do it for R/3 , if we just mapp the fields that would bring the data for these fields.
    as i told in CRM we willwrite code in BADI in case you have done enhancement
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
    also chk this(credit goes to the writer)
    CRm enhancement:
    1. Enhance Extract Structure with the required fields. (Create & include an append structure to the extract structure via transaction RSA6).
    2.a) Release the fields of the append for usage. ( To do this, double click on the Datasource and remove the flags in the column 'Hide Field' for all fields of Append).
    2.b) If the new fields cannot be seen in the extract structure of the transaction BWA1 then change and save the datasource, and then activate it in RSA6.
    3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
    Goto SPRO . Follow the path ->SAP Implementation guide ->Implementation with other mySAP components ->Data transfer to the Business Information Warehouse-> Settings for the application specific datasources (CRM)->Settings for BW adapter-> Badi :BW adapter :Enhancement of datasources in messaging flow.
    4. Replicate the new Datasource to BW.
    5. Expand the Communication Structure in BW.
    6. Maintain transfer Rules for the new Datasource.
    7. Activate the trasfer rules and perform the upload.
    Refer to the SAP Note 692195 for more info ......
    send ur mailid, mail u some good step by step- doc abt this.
    *pls assign points,if link is useful*
    Regards
    CSM Reddy

  • How to activate a CRM datasource and also to enhance

    Hi experts
    1. can somebody guide me how to activate a CRM datasource like in R/3 we do it in RSA5 and check it in RSA6
    do we have to do the same and also any additional steps need to be performed for adapters.
    2. How do we enhance the CRM datasources.
    can somebody guide me with steps for the both.
    thanks and regards
    Message was edited by:
            Neel Kamal

    Hi ,
    <i>BWA1 is for maintaince of Datasource in which scenario do we use this Tcode isit only when we do the Generic datasource</i>.
    BWA1 is for all standard crm datsource maintaince
    rsa2 for generic datasource
    <i>BWA5 i think we use this Tcode after RSA5 activation additionally.</i>
    yes(incase of delta)
    <i>BWA7 do we have to use this tcode along with BWA1 for standard datasources also or else only for generic datasource.</i>
    irrespective of the type of  dtasource,use it if you want to load delta(you need to delta enable the datasource here)
    <i>So we don't need to put the code as we traditionally do it for R/3 , if we just mapp the fields that would bring the data for these fields</i>.
    as i told in CRM we willwrite code in BADI in case you have done enhancement
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/a-c/customer%20enhancements%20and%20userexits%20in%20bw%20-%20sap%20netweaver%20%20know-how%20network%20webinar.pdf
    <i>also chk this(credit goes to the writer)
    CRm enhancement:
    1. Enhance Extract Structure with the required fields. (Create & include an append structure to the extract structure via transaction RSA6).
    2.a) Release the fields of the append for usage. ( To do this, double click on the Datasource and remove the flags in the column 'Hide Field' for all fields of Append).
    2.b) If the new fields cannot be seen in the extract structure of the transaction BWA1 then change and save the datasource, and then activate it in RSA6.
    3. Define your mappings in BADI (CRM_BWA_MFLOW) to fill these fields.
    Goto SPRO . Follow the path ->SAP Implementation guide ->Implementation with other mySAP components ->Data transfer to the Business Information Warehouse-> Settings for the application specific datasources (CRM)->Settings for BW adapter-> Badi :BW adapter :Enhancement of datasources in messaging flow.
    4. Replicate the new Datasource to BW.
    5. Expand the Communication Structure in BW.
    6. Maintain transfer Rules for the new Datasource.
    7. Activate the trasfer rules and perform the upload.
    Refer to the SAP Note 692195 for more info (Question 4 to be specific).</i>
    Cheers,
    Swapna.G
    Message was edited by:
            swapna gollakota
    Message was edited by:
            swapna gollakota

  • CRM DataSource Enhancement

    Hi,
    I need to add a field to one CRM datasource(0CRM_SALES_ACT_1).I have done that using RSA6.Also written a code in 'EXIT_SAPLRSAP_001'.
    The delta queue for this DataSource is working properly on CRM side but when I pull the same data to BW side it is not populating the added field.Also the added field is not visible in PSA - it is visible on CRM side.
    Do I need to do something in SBIW?Please suggest.
    Thanks,
    Purbali

    Hi Purabali,
    To Populate the Enhanced Field of the data source...
    Use the BADI - CRM_BWA_MFLOW
    This Badi has a field C_T_DATA which you would use to populate the new field.
    Reason for the new field not showing up...
    There is a table ROOSFIELD which holds the properties of the fields of the Data Source.
    Make sure that your enhanced field has the following properties set in this table...
    Field SELECTION to be BLANK (make sure it is not 'A').
    Field NOTEXREL to be 'Y' and not 'N'.
    The above fields should be set for your data source field.
    There are many notes available for the same.
    Hope this helps.
    Thanks & Regards,
    Sh

  • Creating BADI for datasource enhancement in CRM system

    Hi,
    I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
    Thanks in advance
    Moumita

    Hi Kushal,
    You can find the BADI name by,
    Go to Transaction SE24
    Enter the Object Type CL_EXITHANDLER and click on Display.
    Double Click on method "GET_INSTANCE".
    Put a Break-point on Call method cl_exithandler=>get_class_name_by_interface
    Run RSA3 transaction and execute the DataSource.
    The execution will stop at the break point.
    Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    Thanks,
    Kokila

  • Creating BADI for datasource enhancement in CRM.

    Hi,
    I am working on SAP BI/BW. This is the first time I am working in CRM system with CRM datasources. Facing some problem for datasource enhancement as never done it before in the CRM system. Is there anyone who can help in in creating BADI for datasource enhancement in CRM.
    Thanks in advance
    Moumita

    Hi Prasad Reddy,
    This are the available badis and exits for this t.code:
    Enhancement/ Business Add-in            Description
    Enhancement
    MGA00001                                Material Master (Industry): Checks and Enhancements
    MGA00002                                Material Master (Industry): Number Assignment
    MGA00003                                Material Master (Industry and Retail): Number Display
    Business Add-in
    MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance
    MATGRP_SKU_UPD
    CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT
    BADI_MM_MATNR
    BADI_MAT_F_SPEC_SEL                     BAdI for Material Special Field Selection
    BADI_MATNR_CHECK_PVS
    BADI_MATERIAL_REF                       Addition of customer-defined default data for material
    BADI_MATERIAL_OD
    BADI_MATERIAL_CHECK                     Enhanced checks for material master table
    BADI_GTIN_VARIANT
    BADI_EAN_SYSTEMATIC
    o.of Exits:          3
    o.of BADis:         11
    Find the Exact  exits and badis for ur requirement.
    How to fine the exact badi:
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any
    transaction
    Rgds,
    P.Naganjana Reddy
    if you follow this 7 steps, you will find a suitable BADI.

  • Loading Error from CRM datasource  - Info Idoc recieved with status 8

    Hello All,
    NEED YOUR HELP
    We have a CRM datasource 0CRM_SALES_ACT_1 which works well from source in RSA3. The dataload is a full and fetches 19,000 records from CRM
    However when we load it from an infopackage from BW it gives us the following  "No data in source sysetm" Info Idoc with status 8. We have tried the following to eleminate some doubts
    1) Checked the connection in SM59 using aleremote .Connection and authorization successful. Also loaded data in the BW system  for other datasources from same CRM system it works well, so no authorization/ connections issues.
    2) In the source system CRM  tried transaction RSA3--> extract data get 19000 records
    3) In the source system CRM Triied transaction RSA3--> Import Request from BW --> successful.
    4) Checked the TRFC queue in SM58 the TRFC queue is empty
    5) When we check the logs in CRM for ALEREMOTE we get the following message
    synchronous transmission of info IDoc 2 in task 0001 (0 parallel tas
    DATASOURCE = 0CRM_SALES_ACT_1
             Current Values for Selected Profile Parameters
    abap/heap_area_nondia......... 0
    abap/heap_area_total.......... 9437184000
    abap/heaplimit................ 40000000
    zcsa/installed_languages...... ED
    zcsa/system_language.......... E
    ztta/max_memreq_MB............ 256
    ztta/roll_area................ 3000000
    ztta/roll_extension........... 2000000000
    Call customer enhancement EXIT_SAPLRSAP_001 (CMOD) with 0 records
    Result of customer enhancement: 0 records
    IDOC: Info IDoc 2, IDoc No. 266228, Duration 00:00:00
    IDoc: Start = 2008.10.22 14:18:38, End = 2008.10.22 14:18:38
    Synchronized transmission of info IDoc 3 (0 parallel tasks)
    IDOC: Info IDoc 3, IDoc No. 266229, Duration 00:00:00
    IDoc: Start = 2008.10.22 14:18:39, End = 2008.10.22 14:18:39
    Job finished
    *What is the issue ? Data is present and confirmed available in source system , yet we get 0 records in BW system ? WE NEED YOUR HELP *

    Hi
    May be you need to provide full authorizations to the user 'ALEREMOTE'.Ask your basis team to check the authorizations.
    Regards,
    Chandu.

  • CRM Datasource Problem After Transport

    Hi,
    I am using CRM datasource 0CRM_SRV_PROCESS_H in CRM 5.0. The datasouce is installed through RSA5 and enhanced successfully in CRM Development System. Its BWA metadata is also activated automatically(as i am on CRM 5.0). I have transported it successfully to CRM Quality system without any warnings/errors. But when i check it in T-Code BWA5, its "Active" flag is not checked. And  when i check in RSA3, sytem is throwing error message " Errors Occurred During Extraction".  I can see the datasouce in RSA6 in Quality system with its enhanced fields.
    How can i make the "Active" flag checked in CRM Quality system? Or How can i activate BWA metadata in CRM Quality system?
    Urgent response would be appreciated.
    Regards,
    Prasad

    Definitely this is not related to replication. Some times this error 'Error in extraction" is related to SMOXHEAD table entry.
    Try following steps..
    Copy Smoxhead entry CRD> se16 > SMOXHEAD > DataSource > select the resulting line, copy
    se16 > SMOXHEAD_S > DataSource > paste
    Table Entry > Transport Entries of SMOXHEAD_S
    After transport try running RSA3. It shall be fine.
    Regards,
    Assgn pts if helpful.

  • CRM Datasource BADI

    Hi All,
    I have newly joined in my project. Here for CRM datasource enhancement, they have used BADI instead of customer exit function modules.
    Although I could find the respective BADI implemented class in CRM system, I am not able to debug any code. I put external break-ponts in all over the method, but its not going to debug mode in any of them when I execute the datasource in RSA3.
    Can you pls guide me how to debug the BADI for CRM datasources?
    Regards,
    Bhavya.

    hi,
    you can  follow the below steps regardding debuging:
    Goto SE24 -> give the class name as CL_EXITHANDLER -> then give method as GET_INSTANCE ->Set a break-point at command line CASE sy-subrc -> Execute;
    so by this setiing of the breakpoint can be done and It will stop where you have just set class CL_EXITHANDLER i.e. a exit call , in debug screen, you can give the field name EXIT_NAME which has BADI method/Exit name at runtime
    likewise you can proceed with next calls.
    regards
    laksh

  • Extraction of CRM datasource

    Hi
    Steps involved in  extraction of CRM DataSource through R/3
    thanks in advance
    kalyan

    I solved the problem. At least it disappeared.
    It seemed to be an authorization issue.
    Enhancing the authorizations did help after one day, i.e. positive result occured after one day, because buffering of authorizations seems to be erroneous (see note 615670).

  • Enhancement to 0MAT_PLANT_ATTR datasource

    I need to enhance 0MAT_PLANT_ATTR datasource with additional fields STPRS, PEINH from MBEW table and WAERS (currency for STPRS) from T001 table. Table T001 and MBEW table have no fields in common. So I took an indirect approach to this.I have a program for enhancing a BW DataSource in R/3. Here is the code:
    types: begin of zty_waers,
    bukrs type bukrs,
    waers type waers,
    bwkey type bwkey,
    end of zty_waers.
    data: zit_waers type standard table of zty_waers,
    wa_waers like line of zit_waers.
    DATA : it_temp type standard table of biw_marc_s,
    wa_temp like line of it_temp,
    S_INDEX TYPE SY-TABIX,
    z_index type sy-tabix.
    DATA : BEGIN OF ITAB_MBEW OCCURS 0,
    MATNR TYPE MATNR,
    BWKEY TYPE BWKEY,
    STPRS TYPE STPRS,
    PEINH type PEINH,
    WAERS type WAERS,
    END OF ITAB_MBEW.
    data: wa_mbew like line of itab_mbew.
    DATA: BEGIN OF ITAB_CEPC OCCURS 0,
    PRCTR LIKE CEPC-PRCTR,
    KOKRS LIKE CEPC-KOKRS,
    DATBI LIKE CEPC-DATBI,
    SEGMENT LIKE CEPC-SEGMENT,
    END OF ITAB_CEPC.
    select abukrs awaers b~bwkey into table zit_waers
    from t001 as a inner join t001k as b on
    abukrs = bbukrs.
    IF NOT I_T_DATA[] IS INITIAL.
    IT_TEMP[] = I_T_DATA[].
    SELECT MATNR BWKEY STPRS PEINH FROM MBEW INTO TABLE ITAB_MBEW FOR ALL ENTRIES IN IT_TEMP
    WHERE MATNR = IT_TEMP-MATNR and BWKEY = IT_TEMP-WERKS.
    SELECT PRCTR KOKRS DATBI SEGMENT FROM CEPC INTO TABLE ITAB_CEPC FOR ALL ENTRIES IN IT_TEMP
    WHERE PRCTR = IT_TEMP-PRCTR AND KOKRS = IT_TEMP-KOKRS AND DATBI = '99991231'.
    ELSE.
    EXIT.
    ENDIF.
    loop at itab_mbew into wa_mbew.
    z_index = sy-tabix.
    read table zit_waers into wa_waers with key bwkey = wa_mbew-bwkey.
    if sy-subrc = 0.
    wa_mbew-waers = wa_waers-waers.
    endif.
    modify itab_mbew from wa_mbew transporting waers.
    endloop.
    sort itab_mbew by matnr.
    loop at i_t_data into wa_temp.
    s_index = sy-tabix.
    Read Table itab_mbew with key matnr = wa_temp-matnr
    into wa_mbew.
    if sy-subrc = 0.
    wa_temp-zzstprs = wa_mbew-stprs.
    wa_temp-zzwaers = wa_mbew-waers.
    wa_temp-zzpeinh = wa_mbew-peinh.
    endif.
    Sort itab_cepc.
    Read Table itab_CEPC
    with key PRCTR = wa_temp-PRCTR
    KOKRS = wa_temp-KOKRS
    binary search.
    if sy-subrc = 0.
    wa_temp-ZZSEGMENT = itab_CEPC-SEGMENT.
    endif.
    modify i_t_data from wa_temp.
    clear wa_temp.
    endloop.
    But when I am testing the datasource for the new fields the data is coming out wrong. For example if I run the extractor checker RSA3 for material number 10000306 and plants 1017 - 1021 i extract 2 entries and the stprs values are same for both plants
    But if I run RSA3 for 1021 alone then i get another value for 1021 plant. This means the STPRS value is getting overwritten for some reason. Debugging of this code is very difficult since there is a form embedded in this program.
    Can anyone tell me wht is wrong with the logic?
    Thanks
    Deepthi

    Hi Deepthi,
    As I see and understand your code,
    the problem area could be :
    sort itab_mbew by matnr.  ***
    Here you are sorting the table by MATNR alone, where as when actuall see that
    the remaining data  would be corresponding to the material only, so when sort
    the table alone with MATNR probably your Plant data would get jumble..
    so, try sorting the table with all the keys you are having in this table..
    and read the table with the max. comibations available or possible..
    you should be able to locate the record right get right data..
    Hope it helps..
    Cheers,
    Pattan.

  • How to find out the tables related to CRM datasources?

    How to find out the tables related to CRM datasources? For example, the table related to 0CRM_OPPT_H.
    Regards,
    R.Ravi

    Hi Ravi,
    To find out all tables used go into the CRM source system to transaction RSA3 and prepare the selections for extraction of your datasource.
    In a parallel session execute transaction ST05 and press the button 'Activate Trace'
    Go back to the extracor checker and execute the extraction.
    Switch sessions and subsequently 'Deactivate Trace' and 'Display Trace'.
    This will list all tables used.
    regards,
    Olav

  • Populating standard field in to crm datasource

    HI Gurus
    In my crm datasource 0CRM_LEAD_H.  I want to include the field " Lead status " which is a part of the
    datasource. Earlier it was not a part of the requirement. Now its a new requirement. Please guide me
    how to deal with it.  What I have to do it in the BW Adapter and related badi(if any).
    Please let me know  Step by Step.
    Thanks in advance
    LLOYD

    Have to managed to do this,
    I am stuck up here
    Regards
    lalan

  • Enhance the BW datasource

    I will appreciate if you can help me to resolve the abap code below.
    I am trying to enhance the datasource  0refx_2with field RESPONSIBLE from Table VIBDPR
    Please help me asap, I am trying to enhance the BW datasource with only one field "Responsible" in 0refx_2 datasource . I am getting the error in code that case i_chabasnm is unknown and tables not defined by data statement
    please help me to correct the code I am just picking the field RESPONSIBLE from Table VIBDPR
    Abap Code below:
    Tables: VIBDPR. "Property master data table
    data: l_tabix like sy-tabix.
    case i_CHABASNM.
    *Enhancement of Property Master Record
    WHEN '0REFX_2'.
    case i_datasource.
    WHEN '0REFX_2'.
    data: l_s_REIS_MEASUREMENT_TRAN like REIS_MEASUREMENT_TRAN.
    loop at i_t_data into l_s_REIS_MEASUREMENT_TRAN.
    l_tabix = sy-tabix.
    select single * from VIBDPR where BUKRS = l_s_ REIS_MEASUREMENT_TRAN - BUKRS.
    if sy-subrc = 0.
    l_s_BIW_VIBDPR_s-ZZRESPONSIBLE = VIBDPR-RESPONSIBLE.
    modify i_t_data from l_s_ REIS_MEASUREMENT_TRAN index l_tabix.
    endif.
    endloop.
    endcase.
    endcase
    Thanks
    Regards
    Soniya

    Tables: VIBDPR. "Property master data table
    data: l_tabix like sy-tabix.
    data: l_s_REIS_MEASUREMENT_TRAN like REIS_MEASUREMENT_TRAN.
    case i_CHABASNM.
    *Enhancement of Property Master Record
    WHEN '0REFX_2'.
    case i_datasource.
    WHEN '0REFX_2'.
    loop at i_t_data into l_s_REIS_MEASUREMENT_TRAN.
    l_tabix = sy-tabix.
    select single * from VIBDPR where BUKRS = l_s_ REIS_MEASUREMENT_TRAN - BUKRS.
    if sy-subrc = 0.
    l_s_REIS_MEASUREMENT_TRAN-ZZRESPONSIBLE = VIBDPR-RESPONSIBLE.
    modify i_t_data from l_s_ REIS_MEASUREMENT_TRAN index l_tabix.
    endif.
    endloop.
    endcase.
    endcase
    Check this code... small change in your code.
    l_s_REIS_MEASUREMENT_TRAN-ZZRESPONSIBLE = VIBDPR-RESPONSIBLE.
    Regards, SB

  • Enhancement of Standard Datasource in LBWE.

    Hi,
    I am enhancing the standard datasource for additional fields from the extract structure in LBWE. I have selected the fields in maintenance and pushed them into the selection criteria (first column), and saved the daatsource change in a request. but to my surprise the field contents in Selection criteria and pool(Second Column) column are same as of original in R/3 Development server itself.
    I have then redone the activity and then generated datasource followed by deactivation and activation of datasorce, this has collected a workbench and customization request . But when i again open the maintenance screen of the data source it is again same as of original before change.
    I don't understand why this is happen.
    can some one please guide me and guide how to enhance the datasource in the maintenance screen of the datasource.

    Hi,
    Its very simple.
    1. delete setup table and delta queue ( all the clients)
    2. If fields can be added through lbwe maintainance then add other wise create a append structure
       and exit for filling up the value for the fields..
    3. change mode in data source ---> uncheck hide buttuon --> if you want data to be extracted
        using newly added fields plz check selection checkbox..
    4.. Thats it...
    Regards,
    Viren.

Maybe you are looking for

  • Error message "... could not be found on the server."

    I have been subscribed to a podcast for 3 years. I received an error message for that subscription recently stating, "There was a problem downloading "Civil War Podcast by Dr. James Robertson Jr. from WVTF. The URL http://www.wvtf.org/news_and_notes/

  • Interchanging rows and colums of internal table

    Hi all, I have one requirement to interchange the rows and colums of 3X3 internal table.(internal table contains 3 rows and 3 columns ). In the new internal table, I have to display the rows as column values and column values as rows.. It's urgently.

  • SCCM Reports won't populate from console

    Hello, When on a remote device, I'm unable to get the reports tab to populate nor can I reach out to the reports ssrs site without getting a prompt (endless). I know I have rights because I'm unable to replicate these issues on the SCCM server. Anyon

  • XI Error:  Unable to read from SLD

    I have created product, software components, Technical system and business system in SLD. I am trying to import into design (Integration Repository) for further steps but it gives an error saying unable to read from SLD. I am using SAP XI 7.0 How do

  • IPhone 4 will not charge but shows a plug to power source symbol, help!?

    I purchased my new iPhone 4 (32GB) about a month ago just before Christmas (2010). About a night ago I was speaking on my iPhone when the battery died and the iPhone shut itself off. Now I have run down the battery before and understand the phone req