Navigational Attributes as Selection Criteria in Infopackage?

Is it possible to use navigational attributes as selection criteria in the infopackage?  I have the MRP cube that only does full loads.  I would like to ONLY load the material type FERT (finished goods).  0MATERIAL has 0MATL_TYPE as a navigational attribute.  I would like to put 0MATL_TYPE in the selection criteria in the infopackage.
If this is possible, please let me know.  The only other way I have come up to do this is to load in one cube and then use and APD to load into another cube.  I would like to avoid this if possible. 
Thanks,
Brent

Hi there,
you can try this:
create a routine in 0material infoobject.
And put this code in the routine after the part where this appears:
*       Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line        *-*
data: l_idx like sy-tabix.
read table l_t_range with key
     fieldname = 'MATNR'.
l_idx = sy-tabix.
after the *.... delete all the code there and insert this one:
  data: i_table like /BI0/PMATERIAL occurs 0 with header line.
  data: t_range TYPE rssdlrange.
select * from /BI0/PMATERIAL INTO TABLE i_table
  WHERE OBJVERS = 'A' and MATL_TYPE = 'FERT'.
  clear t_range.
  t_range-IOBJNM = '0MATERIAL'.
  t_range-FIELDNAME = 'MATNR'.
  t_range-SIGN = 'I'.
  t_range-OPTION = 'EQ'.
  LOOP at i_table.
    t_range-LOW = i_table-MATERIAL.
    APPEND t_range to l_t_range.
  endloop.
p_subrc = 0.
Save it and execute the InfoPackage. It might take a while to execute the infopackage.
Diogo.

