Datasource enhancement

I am getting the error in cmod abap code that
REIS_MEASUREMENT_TRAN is not a flat structure but that is the extract structure in datasource 0refx_2  so what should i change on this
Tables:  VIBDPR.          "Property master data table
data:    l_tabix like sy-tabix.
data:    i_CHABASNM.
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
soniya

hi Soniya,
please post the same question just in one forum, check reply in the other thread,
also take a look following sample code
BIW_Mara_S enhancement
hope this helps.

Similar Messages

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

  • Different ways to Datasource Enhancement

    I know DS enhancement can be done through ABAP Statement CASE,ENDCASE,WHEN. I came to know that this is old technique to enhance the datasource as it makes the code quite messy if several developers work on the same code.
    I came across one document on SDN where we create a new program for each datasource which is independent from other enhancement.
    I just want to know how this program works and the difference between this technique and old technique as i have limited ABAP knowledge.
    What are the exact challenges that we come across when we use CASE,ENDCASE,WHEN statements.
    Edited by: Murali K on Jun 1, 2010 6:31 AM

    Hi Murli,
    1) Datasource enhancement previously was done using CMOD Still many organizatins continue with this approach.
    Here you can get option to write code for your appended field in ur Standard datsource where you can write select statements etc.
    2) Now SAP is recommending to Write Codes using BADI .this approach helps to maintain individual implementations for each data source enhancement
    This methods advantage over previous CMOD method is that ,in CMOD a single include will contain all the ABAP coding (this will create problem in marinating the versions for developers).specially while you are transporting the CMOD code to test and prod systems.
    With the new BADI method you can avoid this problem as individual implementations can be transported independently without creating conflicts.
    Thanks and Regards
    Arun

  • Transactional datasource enhancement

    Need documentation for transactional datasource enhancement
    Please search SDN
    Edited by: Pravender on May 25, 2010 12:28 PM

    hi,
    chk the links
    Master data enhancement
    CMOD Enhancements
    Enhancing master data extractor
    Lo Enhancement- Transactional data
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    Ramesh

  • Problem in datasource enhancement

    Hi All,
    Facing a problem in datasource enhancement.
    In R/3 SAP ABAP release = 640 and
    BW release = 350.
    Datasource: 0WBS_ELEMT_ATTR
    I enhanced the datasource by adding an append structure with 'ZZ' fields.The data elements for these fields are SAP standard (like KUNNR,VKORG etc...)
    Everything's active and there are no inconsistencies.
    However these added fields are not visible either in the RSA6 maintenance or in RSA3 checker.
    Hence I am unable to replicate these fields and pull them over to BW.
    Please advise.

    Guys,
    The problem is not with hiding/unhiding these fields.
    The appended fields themselves are not coming up through the RSA6 maintenance. They are not available for unhiding.
    Please advise.

  • How to do Datasource Enhancement ?

    hi experts,
    i have requirement in datasource enhancement,
    data source is 2lis_12_vcitm, my requirement is, i wnat to add one more field that is LIFEX ( External Identification of Delivery Note) from the LIKP ( SD document Delivery Header data) table.
    anybody please tell me the step by step procedure.
    please help me to do this.
    good answer will be appriciated with highest points,
    thanks in advance,
    venkat

    Hi,
    Pls chk this links;
    http://help.sap.com/saphelp_nw70/helpdata/en/6e/fe6e420f00d242e10000000a1550b0/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    /people/pradip.patil/blog/2006/06/07/how-to-retain-deltas-when-you-change-lo-extractor-in-production-system
    /people/sap.user72/blog/2005/02/14/logistic-cockpit--when-you-need-more--first-option-enhance-it
    http://www.bridgeport.edu/sed/projects/cs597/Fall_2003/vijaykse/step_by_step.htm
    COPA datasource enhancement
    Re: copa
    Profitability Analysis Without COPA
    Hope this helps.
    Regards
    CSM Reddy

  • Business content datasource enhancement

    Hi Experts,
    I am new to HR.
    We are implementing HR modules Personnel development and Personnel administration, while I was looking into business content extractors 0HR_PA_0 and OHR_PA_1, I found that there were only few fields in the extract structure but there were many fields in the cube.Do we need to enhance the datasources? how it works?. If anybody did the enhancement to these datasources, please give me the information with examples.
    Anita

    No, it is no necesary to enhance standard data sources. Those datasources extract, basically employee and date. Most infoobjects in cube are calculated from 0PERSON and 0EMPLOYEE attributes, having in count the date and employed extracted, because most in HR is time dependent.
    Assign point is usefull

  • DataSource Enhancement in ECC 6.0

    Dear Gurus,
    Do anyone of you know the steps of Enhancing an Satandard Datasource (ex. 0FI_GL_1, 2LIS_13_VDITM) in ECC 6 or ECC 5.
    I know the steps in R/3 but currently working in ECC 6. And finding it different.
    Searched in forum but no luck !!
    I have created a new characteristic and need to add it in the standard datasource (0FI_GL_1)
    ASAP.
    Please help !!
    Thanks, Akash.

    Hi Chakravarthy,
    According to the SELECT statement given by you you are retrieving a single field data i.e. SPART into a single field gv_spart based on a where condition gv_trip-material. My question to you is how can you refer to gv_trip-material in the where condition if gv_trip is an internal table. I suggest you try the below code and see if you are getting the desired result.
    ENHANCEMENT 22 Z_ACCOUNT_ASIGHMENT. "active version
    if gv_trip[] is not initial.
    SELECT spart FROM mara INTO table gv_spart
    for all entries in gv_trip
    WHERE matnr = g_vtrlp-matnr.
    endif.
    ENDENHANCEMENT.

  • 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

  • High level estimation for datasource enhancement

    hi,
    I have been assigned in supporting project recenlttly.  Now we are going to data source enhancement(we need one more field i.e juridiction code for tax calculation, Datasource is 0FI_GL_4), we need to high level esstimation for  the procedure and time duration for each process (Devolepment  to Prod).
    Can any one help me in this concern......
    Thanks,
    Shaliny

    Shaliny,
    If the field is ready available to add with no hicups, everything can be done in 3 days.
    Well, if you need to go for an customer exit during enhancement, you need at least 15 days which includes testing also.
    It generally depends on how complex it is expected to be. But have a buffer of atleast 2 days after completion from your side.

  • Need ABAP code for Datasource Enhancement

    Hi All,
    I need no Enhance the WBS Element(PS_PSP_PNR) to2 LIS_02_ITM Datasource
    the table EKKN Having WBS element
    From EKKN Table We have to take the filed Append to the2LIS_02_ITM datasource
    Please any one give me ABAP code which is write in CMOD
    Thanks........
    Regards!
    Malli

    Hi,
    See SAP Help
    http://help.sap.com/saphelp_nw04s/helpdata/en/6e/fe6e420f00d242e10000000a1550b0/content.htm
    See the simple example code, so follow the same.Take ABAPer help, don't use select and end select.
    CASE i_datasource.
      Data: l_s_data1 LIKE mc13vd0itm,
            l_tabix   LIKE sy-tabix,
      WHEN '2LIS_13_VDITM'.
        LOOP AT c_t_data INTO l_s_data1.
          l_tabix = sy-tabix.
          SELECT SINGLE auart INTO l_s_data1-zzprdtyp FROM vbak
                 WHERE  vbeln  = l_s_data1-aubel.
          IF sy-subrc = 0.
            MODIFY c_t_data FROM l_s_data1 INDEX l_tabix.
          ENDIF.
        ENDLOOP.
    ENDCASE.
    Data: l_s_data18 LIKE mc12vc0itm ,
          l_tabix   LIKE sy-tabix.
      WHEN '2LIS_12_VCITM' .
        LOOP AT c_t_data INTO l_s_data18.
          l_tabix = sy-tabix.
          SELECT SINGLE ernam FROM ekko
           INTO (l_s_data18-ernam)
           WHERE ebeln = l_s_data18-vgbel .
          IF sy-subrc = 0.
            MODIFY c_t_data FROM l_s_data18 INDEX l_tabix.
          ENDIF.
        ENDLOOP.
    See article on Step by Step Guide to Enhance a Data Source:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00c1f726-1dc2-2c10-f891-ddfbffdb1a46?quicklink=index&overridelayout=true
    Thanks
    Reddy

  • Text datasource enhancement

    hello guys
    I am trying to enhance text datasourcein R3 and got this problem.
    I am trying to load texts for infoobject 'material number' fromR3 table MAKT.....I created view on fields MANDT,MATNR,MAKTX (client,material number,material description) and then created generic datasource onthis.now I replicated and loaded texts to Infoobject 'Material Number'  in BW.
    Now I want to enhance text datasource in R3 so that I will add field MAKTG (material description in capital letters) from MAKT table...I added append structure in extract structure...then I want to write code in CMOD....Here I choose RSAP0001 enhancement...then EXIT_SAPLRSAP003 for enhancing text datasource...here there is no code provided by SAP...so wrote my own code..and activated and then unchecked 'hide field' ....saved the datasource....nowcame to Extractor Checker RSA3 to check if code is working....I am able to see the new field MAKTG but its not populated..it means my code or my way of doing enhancement is wrong...Can anyone please suggest any solution....
    here is my code:
    data: l_s_ZOXID30088 like ZOXID30088 ,
           L_TABIX LIKE SY-TABIX.
    case I_CHABASNM.
    when 'MATNR'.
    LOOP AT  C_T_TEXTS INTO L_S_ZOXID30088.
    L_TABIX = SY-TABIX.
    SELECT SINGLE MAKTG FROM MAKT INTO L_S_ZOXID30088-ZZMAKTG WHERE MATNR =
    L_S_ZOXID30088-MATNR..
    MODIFY C_T_TEXTS FROM  L_S_ZOXID30088 INDEX L_TABIX .
    ENDLOOP.
    ENDCASE.
    Thanx,
    S
    Edited by: SChandx200 on Sep 11, 2009 6:37 AM

    Hi,
    Just check once if the function module EXIT_SAPLRSAP_003 is active...
    Becuse after writing code int he include ZXRSAU03 you will have to activate the funciton module...
    This has to be done the first time when you implement the include...
    If still it doesnt work.. You can put a break point in your code and then debug from RSA3 to chk whey it isnt working...

  • Attribute Datasource Enhancement - Missing Data

    Hi All,
       I have enhanced a datasource 0EMPLOYEE_ATTR with one field from PA0007 table. When I test the enhanced datasource, via RSA3, I see that the field is correctly populated (EVERYTIME). But when I load the data into BW first few times no data came into that field (remaining data is correct). Then a completely random behavior started. The data is getting populated into the field sometimes and sometimes the field does not get populated at all. There is no specific reason or action or count that would define a pattern.
       Has anyone come across this issue? Points shall be rewarded.
    PLEASE NOTE: The code in the function exit is completely correct as the RSA3 on the source sytem always shows the data extraction correctly. The problem only happens when the data is loaded into the BW system (with or without PSA). The behaviour is completely random.
    Regards,
    Kazmi.

    Hi Subray,
       Nope this did not help. I checked everything. The problem is not consistent. Sometimes the field gets populated perfectly ... sometimes it does not.
    Regards,
    Kazmi

  • R3 Datasource enhancement error

    Hi All
    Please would it be possible to provide advice. I've used RSA6 in R3 to enhance a master data attributes Datasource with a new field and need to code the enhancement. I'm no expert but this is the code I've used:
    TABLE: P0006. 
    DATA: L_TABIX  LIKE SY-TABIX.
    case i_chabasnm.
    *Enhancement of Candidate attributes
    WHEN '0CANDIDATE'.
          CASE i_datasource.
              WHEN '0CANDIDATE_ATTR'.
                  DATA: l_S_rcf_s_bw_0candidate_attr like       
                        rcf_s_bw_0candidate_attr.
                          LOOP AT I_t_data into l_s_rcf_s_bw_0candidate_attr.
                              l_tabix = sy-tabix.
                              SELECT single * from P0006 WHERE LIFNR =
                              l_s_rcf_s_bw_0candidate_attr_s-lfnr.
                                  IF sy-subrc = 0.
                                      l_s_rcf_s_bw_0candidate_attr_s-zzpstlz
                                       = P0006-pstlz.
                                       MODIFY i_t_data from
                                       l_s_rcf_s_bw_0candidate_attr INDEX  l_tabix.
                                   ENDIF.
                             ENDLOOP.
             ENDCASE.
    ENDCASE.                                 
    When I check this code I'm getting a syntax error: '  "P0006" is not defined in the ABAP Dictionary as a table, projection view or database view.' I agree with this, P0006 is a Structure.
    My question is what changes should I therefore make to the code?
    Thank you in advance, hope someone can help will assign points!
    Helen

    Hi Subray
    Many thanks for your response; changing the table/structure to PA0006 fixed the error message:
    "P0006" is not defined in the ABAP Dictionary as a table, projection view or database view.'
    However I'm now getting a new error message. I entered the query on the ABAP forum (with the same subject header) and received a response there, which I'm also looking into.
    Will post any successes with this ABAP thread for completeness in this forum as well.
    Thanks again
    Helen

Maybe you are looking for

  • How do I stop a new dialog from coming up while I enter my master password?

    When I first enter a webpage with a password on file Firefox prompts me for the master password. I have been having repeated difficulties with a new master password dialog opening up and taking the focus before I have finished entering the password.

  • 3 generic data sources or only one function module

    Hi all, I have 3 custom tables 1. ZCOUNTRY (giving the link between code entity and country) 1. ZCURR (giving the link between code entity and currency) 1. ZYTPE (giving the link between code entity and type entity) I shall  fill an info object which

  • Oracle OpenWorld 2010

    All, I will be at Oracle OpenWorld this year. Just wondering if any regular posters on this forum will be there as well? If so, reply to this thread and we can exchange contact info. I will be presenting at the following session: Session ID: S317033

  • Flattening vector-drawings for pdf-presentation

    as an architecture firm, we are using lots of (heavy) vector drawings (eps or pdf) in indesign.  when exported to a pdf-presentation (no printing purpose, only screen-presentations), the pages containing these vector drawings take often too much time

  • Cannot remove warning message from screen

    I work remotely and use Outlook Web App to access my emails. Everything works fine other than I always get this warning message: which I cannot remove as the 'Continue' option is unresponsive to clicks. Anyone have any ideas how to cure this?? Many t