CRM Datasource enhancement using BADI

Hi Guys,
There is a lot of confusion among our BW community here about the implementation of the "CRM_BWA_MFLOW" BADI to enhance the datasources. It would be a great service is someone can clear the fog on this.
The steps that I followed in doing this are
1. Appended the standard datasource structure with the additional fields that need to be populated.
2. Unhid the fields in the transaction RSA6.
3. Created an implementation of the BADI "CRM_BWA_MFLOW" and tried to map the fields to the append structure.
This is where I am stranded. How do we map the fields from the BDoc to the append structure fields. If someone can provide with a sample code with some documentation, that would be a great help for many of us here.
I have earlier implemented the User exit to enahnce the datasource but it really is a big pain, especially when you know that using the BAdi can be easier.
Really appreciate your contribtion.
Doniv

hi,
sample code can be found in the BadI, somewhere go to or utility - sample code, it seems quite similar with old zxrsau01. sap gave us note 850817 when suggest using BadI for certain case, take a look :
850817-CRM-BW: Using BDocs for the enhancements in BADi
https://websmp103.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012006153200000232372005
692195-FAQ: Sales Analytics and CRM-BW data Extraction
https://websmp103.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012003146900000332772003

Similar Messages

  • Data source enhancement using BADI

    Hi,
    We had a 2LIS_* extractor which is enhanced with ZZ fields.
    I look for the sode in CMOD which i couldn't able to find any
    My assumption is the data source is enhanced using BADI.....As i am not familiar with BADI's how can i create for my data source enhancement code in BADI
    Thanks

    Hi ,
    Not sure on your question.
    Is the Enhancement already done and you want  to check whether it is done in BADI/CMOD.
    Or
    You want to populate the Data using BADI/CMOD.
    In any case you can use CMOD or BADI to populate the data ,the recomendded is BADI which can be created in SE24..you can google for some Docs on its creation and steps to be followed.
    And if tis CMOD you have to create a project and then write the code and for that also there are DOcs avaliable.
    Rgds
    SVU

  • Data source Enhancements Using Badis

    HI gurus,
    Can you please let me know the process in detail to implement the data source enhancements using badi's.
    Please provide me the step by step proceedure.
    Appropriate answer will be highly rewarded.
    Thanks,
    Shashikanth.

    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    I have a few links for u! Just download the documents and have a reading. You will get an idea:
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4493c4a6-0301-0010-62a2-efd6ded61e04
    Reward points if helpful
    Regards
    Edited by: Aadil on Jan 23, 2008 8:42 AM

  • CRM datasource enhancement - best practice

    Hi everyone,
    For our reporting reqs, I checked CRM extractors and found that 0CRM_SRV_REQ_INCI_H would deliver us max. fields.
    CRM Service Request Incident Header Data - Analytics - SAP Library
    I need to enhance this with Z Date Types, Partner Functions fields.
    Date Types (see screenshot) are configured in CRM customizing.
    SAP delivered Date field SRV_RREADY-To doby is sending data to extractor's DUE_DATE field.
    But Source table-field for DUE_DATE are not mentioned in above help.sap datasource link??
    How to best enhance this extractor i.e. through BWA1 or typical way of RSA6-function enhancement??
    If I use BWA1 then how to fill up Segment-Segment field under mapping tab?
    Do I need to use CRM_BWA_FLOW BadI and write code or Is there SAP delivered FM which can fetch data for these Z Date types.
    Thanks
    Ahmad

    Hi,
    In general, we add enhanced field to extract structure by appending method.
    later we  can implement logic at COMD or by using BADI to fill the data for added field.
    do test run at RSA3 and replicate into bw side.
    About CMOD Logic, WIth help abap epxert you need to find relation between data source base tables and added field base table. then only we can fill data to into it.
    Can we know what is your data source?
    Which field you want add from which table?
    Thanks

  • 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

  • HR Master Data Enhancement using BAdi RSU5_SAPI_BADI.

    Hi Experts,
       I am trying to use first time BAdi 'RSU5_SAPI_BADI' instead of RSAP0001 for enhancing HR Master data.  I have enhanced the structure and I have created implemention method for BAdi and activated fine. Then I am not sure about the next step, I did search SDN but this point is not clear. Where is the link between these two things between Structure and the method, how is it called to populate the data. Because When I run RSA3, it shows my new field with blanks.  So I am missing some thing that integrates. IF some one has implemented this please let me know. Your help is appreciated.
    Thanks!
    Moorthy
    I was able to populate the new fields only when I use the structure in one place ie in BAdI. I mean, two fields were populating using user exit and I was trying two fields using BAdI for the same structure. When I tried all fields from BAdI only then it worked. So is my assumtion correct that we should either use user exit or BAdI for the same structure?
    Message was edited by:
            Moorthy

    Created one method for each datasource and is working fine.

  • CRM DataSource Enhancements

    Hello,
    I've inherited an SAP BI system in my new company with no documentation.
    The BI is on CRM in which the standard CRM extractors like '0CRM_SRV_CONTRACT_H' are enhanced to fetch additional fields. However, I'm unable where the code to extract these new fields are written. I've checked in:
    1. CMOD -> EXIT_SAPLRSAP_001
    2. SPRO -> SAP Implementation Guide -> Integration with Other mySAP Components -> Data Transfer to the SAP Business Information Warehouse -> Settings for Application-Specific DataSources (CRM) -> Settings for BW Adapter -> BAdI: BW Adapter: Enhancement of DataSources in the Messaging Flow
    but couldn't find the code. Is there anywhere else that the code to fetch appended fields can be written?
    Many thanks.
    Best Regards,
    Sri.

    Hi Sri,
    Try this ,
    TCODE : SE18 --> BAdi name --> provide CRM_BWA_MFLOW and try the where used list
    OR
    SE18 --> BAdi name --> provide RSU5_SAPI_BADI and try the where used list
    Any one of the above should show the Z - Classes/Interfaces implemented --> double click to navigatye and you can find the relevant coding there
    Regards,
    Sathya

  • Screen enhancement using BADI not workingin background for program RFRECPSFA520

    Hi Gurus,
    I implimented the badi BADI_RECP_SF (Enhancement spot BADI_RE_CP_SF) add custom tab with custom field for additional selection criteria.I used the steps provide in BADI documentation. Everything is working fine but when I run the program in background the additional field values are not comming in the method where I need to filter record. Additional field values are populating fine when I run the program in foreground.
    Does anybody come accross this issue, any input? Is the screen enhancemnets are only for foreground pocessing?
    Thanks,
    Seema

    Le,
    it will lil easy if you can take access key from basis and just add one more selection in selection screen.
    Amit.

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • 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

  • Screen enhancement in badi's

    Hi all,
      I want to do screen enhancement in BADI.I found some badis which are providing the screen enhancements but dont know how to go further.
    Also i dont know in which transaction this screen will appear.
    And how to search for the BADI in standard transaction ,so that i can add the my own subscreen in satandard sap transaction using BADI screen enhancements.
    Please tell me the way in which i can do the sceen enhancement using BADI.
    Thanks and Regards,
    Sugeet.

    hi,
    check this..
    http://help.sap.com/saphelp_nw04/helpdata/en/9d/12233a0edd7978e10000000a11402f/frameset.htm
    regards
    vijay

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

  • 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

