ABAP code to enhance a standard data source

Hi BW experts,
I am a novice in BW and I need to append a standard datasource <b>0DAT_SRC</b> with a field <b>FLD1</b> from table <b>TABL1</b>.Extract structure: <b>EX0001</b>.
Can anybody please suggest how this can be done?I guess it requires some ABAP coding to be done in the conversion exits.
<b><i>Many,many thanks in advance!!</i></b>

Following are the steps to enhance Standard Data source.
1. goto tc RSA6.
2. Select the Data Source which you want to enhance.
3. Select display Data Source (Ctr+f2)
4. Double click on the Extract structure.
5. click on the Append Structure.
6. Add the required fieds starting with ZZ*.
7. Avtivate the Append Structure.
To populate the data into this field you must have a project created to access the FM 'EXIT_SAPLRSAP_001'.
to Create Project code goto tcode: CMOD
1. Enter the Project name and click on create
2. go to components select the required function module.
EXIT_SAPLRSAP_001 for Transactional DS (RSR000
EXIT_SAPLRSAP_002 for Master DS
Goto SE37 and enter the Respective Function module (ex . EXIT_SAPLRSAP_001) and click on the include zxxxxx. then write the code to populate the extra fields added to the DS.
Sample code:
CASE i_datasource.
WHEN '2LIS_11_VAITM'.
loop at c_t_data into work_ar.
do some selections, some calculations ....
append work_ar to c_t_data. " add a new record
modify c_t_data from wa. " change the existing record
endloop.
endcase.

Similar Messages

  • Enhancing the standard  Data source without deleting setup tables

    Hi all,
    I am in the the Support Project. My requirement is I want to Enhance u201C2LIS_13_VDITMu201D LO- data source with two fields without disturbing the delta.
    Please suggest me how I have to do this.
    As Per my Knowledge ,
    1. we have to delete setup tables
    2. Enhance the data source & re populate the setup tables.
    3. Delete the data in the cube & add the two new fields in the cube & repopulate the cube with new Initial .
    4. after that delta will be enabled through job control.
    But this process is not suitable for our requirement because delta was enabled long back it is going very smooth till date, I donu2019t want to disturb that process.
    So please suggest me is there any other procedure to do this.
    Thanks,
    Kiran Manyam

    Hi,
    If historical data (loaded earlier in to BW) are not required for the two enhance field, then it is not required to deleted the setup table and reload them to BI.
    In this case simply you can follow the following procedure.
    1. Enhance the fields, and update the transfor structure(to unhide these fields). In BI update the required data target with respective IO. and in exit populate the enhance fields. No need to disturb the delta
    2. Replicated the DS in BI and do the mappings in tranformation.
    Here the existing delta is working, and you will be populating the two fields in the exit only.
    Thanks,
    Jugal.

  • ABAP code to Enhance Master data

    Hi Friends,
    can  you send me a sample ABAP code to enhance the master data
    Regards
    Hari

    Dear Adluru Hari Varma ,
    Hereunder an example of code to enhance Master Data
    0ART_SALES_ATTR for 0MAT_SALES:
    EXIT_SAPLRSAP_002
    DATA: l_biw_mvke_s LIKE biw_mvke_s,
    l_tabix LIKE sy-tabix,
    v_satnr LIKE mara-satnr.
    CASE i_datasource.
    WHEN '0ART_SALES_ATTR'.
    LOOP AT i_t_data INTO l_biw_mvke_s.
    l_tabix = sy-tabix.
    clear v_satnr.
    SELECT SINGLE satnr FROM MARA INTO v_satnr
    where matnr = l_biw_mvke_s-matnr.
    IF sy-subrc = 0.
    l_biw_mvke_s-zzsatnr = v_satnr.
    ENDIF.
    MODIFY i_t_data FROM l_biw_mvke_s INDEX l_tabix.
    ENDLOOP.
    ENDCASE.
    Also
    the user exit code zxrsau02 to populate the new fields .say you add field zzfield1, user exit code zxrsau02 can be like
    data : l_s_custattr like BIW_KNA1_S,
    l_zzfield1 like tablexyz-fieldabc,
    l_tabix like sy-tabix.
    case i_datasource.
    when '0customer_attr'.
    loop at c_t_data into l_s_custattr.
    l_tabix = sy-tabix.
    fill the new field
    select single fieldabc into l_zzfield1
    where ....
    l_s_custattr-zzfield1 = l_zzfield1.
    modify c_t_data from l_s_custattr index l_tabix.
    endloop.
    take a look some links on enhancement
    Enhancement
    User exit
    and download pdf 'enhancements in sap bw'
    here you can find the steps ...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    hope this helps.
    Re: enhancements
    Check in SDN you will find more programs
    Hope it helps.Revert back to me if you have any queries
    Regards
    Bala

  • Abap Code TO ENHANCE DATASOURCE with KEY FIELD OF SOURCE TABLE

    Dear Friends, Please help me to resolve this important issue at my end.
    <b>Requirement</b>:  enhance the STRUCTURAL data source which is
    based on the table VISTSU , now this table has a <b>key INTERNO</b> (Data Element : SECAINTRENO) which i want to enhance in datasource 
    SGONR = STRUCTURAL NUMBER present in extract structure of datasource
    Solution: I am not able to see any records for zzinterno enhance field in datasource rsa3 (Extractor CHECKER). Can u help me correct the ABAP code or tell me the way to pull the records for ZZINTERNO from VISTSU table.
    Thanks
    Poonam Roy
    ABAP Code
    data: l_s_REIS_STRUCTURAL_ATTR like REIS_STRUCTURAL_ATTR.
    case i_datasource.
    WHEN '0STRUCTURAL_ATTR'.
    loop at C_t_data into l_s_REIS_STRUCTURAL_ATTR.
    l_tabix = sy-tabix.
    clear  I_VISTSU .
    select single * from VISTSU  into i_VISTSU  where SG0NR = l_s_REIS_STRUCTURAL_ATTR-SGONR.
    if sy-subrc = 0.
    l_s_REIS_STRUCTURAL_ATTR-ZZINTRENO = I_VISTSU -INTRENO.
    modify C_t_data from l_s_REIS_STRUCTURAL_ATTR index l_tabix.
    endif.
    endloop.
    endcase.

    Try the below code.
    data: l_s_REIS_STRUCTURAL_ATTR like REIS_STRUCTURAL_ATTR.
    data: temp_interno like VISTSU -INTRENO.
    data:  h_tabix LIKE sy-tabix.
    case i_datasource.
    WHEN '0STRUCTURAL_ATTR'.
    loop at C_t_data into l_s_REIS_STRUCTURAL_ATTR.
    MOVE SY-TABIX TO H_TABIX.
    clear temp_interno.
    select single INTERNO from VISTSU into temp_interno where SG0NR = l_s_REIS_STRUCTURAL_ATTR-SGONR.
    if sy-subrc = 0.
    l_s_REIS_STRUCTURAL_ATTR-ZZINTRENO = temp_interno.
    endif.
    modify C_t_data from l_s_REIS_STRUCTURAL_ATTR index H_TABIX.
    ENDLOOP.
    ENDCASE.
    Regards, Siva

  • Modifying Standard Data Source

    Hi All,
               I am using standard data sources in CRM (0crm_oppt_i and 0crm_oppt_h).I need to modify these standard DS by adding some field in Extract structure.Can any one please provide me detailed step by step approach for doing this.If there is any code to be written can anyone send a skeleton of that code .Please provide detailed approach as I am new to this BW aspect.Thanks in advance.
    Regards
    Souresh

    Hi sarkar
    yes you have to write an ABAP code to fill the data in the newly added field in the extract structure.
    1)Go to RSA6 and find the data source you need to enhance.--> Display
    2)Double click on the Extract structure.
    3)Now click on the append structure button to add the required field on to the existing structure.
    4) add your required fields with ZZ appended to your field.
    5) Save & Activate the append structure. Then go back and make sure you activate the extract structure also.
    6) Now again go back to RSA6 and select your Data Source. But this time go to change Data Source to remove the hide option to the enhanced fields. By default they’ll be in hide mode. If you don’t remove the hide field then this field will not be seen in BW side.
    7) Now go to SE38 to write the logic to populate the data into the enhanced field. Program name to write the logic is ZXRSAU01.
    8) Check + Save + Activate.
    9) Check in RSA3 if data is populated as per your requirement.
    10) Replicate your Data Source.
    11) Now go to Data Source/ Trans. Structure screen. Now you can see the enhanced field on the right hand side.
    Go to CMOD.
    1. To  Save&#61664; give Description &#61664; create&#61664;create new project—give the project name
    2. Select the radio button Enhancement Assignment and give the Enhancement name you want and press Enter.
    3. If the Enhancement is already assigned to some other project it will display the same message saying it is already assigned it some other project.
    Click on&#61664;4. If the Enhancement is not assigned to any project save.
    5. Give RSR00001 (For Variable Exits)
    6. Activate the Project.
    7.  and click on the components button.&#61664;Now go to Display
    8. Now Double click on EXIT_SAPLRRS0_001. In that you can see an include ZXRSRU01.
    9. Double click on that include, it will say program name ZX…… are reserved for includes of exit Functions groups.
    10. Just Press Enter.
    11. It’ll Pop-Up a window  Create Object.&#61664;saying Include ZX…. Does not exits
    modify according to your requirements.
    Hope it will help u.
    Thanks & Regards
    KK

  • STANDARD DATA SOURCE 2LIS_11_VAHDR NOT GETING DATA

    RESPECTED GURUS
    I AM A NEW BI USER. I AM TRYING TO EXTRACT DATA FROM 2LIS_11_VAHDR WHICH IS A STANDARD DATASOURCE THROUGH RSA3, BUT I AM GETTING A MESSAGE "0 RECORD FOUND" BUT THERE ARE PLENTY OF DATA. I WAS TRIED WITH THE OTHER STANDARD DATA SOURCES AND GETTING THE SAME MESSAGE" ZERO RECORD FOUND".PLS GUIDE ME HOW I WOULD I GET DATA.
    REGARDS
    ABHAY MAHODAYA

    Hi Abhay,
    The data source which you are trying to use is comes under logistics. To take the logistics data from R/3 to BW set up table needs to be filled up. To fill the set up table follow the below mentioned procedures.
    First Delete the set up table to avoid data duplication:
    Go to T.Code: SBIW -> Settings for Application Specific data sources (PI) -> Logistics -> Managing Extract structures -> Initialization -> Delete the contents of the setup table
    Fill the set up table:
    Go to T.Code: SBIW -> Settings for Application Specific data sources (PI) -> Logistics -> Managing Extract structures -> Initialization -> Filling in the setup table -> Application specific set up of statistical data
    Choose the relevant node to perform the set up based on your requirement.
    Remember while filling the set up table no entry sould get posted in the relevant tables. So while you do this in production system, you may have to request for user locking for the relevant T.Codes.
    All the best.
    Regards,
    Sarath.

  • Standard Data Source for FMGLFLEXT Table

    Hello Friends,
    The standard data source for the Financials New Legder is 0FI_GL_10 General Ledger: Leading Ledger Balances, which fetches the data from the FAGLFLEXT Table using the Extract Structure FAGL_EXTSTRUCT_LEAD. However there has been a migration of the FAGL table to FMGL table. And now the FAGLFLEXT is no longer populated with any FI postings data. And the new table which is getting the update is the FMGLFLEXT Table. GL Migration from FAGL to FMGL is a standard procedure. However I am not finding any Standard Data Source to fetch the data from the FMGLFLEXT Table.
    Can anybody let me know if there is any standard datasource for this or should we create a custom data source to fetch the data from FMGLFLEXT using the FMGL_EXTSTRUCT_LEAD Extract Structure.
    Appreciate help in this regard.
    VB

    Hello Sasi and Kirun,
    Thanks for your reply,
    The requirement is resolved by the following:
    If you want to use your own totals table (in this scenario FMGLFLEXT) as your basis, you first have to create the corresponding extraction structure using transaction FAGLBW01. In this way, all fields of the totals table are transferred into the extraction structure. Further In the OLTP system, call up transaction FAGLBW03 and Configure the DataSource and save your settings.
    http://help.sap.com/saphelp_nw70/helpdata/en/be/928f40f5767d17e10000000a1550b0/frameset.htm
    Regards,
    VB

  • What is a Standard Data Source for table T006A?

    Dear Experts,
    As a part of one requirement I need to pull the data from Table T006A which is available in BW as well.
    I did many search on forums before posting the same but didnt get clear idea.
    I am aware how Units are being updated withing BW but I need to pull the text for all Units within BW.
    Do we have any standard Data Source which pulls the data from T006A table?
    Thanks in Advance,
    Nilesh

    Dear Raf Boudewijns,
    Requirement is to load the Unit texts(available in table T006A) into one custom InfoObject.
    I know this table is already pulled within BW and frequently being updated but didnt get any Standard Data Source which fetches the data from T006A table.
    I can create a new Generic Data Source within BW itself based on table T006A. But would like to use Standard Data Source if its available else will have to create a new generic Data Source.
    Thanks,
    Nilesh

  • Single Standard data source which extracts material master and vendor master data

    Hi all,
    I have a client requirement where user wants to view material master and vendor master in a single report. Is there any standard data source which extracts both the data together..
    Thanks!
    Arvind

    Hi,
    Two are different master info objects and can't get them from one data source.
    think about multi provider or  info set on two master data objects to club them.
    Info object - 0MATERIAL and  data source - 0MATERIAL_ATTR
    Info object - 0VEDNOR and data source - 0VENDOR_ATTR
    Thanks

  • Standard data sources for Delivery and Purchase order quantity.

    Hi gurus ,
    Are there any standard data sources available for Delivery and Purchase Order quantity in Purchasing area .
    Thanks in advance .

    Hi,
    If you are looking for SD Scenario: Check this : https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002719062002E
    Happy Tony

  • Not able to Find  Some BOM Related  Standard Data Sources in  PP.

    Dear Gurus,
         I am not able to find the Standard Data Sources for Loading the Master Data for the Following Standard Info Objects
    1. 0BOM
    2. 0COMPONENT
    3. 0HG_LV_ITEM
         I have activated the objects in BW side, but not able to find the data sources to Get the Data from.Kindly help me out regarding this issue.
    with regards
    vikram..

    At least, for BOM i have no found any datasource and any time  i had to implemented myself.

  • Need Standard Data Source Name

    Hi Experts,
    I am very new to this Technology......
    Anyone pls tell the Standard Data Source Name Which is having fileds like Shipping Address, Shipping City, Shipping State.......
    Thanks in Advance.
    Thanks;
    Srinivas

    Srinivas,
    I believe this information is all stored within "AddressSnapshot" BusinessObjects, but to my knowledge, there is no data source for these.
    I think what you're looking for will actually be Business Transaction specific. For example, are you looking for the Ship-To location for Sales Orders, or are you looking for the receiving address for Purchase Orders, or are you looking for Customer address information, etc.
    Address information will generally be included as a section of the higher level data source corresponding to specific transactions or master data.
    What are you trying to use this information for?

  • How to find standard data source

    Hi all,
             My requirment to retrive data from KONV, KONP and KONA tables. my previous post they told some data source but i
    wouldnt find those tables. Is there any standard data source available for this table. Kindly guide me.
    Note: we find required field in data source but that field not coming from our required tables.
    Thanks
    R. Saravanan

    Hi Mr.Saravanan,
    Please verify in these tables
    SD Sales Orders      2LIS_11_V_ITM
    SD Sales Orders      2LIS_11_V_SCL
    SD Sales Orders      2LIS_11_V_SSL
    SD Sales Orders      2LIS_11_VAHDR
    SD Sales Orders      2LIS_11_VAITM
    SD Sales Orders      2LIS_11_VAKON
    SD Sales Orders      2LIS_11_VASCL
    SD Sales Orders      2LIS_11_VASTH
    SD Sales Orders      2LIS_11_VASTI
    LE Deliveries / Shipping      2LIS_12_VCHDR
    LE Deliveries / Shipping      2LIS_12_VCITM
    LE Deliveries / Shipping      2LIS_12_VCSCL
    SD Billing Documents      2LIS_13_VDHDR
    SD Billing Documents      2LIS_13_VDITM
    SD Billing Documents      2LIS_13_VDKON
    Regards
    Ram Mohan

  • Enhance business content Data Source

    Hello BW Gurus,
      Please let me know step-by-step (Detailed) procedure on how to enhance the Business Content Data source
    Actual Time and Labor Times <b>0HR_PT_2</b>
    http://help.sap.com/saphelp_nw04/helpdata/en/4b/26c5394dbfef35e10000000a11402f/frameset.htm
    This Data source is already extracting Data for HR Tables PA2001,I want to enhance the data source to include start date and end date from the same table.
    Please give me detailed steps how i can do it (Do i nned to modify the function module of data source if how how and where) .Please help as it is my first extraction from R/3
    Thanks

    Hi
    Enhancement means in the SAP given datasource If you want to add extra fields.
    The procedure is like below.
    Take the datasource in which you enhance.
    1. If you enhancing in the LO datasaource, take the aprapriate communication strucute append the structure in that structure add the fields you wnat enhance.
    If you are enhancing other than LO you take extract structure append the structure and add the fields in that structure.
    2. Goto LBWE Tcode take the option called "Maintain Extract structure" take the fields which you enhanced from pool take push in to extract strucure.
    If you enhancing other than LO no need to do this.
    3. Goto RSA6, take datasource, goto change mode. The enhanced fields Hide option checked, reomove that tick and save it.
    4. Goto "CMODE" tcode, If project is already created for that enhancement goto disply mode. If the project is not created give the project name created and give the enhancemet name as "RSAP0001" and save it.
    in the component you can find 4 Function modules
    EXIT_SAPLRSAP_001 -> Transaction Data
    EXIT_SAPLRSAP_002 -> masterdata attributes
    EXIT_SAPLRSAP_003 -> Master data Texts
    EXIT_SAPLRSAP_004 -> Masterdata Hirarchies.
    Take the apprapriate FM and double click on it
    there you can find Include name. If you double click on it you can find ABAP editor.
    there we have to write the code
    example code will be like below.
    data: l_s_icctrcst like icctrcst,
    l_s_icctract like icctract,
    l_s_icctrsta like icctrsta,
    l_tabix like sy-tabix.
    case i_datasource. */ in BW 1.2B case i_isource.
    when '0CO_OM_CCA_1'.
    loop at c_t_data into l_s_icctrcst.
    l_tabix = sy-tabix.
    select single * from z0001 where kokrs = l_s_icctrcst-kok
    and kostl = l_s_icctrcst-kostl.
    if sy-subrc = 0.
    l_s_icctrcst-zfield1 = z0001-zfield1.
    l_s_icctrcst-zfield2 = z0001-zfield2.
    modify c_t_data from l_s_icctrcst index l_tabix.
    endif.
    endloop.
    when '0CO_OM_CCA_2'.
    when '0CO_OM_CCA_3'.
    when others.
    exit.
    endcase.
    This is example code.
    Thaks
    DST

  • Unable to view enhanced field in Data Source

    Hi All,
    We recently upgraded our R/3 system from 4.7 to ECC 6.0. Now when we are enhancing the data source, the field is visible in the Extract Structure. But we are unable to view it in the data source. We checked out in RSA2 the enhanced field attribute is specified as 'Field in OLTP and BW Hidden by SAP'. We have written code to modifiy the ROOSFIELD table to make the enahnced field visible. But this is the problem with all the data sources. Whenever, we have to enahnce, we have to go thru this process to make the enhanced field visible.
    Is it like that we missied out any patch in ECC 6.0 while upgrade? If any person faced similar situation, please help us.

    Hi Ravi,
    I think you are missing a step here. As soon as you enhance your datasource with new fields, by default, those 2 check boxes are checked ( Hidden and Field in User exit only). You go to RSA6, edit your datasource and here, you can uncheck these added fields so that you can use them. You do not need to write any code to change the fields settings in ROOSFIELD table. Do the step I mentioned above after enhancing and you should be good. Hope it helps.
    Thanks and Regards
    Subray Hegde

