EXIT_SAPLRSAP_001 enhancement

Hello Gurus,
    in EXIT_SAPLRSAP_001 function module , program is greyed, I can't do enhancement. please how to change it?
Many thanks,

Hi,
you have to go inside the include EXIT_SAPLRSAP_001 and double click on the include ZXRSAU01.
Then click changed option on the top and there you can write the code.
You will have to write the code for data source enhancement inside the include ZXRSAU01.
Thanks
Ajeet

Similar Messages

  • How to find enhancement RSAP0001 user exit EXIT_SAPLRSAP_001 project CMOD

    Hi,
    I need to find in one system the project in cmod that contains the enhancement RSAP0001 with user exit EXIT_SAPLRSAP_001.
    How do I proceed?
    Thanks a lot

    Simon,
    Goto CMOD and enter * and select F4 so that you will get the list of packages. Most of the clients we have naming terminology with BW. Pick one of them and go for components there you can see the interface.
    Double click on that you will see four classes. Select any one of them and write your logic.
    If you provide what exactly your are trying to do enhancements, so that will provide better solutions.
    Thanks
    Ganesh reddy.

  • Enhance extract structure conflicts with EXIT_SAPLRSAP_001

    Hello All,
    We have many BW projects going on at the same time.  One area we keep bumping into each other is when we need to enhance an extract structure for a datasource.
    What we run into is we have to modify it for one extractor and then for another (let's say both are in the LO Cockpit).  How do you handle this?
    Problem is one project may be ready to move the enhancement and the other not ready.
    This is for transaction data so EXIT_SAPLRSAP_001 is being used.  Should we create multiple include programs to avoid this?
    Thanks!

    I got the question .
    Yes if parallaly many deveopers working on the same task thats modifying the extraxt structure for data source then two ways are there
    A) Select the time frame whose development is moving to quaality first as definately there will
         be the time frame when the development is moving to quality and all .
         So if some one is working on it comment ht ecode andmove to quality .
         Once your transport order realesed the other can uncomment there code and in the next transport
         there code is also transported with your code .
    B) Second is the creation of mulitple includes as there will be no transport order blockage in that .
    I suggest the first in the better optiona as no need to increase the number of INCLUDE as one is already provided by SAP is work fine .
    Assign marks is the best way to appreciate help whoever it is

  • How to delete the old code in the EXIT_SAPLRSAP_001

    Hi All,
    In R3 system, I wrote an exit for 2LIS_11_VAHDR  by using T-code CMOD in the function exit EXIT_SAPLRSAP_001 and the code does not meet my requirement today i want to delete the code and i will write the fresh one. now my problem is i am not able to delete the code can any body suggest me how to delete the old code.
    and can we create new project and can we assign to the Enhancement RSAP0001.
    Can anybody suggest me in this
    Thanks in advance......
    Narendra

    Hi Narendra,
    You can put the code in comments, if you don't want to use the old code..You can delete also..But be sure that code belongs to you only..
    SE38>zxrsau01>change-->find out your data source
    Comment(Or can delete) the code starting from WHEN '2LIS_11_VAHDR'. to the end of the code that you have written..
    If you really want to delete the assignment of RSAP0001 to your old project>goto CMOD>your project name>change>delete assigment
    Then create a new project and assign the enhancement RSAP0001 to your new project and write the code in Include 'ZXRSAU01'..
    Hope it helps
    Thanks
    Teja

  • BW enhancement -- plz advice

    Hi,
    While doing the enhancement for BW using standard function module EXIT_SAPLRSAP_001 and INCLUDE ZXRSAU01 is it advisable to use the function module.
    I mean if the extra field required by BW is derived using a Function Module then does it hamper performance against pulling it from a table…
    Friends please advice…
    Thanks,
    sam

    Hi Sam,
    While extracting data from R/3 to BW that is the user-exit which will get triggered when you are extracting master data, that is SAP suggested User exit for enhancing the datasource for master data.
    Reward Points if this helps,
    Satish

  • 2LIS_03_BF DS Enhancement

    Hello all,
    My Customer wants 2 news fields from MARA table in query column, the fields are
    YBENCODE1 - Term code - MARA
    YTYPKURZB - Type short description - MARA
    On analysing I found data for infoprovider comes from datasource
    2LIS_03_BF and 2LIS_03_BX.
    I saw the datasource 2LIS_03_BF in LBWE and found all fields come from MSEG table.
    So I believe I hav to enhance this datasrc 2LIS_03_BF by append stuctre and code in userexit.
    Now pls guide me how to proceed further steps. As MSEG is a cluster table I bit scared to
    do this task.
    1. Give me the steps
    2.What will be the logic to link these table? Has anyone come across this ? share your ideas..
    3. Any precaution to be followed ?
    4. Any possiblity to make this fields a navigational attribute of material so datasrc enhancement not required ?
    Your inputs are very much valuable for my further steps...
    thankyou!
    Bala

    Hello,
    1. All Primary keys of a perticular table from where new field is coming should be available in your datasource.
    Steps:
    Enhancing datasource:
    1. Goto rsa6 & choose datasource(2lis_03_bf) click on append structure,
    2. Give perticular name and assign required fields,
    3. Activate.
    User exit:
    1. Goto T Code : CMOD, provide perticular project.
    2. choose exit : EXIT_SAPLRSAP_001(for transactional data)
    3. double click on it you can see include, go inside by double clicking on it.
    Sample coding:
    1. Extending Business Content - EXIT_SAPLRSAP_001
    data: l_s_icctrcst like icctrcst,
    l_s_icctract like icctract,
    l_s_icctrsta like icctrsta,
    l_tabix like sy-tabix.
    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-kokrs
    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.
    endcase.
    Hope it Helps
    Regards,

  • Enhance CRM extractor for BW

    Hi all,
      To enhance CRM extractors we enhance the BDoc and then used the BADI CRM_BWA_MFLOW or CRM_BWA_SFLOW whichever is applicable to extract the data for the enhanced fields and fill the data source.
    Also we go to transaction RSA6 enhance the datasource structure.
    Now my basic question is why User exists are also enhanced. The procedure is
    In transaction RSA6 select the datasource structure and choose the menu "Function enhancment". This goest to CMOD transaction and there the user exit "EXIT_SAPLRSAP_001" is enhanced
    Could someone explain me why some coding is done in the user exit when the data which needs to be send from the BDoc is already filled in the badi implementation. When does this user exit actually used. In what scenarios do we use this user exit along with the badi implementation.
    Any idea. Thanks for the continued support and I wish "Happy new year" to all of you.
    Thanks in advance
    Jothi

    Hi all,
      To enhance CRM extractors we enhance the BDoc and then used the BADI CRM_BWA_MFLOW or CRM_BWA_SFLOW whichever is applicable to extract the data for the enhanced fields and fill the data source.
    Also we go to transaction RSA6 enhance the datasource structure.
    Now my basic question is why User exists are also enhanced. The procedure is
    In transaction RSA6 select the datasource structure and choose the menu "Function enhancment". This goest to CMOD transaction and there the user exit "EXIT_SAPLRSAP_001" is enhanced
    Could someone explain me why some coding is done in the user exit when the data which needs to be send from the BDoc is already filled in the badi implementation. When does this user exit actually used. In what scenarios do we use this user exit along with the badi implementation.
    Any idea. Thanks for the continued support and I wish "Happy new year" to all of you.
    Thanks in advance
    Jothi

  • How to enhance Standard Extractor for 0CUSTOMER_ATTR

    Hi,
    I need to enhance the standard extractor of 0CUSTOMER_ATTR in order to populate the newly added attributes.
    I have few questions:-
    1) Will there be any impact of manually adding attributes to 0CUSTOMER on the data flow/where used list of 0CUSTOMER.
    2) In order to get the master data for newly added attributes we will need to enhance the extractor. Could you let me know the entire process of enhancing the standard extractor.
    3) Will it be safe to make a copy of 0CUSTOMER as ZCUSTOMER, add the new attributes in ZCUSTOMER and use ZCUSTOMER for our requirement. In this case also we will need to enhance the extractor.
    Your inputs will be helpful.
    Thanks,
    Naveen Kr. Choudhary

    1) Will there be any impact of manually adding attributes to 0CUSTOMER on the data flow/where used list of 0CUSTOMER.
    No there will not be any impact for the where used list of 0CUSTOMER info object, there will be effect once the enhanced data source is replicated to BI side.
    2) In order to get the master data for newly added attributes we will need to enhance the extractor. Could you let me know the entire process of enhancing the standard extractor.
    SE11 --> create the Structure
    Tcode: RSA6 -> Double click on the Data source --> Now in the DS:customer version screen you can see the extract structure name --> double click on it -->Next you will find an option of Append Structure button --> click on it -->
    Add the necessary field's in the Append Structure with Component Type:. Before you exit, make sure that you activate the
    structure by clicking on the activate button.
    Next
    -->You need to confirm that the Added filed has been added to the DataSource and that it will be available to BW. When you go  back at the Postprocess Datasource and Hierarchy screen(RSA6), select the same DataSource again and press the Change DataSource button .
    Check for the filed that you had appended, it will be appeared at the bottom of the extract structure.
    Once this is done now the appended fileds are ready in DS, now we need to populate the data from the corresponding tables.
    For this Select the Data source 0customer_attr --> click on Function enhancement --> enter the project name and next enter the Enhancement RSAP0002 This enhancement has four components that are specific to each of the four types of R/3
    DataSources:
    Transaction data EXIT_SAPLRSAP_001
    Master data attributes EXIT_SAPLRSAP_002
    Master data texts EXIT_SAPLRSAP_003
    Master data hierarchies EXIT_SAPLRSAP_004
    With these four components , any R/3 DataSource can be enhanced suing the above 4 Function module. In this case, you are enhancing a Master data DataSource, so you only need EXIT_SAPLRSAP_002 .
    Next we need ABAP developer in order to enahance the DS and write the logic to populate the values to the filed from the source table.
    once this is done save the code and activate it.
    Next fill the set up tables and  Goto RSA3 tcode check the data source and check for the fileds that were appened are populated with the values or not.
    (for more detailed steps our friend Chowdary has send u the links go through them)
    3) Will it be safe to make a copy of 0CUSTOMER as ZCUSTOMER, add the new attributes in ZCUSTOMER and use ZCUSTOMER for our requirement. In this case also we will need to enhance the extractor.
    I dont think there is a need for creating a new ZCUSTOMER , you can use the standard one.
    Edited by: prashanthk on Aug 13, 2010 9:02 AM

  • Project Management in SAP Enhancements

    Hi ,
    I have a table with 2 custom fields added to it ZZ*
    hence, I also had to append the datasources with these fields based on the table assosiated with it.
    1) What should be the approach to populate these fields in the datasource with appended structure with the custom fields based on the table?
    2) If I have to use the Enhancement: RSAP0001, Exit:exit_saplrsap_002 and include ZXRSAU02 then,
    RSAP001, exit_saplrsap001 is already being used in another project owned by another user. What will be effect if I add my code to this exit under his project.
    Do I have to take any steps into consideration before I proceed.
    Please help as I am unable to understand what should be my approach as am totally new to ABAP.
    Thanks a lot
    Regards
    Priya

    Hi,
    <i> If I have to use the Enhancement: RSAP0001, Exit:exit_saplrsap_002 and include ZXRSAU02 then,
    RSAP001, exit_saplrsap001 is already being used in another project owned by another user. What will be effect if I add my code to this exit under his project.
    </i>
    First of all , what is the data source to be enhanced?
    If it is DS for transaction data, use EXIT_SAPLRSAP_001
    Or
    If it is DS for master data, use EXIT_SAPLRSAP_002.
    If these are already included in any other project. You do not need to create a project. You have to add your code in it's include program.
    The 'CASE' statement differentiate the lines on the basis of DS.
    <i>Do I have to take any steps into consideration before I proceed.</i>
    1) you should have been assigned a developer access key.
    2) Read the user exits docs available in Service market place.
    With rgds,
    Anil Kumar Sharma .P

  • 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

  • How to enhance the cube to include 0CS_TRN_QTY

    Hi Gurus
    In 2004S what are the steps to enhance the field, please help me.
    How to enhance the cube to include 0CS_TRN_QTY, this field is coming from GL Totals table? this is  new table included to 2004S.
    please help me
    Thanks
    lalit

    Hi Lalit,
    1) Go to Rsa6 and select the DS that belongs to your particular cube , and double click on it and note down the ES name .It is
    2) Go to Se11 and keep the ES name at DATATYPE and clcik on Display. and then Click on Append structure Button.
    3) Give the techinica name to AS in the immedaite screen and then give description in other screen and enter the zzfields that you want to add. Finally activate the Append Structure.
    4) aggin goto RSA6 and enter into change mode for the DS , and then remove tick mark for newly added fields aginst Hide only .
    5) Replicate the DS into BIW.
    6) give th ccoding for these newly added fields in CMOD.
    7) in CMOD , you need to use already existing project. If there is no project existing,then create new one . While creating take RSAP0001 as Enhance ment assignement.
    8) you have to code the ABAP lines in EXIT_SAPLRSAP_001 component and in the include ZXRSAU01.
    9) Donot forget the activation of Project and include after every modifications.
    Regards,
    Lakshman.G

  • Enhancement of 2lis_01_s001

    Hi, i have to add the company code (bukrs) to the datasource 2lis_01_s001, please tell me if i'm doing it ok, what i've got until now it's:
    1. bukrs is not in the "standar" structure s001, so i add the field bukrs by adding it in RSA6, Enhance straction structure.
    2. Then in function enhancenment or CMOD, i create a project ZBI001, inside of it, i use the enhancenment RSAP0001.
    3. Then i implement the exit EXIT_SAPLRSAP_001, in which i add the below code inside of the include zxrsau01.
    tables: tvko.                            
    data: v_bukrs like tvko-bukrs,           
          it_s001 like s001biws.             
    case i_datasource.                       
      when '2lis_01_s001'.                   
        loop at c_t_data into it_s001.       
          select single bukrs                
            into v_bukrs                     
            from tvko                        
           where vkorg = it_s001-vkorg.      
          if sy-subrc = 0.                   
            it_s001-bukrs = v_bukrs.         
          else.                              
            it_s001-bukrs = 'A300'.          
          endif.                             
          modify c_t_data from it_s001.      
        endloop.                             
    endcase.                                 
    4. i save and activate the exit.
    5. i rerun the load, by usin the Tx. OLI2.
    6. check the field in Tx. RSA3 BUT THE FIELD IT'S STILL EMPTY
    am i doing something wrong? or when do the exit will trigger itself??
    Thanks.

    Hi,
    Have you activated Data Source in LBWE after enhancing the Structure.
    I did modification for your . PLease try with this. Into you have specified in your code, please check. Let me know if any corrections.
    tables: tvko.                            
    data: v_bukrs like tvko-bukrs,           
          it_s001 like s001biws.  
    case i_datasource.
    when '2lis_01_s001'.
    LOOP AT c_t_data into it_s001.
    l_tabix = sy-tabix.
    SELECT SINGLE < Table field name which you are taking to add in the datasource> FROM <Table name on which datasource is based> INTO it_s001-<ZZ*****(added field name which will start with zz)>
    WHERE <primary key of the table> = l_s_dtfigl_1-<primary key>.
    MODIFY c_t_data FROM it_s001 INDEX l_tabix.
    ENDLOOP.
    Reg
    Pra

  • Datasource 2LIS_02_HDR enhancement

    Hi Expert,
    Iu2019m working on datasource 2LIS_02_HDR enhancement - add a field u201CNet payment termu201D ( EKKO-ZTERM).
    I understand I can add this field in 2 ways as specified below
    a.     Adding this field to Communication Structure (MCEKKO, in this case) and then pulling to the Extract Structure
    b.     Directly appending this field to the extract structure (MC02M_0HDR, in this case).
    I would like to know which way from the above is the best and why? Whatu2019s the difference to choose one way over another?
    Thank you.

    Hi,
    Better to append structure to extract structure.  Go through following steps - 
    Goto CMOD---- select Enhancement assignment - - browse at project search box- Where you may find group of projects already created with discriptions like---- > Project for customer function cals for SAPI or project for user exits(like this for my projects).
    If you dont have already created projects then create a project -
    Go to CMOD -- by giving naming starts with Z--->
    Assign the enhancement RSAP0001 & click on Components
    Choose the function exit EXIT_SAPLRSAP_001
    Activate the Project.
    Double click on the function exit EXIT_SAPLRSAP_001, this will open the function module
    Please note that, alternatively once the project is activated with the required function exit, this can also be displayed in the t-code for Function modules se37.
    Double click on the include ZXRSAU01, to open the editor where the required coding can be done.
    In the above function module (exit) the import parameter I_DATASOURCE
    holds the data source (i.e. name of the data source)
    The tables parameter C_T_DATA holds the values of the datasource whose structure is same as the data source structure
    Regards,
    rvc

  • LO Enhancement

    Hi Experts,
                       Please let me know what precautions do I need to take while enhancing LO data source which is in Production. Iam adding one new field available in one of the coomunication structure to Extract structure.

    HI Raj,
    Here is one example how to enhance.
    Goto RSA6- select the 0Material.- Click on Enhance extract structure-> it will take u to the next screen there u need to create the field material group1. and append it to 0Material.
    Goback to RSA6-- RC on 0material-- it will take you to customer version edit screen- here unchk the Hide and Field only known in exit options n save it.
    Next Go back to RSA6-- 0material- click on Function enhancement it will take you to CMOD Screen( here we need to enter the project name and click create if not created on click display)
    In the next screen we find the function exits Like EXIT_SAPLRSAP_001 FOR T DATA AND EXIT_SAPLRSAP_002 FRO Master Data,_003 for Text n _004 for Hierarchies.
    select the appropriate function exit and double clikc on it. It will take you to Function builder screen.
    D Click on defn of Include ZXRSAU01. it will take you to abap editor screen.
    here u need to include the code for the enhanced fields n also write the code to populate the dat for that particular field.
    save it and avtivate the code.
    Hope this Is helpfulll
    send me ur mail id i'll send u screen shots how to do Enhancement.
    *****************Asign Points if Helpfull***************
    regards
    KP

  • Enhance Standard DataSource

    Hi all,
    Can i add some more selection criteria to a standard source. Im using  0FI_GL_4 and would like to add GL Account HKONT to my selection when extracting data (InfoPackage).
    Also can i add an additional field BUZID to this datasource? How?
    How can i do that?
    Thanks
    Edited by: SAPPER BI on Apr 22, 2008 3:31 AM

    Dear SAPPER BI
    Enhancement means in the SAP given datasource If you want to add extra fields.
    Go Through this
    http://www.bridgeport.edu/sed/projects/cs597/Fall_2003/vijaykse/step_by_step.htm
    Follow these simple steps too
    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.
    Also go through this link for more information
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=procedureTOENHANCEdATASOURCE&adv=false&sortby=cm_rnd_rankvalue
    If ur doing the replication first time, then do the following steps:
    1. Verify the R3 connection in SM59.
    2. Check all the required authorization is having for ur background user.
    3. Check whether ur data source is active in RSA6. If it is not active then activate from RSA5. Take best practice for activate the delta things like setup table deletion and initialization, etc.,
    4. Replicate the data source now in BW side.
    5. Activate all the corresponding transfer rules and update rules and info providers.
    If everything already available and now ur getting this error, then it may be RFC error or background user or R3 side Datasource problem.
    Try to extract the 2lis_01_s260 data in R3 itself (RSA3). And check whether data is extracting fine or not.
    Hope it helps you,Revert me back if you have any queries
    Assign ponts if helpful
    Regards
    Bala

Maybe you are looking for