Maybe you are looking for

  • Configuring Cisco ASA for site to site VPN ( Issue with setting up local network)

    OK, so our primary firewall is a checkpoint gateway. Behind that we have a cisco ASA for vpn users. I have a project at the moment where we need to connect to another company using site to site VPN through the cisco ASA, as the checkpoint gateway is

  • Customer Credit Block at Sales Order Level

    Dear Experts, We have requirement, Example: If we received the Bank guarantee from customer(Berry) $10000,till $10000 it should able create the sales order, more than bank guarantee system should block the sales order creation.For same customer(Berry

  • Error importing from BIAR file (BO XI 3.0)

    Dear BO community, I am using the BIAR tool for backup purposes. For my backup, I use a properties file as input which looks like the one shown below: action=exportXML exportBiarLocation=C:/Temp/BOBackup.biar userName=Administrator password=XXX CMS=X

  • How do I save one page from a multi-page pdf document?

    Can I take a 65 page pdf file and save it as 65 individual pages?

  • Problems with SQL*Loader and java Runtime

    Hi. I'm trying to start SQL*Loader on Oracle 8 by using Runtime class in this way: try{ Process p = Runtime.getRuntime().exec( "c:\oracle\ora81\bin\sqlldr.exe parfile=c:\parfile\carica.par" ); /*If i insert this line my application never stops*/ p.wa