Allowing user to modify default value - is this possible?

A report needs to be produced with the default value of an input variable (0FISCPER) set to the current fiscal period - this is used to calculate the YTD and Full Year Forecast of the present year. The default is required to allow the user the view the present day information without having to enter the current date manually - i.e. <b>no pop up variables screen</b>.
The complication occurs when it is required for the user to be able to modify the input variable to view historical data. Is it possible for the end user to adapt the current default (i.e. the current month) to a month of his/her choice?

Thanks all - I've been experimenting a bit over the past few days with this. This is my situation so far:
The Year-to-Date and Forecast variables take in 0F_FPER as its input - 0F_FPER is a user entry variable.
There is a user exit variable which exists in the system which returns the current fiscal period called 0FPER. I need this variable to be the YTD and Forecast default inputs <i>without the variables entry screen popping up</i>.
Once the user is in the report, it is required to be possible for them to enter a date (it may be in the previous year) to allow them to view historical data.
<u>What I am thinking about doing is creating new YTD and Forecast variables that will take 0FPER in as an input.</u>
However, 0FPER is hardcoded to return the current fiscal year. <b>Is it therefore possible to allow the user to input another value into 0FPER? Would this not conflict with the coding?</b>

Similar Messages

  • How to allow user to enter multiple values?

    Hi, can someone tell me how I can allow user to select multiple values from a selection screen. To be more clear, I have to display 4 values on the selection screen and want to allow user to select 2 or 3 values from it. It will be very helpful if someone could tell me how to do it.
    Thanks in advance,
    pushpa

    hi mahesh,
    pls c the code below. this is what i have written in my program. when i run this program it is showing only one value and that too only the first one '1234'. i want that it display all the values that i gave in the initialization part.
    please help.
    thanks,
    pushpa
    SELECTION-SCREEN BEGIN OF BLOCK enter_data WITH FRAME TITLE text-001.
    SELECT-OPTIONS skunnr FOR kna1-kunnr.
    SELECTION-SCREEN END OF BLOCK enter_data.
    INITIALIZATION.
    skunnr-low = '1234'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '9824'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '8756'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.
    skunnr-low = '6534'.
    skunnr-sign = 'I'.
    skunnr-option = 'EQ'.
    APPEND skunnr.

  • How to allow user to modify his own data with a Portal Form

    Hi,
    I have a form (Master-Detail) to update a user-profile (Master) and the user's skills (Detail).
    How can I make sure, that a user can only modify his own profile - assuming the master table has an attribute containing the users loginname for Portal?
    thanks!
    bye Stephan...

    Yes, along with the default value of wwctx_api.get_user, you also need to specify the default value type. In this case it should be Expression returning Varchar2.

  • Allowing user to modify/edit a JTable

    i'm new to java and i'm creating a JTable that allows a user to modify the data and the data will be stored in the database that i have created here is my code:
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import java.awt.*;
    import java.awt.event.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.event.*;
    import javax.swing.table.TableModel;
    public class SelectContacts extends JFrame implements TableModelListener {
    private boolean DEBUG = true;
    DataBase db = new DataBase();
    Connection connection = db.getConnection();
    public SelectContacts() {
    super("SelectContacts");
    DataBase db = new DataBase();
    Connection connection = db.getConnection();
    ArrayList contactsList =new ArrayList();
    String[] columnNames = {"Name",
    "Address",
    "Gender",
    "Email",
    "Contact",
    "Age"};
    String query;
    Statement statement;
    ResultSet rs;
    String personName="";
    String address="";
    String gender="";
    String email="";
    String contact="";
    String age="";
    Contacts s1;
    int i=0;
    query = "SELECT * FROM Contacts";
    try{
    statement = connection.createStatement();
    rs = statement.executeQuery(query);
    while (rs.next()){
         personName = rs.getString("Name");
    address = rs.getString("Address");
    gender = rs.getString("Gender");
    email = rs.getString("Email");
    contact = rs.getString("Contact");
    age = rs.getString("Age");
    s1= new Contacts(personName,address,gender,email,contact,age);
    contactsList.add(s1);
    i++;      
    statement.close();
    catch ( SQLException sqlex ) {
    sqlex.printStackTrace();
    Object[][] data = new Object[6];
    int count=0;
    while (count<i){
         s1 = (Contacts) contactsList.get(count);
         System.out.println("Name:" + s1.getName());
         System.out.println("Address:" + s1.getAddress());
         System.out.println("Gender:" + s1.getGender());
         System.out.println("Email:" + s1.getEmail());
         System.out.println("Contact No.:" + s1.getContact());
         System.out.println("Age:" + s1.getAge());
         data[count][0] = s1.getName();
         data[count][1] = s1.getAddress();
         data[count][2] = s1.getGender();
         data[count][3] = s1.getEmail();
                   data[count][4] = s1.getContact();
                   data[count][5] = s1.getAge();
    count++;
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    table.getModel().addTableModelListener(this);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    highlighed
    public void tableChanged(TableModelEvent e) {
    int row = e.getFirstRow();
    int column = e.getColumn();
    TableModel model = (TableModel)e.getSource();
    String columnName = model.getColumnName(column);
    Object data = model.getValueAt(row, column);
    Statement statement;
    ResultSet rs;
         String insertString= "Insert into Contacts (Name, Address, Gender, Email, Contact, Age ) "+
              " VALUES ( '"+ data +"')";
              // Do something with the data...
    try{
    statement = connection.createStatement();
    statement.executeUpdate(insertString);
    statement.close();
    catch ( SQLException sqlex ) {
    sqlex.printStackTrace();
         System.out.println("You sucessfully modified! :)");          
    highlighted
    public static void main(String[] args) {
    SelectContacts frame = new SelectContacts();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    //Whenever window gets the focus, let the
    //TextFieldDemo set the initial focus.
    public void windowActivated(WindowEvent e) {
    // demo.setFocus();
    frame.pack();
    frame.setVisible(true);
    i recieved error when i tried to edit 1 of the data "java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same. i think the problem lies in the highlighted part. pls guide me thanks

    i think the problem lies in the highlighted part. pls guide me thanks What highlighted part? When you post code use the [code ]...[code ] tags. Read the "Formatting Help" link when you post a question for more information.
    I find it easier to use a PreparedStatement as it delimits a the parameters in your SQL statement for you. Here's a simple example, read the API for more information:
            private static void addData(Connection connection)
                throws Exception
                String sql =
                    "INSERT INTO Page " +
                         "(Name," +
                         "Title) " +
                     "VALUES " +
                PreparedStatement stmt = connection.prepareStatement(sql);
                stmt.setString( 1, "Name1" );
                stmt.setString( 2, "Title1" );
                stmt.executeUpdate();
                stmt.setString( 1, "Name2" );
                stmt.setString( 2, "Title2" );
                stmt.executeUpdate();
                stmt.close();

  • Modify default value for static parameter field programmatically

    Hi,
    I have my Crystal Reports stored in a BO Enterprise system. I have written a java programm that scans the repository, loads the CR reports one by one into a ReportClientDocument, modifies the data source and then stores the updated report back to repository (it overwrites the existing objects).
    I was even able to modify the default values for the parameters, which are used for scheduling of each report.
    But what I am trying to do know is to overwrite the default value used when invoking the report interactively. This should be the value found under the Default Value field, when the Properties window of the parameter is opened in the CR designer.
    This is what I have tried so far:
    Option 1: First I tried to set the default values using com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.getDataDefinition().getParameterFieldController().getField(...).getDefaultValues() . The only thing I have managed to do using this approach is to modify the static LOVs that are associated to static parameters. The actual selected value (shown under Default Value in the Properties window for the given parameter field) remained unchanged, when invoking the report in the InfoView or opening it in the CR designer.
    Option 2: I have used com.crystaldecisions.sdk.plugin.desktop.report.IReport.getReportParameters().get(ik).getDefaultValues() to change the default values. I was able to see my changes in the BO repository (using a query on CI_INFOOBJECTS), still the changes did not really have an impact to what is displayed as default value when invoking the report in the InfoView.
    Any help will be appreciated.
    It would be great to know if someone of you has already implemented successfully such a use-case.
    Regards,
    Stratos
    Edited by: Efstratios Karaivazoglou on Dec 9, 2009 8:52 AM
    Edited by: Efstratios Karaivazoglou on Dec 15, 2009 11:33 PM

    Hi,
    For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
    - Bhushan

  • User Exit for default values in IW51

    Hi All,
    Can any suggest User Exit or BADI for default values like Cause code in IW51 Tcode.
    Regards,
    Samatha.

    Hi,
    Please check these
    Exits
    IWO10026                                User check on setting status 'Do not perform'
    IWO10027                                User exit: Generate user-defined settlement rule
    IWOC0001                                Create PM/SM notification: Determine reference object
    IWOC0002                                PM/SM notification: Check whether status change is allowed
    IWOC0003                                PM/SM authorization check of ref. object and planner group
    IWOC0004                                Change single-level list editing PM/QM/SM ALV settings
    Business Add-in
    IQS_MASS_CHANGE                         BadI for Mass Changes to Notifications
    IQS0_STATUS_MAINTAIN                    Control of Changeability of User Status
    NOTIF_AUTHORITY_01                      Additional Authorization Checks for the Notification
    WOC_FL_DETERMINE                        Determine Date for Determining Installation Loc. Equi.
    IWOC_OBJECTINFO_CHNG                    Changes to Data of Object Info Screen
    IWOC_LIST_TUNING                        Performance Tuning for Lists in PM/CS
    IWO1_SUBSCREEN_0170                     Display Additional Data on Object Screen 0170 PhysicalSample

  • How to modify default value of Login Shell attribute via script

    Hi all,
    I'm configuring the "UNIX Attributes" tab here in Active Directory Users and Computers. I've noticed that on the Login Shell option it has a default value: /bin/sh. So I had manually changed it to: /bin/bash.  I just change this value one
    bu one manually.  Now, I want to change this value for all users via script. Could you please help me to receive this goal?
    Thank you in advance.

    Use Get-AdUser / Set-AdObject
    Get-AdUser -Filter * | Set-AdObject -Replace @{unixhomedirectory='/bin/sh','bin/bash'} -WhatIf
    ¯\_(ツ)_/¯

  • How can i implement the default value for this variable?

    In one of our Stored procs,we have a variable RECS_TO_DELETE, which determines the number of records to delete from various DELETEs that happen within this proc.
    The value for RECS_TO_DELETE variable should be obtained from a configuration table sys_config
    select
    rec_num into RECS_TO_DELETE
    from sys_config
    where
    sys_code=55;
    But if something goes wrong with sys_config table or the above SELECT INTO, our client wants to makes sure that RECS_TO_DELETE should have a default value of 1000.
    In the code, how will i implement having this default value of 1000 for RECS_TO_DELETE variable  in case the above SELECT INTO fails for some reason.

    Hi,
    You have to assign a value before the execution...
    DECLARE
        RECS_TO_DELETE NUMBER(9) := 1000;
    BEGIN
        SELECT rec_num
        INTO   RECS_TO_DELETE
        FROM   sys_config
        WHERE  sys_code = 55;
        DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
           DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    END;
    /Regards,

  • User-exit for default values in service order

    Hi,
    i use EXIT QQMA0025 (EXIT_SAPLIQS0_017) to set some default values by creating
    a service notification.
    Is there some exit or badi to do the same for service orders. I don't want to use TPMUS.
    Regards, Dieter

    I create this thread in SD, because
    i don't get any answers.
    Regards, Dieter

  • Modify default value of LoginShell attribute

    Hi,
    We are configuring the "UNIX Attributes" tab here in our organization.
    I've noticed that on the Login Shell option it has a default value: /bin/sh
    So I had manually changed it to: /bin/bash
    My question is: Is there a way to change the default value to /bin/bash?
    Searched for it on ADSI edit and no joy.
    PS: Found this website showing that using a special software we can change it.
    http://documents.software.dell.com/DOC123819
    I just want to change it without that software =]

    Hi Vandrey,
    Based on my test, we can use the script "Use Get-AdUser / Set-AdObject" to achieve your goal.
    Get-AdUser -Filter * | Set-AdObject -Replace @{unixhomedirectory='/bin/sh','bin/bash'} -WhatIf
    "please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to another community members reading the thread."

  • How to allow user to enter new values in a segmnt which's having a ValueSet

    Hi Gurus
    I am having a DFF segment where user needs the following validation. I have to check whether the value entered by user is having status number as 5 in a custom table. I can do this by Table type Validation.
    But the problem here is, they should also be able to enter new values which not in that table.
    How i can achieve this. Appreciate your help on this.
    Thanks.
    Praveen

    Value sets allow only for standar list for validation, not a combobox that is what may help You to achieve what You want. You either have a restricted list or an open field to type whatever matches the format restrictions.
    For what You specify, I see no reason on having a table validation is the user can after all enter new values, perhaps it's to have the table values as references and avoid duplicates. Workarounds may be:
    Add an "others" value to the table, and enable another segment to enter new values and add custom validation to avoid duplicates and insert the new values to the table for future use.
    Have an independent value set and add a customization to avoid duplicates (more difficult considering typos) and insert new values.

  • Edit Subscription allows user to add other Recipients, can this be changed?

    Hi there,
    When a user has subscribed to a folder/report/document in KM, they then can subsequently go in and edit the subscription.
    The dialog that allows the user to edit their subscription also allows them to add additional recipients to the Subscription.  In some cases we don't want users to be allowed to do this.  For example, if we publish BI reports to a users 'My Portfolio' then we don't want the user to be able to alter the subscription by adding other recipients to the subscription.  In this case these other people would also get a notification when the BI report was updated and we don't want that to happen for security reasons.
    Is there a way to remove the end users ability to add other recipients to their subscriptions?
    Thanks in advance for any help.
    Regards,
    Robin.

    Robin
    Check the service permission for the users on these folders.
    If they have enough service permission only then they can change the
    subscription. The UI will prompt an error.
    Regards
    BP

  • Allow user to select default sound device.

    Currently Spotify defaults to using the default sound device under windows when launched, it would be neat if you could choose which sound device you want to use isntead in the options screen, Thanks

    I really need this feature. I use multiple soundcards to split outputs into different sets. For example. I do not want Spotify to playback using my headphones but my speakers while I play a game or anything else for that matter. I also tend to Stream some of my games and don't want Spotify to be recorded- This is the whole reason I had to set up another soundcard by the way.
    Please, just add this small but essencial feature like any other Audio related product.

  • IPad Screen Recorder, will it take Apple modifying iOS to make this possible without jailbreaking?

    Is there something in IOS that makes it impossible to create a Display / Screen Recorder, without jailbreaking?
    I see more and more apps that have built-in screen recording capabilities into their applications. Mostly in Educational Apps and a few drawing apps:
    ExplainEverything, ShowMe, ScreenChomp, and Brushes to name a few. However there are no Apps that can create a screencast of you working on your iPad without jailbreaking. Initially I thought it was the lack of mutlitasking but that was mostly taken care of with the iPad 2. Yet there are still no Apps that can perform screen recordings of the iPad.
    Apple before every developer attempts to create this within their own Apps some well and some badly, wouldn't it make sense to have an Apple developed or Apple / TechSmith partnership to create an iPad Screen Recording capability in the iPad 1, iPad 2 and all future iPads.
    It is a post PC world and I shouldn't have to connect my iPad to my MacBook or PC just to capture my iPad screen (Not just an Image, but real-time screen recording). Even an external piece of hardware small, inexpensivew with either an SD card or SSD Drive for storage that plugs into the iPads and iPhones would be better than nothing. A software App that runs on the iPad is the ideal. So before this type of Universal App can be created, is there something that Apple needs to do or provide hooks for to make this happen.
    TonyP "Waiting in St. Paul for an iPad Display / Screen Recorder for his iPad"

    There's no way I could find to change the message page. Try the App Store I'm sure you'll find something you like better.

  • Portal Forms - How to make a Field with DEFAULT value NON-EDITABLE by Users

    I HAVE A FORM WITH A DATE FIELD ON IT WITH DEFAULT VALUE.
    THIS IS A TABLE-FIELD.
    I WANT THE FIELD TO BE DISPLAYED ON THE FORM BUT NOT TO ALLOW
    USERS TO EDIT/CHANGE IT.
    HOW CAN I DO THIS?
    TKS IN ADVANCE

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

Maybe you are looking for

  • Sharing iPhoto Library on NAS

    I have a synology NAS on which I have my iPhoto Libraries (multiple libraries, one for each year).  I have both a macbook and a mac mini, both running os x 10.6.8 and both running Iphoto 11 (Version 9.2.3).  I am only able to access the Iphoto librar

  • Problem updating razr v3i

    When I connect my phone, itunes recognizes my phone and updates. Then when I drag a play list or song to my phone icon , I get a message that it is updating but after a few moments a pop up returns with this message. "The mobile phone cannot be updat

  • How to add "services for object " in ECC 6.0

    Hi Saurabh, Thanks for your reply. I have checked the path given by you...System-> Service for object, but it is showing no service available as told by you. Cud you please tell me how to add this service because this is working fine in 4.6C but I do

  • Which jar is weblogic.jdbc.sqlserver.SQLServerDriver located?

    Hi, I am just writing a test program in Eclipse and tried to connect to MS SQL Server. I added weblogic.jar to project lib. But it complaints ClassNotFound: weblogic.jdbc.sqlserver.SQLServerDriver. where is it? Found out I have to have wlbase.jar wlc

  • Static linking of libpthread and librt libraries in Solaris 8 and 10

    Hi all, We have created a solaris application which uses functions defined in libpthread (POSIX threads) and STL classes (string, list, map, vector etc.) This application runs perfectly in our environment. However at other sites, there are crashes ob