Dtaa source Enhancement code

Hi All,
I am enhancing the DS: 2LIS_11_VAITM with fields EDATU,ZZADATE from VBEP Table.
Could any body provide me the code for this
Regards,
Madhu

Hi.....
Check this........
Data source Enhancement Code Samples
Data source Enhancement
Re: writing custom code for enhancing the generic data source
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16
Hope this helps you.......
Regards,
Debjani.......

Similar Messages

  • Data source Enhancement for Sales Item

    Dear SDN Mates,
    We are enhancing the data source 2LIS_11_VAITM, when i try to enchance extraction structure it is not allowing to enhance. Showing a message :"2LIS_11_VAITM does not allow enhancing or append structure"
    Mates if you came across these difficulties please let me know and suggest any ideas.
    Thanks and Regards
    Arun S

    Hi,
    Have a look at these links:
    [SAP BW Data Source Enhancement|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16]
    [Data Source Enhancement|Data source Enhancement Code Samples;
    Hope it helps...
    Regards,
    Ashish
    Edited by: Ashish Tewari on May 11, 2009 12:16 PM

  • 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

  • Master Data Source Enhancement

    Hi Gurus
    I have a table in SAP which has customer, Sales Organization, Distribution Channel, Language (which is in EN always) and Customer Sales Text...
    The Customer Sales Text is maintained at Sales Organization and Distribution Channel level..below is the example of one record...
    Customer     Sales Org.     Distr. Channel     Lang.   Customer Sales Text
    123               01                  01                       EN        Blank (No text here)
    123               01                  02                       EN        Blank (No text here)
    123               01                  03                       EN        Blank (No text here)
    123               01                  04                       EN        Blank (No text here)
    123               01                  05                       EN        John Mathwes (Text appears here)
    123               01                  06                       EN        Blank (No text here)
    so when i pull the data to BI i need to see only one record with Customer and text only (no Sales org and distr. Channel necessary) which has the Customer text value (5th record in above example)..
    I created Data source in SAP and pulling the data to BI in DSO with customer and customer text....it's sorting and getting the latest distribution channel record (6th record in above example0
    Can yo uplease tell me is there any way that i can get the record which has customer text in it..(any possibilities of writing abap routine in info package) or any data source enhancement with abap code...
    can you pelase tell me the abap code that needs to be performed to solve the issue...
    Thanks in advance
    sailendra

    Sort the RESULT_PACKAGE by customer and customer text in the endroutine of your transformation.
    After the sort, the record with text for customer will be the last record and it will overwrite the other records in the DSO which has blank values.
    Just add the below sort statement in your end routine.
    SORT RESULT_PACKAGE[] BY CUSTOMER CUSTOMER_TEXT.
    As per the sample records mentioned in your post, after the sort, 5th record will become the last record and this will overwrite the other records which has blank value in the DSO.
    --- Thanks...

  • Enhancement Code (URGENT)

    Hi All,
    Can any one help in this regard,
    Actually my task is,
    I created a Master data Attribute Generic data source using Table(LFA1), after that i enhanced the datasource by append structure where i added a filed ZMATNR (filed from MARA table). So, now i have to write a code to populate data into ZMATNR in extract structure and i want to see the data of that field in RSA3. So, please help in this regard......
    Technical Information:-
    Datasource Name : ZGDSM
    Extract Structure Name : ZOXID30102
    Append Structure Name : ZENHANCE
    Field Name in Append Structure: Component - ZMATNR, Component Type - MATNR
    Field Name in Extract Structure : ZMATNR
    Please help me in writing this enhancement code......
    Thanks in Advance
    Regards
    Ramakrishna K

    Hi,
    U can check the sample code:
      WHEN 'ZGDSM'.
    data: ws_t_data type ZOXID30102.
    data: w_matnr type matnr.
    Populate the added fields
        LOOP AT i_t_data INTO ws_t_data.
          l_index = sy-tabix.
          select matnr from mara
          into w_matnr where lifnr = ws_t_data-lifner (Use u r condition/logic)
          IF sy-subrc EQ 0.
            ws_t_data-zmatnr = w_matnr.
          ENDIF.
          MODIFY i_t_data FROM ws_t_data INDEX l_index.
        ENDLOOP.
    Thanks,
    Debasish
        CLEAR i_t_data.
        REFRESH i_t_data.
        i_t_data[] = lt_employee[].

  • Data source enhancement thru function module

    Folks,
    I am trying to figure relation between data source enhancement, package, function module etc?
    I see a function module where enhancement is done. when I go and try to see master data exit EXIT_SAPLRSAP_0002 ... I see include but I do not see reference of function module in this include?
    All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap* - include inside and function module attached?
    Can somebody give very simple connection for all these components?
    Thanks,
    -SM

    Hi,
    All these codes are so simple... but I am struggling to figure out all these relation RSAP0001, exit_saplrsap - include inside and* function module attached?
    Please note that for enhancing certain standard objects for meet customer needs, SAP provides different customer exits where we can code as per our requirements.
    These customer exits starting with EXIT********* will be grouped by Enhancements e.g. RSAP0001
    Thanks for your response. In RS02 it is clear that we can mention function module name for data source - that is good for generic extraction. But what do we do when we are enhancing SAP extractor?
    When you want to enhance SAP extractors, you go for customer exits.
    EXIT_SAPLRSAP_001              for Transactional datasources
    EXIT_SAPLRSAP_002              for Master datasources
    EXIT_SAPLRSAP_003              for Text datasources
    EXIT_SAPLRSAP_004              for Hierarchy datasources
    in se37 screen in table tab - sometime we see extract structure - that will establish which functional being called for which data source, but in my case - I do not see anything in table tab?
    If your datasource is function module based, then the function module which is mentioned in RSO2 for your datasource would surely have e_t_data in tables tab with its associated type.
    Only if the datasource is standard one and is processed by function module e.g. 2lis_18_i0notif which is processed by MCEX_BW_LO_API function module, these would not have associated type mentioned for them. To get their structure, you can go to RSA5/ RSA6

  • Data Source enhancement with ABAP....

    My requirement is to enhance Z data source to include 
    bonus_cat,perfinc and active from ztrm_labdlycat table.
    For that reason i appended the extract structure and in CMOD included the following code in EXIT_SAPLRSAP_001 as this is transaction data source
    <b>CODE:</b>
    case i_datasource.
    when ' Z_TRM_LMS'.
      Loop at case i_datasource.
    when ' Z_TRM_LMS'.
      Loop at i_t_data.
       Select single bonus_cat perfinc active from ztrm_labdlycat into
              i_t_data-zzbonus i_t_data-zzperf i_t_data-zzactive
               Where locat = i_t_data-locat and
                     exrsn = i_t_data-exrsn and
                     apobj = i_t_data-apobj.
        Modify i_t_data.
      Endloop.
    Endcase.
    <b>ERROR</b>
         The field "I_T_DATA" is unknown, but there is a field with the similar name "C_T_DATA".     
    I am new to BW and not familiar with ABAP code...please update me on this how can i correct error
    Thanks

    Include the into clause within bracket.
    Select single bonus_cat perfinc active from ztrm_labdlycat into
    (i_t_data-zzbonus, i_t_data-zzperf, i_t_data-zzactive)
    Where locat = i_t_data-locat and
    exrsn = i_t_data-exrsn and
    apobj = i_t_data-apobj.
    But its not good practice to include ‘Select’ Statement inside Loop..endloop.
    You can create a separate internal table with the three fields and fill it with single select.
    Then you can use read statement inside your loop..endloop.
    The code will be like.
    TYPES: begin of ty_data,
    Locat  (INCLUDE THE VARIABLE TYPE),
    Exrsn (INCLUDE THE VARIABLE TYPE),
    Apobj (INCLUDE THE VARIABLE TYPE),
    bonus_cat  (INCLUDE THE VARIABLE TYPE),
    perfinc (INCLUDE THE VARIABLE TYPE),
    active (INCLUDE THE VARIABLE TYPE),
    End of ty_data.
    Data: i_data type ty_data occurs 0 with header line.
    Select locat exrsn apobj bonus_cat perfinc active from ztrm_labdlycat into corresponding fields of table i_data.
    Loop at i_t_data.
    Read table i_data with key
    locat = i_t_data-locat
    exrsn = i_t_data-exrsn
    apobj = i_t_data-apobj.
    If sy-subrc = 0.
         I_t_data-bonus_cat  =  i_data-bonus_cat.
         I_t_data-perfinc =  i_data-perfinc.
    I_t_data- active = i_data- active.
    Modify i_t_data.
    Endif.
    Endloop.

  • Reg: DS enhancement code in production

    Hi to all,
    We are now in the production support. I want to change the DS enhanced code which is written in the implementation bcoz of performance reason. What is the procedure to do that and is there any prerequisites to take. No need to code help here.
    Thanks,
    Babu.

    Hi Babu,
    You just need to change the code in EXIT from development system and then do a transport. The code changes will be directly reflected in production after transport.
    You don't need to worry about any delta or anything else as there are no structural changes and new code will start executing from next extraction onward.
    Just transport the EXIT FM, no need to transport DS or anything else. If you are doing further structural enhancement then you will have to transport other objects accordingly. But if you are only doing code changes then just transport EXIT.
    Regards,
    Durgesh.

  • When trying to use Java to scan checks in my financial software I get an error message, "The publisher cannot be verified by a trusted source. Code will be treated as unsigned."

    I am trying to scan checks in the USAA.com website and Java is giving me an error message: "The publisher cannot be verified by a trusted source. Code will be treated as unsigned."

    Serac wrote:
    Hi,
    I am occasionally running into an issue where I get the following error:
    "The publisher cannot be verified by a trusted source.Code will be treated as unsigned."
    I am not sure how to stop getting this error or what the root cause of the issue is.
    Any idea what could be causing this? and how I can get rid of it? is this a bug in the JRE?
    Thanks,
    DeeOn the contrary. It shows that Java takes your security very seriously and it will not allow
    hackers to format your hard-disk, get personal data etc.
    Google for signed applets.

  • Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code

    I get this message when I check the Device manager for my Ipod
    Windows cannot verify the digital signature for the drivers required for this device. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source. (Code 52)
    How do I resolve this I have reinstalled iTunes but it still doesn't recognise my ipod

    I reinstalled Itunes a couple of times.  I unistalled all programs that I never use, I updated all of my drivers, Windows swept my computer and found no problems.  I have a yellow causion lite when I look at the USB-port with the phone connected.  All other devices work without a problem.

  • RFWT0020 withholding tax data - Data Regen vs. Change to Source Tax Code?

    Can anyone explain the difference between these two options when running RFWT0020 to update withholding tax data?  Data Regeneration vs. Changes to Source Tax Code?  I can't find any mention of the two options in the program documentation
    When I do test runs with the two different options, the program is selecting difference documents to update.  If we are just turning on the 1099 functionality now (beginning with the 2011 tax year), should I run the program once with Regeneration mode and once with Changes to Source Tax Code???
    Thanks for any advice!
    Allison

    Hi,
    he program enables the withholding tax code to be changed for reconciled and open items with existing withholding tax data. For this, the tax rate of the existing withholding tax data as well as the tax rate of the new withholding tax code must be 0%. The new withholding tax codes are taken from the customer or vendor master data. In the case of extended withholding tax, the withholding tax code is only changed if the related withholding tax categories are the same. The withholding tax base amount is not changed by this procedure.
    Recreating or changing the withholding tax data requires that the program first be executed for invoices and then executed for payments in a subsequent step.
    When you start the program, the selection screen appears. You can make selections according to vendors, tax code 1, tax code 2 (vendor master record), customers, tax code 1, tax code 2 (customer master record), company codes, document numbers and posting data. The selection determines which items are checked for possible subsequent entries in tables BSEG, BSAK, BSIK, BSAD, BSID, WITH_ITEM.
    You can also decide whether only withholding tax data is to be handled for cases where the documents in question contain no withholding tax data. There is no withholding tax data if no withholding tax entries exist for the item selected in table WITH_ITEM (extended withholding tax) or the die withholding tax fields in table BSEG are not filled.
    The selection can also be made in test mode. If you do this, no changes are made in the database. You are therefore advised to run the program in test mode initially.
    Regards
    Aditya

  • How to make "Read Report" pick up enhancement code as well

    I want to enhance a SAP ECC6 program - H99CWTR0 (Wage type reporter). I need to add some more master data objects from other HR tables.
    I have succesfully applied implicit enhancements to this program to allow my users to select extra data objects and to retrieve the relevant data from the database. However, the program reads a subroutine pool called H99CWTR0_ALV_TEMPLATE and makes dynamic run time changes and generates a temporary subroutine pool. I have also had to apply implicit enhancements to the template but this is not read by H99CWTR0. So I am unable to to keep the shared data segment in line with the driver program H99CWTR0 which leads to an ABAP dump.
    I would prefer to make all changes to SAP programs using the enhancement framework rather than having to clone SAP programs into the "Z" namespace.
    Is there a way of making the "Read report" pick up the implicit enhancement code as well as all the other includes in the template?

    Hi Prabhu
    The dump text said -
    "The length of COMMON PART "DRIVER_DATA_EXCHANGE" in program "%_T0DYT0" is different from the corresponding area in the calling program "H99CWTR0".
    Length of the COMMON PART in program %_T0DYT0: 1224 bytes
    Length of the COMMON PART in program H99CWTR0: 1232 bytes
    There is probably an error in the program "H99CWTR0"."
    My enhancement to H99CWTR0 is being accessed, but the equivalent enhancement to H99CWTR0_ALV_TEMPLATE is not. Hence the discrepancy in the length of common shared data segment.
    The ABAP line "read report iv_template into lt_code." in include H99CWTR0_FORMS is not reading the implicit ehancement code I added. So when the ABAP line "generate subroutine pool lt_code name ov_driver message mm line ll" is called to generate the temporary subroutine code my code is lost.
    Regards
    Phil Smith

  • Data Source Enhancement for 2LIS_06_INV

    Hi BW Experts,
                  We got a requirement. We have to work on Data Source Enhancement.
    2LIS_06_INV is a LO Data Source. 3 extra fields required in existing Data Source.
    That 3 Fields are available in single Table only.
                 I never worked on Data Source Enhancement.
    Please can anyone tell me the steps.
    I have read the forums but i did not understand it.
    Thanks in advance
    Regards,
    Anjali

    hi anjali,
    Every organisation has different structures so, the standard structure dosnt fit for all, in this situation u need to go for enhancement. based on your need u have add some field to std structure.
    Check out this link...this z the best pdf for enhancing data source....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46
    pdf 'enhancements in sap bw' with steps
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    Enhancement
    User exit
    hope it helps...

  • Account mapping from Target account to Source accounting code

    Hello Friends,
    We are working on 10 different Opco's/Entities and 5 of them have a single Chart of Accounts. Every time we map the source account codes to Target account codes we do this for every entity.
    Can you please help me to find an option through which by updating mapping in one OPCO/Entity I can update automatically all 6 opcos/Entities mapping similarly in all Opcos/Entities
    Thanks..

    Thanks SH, now it is really working fine.
    I have changed  Parent Locations to all of the 5 locations to one of the locations.
    If I update mapping in anyone of the location, mapping in other locations are also changing.
    I have two questions:
    1) Will this effect uploading of data?
    2) Say for example i have 5 locations A,B,C,D & E and I have chosen A parent location as NONE,  B to A, C to A & D to A.
    If I make any changes in any one of the location this will reflect in all other locations but if in the same case I want changes only in C (after selecting A as parent location) and not in any other location can I have any control over it. Its like any changes from A reflect to B,C,D but not from C to A.
    Thanks..

  • Text not visible for the new fields created for Data Source Enhancement

    Hi .... I am working on Data Source Enhancements. I created few fields and append then to the Data SourceStructure . I also have populated the fields with data. The problem with a field is that I am not getting the text displayed in RSA3 ..Instead I am getting the field name itself.
    Example:
    FieldName       DataElement    Datatype  length  dec           Text
    ZZDOCTY                AUART         CHAR      4         0      Sales Document Type
    ZZNOODL                ZD_NODL     NUMC      1         0      Number of Deliveries
    In the above example the field ZZDOCTY is showing me the description in RSA3 i.e. Sales Document Type whereas the field ZZNOODL is not showing the text. Instead it is directly giving the fieldname ZZNOODL. Is it because of the fact that I created a Data Element for that field ??? and as I did not use the predefined data element as I did for ZZDOCTY???? Please reply me soon.....I need to display the text as "Number of Deliveries"  instead of ZZNOODL........I am working on 7.0.....

    May be the fields are hidden.
    Go to RSA6 select your data source and on the tool bar there will be a pencil butonto change. Click that and at the bottom, you will lots of check boxes.
    You go the field that you have enhanced and see whether the HIDE boxes are checked. If so, uncheck them, save and execute RSA3.
    Ravi Thothadri

Maybe you are looking for

  • WWSSO_APP_USER_MGR.EDIT_USER

    When trying to change a user's password normally (manually) via portal, the "Edit User" screen asks for an Admin password. If I enter portal30 as the password (for portal30 user), it accepts it as expected. However, when I create an application compo

  • Compiling mod_jk: libtool error

    While compiling mod_jk on my solaris 9 (sparc/64): I got the following error: /usr/local/apr/build-1/libtool --silent --mode=install cp  `pwd`/mod_jk.so libtool: install: you must specify a destination Try `libtool --help --mode=install' for more inf

  • Input on CR Version Contol..

    Hi Everyone, I am implementing Crystal Reports as part of our ERP system. We are using Business Objects to allow user interaction to our Crystal Reports. I am wondering what are the professionals like you doing to keep a version control for every rep

  • How to create WebService Source System?

    Hi, I am trying to integrate XI and BI. How do I create a webservice source system? When I create the webservice source system in RSA1, it asks for a logical system name. Do I need to create a RFC destination for this logical system? What other steps

  • Image quality reduced when scaled down on black background

    I am trying to view two tracks at the same time so I have scaled them down. Once I rendered them, the quality was horrible and then I changed the background to checkerboard instead of black, which worked, but I would like a black background for viewi