Selection generated with Navigational Attribute and store forecast profile

Hi,
Our business has a requirement that will require for the solution a Forecast Profile to be stored against a selection which was generated with a navigational attribute in the selection. I have found two SAP Notes 329707 and 394076 shown below which point to BAdi /SAPAPO/SDP_FCST5 method SEL_CHANGE to do the job. Can anyone help me in understanding what coding we need to do within the BAdi to get this to work. Does anyone have an example?
SAP Note 329707
Method:
    SEL_CHANGE  (as of SCM 4.1)
    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.
    Parameter
     IV_PAREAID      Importing  Type /SAPAPO/TS_PAREAID
     CT_SELECTION    Changing   Type /SAPAPO/TS_IOBJ_SELECTION_TAB
Sample code:
    DATA: lv_tabix     TYPE sytabix.
    DATA: lt_chars     TYPE /sapapo/dm_int_chars_tab.
    DATA: ls_chars     TYPE /sapapo/dm_int_chars.
    DATA: ls_selection Type /SAPAPO/TS_IOBJ_SELECTION.
    IF iv_pareaid = 'PAREA1'.
      CALL FUNCTION '/SAPAPO/TS_PAREA_SINGLE_GET'
        EXPORTING
          iv_pareaid   = iv_pareaid
        IMPORTING
          et_chars     = lt_chars
        EXCEPTIONS
          not_found    = 1
          OTHERS       = 2.
      CHECK sy-subrc EQ 0.
      LOOP AT ct_selection INTO ls_selection
                          WHERE iobjnm NE '9AVERSION'.
        lv_tabix = sy-tabix.
        READ TABLE lt_chars INTO ls_chars
                            WITH KEY iobjnm = ls_selection-iobjnm.
        IF sy-subrc EQ 0 AND NOT ls_chars-atrnavfl IS INITIAL.
           DELETE ct_selection INDEX lv_tabix.
        ENDIF.
      ENDLOOP.
    ENDIF.
SAP Note 394076
As of Release SCM 4.1, you can use the method SEL_CHANGE of the BadI /SAPAPO/SDP_FCST5 to process the selection before saving it to the generated selection tables. This allows you to save selections with navigation attributes, for example, where the selections do not have a specified basis characteristic. You simply need to delete the navigation attributes from the selection.

Is all the Navigational attribute checked for display during cube creatiion?
Prathish