Similar Messages

  • Navigation attribute as selection criteria for automatic forecast model

    Hello Experts,
    I have a requirement like this.
    In Transaction /SAPAPO/MSDP_FCST2, I enter a planning area and click execute.
    Then I create a selection (using selection management button). But here I am not able to see the navigational attributes as a selection field.
    Could you please let me know how I could use this as a selection criteria?
    Can I use the method SEL_CHANGE of the BADI /SAPAPO/SDP_FCST5 for implementing this?
    Please suggest.
    Thanks,
    Suresh

    Hi Manimaran,
    Thanks for your reply!
    I hope you could have created a selection using the Create Activity and assign activity to a job. And during this part, for assigning the selection to the job, we could use the selection created in Interactive planning - Tcode /SAPAPO/SDP94.
    The problem is what if the planners are not given authorization for the creating the job or activity. And what if the planners do the model fitting for a product/location and he wants to exclude it from the selection.
    Thanks and Best Regards,
    Suresh

  • Using navigational attributes in selection for a forecast profile

    Hello All,
    I could understand that the forecasting can be done on navigational attributes.
    But when I goto transaction /SAPAPO/MSDP_FCST2, I could not create a selection on navigational attribute.
    Because I could not see the navigational attribute field in the selection screen for selection criteria/profile creation.
    Does anyone have any idea of how to do this?
    Also I saw the method SEL_CHANGE of BADI /SAPAPO/SDP_FCST5. But the documentation is confusing, since it says that using this method, we could delete the navigational attributes from the selection condition. Could any one suggest me how to use this BADI if I cannot create a selection with navigational attribute?
    Thanks,
    Suresh

    Hi Sunitha,
    Thanks a ton for your reply.
    The real problem is the OSS note is confusing.
    OSS Note for this method says "This method can be used to change the selection to be stored in
    in the generated selection table. Navigation attributes can be removed, such as the function of assigning a forecast
    profile to the selection can also be allowed for selections with navigation attribute without a basic characteristic."
    I am really confused what it says.
    If we can't create a navigational attribute for a selection, how could we delete it from a selection?
    Thanks,
    Suresh

  • Navigational attribute in selection screen gives no applicable data

    Hi Gurus
    In the report i am using the navigational attribute in the selection screen.e.g Brand (attribute of material)
    My problem is whenevr i enter value in the navigational attribute (brand)  in the selection screen and execute  its says no data found.
    If i do not fill this parameter and fill only the parent attribute (material)  in the selection screen  , then i can see the results and from its properties  (drilling down )i can see the values of brand .
    If the values of brand exist why via selection screen its not giving vales, However Via material i can drill down and see brand values.
    I have done all the necessary steps to make this attribute as navigational.
    On top of this i have this same navigation attributes as one of the characterisitc in the cube.
    Thanks
    DD

    Hello,
    I've the same problem... for new nav. attributes for 0Material.
    Settings for nav. attibutes in BEx Q.D. are OK.
    But in BEx Analyzer:
    1- not display all values for this attributes. Some values are displayed, some don't.
    I try display it with and without selection screen.  The result is the same.
    2- I try to display (normal) attributes - not nav. In this case everything is OK.
    But I've 2 columns: normal attribute for all values and nav. attribute only with some values...
    (the query is something like: 0Material + 0Material_NOTnav_attr + 0Material_NOTnav_attr)
    It isn't a normal...
    I don't know... Maybe it's depend of the time?
    I can't clear all master data for 0Material, because they're used in some cubes. I had old characteristic without nav. attr. but with master data. I added nav. attr. in 0Material and activated it. Next I load master data (full method). Then I added nav. attr. in infocube, activated it, delete and load data into the cube (Init + Delta).
    If I display data for the cube in RSA1, I can see nav. attr. for all records. I can't see it in BEx Analyzer...
    Can U explain it?
    Thx,
    MSzN

  • Selection criteria for infopackage using 7.0 datasource

    Is it possible to have selection criteria on  7.0 flat file DataSource ?
    I have selected fields as Key Fields, Set the X in select DataSource  and chosen options of selections permitted, but still my InfoPackage  do not contain criteria for my key fields.  
    If this is possible, please let me know what steps are required?
    Thanks,
    Curt Timmerman

    Hello Curt
    this must be possible. Go to RSA1 and change your flatfile DataSource. On the tab "Fields" you can insert an "X" in the colum "selection". In addition to that, you can also add selection options. After these steps, the selection field should be visible in the infopackage.
    Best regards
    Martin

  • Selection Criteria in Infopackage

    Hello,
      Is there a way to use a single infopackage by passing different selection conditions thru' abap routine, for delta init.  We require this as we have to extract data based on the logged-in user.
      Any help is highly appreciated.
    Thank you very much,
    Raj

    Fake Delta means simulate Delta mechanism using Selcetion Conditions in InfoPackage ... So it's up to up the determination of the value data to be loaded: e.g. using FISCPER it's up to you the matter of loading data about 06.2004, 07.2004 ...
    You can input Selection Conditions manually, or via ABAP coding in your InfoPackage: for one or more fields you can set "TYPE" = 6 and then write your coding in order to set conditions .... Press "Routine Info" on top of the screen to get more info about.
    Hope it helps.
    GFV

  • Navigational Attrribute of 0plant in Selection criteria of the Report

    Dear ALl,
    We are facing an issue where we ares entering the inputs for Report Selection Criteria
    plant
    fiscal year period
    currency type &
    company code ( company code is the navigation attribute of the plant )
    When we enter plant, fiscal year period & currency with out company code we get the output. But when we enter the value for company code it doesnt shwo the data it shows no applicable data found.
    hence i would like to understand whetther we can use the company code which is the navigation attribute of the plant in the selection screen of the report via a variable?
    If yes why is my report showing no applicable data found. Request your suggestion on  this.
    Thanks & Regards
    K janardhan Kumar

    Hi Janardhan,
    Please check if your Plant Master data is loaded as well.
    Another check you can do is, when you run the report only on Plant, Fiscper and currency, drill down on Company Code (which is attribute of Plant) and see the values you get there. That might give you a hint.
    Also, you can check if for the company codes you enter while selection, is there transactional data present for the corresponding Plant.
    Other than this, its perfectly alright to use a navigational attribute as selection filter in the report.
    Thanks,
    Abhishek.

  • How to Get Navigational attributes of dso in Report ...

    Hi i have a dso with many fields ,
    In the report i need to get some navgational attributes which are in dso..
    How to Get Navigational attributes of dso in Report ..??
    Thanks All..

    hai naiduz,
    in the dso u find folder with navigational attributes, there select the Navigation check box the fields which u need in the report.
    and further if ur dso through multiprovider and also identify them at multi provider level.
    then u will be able to see the fields at query designer level, then u can use the nav. fields u need in the report.
    regards,
    Vj

  • How to change Selection Criteria for a Business Content Data Source

    Hi Experts
    I am extracting data using 0CO_OM_CCA_9 Datasource. I would like to be able to select a range of Company Code (BUKRS) to pull in, but I cannot find a way to make certain fields available as selection criteria. When I go into "Change DataSource", I can unselect fields, and even select certain fields, but the option for most is grayed out.
    How can I make this field available as selection criteria in Infopackage?
    Thanks for the help.

    Its not that simple to enable a new selection for a Business Content Datasource, if its not already provided by SAP. Enabling new fields for selection should be accompanied by corresponding extractor code changes to process those field selections and use those selections throughout the extraction process.
    Solution for your problem would be create a custom extractor with all the logic of standard extractor (function module BWOMD_GET_CTRCSTA1 for 0CO_OM_CCA_9) and extra logic to process the new fields for selection.
    Hope it helps!

  • Attribute variable in a selection criteria

    Hello Experts,
           I have an attribute '***' under infoobject 'patient id'. I wanted to create a variable on '***' and use it in the selection criteria on a query. I need to get only two options i.e F(emale) or
    M(ale) but I get all the options of 'patient id'. Is it possible to create variables on attributes and use them as the selection criteria? It would be great if someone could refresh me.
    Thanks,
    Anjali

    Hi!
    anjali I created a simmilar  senario in my system. It works fine with me. I have following conditions
    1) maitained masterdata for this *** infoobject
    2) maitained ***  as a navigational attribute in patient attributes and activated the patient
    3) maintained the *** attribute as a navigation attribute in ods object
    4) created a query which display my data based on ***
    5)created a variable with userentry  opetion with no default values.
    6)activted master data once again after this step
    I ods object i added the person(patient) in my data part and the *** attribute in navigational attribute section is displayed as  ZIOPERS_ZGENDER and ticked as navigational attribute.
      finally it is working  with my system. it is displaying only F and M values in variale entry scrren help. try closing the Bex and then restarting it.
    hope this info helps you
    with regards
    ashwin

  • Selection criteria with Nav Attribute

    Hello,
    I have a scenario where I added a navigational attribute in APO BW. The nav attribute is reflecting correctly in Master Planning Object Structure. But it is not reflecting in the selection criteria in interactive planning.
    Please help.
    Regards
    Steve

    Hello,
    That is great point. I tried to edit the planning book and in the characteristics tab (in the edit mode of planning book) the new attribute is not reflecting in the planning area (which is on the characteristics tab on the right hand side) to take me to the left to planning book.
    I hope I am clear.
    Please help. I need it badly.
    Regards
    Steve

  • Navigational Attribute Filter value selection not showing full name

    Hi Experts,
    We are having Navigational Attribute TM Responsible. We have created variable in BEX for it. When we are searching for value selection for this in RSRT, its showing only last name and key part. But If I dont pass any values, and display the result its showing full name. Please find the screen shots.
    Customer needs full name to be available for selection in filter in above picture 1.
    Please suggest what needs to be done.
    Thanks,
    Govind

    Hi All,
    The issue is resolved. Making display as Long text at Infoobject level and at Query display level was not working. Hence I tried to change the display at Multiprovider level as shown below. This fixed the issue.
    Right click Navigational attribute -> Provider specific properties
    Made the display as Long text.
    This setting resolved the problem.
    Thanks for help and replies.
    Thanks,
    Govind

  • How to include Navigational attribute in the selection screen

    Hello All,
    Can any body please tell me how to include a navigational attribute in the selection screen in BEX?

    Let´s go step by step.
    In your example, you mentioned the characteristic called 0MAT_PLANT.  Its navegational attributes are allocated in the same dimension the main characteristic belongs.  So 0MRP_CONTRL, as a navegational attr. must be allocated in the same dimension as 0MAT_PLANT.
    1) In query designer in Bex (left pane) find the dimension where 0MAT_PLANT is allocated.  Find the navegational attr. in the same dimension, 0MRP_CONTRL.  Pls verify you are looking to a navegational attribute, activate technical names and the name of the attr must be 0MAT_PLANT__0MRP_CONTRL.
    2) Below the attribut (still left pane) you will find a Variable icon (yellow).  If you see the "+" symbol, it means that at least one variable exists (standar or not).  Open it and check if the variable suits your requeriment to set it in selection screen.  If not, create a new one (let me know if you need help with this task).
    3) Once you have your variable for the navegational attribute, drag and drop it to the design area (row, column, filter).
    4) Verify the order you want this variable to appear from the menu bar: Query properties -> Sequence of Entry Variables.
    Hope this helps.  Leticia
    Edited by: Leticia Laura Locatelli on Oct 1, 2008 10:41 PM

  • Selection of charateristic value by using a navigational attribute

    Hello all.
    I'm working on BW 2004s with the integrated planning. I have this case: 0material has a navigational attribute - 0customer.
    I have a variable on the navigational attribute (ocustomer) which prompts the user to select a customer. on the next step I would like to allow the user to forecast the values for the customer's relevant materials. this issue has a problem - since a BEx query acts as a filter - and if there's no suitable data in the cube - I won't be able to see the values in the rows so the user can perform planning.
    Do any of you experts have a suggestion regarding a solution to that issue?
    Thanks,
    Tomer.

    Tomer,
        As Andrew suggested what you would need is "Master Data" option as compared to "Posted Values" option.
    Hope this helps.
    Cheers
    Srini

  • BW ignores selection criteria in a Infopackage after transport

    Hi all,
    After transporting Infopackages with selection criteria the target system ignores them. If I create further Infopackages on the target system everthing is fine. It seems as if the criteria were not transported but they are displayed. I replaced the criteria, saved the infopackage again but this didn't solve my issue.
    We are using BW 7.0 Level 14.
    Any ideas?
    Many thanks, Dennis

    Hi Srini,
    thanks for your quick repsonse. I am talking about 10 Infopackages. I transported some of them again but always the same issue. I created new infopackages on production and indeed it works but I use them in process chains and therefoe I might change the chains on production. This is something I don't want to do.
    Any other ideas?
    Cheers, Dennis

Maybe you are looking for

  • Noisy Video Exports

    Hey When I export dnxhd or cineform, anything it is always noisier than what is displayed in premiere. Im on a pc have you experienced anything similar here are some pictures it is hard to see in compressed pictures but it looks like noise and bandin

  • Numbers with leading zeros

    I am using Framemaker 8 - unstructured. I have a requirement that the work packages/documents within a book contain an identifying number that begins with leading zeros and is four-digits long. This number also increments from one document to the nex

  • Change portal language via link

    Hi, I'm new to portal development. I've created custom link in the standard masthead. Like EN , when it's pressed the language of the user must change to english. Anyone know how to write this in code? Kind regards, Jonas

  • Ohio - Cleveland & Akron 3G iPhone Service

    I'm currently on the edge of purchasing a 3G iPhone and I had a few questions for people in the same area as me. I use Verizon right now and I don't have any problems with them at all, but their internet is slow and they don't have the iPhone. I've h

  • Handling JCheckBox events

    Hello, I need to implement a JCheckBox event handler that only runs its code when the user herself selects and unselects it. I used an ItemListener handler. My problem is that now whenever I change the selection of this JCheckBox programmatically usi