Clear Flag for BPS user-specific variable values

Hi Experts!
I have a 'user-specific variable' settintg with the flag 'on', then the user should choose only one value. 
But now I need execute an abap program which read all values available for this variable. For this reason, I need clear this flag with abap code, and after put on again.
Could somebody show me a small piece of abap code for this?
Thank you in advance!

Hi,
Analysis of your question:
<i>Second line of your question "...<b>which read all values available for this variable</b>".</i>
1) When you mean you wish to read all possible values with which the variable could be filled up, then please use the Function Module:
UPC_CHA_VALUES_GET 
The parameter <b>ETO_CHAVL</b> would then return all master data of the variable's characteristic
2) When you mean you wish to read all the variable values "<b>selected from the user in the past</b>" then use the function  module
API_SEMBPS_VARIABLE_GET_DETAIL
Here the table <b>ETK_VARSEL_ALL</b> returns you all the values selected by user in the past. The "<b>current selected value</b>" for the user is stored in the table "ETK_VARSEL".
Check out these How-To Documents. If these dosen't suffices, then please elaborate your requirement, for me to write a ABAP Pseudo-code.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/324de5a1-0201-0010-dc9a-a093cde87bb5">How to use Reporting Variables in BPS</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/650ee690-0201-0010-4bb7-83c3e2a74039">How to variable of type Exit</a>
Many regards.