Maybe you are looking for

  • Audit input parameters in package by access

    Hi Gurus, I recently activated the audit_trail parameter in init.ora file so i can audit the database. I want to audit de input parameters of a package. This could be possible ??... Regards!! Pablo.- Edited by: PabloArroyo on Nov 7, 2012 6:09 PM

  • TV TUNER CARD AND SATELLITE TV

    I have a new Pavilion dv6t 1100 CTO Entertainment Notebook with a built-in TV tuner card. I receive my TV signal via DISH Network satellite TV. I have a HD DVR receiver downstairs that hooks up to the main TV with an HDMI cord. All the other TVs hook

  • Trigger UNIX Script from SAP

    Hi.. The requirement is as follows : SAP drops a file into a folder and triggers a UNIX script using a File Port partner destination. Unix script will perform a secure copy to the Webmethods server.  If a Unix script error occurs, an Rfc function wil

  • Ipad 1 doesnt import my photos in iphoto, seems stuck

    Got some 500 pictures (5.7 GB) on my Ipad-and left it running for one night... Still see no advance in the process of iphoto import... am I just impatient or is the process frozen somehow? The button "import all" and import selected are grey... but I

  • Cross-Platform Password Creator/Storage/AutoFiller

    I wanted to know if anyone can recommend an application that's compatible on a Mac and a PC, that I could use to generate, store, and even auto-fill website passwords...Something along the lines of '1Passwrd' (Mac App) or 'Roboform' (PC App)... Any s