Similar Messages

  • Navigational attribute and FOX in IP

    Hi,
    I have experienced a strange behavior of a FOX.
    This is a copy from ACTUAL InfoCube to PLAN InfoCube, keyfigures are different.
    In the ACTUAL one, we have only cost center and profit center as navigational attribute. In plan, we have both. Here is the fox (operand is KF, infoprovider, profit center) :
    {KF1, ACTUAL, PC01} = {KF3, PLAN, #}.
    I doesn't work in IP (no data are read from the reference). We tested it in BPS and it works.
    For me, this is the right syntax since profit center is not is the ACTUAL cube.
    After that, we removed profit center from the operand (PC01 is a constant in the filter).
    Here is the new fox (operand is KF, infoprovider) :
    {KF1, ACTUAL} = {KF3, PLAN}. This fox is not supposed to work because it should try to read reference data with profit center PC01. But it works !!!
    After saving data, we noticed that the fox copies every records from the ACTUAL cube with navigational attribute profit center = PC01.
    Did you ever experience that or I missed something ?
    The system seems to take into account the value of the navigational attribute.
    Thanks

    Hi Jaques,
    I guess you have a MultiProvider and you have mapped the Characteristic PC from the plan cube and the navigational attribute from the actual cube both to the characteristic in the multiprovider.
    Then it is correct, that the sytsem does the selection on the char in plan and the nav in actual.
    regards
    Cornelia

  • Inconsistencies with Navigation Attributes

    Hello all,
    We are experiencing some inconsistencies with navigation attributes. Attributes are flagged as navigational on the InfoObject Level and also selected in the InfoProvider's Navigation Attributes folder. However some of them are showing in the Query as Navigation Attributes while other's don't. The same process was followed for all of them. Any ideas why this might happen?
    Thank you so much!

    Take the "Company", "Area" and "Department" out from the attribute list of the Org Unit !!
    then delete  "Company", "Area" and "Department" one by one ..
    And then try deleting orgunit ..
    Regards.

  • #MULTIVALUE on ratios with navigation attributes

    Dear All,
    I have some problem with table where I put only navigation attributes and ratios... the colomns ratio is "MULTIVALUE" value..
    I would like aggregate ratio on the table...
    Workaround ? Solution ?
    Thanks
    Cédric
    BO edge 3.1 SP3
    SAP BW EHP4

    Hi Igno,
    I agree that it still says that in the best practise (dated back in 2009!), but in my experience in the past years it doesn't work that well. Unless you tailor your BEX query one to one with a report that is... Not the intention of a universe i.m.h.o.
    For standard aggregation keyfigures I always set the aggregation to sum. So I only use database delegation if I really need it because it would not be possible for WebI (for example counts like number of stores with sales).
    Note that I also make sure that I retrieve data on the level that I need (by checking the number of rows retrieved for instance and comparing that with the number of lines in the report. So the database will do all of the aggregation it can do already!
    So you do NOT get the sum a second time! You get it only once, only who handles the summing within the results is different, with database delegated, it is BW, with sum it is WebI. For a plain sum it is Webi and summing within the retrieved results can be handled by WebI perfectly fine (and will match with sums by BEX where you have them) !!!
    Letting BW handle the aggregations means it will retrieve all the extra aggregation points it can find in the report, but only if it can!
    In this particular case the attribute country of the customer is not a known aggregation level for BEX, so it cannot calculate it.
    Also if you create webi based groupings of dimension objects, or even want to re-format one (like month) it does not work.
    Furthermore, if you read my post correctly I do not mention "GROUP BY" but I do say grouping.
    For totals you will always have a certain grouping/combination of dimensions (whether you call them dimension objects (in WebI) or characteristics (in BEX)). I state that to calculate an aggregation for that combination the BEX query needs to have knowledge about it. If it has not, it cannot calculate...
    So I say it should be the preferred way to let WebI handle the aggregation,
    unless it cannot do this correctly, not the other way around.
    Thanks,
    Marianne

  • Navigational attribute and query result

    gurus
    i have business organization under which i have various materials. my data flows through ods into cube. and in the cube i have my business org and materials ids
    now the problem is some of my materials have changed Buss ORG like
    Mat 1    used to be under   Buss Org 1
    now
    Mat 1    is under    Buss org 2
    and when the users run the report they should be able to see mat 1 under buss org 2. (even the history should go under buss org 2)
    and now i have to change my design
    options i have
    1) since my data is available in ods if i propose buss org as a navigation attribut and create a new cube without buss org in the cube will it work
    2) i will go with the existing design and load the new data which mean i have two sets of data
    one with material 1 under buss org 1 (which is history) and
    material 1 under buss org 2 (from now)
    now if i propose buss org as navigation attribute and use this in query will i see both history data and new data under Buss org 2.
    please do reply
    thanks

    thanks for a very useful information bhanu
    lets say my records in cube are
    Mid         Bussorg         Qty
    10048        GMI             100
    10048        GMR             200
    now initially 10048 was under busorg GMI but its now under GMR.
    if i take BusOrg char into my query i will get two BusOrg for the same Mat
    i want even my history to be moved under new BusOrg
    its like when i run the report it should give me
    10048      GMR              300
    this is how i want the result
    if i propose BusOrg as navigational attr and take that into query will i get the same result?

  • Issue with Cash Management and liquidity forecast report

    Hello folks,
    I am working with cash management and liquidity forecast reports. While running the report for Cash management, as I drill down to planning levels and induvidual GL accounts for the bank accounts, the figures for GL acounts in report does not tally with actual GL balances. As I drill down to last level, it shows the GL balance display which is different from the values in the report. Can anyone tell me why it does not pick up certain values. I find that certain document type "DZ" values are not picked up by the report. Any suggestions?
    Also, I would like to know is there any way to cross check the values in Liquidity forecast report for sales orders, purchase orders and requisitons through any other report in MM and SD. Would appreciate if someone can respond to mu query.
    Thanks in advance,
    -NK-

    In se38, look for programs starting with RFFD*; there are a few for reconciliation of cash management with SD/MM/GL etc.

  • Absolute dynamic select query with dynamic join and where

    Has anyone ever tried creating an absolutely dynamic SELECT query with dynamic Join and Where conditions.
    I have a requirement of creating such a query in an Utility Class, and i have written the code. But its throwing my sysntax errors.
    Please let me know where am I going wrong OR is it really possible to create such a dynamic Query??
        SELECT (FIELDS) INTO TABLE IT_TABLES
          FROM ( (ME->TABLE1)  inner join ( me->table2 )
          on ( on_condition ) )
          WHERE (me->where_fields).
    Ags.

    It worked for me in a following way:
    select * into corresponding fields of table <result_table>
            from (join_string)
            where (l_where).
    Where the contents of join_string were dynamically build using concatenation. So it will be something like
    concatenate ME->TABLE1 'as a INNER JOIN' me->table2 'as b ON (' into join_string separated by space.
    <...>
    add here matching/reference colums, something like
    concatenate 'a~' me->TABLE1_JOIN_COL into temp1.
    concatenate 'b~' me->TABLE2_JOIN_COL into temp2.
    concatenate join_string temp1 '=' temp2 into join_string separated by space.
    <...>
    concatenate join_string ')' into join_string separated by space.
    And then use similar approach for l_where variable.

  • I need only to select node with "NodeName" (or/and Number) in a Java Tree

    I need only to select node with "NodeName" (or/and Number) in a Java Tree. Can anybody help me? Thanks a lot

    http://www.jetbrains.com/idea/openapi/5.0/com/intellij/util/ui/tree/TreeUtil.html
    http://www.tangoone.com/swf/docs/javadocs/org/swf/components/TreePane.html
    I fin SelectNode() function here - but I don't know how to connect these clases

  • Making a VO with programmatic attributes and rows

    Dear Guru's!!!
    May I have your opinion on the following requirement...
    One database table with the following attributes:
    ID_COLUMN, NM_COLUMN, TYPE
    If I execute this statement:
    SELECT ID_COLUMN
    , NM_COLUMN
    FROM MASTER_TABLE
    WHERE TYPE = 'EMPLOYEES';
    I get the result:
    EMPLOYEE_ID
    EMPLOYEE_NAME
    SALARY
    The requirement is that I have to build now a RichTable use the attributes returned by this query (EMPLOYEE_ID, EMPLOYEE_NAME and SALARY).
    I suppose that I have to create a ViewObject wich attributes and rows are populated at runtime (unknow columns at design time).
    Anyone have any idea about how to do that??? Maybe a best practice or something like that...
    I was reading this Oracle Tutorial http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#sm0341
    but there is only two lines (39.1.8 Creating Dynamic Attributes to Store UI State) of how to create dynamic attributes.
    Using JDeveloper 11.1.2 and Windows 7 x64.
    Thanks in advance!
    Renan.

    You may go through this blog
    http://jobinesh.blogspot.com/2010/06/model-driven-approach-for-building.html
    which explains your use case.
    Thanks,
    TK

  • Navigational Attribute and Hierarchy

    Hi All,
    We are loading customer master from DB Connect to infoobject "ZCUSTID". Now Company type description (ZCMPINDS) is Navigational Attribute of ZCUSTID. And we are loading flat file hierarchy for ZCMPINDS with two external characteristics (ZMKTSEG and ZINDSEG).
    We have created test query and we maintained necessary setting for Hierarchy but we are not able to drill down to hierarchy for ZCUSTID. Mainly we are not able to see ZINDSEG and ZMKTSEG in report.
    Kindly suggest some solution.
    Regards,
    Sohil Shah.

    Hi Sohil,
    In Query designer : right click on ZCUSTID, there you have to select attributes of  ZCUSTID ,find ZINDSEG and ZMKTSEG  select them .
    Hope it heps.......
    Thanks
    chandra sekhar

  • Create restricted key figure with navigation attributes

    Hi,
    I need to create a restricted key figure using attributes of 0BP_COMPET.
    On my report is :
    Competitors (0BP_COMPET)
    Quantity
    Active Competitors = Expiry Date of Minority Status greater than or equal to system date
    Inactive Competitors = Expiry Date of Minority Status less than to system date
    Note : Expiry Date of Minority Status is a navigation attribute of 0BP_COMPET and system date is generate by variable 0DAT - Current Calendar Day (SAP Exit).
    How can i apply the formula?
    Thanks

    Here's a good How to Document that explains what you are trying to do ....
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc
    It is called How to.... Calculate with Attributes.
    Brian

  • 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

  • Problem with settype, attribute and DDIC COMT_PROD_MAT_MAINTAIN_API

    Hello,
    I want to implement the BADI IDSSI_DISPLAY_TO_POD in CRM. The OSS Note number 573078 specify the code that must be integrated in the program of implementation of this BADI.
    I want to insert a specifical set type with several attributes.
    Before using the set type in my program, i have to transport this set in order to assure that the fields of this new set type would be include in the structure DDIC COMT_PROD_MAT_MAINTAIN_API. I did it.
    There is my problem : in the generated code of the OSS Note, there is :
    ISU_CUST01_TAB = SETTYPE-ISU_CUST01.
    with :
    SETTYPE a table like structure COMT_PROD_MAT_MAINTAIN_API
    ISU_CUST01_TAB TYPE ISU_CUST01_MAINT_T,
    ISU_CUST01 TYPE ISU_CUST01_MAINTAIN
    After creating settype, I verify that ISU_CUST01_MAINT_T and ISU_CUST01_MAINTAIN exist. this structure are generated when creating a settype.
    during the control of the program, I obtain this message :
    Field ISU_CUST01 can't be found in table settype.
    I don't understand how I can use my settype, like it is specified in the OSS Note.
    I will appreciate any help about this topic.
    Regards,
    Vincent UNGER

    Hi ,wyee .
       I  do it but not through your FMs , i think you can do it by the FM :
    create/change the material  CALL FUNCTION 'COM_PRODUCT_MAINTAIN_MULT_API'  
    IMPORTING  
       ET_BAPIRETURN  = LT_RETURN[]   
    CHANGING  
       CT_PRODUCT     = LT_PRODUCT
       EXCEPTIONS  
       INTERNAL_ERROR = 1     
       OTHERS         = 2.
    This FM can create or  change the material in the crm ,and can maitain data except conditions , like basic data ,like relationship .

  • Data issue with Navigational Attribute in the report

    Hi Experts,
    We have a report which has Material and Material Group in the report. Material Group is a navigational attribute of 0Material. We have some 31 material groups in the ODS. However, the report is diaplaying only 3 material Groups. If I use Material Group directly( not as an attribute of material) then it is displaying all the 31 material groups correctly.
    We have a hierarchy which is loaded through Flat file on Material Group. We need the hierarchy to be displayed for all the material groups in the ODS. Please let me know what could be causing this issue?
    Thanks and Regards,
    Kavitha Jagannath

    Hello Kavitha,
    Check if the Material Masterdata is having these Material groups. If not then load this Material masterdata and activate it.
    As your query is using Material group as Navigational attribute then the data should come from this Material Masterdata.
    If your Material has only 3 of th eMat Groups then report will show only 3. Better update this Material masterdata.
    Regards,
    Pratap Sone

  • HT201250 Can I back up with time machine AND store additional files on the same external drive?

    I just bought an external drive to move and archive some files off my iMac to free up some space. I'm being asked if I want to use the drive to back up files with Time Machine. Can I use this drive to do both? (Back up with TM AND store other files?
    Your input is appreciated.

    Technically you can but it is not a very good idea at all. The reason it is a flawed idea is if the HD fails (not really if but when) you will have defeated the whole idea of backup. A failure means you will lose the data files you stored on it and it's backup! A good backup plan has at least 2 forms of backup because backups can fail too. I would strongly recommend getting at least one additional external HD and use it for storing the data files you wanted off the internal HD and use the second for a Time Machine backup drive.
    Personally I have 3 external HD's attached to my computer. Disk 1 is my Time Machine backup, Disk 2 is a Bootable Clone of my internal HD and Disk 3 stores my music, photography and movie libraries.
    Please read these articles, they will discuss different backup strategies and I think you will see that each suggest redundant backups.
    Backup Plan I
    Backup Plan II
    Backup Plan III

