Using attribute variables in the planning folders

Hi all,
Is there way to use attribute variables in the planning folders?
There is a following situation. We have a number of cost centers (0COSTCENTER). Cost center has responsible person (0RESP_PERS) as attribute.
We planning some costs for cost center.
To select certain cost center to cost planning we created
variable ZVAR1 as type CHAR and placed this variable in the header of planning folder.
Now we have to restrict list of cost center for selection according to selected responsible person.
Of course, I can add 0RESP_PERS to my cube, create variable ZVAR2 as type CHAR based on this character. Then place this variable to folder. For variable ZVAR1 use type of replacement as "User Exit" and ABAP routine will restrict list of available cost centers based on value of ZVAR2.
But... Is there way to use variable with type of attribute and place this variable to header of folder?
Thanks in advance!

Hi Dmitry,
    Yes, you can use the attribute variable in your folder.
    Just create attribute variable with 0COSTCENTER as the basic char and 0RESP_PERS as attribute.then when you create your folder with UPSPM, make sure to choose notweb-enable type then under the variable category you will see the the attribute vairable you just created at BPS0, just drug it to you folder, you are done.

Similar Messages

  • How to authorize users to change only Variable Values for Planning Folders

    My users want to be able to change the values of the Planning Area variables for the Planning Folders in SEM BPS. However I wouldn't like them to have access to change anything else except the variables.
    What is the best way to do this.
    Please let me know
    Thanks

    Hi Arvind,
    If they are variables to be set by the users, change the type to user specific variables and check the values can be changed by user check box.
    M.

  • BPS - Hierarchy variable: limitations in planning folders...

    Hi,
    We are using a variable of type hierachy for the selection of the cost centers within the planning folders across our cost center planning application.
    We are using a hierarchy with roundabout 5000 cost centers. The variable forces the user to expand the hierarchy to the desired level in order to select the cost center. There is no way to enter the cost
    center manually when using the hierarchy variable, and no search function is available to find a cost center in the hierarchy.
    Those are cumbersome limitations especially when users are used to the R/3 or BW hierarchy search.
    Is there any way BPS can allow for direct input (in addition to selection via the hierarchy) when using hierarchy variables, or a least a search function?
    Thanks!!
    Olivier

    I don't know if this will help in your situation but I have a similar variable based on Profit Centre.  Within the hierarchy the users are responsible for a small number of Profit Centre Groups (defined as hierarchy nodes in the tree).  I have set the variable as user specific and each user has the Profit Centre Groups assigned that they are responsible for.
    This variable is then linked to a variable selector, as a dropdown, within my web app and only allows the user to select Profit Centre Groups they are responsible for.  When an entry is chosen the Profit Centres below that part of the hierarchy are displayed in the layout.
    Regards,
    Mat

  • Is it possible to transport variables without the planning areas??

    Someone knows if it's possible to transport variables without the planning areas, only the variables?
    Regards
    Guilherme

    Hi,
    Yes, if the p.area is available in target system.
    Use this report: UPC_TRANSPORT_BPS_ALL
    Regards,
    Suan

  • Using a variable as the comparison set with the IN clause

    I am attempting to use a variable as the comparison set in an IN clause:
    if <var> is not null and <var> in (<variable>) then ...
    if <var> = 'X' and <variable> = 'X','Y' this statement evaluates to FALSE. If, however, I write
    if <var> is not null and <var> in ('X','Y') then ...
    the statement evaluates to TRUE. Is there a way to force evaluation of a variable prior to executing the statement?

    Kumar
    That is neat trick and an good example of lateral thinking. However, there is a slight problem with it in that this is true:
    instr('1APC2', 'APC')
    whereas this is false
    'APC' IN ('1APC2')
    However, it did inspire me to produce an even neater trick:
    create or replace function my_in
    (in_value IN varchar2, in_string_list IN varchar2)
    RETURN boolean
    AS
    larray_string DBMS_UTILITY.uncl_array;
    ln_count INTEGER;
    return_value BOOLEAN := FALSE;
    lv_comparator VARCHAR2(4000);
    BEGIN
    DBMS_UTILITY.comma_to_table(in_string_list, ln_count, larray_string);
    FOR rownum IN 1..ln_count
    LOOP
    IF larray_string(rownum) = in_value
    THEN
    return_value := TRUE;
    EXIT;
    END IF;
    END LOOP;
    RETURN return_value;
    END;
    Note that the in_string list parameter must be COMMA separated, and spaces will be treated as values. Hence
    declare
    lb boolean;
    begin
    lb := my_in('APC', 'DEF,APC,ABC');
    if lb = TRUE
    THEN
    dbms_output.put_line('FOUND');
    else
    dbms_output.put_line('NOT FOUND');
    end if;
    lb := my_in('APC', 'DEF, APC, ABC');
    if lb = TRUE
    THEN
    dbms_output.put_line('FOUND');
    else
    dbms_output.put_line('NOT FOUND');
    end if;
    end;
    produces the following output:
    SQL> @tstrun
    FOUND
    NOT FOUND
    PL/SQL procedure successfully completed.
    SQL>
    Kindest regards, APC

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

  • Creating variables in Process Flows and using thse variables in the filter

    Hi,
    I am new to OWB and in learing stage. Need to information.
    *1. as to how pass/create/use variables to OWB mapping ?*
    *2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
    *3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
    can you please provide the above details and guide me / help me in this regard.
    Thanks,
    skms.

    1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
    2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
    3. May be appropriate to use CONSTANTS instead of parameters.
    Regards
    Si

  • Use a variable for the integer in Fmt offset modifier

    I'm trying to pluck values out of a long array of comma separated string
    values.
    I'm doing this within a loop and would like to use the loop interation to
    point to the starting point in the array.
    Here's what I have working so far:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf);
    Works great.
    Now if I go in and change i0 to i3 then my modifier doesn't start looking
    for a comma "," until after the 3rd character. Still working great. However....
    If I try to use an integer called "loop" instead of the literal offset
    value it blows up:
    Fmt (scratch,"%s<%s[iloopt44]",transmitBuf);
    Is there a way that I can use a variable for the integer portion of the
    offset modifer?
    Thanks All!

    Hi Roberto
    Thank you. I actually need to use a symbolic value for the interger section of the modifer vs. the specifier.
    So, in my example:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf); 
    I want to make the following substitution (Assume z=0)
    Fmt (scratch,"%s<%s[izt44]",transmitBuf);
    Some background...
    I'm looking to loop index through a long CSV string array (transmitBuf) that looks like this:
    1,PEEP,7,6,,,21,20,
    So on my first loop when I use the following:
    Fmt (scratch,"%s<%s[i0t44]",transmitBuf); 
    scratch = "1"
    ... Perfect. I now do a string length of scratch (which equals 1)
    and add 1 to it, I'm ready for my next loop which would
    literally read like this:
    Fmt (scratch,"%s<%s[i2t44]",transmitBuf); 
    However, I want to put this inside a loop, so I would like to
    increment a variable (++z) and use the following:
    Fmt (scratch,"%s<%s[izt44]",transmitBuf); ---- Ka-Boom!
    So it's the use of the variable in the modifer that blows up
    the Fmt command.
    appreciate any thoughts...
    Thanks
    Mark

  • Using bind variables in the model view for master detail

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

    Hi all,
    I have a master-detail views setup on the following two queries.
    In the first query below - I use two bind variables to collect the start and end date.
    you have to add (and :startDate = :startDate and :endDate = :endDate) or you will get errors - bind not defined in sql
    I then use the viewQueryCriteria to collect the data on a search panel - so far so good. (Make the bind variables required) along with the other criteria.
    The bind variables are displayed in the search panel and the data is entered correctly.
    The query executes and all is happy.
    VIEWOBJECT1
    SELECT DepositAccounts.COA_ID,
    ... ChartOfAccounts.ACCOUNT_CODE || ' ' || ChartOfAccounts.ACCOUNT_TITLE as description
    FROM DEPOSIT_ACCOUNTS DepositAccounts, DEPOSIT_ACCOUNT_DETAILS DepositAccountDetails, CHART_OF_ACCOUNTS ChartOfAccounts
    WHERE DepositAccounts.ID = DepositAccountDetails.DEP_ACC_ID
    and ChartOfAccounts.id = DepositAccountDetails.COA_ID
    and :startDate = :startDate and :endDate = :endDate
    Now I add the summation of a value (AMOUNT) to the view object (java - create view impl) to the VOViewRowImpl
    and everything works - the value is shown in the transient attribute formatted and looking nice.
    VIEWOBJECT2
    SELECT PostingBatchAccounts.AMOUNT,
    FROM POSTING_BATCH_ACCOUNTS PostingBatchAccounts, POSTING_BATCHES PostingBatches
    where PostingBatchAccounts.PB_ID = PostingBatches.ID
    and PostingBatches.SOURCE_DATE between :startDate and :endDate
    Now I need to add the start date and end date to the child query - before the view executes (or the summation is calculated).
    The attributes are in the where clause (PostingBatches.SOURCE_DATE between :startDate and :endDate) in VIEWOBJECT2 which is the child.
    I need the child records and the summation to work with the date restrictions.
    I would assume you could get access to the child view in the VOViewImpl file and set the bind variables there.
    Everything I find is based on the JSF - not the model layer - this should be fairly easy (and common). can anyone give me a hand on this?

  • Using a variable for STS Planning Sequence

    Hi guys,
    I would like to execute planning sequence when users approves data for Profit Center in STS. The filter used in the planning sequence have a variable for Profit Center. This is not working.
    Whats the altenative of using a variable Instead of creating planning sequence for every profit center? Pls assist

    The planning sequence runs when the user approves on STS. The planning sequence runs for all profit center (this is a variable in the filter). I want to execute planning sequence for the profit center level selected on STS.

  • How to use global variable defined in planning area in FOX

    Hi guys
    I meet a situation that needs to use variables defined in planning area in FOX.How to code?
    My situation as follows:
    Two variables are defined in planning area,one is zcomp_code,the other is zfiscyear.
    There are two key figures in the planning area,one is sales volume,the other is delta(%).
    I want to use sales volume multiplied by delta(%) in selected zcomp_code and zfiscyear by users.
    Anyone can help?
    Thanks in advance.

    Hi Eric
    check this example
    in fox you shoud declare your data and after call your variable
    after this you could easily operate on data using the f4 for definig the right fox operators
    DATA FYEAR TYPE 0FISCYEAR.
    FYEAR = VARV(PLANYEAR).
    {0COPANETRV, FYEAR,CRA,020} =
    {0COPANETRV,FYEAR,CRA,020} *
    ({ 0CP_DELTAB,FYEAR,CRA,020} + 100 ) /100.
    {0CP_DELTAB,FYEAR,CRA,020} = 0.

  • Using environment variables in the JAR manifest

    Hello,
    I need to make a JAR which uses some third party libraries located in the file system, in a path referenced through a environment variable (named for example ENV_VAR). Without using the JAR the application may be started by running:
    java -classpath %ENV_VAR%\lib\library1.jar;%ENV_VAR%\lib\library2.jar MyApplication
    So what is the syntax to refer to environment variable inside the manifest?

    I guess its not possible. If you look at the [Manifest specification|http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest] there is nothing that inidcates that environment variables can be used. The classpath attribute is specified as follows:
    The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. The application or extension class loader uses the value of this attribute to construct its internal search path.
    So actually, if it would be possible the ENV_VAR pathes must be set relative to your application .jar file.
    Why not just use a batch that sets up your command line as in the example and runs your app?

  • BEx Analyzer: Use Of Variable Values For Planning Sequence

    Hi experts,
    I want to start a planning sequence using a button item in a BEx Analyzer workbook. The planning sequence itself is defined with several variables, that are input ready. The same variables are used in BEx Queries that are bound to DataProviders in the workbook. Therefore the variables are filled by the user, if the workbook has been started. If the user wants to start the planning sequence, that is defined on the button item, the same variable values (which the user has already set in the beginning) should be used. But I didn't find a way to fill planning sequence variable from variables (like it is possible in the web interface using the DataBinding function). It seems, that it is only possible to set the variable with static values, that are defined in the button item. Am I erring in this point?
    Anyone here who can help me regarding this issue?

    Eitan Ohayon wrote:
    Why did you raise this question?,did you face any problem?
    Hi Eitan,
    The problem was, that the planning sequence worked fine in web but not in analyzer. The system told me in web, that several records had been read, created, changed and deleted. System messages in BEx Analyzer always indicated zero reads, creations, reads and deletions.
    Using your idea to set breakpoint in the INIT_EXECUTION method gave me the information, that all variables are not set or set with initial values (like '0000' for fiscal year). This seems to be the reason for my problem. Now I've reduced the planning sequence definition on the button only to that variables, that are really needed. Furthermore I defined the Command Range to get dynamic values for the variables from the excel sheet grid. So it seems to work.
    Thank you for your help!

  • Urgent!!! How to give a value to a BEx variable in the planning fuction?

    Hi all,
    does anybody know how can set variable's value in the palnning fuction (type exit) in IP?
    The two function modules in BPS which make this job don't work in the IP.
    thanks very much for any proposal.
    hongwei

    Hi,
    Reg the first part of the question, can you please explain how do you want to capture the variable for the custom planning function? Because, when I look at standard functions delivered by SAP, in the FROM CHANGE and TO CHANGE(for example copy function), we can select the BI variables or create new variables also.
    To pass the values to this variable from BEx Analyzer, we need to use the command range in BEx Analyzer and capture the values.
    I have used this approach to capture the BEx variable values into a FOX function using VARV function, but Im not pretty sure how to pass it to a custom planning function.
    Regarding the second part of the question can you pls look at FM :   RSPLSSE_PLSEQ_EXECUTE. I think you need to embedd your planning function into a sequence and call it with the above FM.
    You can also have a look at the ABAP program that is used to trigger a planning sequence by placing a breakpoint in any of the planning functions : "RSPLS_PLSEQ_EXECUTE" wherein you can pass the sequence name in the variant.
    Rgds
    Shyam

  • Medium description of Variable in the planning folder

    Hi Experts,
    In one of our planning folders the variable for infoobject(Cstcenter) is not put pulling the medium description in the varible section(Top part of planning folder) but same variable is pulling the medium descprion in the header of the layout (Bottom part of the llayout) with in the same folder. This problem is also for only few Costcenters, some costcenters it is pulling the data in both variable section and in the layout section
    Any thoughts on this . Please share me your ideas on this. I know this is very simple but little confusing Since the same variable is dipalying the value in place but not in other place. Anybody had this problem.
    Thanks in advance
    Best regards
    SAP

    Thanks for your reply Bindu. In both the places test replacement and char test defined as "Medium". It is dipaying the medium text in both the places for only few CC's, but few CC's it is not diplaying the descrption in the varaible section..
    Any other areas i need to check.
    Thanks in advance.
    Best regards
    SAP

Maybe you are looking for