Enhance Master data 0material

Dear friends .
I am in bit confusion , I have one request where i need to activate 0Pur_c01 . the problem is there is one charterstics . which is agency code(0matl_grp_1) .I need to add this charcter to the cube . but 2lis_02_ITM or 2lis_02_SCL does not contain this char.  My question is .
1. Can i add this char as attribute for 0material .
2. Agency code (0matl_GRP_1 ) is coming from MVKE Table and Feild is MVGR1. the data for 0material is coming for MARA.
3.Can i enhance the 0material .
4. If i can add this char to 0material . please let me know . how to enhance 0material .
Hope you all can help me on this . points are rewarded for your efforts . thankyou .

Hi Kumar,
You can enhance the agency code to master data object 0material for reporting or you can enhnace this for the cube dircetly.
Method 1. Enhancement for Master data 0material:
Add 0matl_grp_1 as an attribute in 0material defination.
Enhace data source 0MATERIAL_ATTR with a new characterstic agency code and make it as navigartional attribute.
Write  ABAP code in R3 (using T-code :CMOD) in RSAP0001 componet specified and functional exit EXIT_SAPLRSAP_002 specified for master data to populate the agency code from tabel MVGR1 using the key filed Material.(But you have to know the functional relation ship between material and agency code to write the ABAP code in CMOD).
Replicate the data source and make the necessary assignments for infosource.
Load the master data for 0material.
Assign agency code as navigationl attribute in the cube defination, so that agency code is used in reports for navigation.
Method 2: enhance your data source 2lis_02_ITM or 2lis_02_SCL with agency code ((using T-code :CMOD) in RSAP0001 componet specified and functional exit EXIT_SAPLRSAP_001 specified for transanction data.
add char agency code to cube and bellow data flow and load the data.
Method 1 is suggestable for your case.
regards,
srinivas.

Similar Messages

  • 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

  • Adding/Enhancing master data with a standard field?

    Dear Friends,
    I have to enhance master data 0VENDOR to add a field LFM1-LFABC (vendor ABC indicator) which is a standard SAP field in LFM1. How do i do that? How do you see which table/s the datasource 0VENDOR_ATTR is pulling data from in R/3.
    Thanks for your time and help
    Raj

    Hi,
    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.
    Thnaks
    DST

  • Can Not Delete Master data 0Material

    Hi Gurus:
                 I need to get rid of Leading Zeros for Material Number. My understanding is I need to do ALPHA conversion.
    I did the follwing Steps:
    1. Delete data from ODS
    2. Delete Data from Master Data 0MATRIAL.
    Although I deleted data from ODS, still when I try to delete data from 0MATERIAL it is giving me some error saying there will be still some data left.
    3. I went to RSD1 and tried to do ALPHA conversion. I m getting following errors:
      Master Data Table /BIO/PMATERIAL conatins data: Characteristc 0MATERIAL  can not be activated
    SID Data Table /BIO/SMATERIAL conatins data: Characteristc 0MATERIAL can not be activated
    Test Data Table /BIO/TMATERIAL conatins data: Characteristc 0MATERIAL can not be activated.
    Suggest me what I need to do.
    Thanks in advance for your help!

    I did the follwing for 0MATERIAL. But getting errors.
    fill the internal table "MONITOR", to make monitor entries
    CALL FUNCTION "CONVERSION_EXIT_ALPHA_OUTPUT".
    EXPORTING INPUT = COMM_STRUCTURE-/BI0/0MATERIAL.
    IMPORTING OUPUT = RESULT.
    RETURNCODE = 0.
    result value of the routine
    RESULT = .
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    This is the error I am getting:
    E:Field "EXPORTING" is unknown. It is neither in one of the specified
    tables nor defined by a "DATA" statement.
    Thanks!

  • Enhance master data

    Hi
    Enhance the master data extractor 0APPLIC_ATTR extract structure RCF_S_BW_0APPLIC_ATTR with APPL_SOURCE_INFO field.
    APPL_SOURCE_INFO  for this field how can i get information for source table . ple let me know abap code also.
    regards
    suneel.

    Hi Suneel,
    These are the steps that you need to do:
    1. You need to find in which table that APPL_SOURCE_INFO data is being stored. Usually I use SE11, and check in which table that this field is being used. It will list down the list of table name.
    2. You go to RSA6, find and higlight 0APPLIC_ATTR, click on 'Enhance Extraction Structure' button to add APPL_SOURCE_INFO field into the extract structure.
    3. Once you add the new field, you enhance the function module by clicking 'Function Enhancement' button. Then you add ABAP code to get APPL_SOURCE_INFO data into your extract structure.
    Hope this will give you some ideas, if you want, I can give you a sample ABAP code.
    Cheers,
    Mona

  • Error When trying to load master data 0material

    Hi,
    I got the following error when trying to laod 0MATERIAL master data
    "value '000000000004343434 ' for characteristic 0MATERIAL is in external format     "
    "0MATERIAL : Data record 1 ('000000000004343434 '): Version '000000000004343434 ' is not valid
    Can anybody help me in resolving this issue.
    Regards

    Hi,
    Run transaction OMSL.
    Create an entry for MATCONV in the overview screen.
    Double click on this line and set the length parameter for MATCONV.
    the same transaction exists in the r/3 OLTP system compare the 2 systems to set the right values in the details screen in BW.
    Hope this helps
    Provide points if it does.
    Regards
    Lalan

  • Enhancing master data extractor View-based

    Hi there,
    I want to append fields to a standard master data extractor that uses a standard view. How can the enhancement be performed? Per my understanding, the append structure won't work here. So is extending the view the only valid option? Please can you provide steps how this needs to be done.
    Thanks!

    Hi Intel,
    The first step would be to enhance the underlying tables involved in view. You will have to first add the required field in one of the tables involved in building the view.
    In this enhancement you might have to use append structure if it is standard table or in case of 'Z' table the field can be directly added.
    Once you add this field in table you will have to make this field available in View for usage and then simply enhance the DS, replicate the DS. You will get the newly added field in BW.
    Regards,
    Durgesh.

  • Enhancing master data source.

    Hi experts,
    How to enhance an master data data source ( 0customer_attr ). Which function exit we need to use.
    Is it EXIT_SAPLRSAP_001 or EXIT_SAPLRSAP_002 ?
    Regards,
    Nishuv.

    hi fallow these steps
    1. Go To SAP R/3 TCODE-RSA6 
    2. Open the SAP R/3 Tab & select the module & the masterdata extractor name for ex.MM -> MM-IO ->0VENDOR_ATTR 
    3. Double click on it. It will show you the extract structure name under "ExtractStru" as BIW_LFA1_S. 
    4. Double click on it or copy the name & open SE11 & paste the name open the structure. 
    5. There you can find append structure field name in ZZ. i.e all append structure fields should start with ZZ as prefix. 
    6. To find the source field you have to go to CMOD. 
    7. Provide the project name which is created. 
    8. Then select the "Enhancement components" option. 
    9. Click on display button. 
    10. Select the function exits "Exit_SAPLRSAP_002" it will open the include program "include zxrsau02". 
    11. Double click on "zxrsau02". 
    12.You will find the case program with datasource name. 
    13.Choose your master datasource & check the table names & the logic. 

  • Enhancing master data extractor

    Hi,
    I am trying to add some fields to the 0customer_attr extractor.
    I did the following went to RSA6 enhanced the append and then removed the check mark from the hide and field columns.
    In rsa3 its not getting populated. am i missing something.
    thanks
    a

    hi,
    do you write the user exit code zxrsau02 to populate the new fields ? can more detail get from which table-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.

  • Enhancing Master Data Attribute Datasource with a Key Figure

    Hi All,
    I need to add key figure 0PRICE as a display attribute of characteristic 0XYZ.
    I enhanced the datasource 0XYZ_ATTR, by adding an append structure to BIW_XYZ. Do I need to add a currency field to the append structure? Where do I reference this currency field? Your input is greatly appreciated. Thank you.
    Juice

    Yes, you need to include a currency field, at least when you get to the BW side (mapping) ... In this case, if you use 0PRICE, you need to include 0CURRENCY...
    You can either assign it in the ABAP routine for the InfoObject Attributes in CMOD or once you do the mapping in BW... Either as a fixed value or transferred from R/3, if you added it to the enhance structure and assigned a value to it in your CMOD include...
    0MATERIAL is a good reference to look at for this kind of scenario...

  • Enhancing master data datasource

    Hi there
    Some time ago i enhanced a masterdata infosource (0project_attr) by adding new fields to a append structure. This works fine without problems. Now i needed to ad one more field. I did that without problems in the appendstructure however the new field is not displayed at the Datasource screen (TC SBIW - Datasource 0project_attr and display).
    This means that the field is not moved to BW even after replication. It seems like the extract structure is not activated/generated proberly at the second enhancement.
    Chris

    Hi Chris,
    create a little abap in se38 with the following content:
    update roosfield set selection = space
    where  oltpsource = <your datasource>
    and    objvers = 'A'
    and    field = <your fieldname>.
    regards
    Siggi

  • MASTER DATA ENHANCE MENTS

    hi all
    1. how to enhance Master Data 
    could any one help me wt are steps /procedure to be follow?
    thanks

    below thread can help..
    Re: enhancements
    Vishvesh

  • Problem load master data

    Hi experts
    I am trying to load master data 0MATERIAL ATTR, there is no error when load into PSA but when I did load into IO it shows error as below:
    Too many error records - update terminated
    Example:
    Record 1 :0MATERIAL : Data record 1 ('000000020000000001 '): Version '000000020000000001 ' is not valiad RSDMD 194
    Please kindly advice if you have any idea how to fix the problem.
    Thanks in advance
    Angel

    Hi Angel,
    There might be a problem in data from source system. Check the tech spec of the info object like type length etc.in BW. then check with the data in PSA.
    Hope this will help.
    Assign Points if helpful
    Regards,
    Ramesh

  • Loading data from one master data to another

    Hi
          I have scenario where i have to load a master data (ZMATERIAL) which is exactly a copy of another Master Data (0material) ..Is it possible to load the data from 0MATERIAL to ZMATERIAL (Both are in BW side ) ...if yes please tell me the procedures.
    Regards
    Siva

    Hello Siva,
    be carefull what you ask for
    The created data source of 0MATERIAL will not be harmfull to your system It is just a data structure which you use to create an update rule between 0MATERIAL and ZMATERIAL.But are you sure that is what you want ? In this case you always have to load data to 0MATERIAL first and to ZMATERIAL after that.
    Perhaps it would be easier to use infosource 0MATERIAL_ATTR for ZMATERIAL too. 0MATERIAL_TEXT on the other hand is a pure Text Infosource and you have to decide to use it on 0MATERIAL or ZMATERIAL. You could create a new Datasource in the source system to provide you wih the Material Master data text.
    Hope this helps.
    Kind regards,
    Jürgen

  • Initial Load for Master Data from R/3 to CRM

    Hi Middleware Experts,
        I have an ambiguity on initial load of enhanced master data from R/3 to CRM. The current situation is
    1)I have already enhanced master data on R/3 side with some additional fields. Now shall i go ahead with standard intial load of these Master data to CRM without creating middleware interfaces to map those enhanced fields on CRM side?
    2)Also after doing initial load from R/3 to CRM, if I develop middleware interfaces for mapping these new fields of master data and then again do the initial load, so that new fields also get mapped, will the initial load be done properly as i have already done it once? will it overwrite the previous initial load data on CRM side properly?
    Please suggest whether it can be done or not and which is the better option.
    Regards,
    Rahul

    Hi Rahul,
    Since you have not done the mapping yet the middleware will not bring those fields to CRM it will work just like a standard initial load without considering the enhanced master data field.
    When you develop the middleware interface and enhance the CRM data structure also and then you can see the exchange of those fields through MW. You can start the intial load at that time also its not that you can do the initial load just once. But the better option would be that you avoid doing initial load several times because its time consuming activity. You do all the enhancement and then finally perform the initaial load.
    <b>Allot points if my post helps!!</b>
    Best regards,
    Vikash.

Maybe you are looking for