Maybe you are looking for

  • Error in activating  the update rules

    Hi All I am getting an error while activating Business Content update rules. I have activate Cube and corresponding InfoCube and was trying to select update rule for the Cube and installing it. It however gives an error saying Update Rules (Technical

  • The Move Tool not working in InDesign CC 2014, no click-and-drag. What Can I do to fix it?

    It just started not working this week. I am unable to click-and drag anything in my document with the Move Tool. I have noticed that I can click-and-drag objects if I switch to the Free Transform Tool. Ok work around for now but I want to fix the iss

  • User Exit in F110 ( Automatic Payment Run Transaction )

    HI all, I trying to find an User Exit, where i can get the 1. Run Date 2. Identification used in F110 transaction. I needed this to code for a 'Change Variant' for my custom program which is added to F110( PrintOut/data Medum). I tried to use Exit :

  • Copying A DVD...

    A friend of mine lent me a DVD he made of various music videos. Now, I want to make a copy of it, but I don't know how. Someone mentioned something about Disk Utility and making a Disk Image or something... Anyway, what I want is an exact copy of the

  • Germany Tax Audit GDPdU

    Dear Experts,     Wea re going to ahve the tax audit in the last week of february. I am supposed tow ork on the extraction of the relevant data from SAP. My question is what are the tables should I use to extract the data from? What are tables involv