Similar Messages

  • Clear BPS user-specific variable values

    Hi,
    Is there a way to quicly delete all the variable values (user ID and cost center) for a user-specific variable in BPS without access to the configuration (BPS0) or do I need to write a small piece of ABAP for that ?
    Thanks
    David

    Hello David,
    You either have to access the BPS0 and delete each of the variable values or write a little ABAP program. You could include this ABAP in a planning function type Exit so the user can press a button in a web interface or planning folder to delete the settings. The coding using internal methods you need is:
    DATA:
    lr_variable TYPE REF TO cl_sem_variable.
    Get variable instance
    CALL METHOD cl_sem_variable=>get_instance
    EXPORTING
    i_area = 'name of area where the variable is defined'
    i_variable = 'name of the variable'
    RECEIVING
    rr_variable = lr_variable
    EXCEPTIONS
    not_existing = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    do s.th., eg send a message
    EXIT.
    ENDIF.
    delete the restrictions
    CALL METHOD lr_variable->set_user_restriction
    EXPORTING
    i_user = 'user name, e.g. sy-uname'
    i_delete = 'X'
    EXCEPTIONS
    failed = 1
    OTHERS = 2.
    Best regards,
    Gerd Schoeffl,
    SAP NetWeaver RIG BI

  • BPS User-Specific Variables by Web

    Hi,
    I'm triyng to setup a CC planning interface for my company.
    I configured the levels and layouts and they work fine.
    I run the interface with the planning folders and everything works fine but when I setup the Web Interface tha layout stops working. The message is something like "Variable XXXX can't be specified".
    I'm using user specific variables in the planning level so every user can only see and modificate certain CCs.
    Any ideas?
    Thank you very much.

    Alejandro,
    Sorry, I had been at a new client this week doing a review and it is long hours so have not checked back. 
    The other discussions groups I participate on is e-mail based so only checking here when I have a block of time.
    What type of cost center variable are you using?  on 0costcenter or on the hierarhcy?  Are you using variable with user specific value or with of type authorization or something else?
    did you configure the web interface using web enabled layout or using Web interface buillder?
    Mary

  • Limiting the value help for a user input variable as required

    Hello Gurus,
    I have a requirement :-
    Restrict the value help for a user input variable in a query to only a required set of values instead of the default behaviour. ie instead of having all the values in the master data of that characteristics in the value help.
    How do I go about it? - Do I have to explore the precalculated value set feature?
    If so, please tell me how to go about it in BI 7.I would appreciate if you could explain it in detail rather than sending me a URL because I have gone through most of them but Iam yet to figure out how to create the broadcast setting and subsequent steps.
    Thanks for your time.
    Regards,
    Kris_Hitman

    I believe if the User doesn't want to see any particular values in F4 help then it means they are not intrested in viewing the transaction data related to those values.
    So why don't you restrict that object with the required values. Then the F4 help will automatically display only those values.

  • Formula variable for a user input DATE value

    Hi All,
    I want to create Formula variable for a user input DATE value as I need to use it in a formula to compare between user entry date & date in the DSO. Does any body has any idea about it?
    I tried to create formula variable with manual entry but then I am not getting DATE option.
    Regards,
    Sonal

    Hi ,
    You have to create a formula variable in the formula.
    The formula variable in the general tab would have the reference characteristic as your date characteristic on which you have created a user entry variable or on which you intend to create a date entry variable.
    Give the proceesing type as replacement path.
    Next in Replacement path mention you would replace the variable with value of another variable.
    Mention the variable name.(This is the actual varaible created on the selection screen),
    Also mention you would replace only from value/to value of the variable.
    Check the following help link
    [Replacement path type formula variable|http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm]
    Hope this helps,
    Best regards,
    Sunmit.

  • BPS User Exit Variable based on Planning Package Selection

    Hi,
    I'm implementing a SAP BW-BPS planning layout to be integrated into the CRM we user interface.
    Most of the characteristic selections come from the CRM fields that need to be filled by the user when creates a trade promotion.
    The charcteristic selections work (as standard) just if in the planning level I flag "Selection in Package", then in package these selections are dinamically defined from what the user select in the CRM fields at runtime.
    My problem is that I have to build a BPS User Exit variable to filter, in the planning level, the proper Planning Area based on the CRM Sales Organization value.
    The characteristic CRM Sales Organization belongs to whose chararcteristic the value is determined dinamically in the planning package.
    Is it possible for a BPS user exit variable, set in the planning level, to catch the value of a characteristic selection made at planning package?
    Many thanks for your help.
    Alessandro

    Hi Indu,
    Many thanks for your answer.
    I have already took a look at the document posted by you but I didn't find the solution to my problem.
    This because i have to create a user exit variable that need to get the value of the characteristic selection in package.
    I mean in the planning level I will have the user exit variable that restrict the planning area and, his function module, need to read, at runtime, what is the value of the characteristic CRM Sales Organization restricted in package by CRM.
    So I don't have any idea to which BPS internal table I have referred to in my funcion module to catch the value of the CRM Sales Organization dinamically filtered by CRM.
    Many thanks,
    Alessandro

  • User-Specific Variable in Web Interface

    I have created a manual planning layout with User-Specific variables – one for Sale Group and one for Sales District.
    The variable successfully restricts user access to data when executed in SAP GUI.
    A Web Interface was successfully generated from the Planning Folder containing the manual planning layout described above.
    When I execute planning via the web, all possible values are displayed, even though the User-Specific variable limits this user to a single value for each variable.
    Is there a way to restore the restriction defined in the User-Specific variable ?
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder had to be set - but that field is protected from input.
    Any insights would be appreciated !
    Thanks,
    Lyle

    Narasimha,
    Each variable was created as :
    -     Replacement Type = User-Defined Values.
    -     Restriction of Values required by User = OFF.
    -     Input Allowed by User = OFF.
    Several users are defined within each variable.
    Most users represent Sales Representatives, with a single value assigned to each – a single Sales Rep is assigned a single Group and District ( i.e one-to-one relationship ).
    The other type user represents a Sales Manager, and includes all the values assigned to the Sales Reps reporting to him.
    When Restriction functionality is turned on, the following error message is received :
    Restrict variable UDSALDST (Sales District - User-Defined) (area ZBILLIC (IC Billings Estimate)) to single value
    <b>Diagnosis</b>
    Variable UDSALDST (Sales District - User-Defined) (planning area ZBILLIC (IC Billings Estimate)) is defined so that the user must restrict the values of the variable (indicator 'Restriction of values required by user' is set). However, you have not defined a restriction.
    <b>Procedure</b>
    Restrict the variable or change the definition of the variable so that restriction is no longer required.
    •     To restrict the variable, choose Goto -> Set variables and search for variable UDSALDST (Sales District - User-Defined) in the list. Make the restriction and subsequently continue the planning session.
    •     To change the variable definition, choose the tab page Variables in the context of planning area ZBILLIC (IC Billings Estimate) and reset the indicator 'Restriction of values required by user'.
    While the first option ( Goto > Set Variables ) seems to defeat the purpose of a User-Specific variable, I tried it.  When I use F4 to determine available values, it displays those previously assigned when creating the User-Specific variable !? – this doe not seem to add any more than I already have.
    The second option effectively puts me back to where I was when I posted the question.
    Of interest though, I noticed when the Restriction functionality was turned on, the “All” value previously displayed as available for selection was no longer available – but the specific values for each of the other Sales Reps continue to be reflected, and this user can select values related to another Sales Rep..
    As mentioned in my original posting,
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder has to be set – but that the field is protected from input.
    Should this object property be ‘open’ to permit input ?  If so, is there a step or setting that needs to be performed.  Could authorization be an issue ?
    Thanks,
    Lyle

  • I am not getting User Environment Variable Value

    Hi Team,
    I have been Trying to recover variables values using an anonym procedure from Windows XP SP3
    I have already executed following procedure.
    BEGIN
    DECLARE
    gf_filelog UTL_FILE.file_type;
    v_file_log VARCHAR2 (1024) := ' ';
    gv_path_log VARCHAR2 (1024) := ' ';
    gv_path_log2 VARCHAR2 (1024) := ' ';
    gv_file_log VARCHAR2 (1024) := ' ';
    BEGIN
    DBMS_OUTPUT.put_line ( 'obteniendo valores of vars: '
    || gv_path_log
    || ' '
    || gv_file_log
    DBMS_SYSTEM.get_env ('ORACLE_HOME', gv_path_log);
    DBMS_SYSTEM.get_env ('PATH_MODULO', gv_path_log2);
    DBMS_SYSTEM.get_env ('FILELOG', v_file_log);
    DBMS_OUTPUT.put_line ( 'valores vars ORACLE_HOME: '
    || gv_path_log
    || 'PATH_MODULO:'
    || gv_path_log2
                   || ' FILELOG:'
                   || v_file_log
    gv_file_log :=
    v_file_log || TO_CHAR (SYSDATE, 'yyyymmddHH24MISS')
    || '.log';
    DBMS_OUTPUT.put_line ( 'Nombre de Archivo creado'
    || gv_path_log
    || ' '
    || gv_file_log
    gf_filelog := UTL_FILE.fopen (gv_path_log, gv_file_log, 'w');
    DBMS_OUTPUT.put_line ('Archivo creado' || gv_path_log || ' '
    || gv_file_log
    UTL_FILE.put_line (gf_filelog,
    || TO_CHAR (SYSDATE, 'HH24:MI:SSSSS')
    || ']--> '
    || 'Prueba de escritura'
    || gv_path_log
    || ' '
    || v_file_log
    UTL_FILE.fflush (gf_filelog);
    UTL_FILE.fclose (gf_filelog);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    raise_application_error (-20000,
    '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    END;
    END;
    I show you data result after procedure was excecuted.
    obteniendo valores of vars:
    valores vars ORACLE_HOME: E:\oracle\product\10.2.0\db_1PATH_MODULO: FILELOG:
    Nombre de Archivo creadoE:\oracle\product\10.2.0\db_1 20111122171625.log
    [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    BEGIN
    ERROR at line 1:
    ORA-20000: [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    ORA-06512: at line 55
    I see that only ORACLE_HOME variable value was got, question is why, of course, variable values are already defined as user variables.
    Variables PATH_MODULO and FILELOG was defined using windows maintenance variable method, that is :
    1.- settings
    2.- system
    3.- advanced options
    4.- environment variables
    Here my oracle version
    SQL> select version from v$instance;
    VERSION
    10.2.0.1.0
    SQL>
    Is this an Oracle Issue or variables would be defined in another way?
    ORACLE_HOME VARIABLE was created when oracle engine was installed.
    I have got same result after computer was restart.
    I appreciate wathever clue.

    Ok, that is , I only can read environment variables values, but not variables values at user profile. It happends in unix environment too. So I tried to use another instruction sequence in order to read user variables values.
    Regards

  • Calling for objects with specific CMYK values?

    Hello,
    I'm trying to build a script that searches for paths that have specific CMYK values within a document and then edits the opacity of that path. I can specify for it to look only for objects that have a CMYK color but get nothing once I try to specify the CMYK values I'm looking for.
    Additionally, do I need to specify that the output will be a "new CMYKColor", or will it suffice to say "paths[i].fillColor.back = 100.0", for example, in the output. Here's what I have for this particular function:
    var docRef = app.activeDocument;
    var paths = docRef.pathItems;
    for (i=0; i< paths.length; i++) {
    if (paths[i].fillColor.typename == "CMYKColor" ) {
    if (paths[i].fillColor.cyan == 0.0 &&
    paths[i].fillColor.magenta == 0.0 &&
    paths[i].fillColor.yellow == 0.0 &&
    paths[i].fillColor.black == 20.0 &&
    paths[i].opacity == 100.0) {
    var NewColor = new CMYKColor ();
    NewColor.cyan = 0.0;
    NewColor.magenta = 0.0;
    NewColor.yellow = 0.0;
    NewColor.black = 100.0;
    paths[i].opacity = 20;
    else {
    alert ("Object(s) not recognized.")
    else {
    alert ("Object not CMYK.")
    Thank you.

    Hi Silly-V,
    no, thats's not odd.
    Illustrator is a little bit crazy. The most values should be rounded when reading. (like in this thread: Re: Working on a script that will add a new artboard and delete the old one if it is not a specific size)
    And so Luis Oyola can do something like that:
    var docRef = app.activeDocument;
    var paths = docRef.pathItems;
    for (i=0; i< paths.length; i++) {
        if (paths[i].fillColor.typename == "CMYKColor" ) {
            if (Math.round(paths[i].fillColor.cyan) == 0.0 &&
                Math.round(paths[i].fillColor.magenta) == 0.0 &&
                Math.round(paths[i].fillColor.yellow) == 0.0 &&
                Math.round(paths[i].fillColor.black) == 20.0 &&
                Math.round(paths[i].opacity) == 100.0) {
                    paths[i].fillColor.black = 100;
                    paths[i].opacity = 20;
                    } else {
                        alert ("Object(s) not recognized.");
                    } else {
                        alert ("Object not CMYK.");
    Have fun

  • Does ctrl-alt-shift clear preferences for all users?

    On a multi-user computer, does holding ctrl-alt-shift during InDesign launch clear preferences files for all users on that computer, or just the current user?  I have a few multi-user machines that are having issues, which the knowledagebase says is often cured by clearing preferences.
    Thanks guys!

    Just the current user

  • PDF for multiple users with different values

    Is there a way to create a PDF to be sent to multiple users but have different values in the PDF? For expample employee A's offer letter is for $50/hour while employee B's offer letter is for $55/hour. But they have the same offer letter just with different values.
    I have Enterprise EchoSign and FormsCentral.
    Thank you!

    Hi,
    Thanks for asking, but FormsCentral currently does not support this.
    Perry

  • To search for Who(USER) who maintained value for a Condition Type(Pr00)

    Hi Team,
    Do we have a table where in i can search for the Userwho maintained Pricing record for base value of a material..
    I have the Material and i want to check who created this Condition Base Value Record ..And ask him to maintain it correctly again..
    Thanks n hope an early response.
    Suman

    Dear Suman,
    Please go to VK13 transaction enter your condition type then go to menu  Environment ->Changes --> Click on Changes Report now system will take you to the Change documents for conditions screen here you give the selection data the execute system will give the output regarding changes details with the User details.
    I hope it will help you,
    Regards,
    Murali.

  • Popup screen with two check box and a text area for the user to enter value

    hi,
    i have a requirement when a button is clicked a popup screen should appear with two check box and a text box where the user can enter a value.
    is there any function module which has that functionality

    Hello,
    You can create a new screen and select the screen type as <b>model dialog box</b>.This will give you a<b> pop-up screen</b> and you can call this model dialog box screen in the PAI of the screen where the button is present.(At user-command).
    <b>case ok_code.
    when 'BUTTON'.
    call screen 200 starting at 10 10.</b>
    You can design the PBO of this pop-up screen as per your needs.
    Regards,
    Beejal
    **Reward if this helps.

  • ABAP Editor. Flag meanings from: User-specific settings - 'pattrn' tab

    If you go through this path once you are in the ABAP editor (ECC 6.0):
    utilities -> settings
    Does anybody know how the flags from the 'pattrn' tab work? They are about patterns in Function modules and Class generators.
    I cannot find anything through F1 help or SDN.
    Best,
    Cristian

    You might be aware of the "Edit -> Pattern" functionality in the ABAP editor. The settings you are referring to influence some details, e.g. whether OTHERS will be included in the exceptions list when inserting function module patterns.
    Play around with the settings to see the effect.
    Thomas

  • "user must change password at next logon" flag for multiple users

    2008 R2 domain with a couple of 2012 R2 DCs.
    john.user is in the Users OU. if I right-click john.user, choose properties, go to the account tab, and check "user must change password at next logon," the next time john.user tries to log in, he gets prompted to change his password. also the
    powershell command
    get-aduser -filter * -Properties * | ? name -like "*john.user*" | select name,pwdlastset
    shows that john.user's pwdlastset is 0. all of this is as expected.
    but if I  highlight every account in the Users OU, right-click, properties, Account, "user must change password at next logon," it appears that nothing whatsoever happens. john.user doesn't get prompted to change his password at his next
    logon, and his pwdlastset is something like 130622757432306111.
    is this the expected behavior? why are the Account tab and/or the "change password at next logon" box available to me when selecting multiple users if they aren't meant to work?

    ah. thank you sir. *two* checkboxes. *two.* of course.
    I had enough OUs under my Users OU that I just used powershell to catch them all at once:
    $enabledusers = get-aduser -filter * -SearchBase "ou=users,dc=domain,dc=local" -Properties distinguishedname,pwdlastset |
        where {$_.enabled -eq "true" -and $_.distinguishedname -notlike "*ou=service accounts*"}
    foreach($enableduser in $enabledusers) {
        $enableduser.pwdlastset = 0
        Set-ADUser -instance $enableduser

Maybe you are looking for

  • When im Answering my Phone it doesn't work Properly?

    When i Answer My Phone it doesnt work properly like i say Hello and they cant hear me i have to speack louder for the person im talking to hear me.

  • Which Proof Setup view to use?

    When I'm in Photoshop and I go to View>Proof setup... which one should I have checked to make certain I'm getting correct colors etc. for the image I"m working on?  I want that image look the same to me as it's going to look when I send it to the lab

  • Removing scary smudges from 30GB iPod!!

    Hi! I have recently removed an adhesive sticker "cover" from my white, 30g iPod video. It had cutouts for the screen and clickwheel, and when i removed it, there was adhesive on both the front and back of the iPod. That was 4 hours ago. Since then, I

  • Basic Question from a new guy

    Earlier question by me brought a response from Priya (thanks Priya) that I should post the results of querying my lsnrctl settings. How? I can run the query from DOS and get a pretty impressive output, but how do I save the output and then incorporte

  • [SOLVED] What is this sorting algorithm? (or a new one?)

    Hello everyone! Just before starting, i apologize for my grammar mistakes. I found a new sorting algorithm but i'm not sure if i really found it. There are too many sorting algorithms and mine is a really simple one; so, i belive that it can be found