Copy function errors when defining a range of fiscalyear/periods in variabl

Hey Gurus,
I'm trying to execute the copy function using two variables to copy from one fiscal year/period to another fiscal year/period.
Two variables were created 'XXXXXX' = 001/2006 to 006/2006
and 'YYYYYY' = 001/2007 to 006/2007.
So in trying to copy plan data from  'XXXXXX' to 'YYYYYY', these variables are then defined in the paramter group. I get an error message stating that the variables can only be defined with single values.
This has forced us to enter each fiscal year/period one by one in the parameter group.
Has anyone come across this before, and can recommend a way around it instead of defining each fiscal year/period individually in the parameter group.
thanks

Hello Ehab,
In your example, you were copying say 001/2006-007/2006 to 001/2007-007/2007.
Using the above assumption, we observe that the periods are fixed but the years are not.
We can therefore pass the from period as 001, to period as 007. From year as 2006 and to year as 2007.
We are therefore passing only single values for each variable.
In our foxcode, we can loop through each period and generate the new set of records for 2007.
Hope this helps.
Sunil
PS: Assigning points is a way of saying thanks

Similar Messages

  • Error when defining successor of node in workflows

    Hi Experts,
    I am receiving an error which says "error when defining successor of node XYZ". However in my workflow template, this particular XYZ node does not exists.
    Also I found one entry in SWP_SUSPEN table for the main workflow. I tried to execute the report manually RSWWERRE. Still it did not work out.
    I also tried to use transaction SWF_ADM_SUSPEND. However my workitem is not showing in the list.
    Kindly help me in this issue.
    Thanks
    Gopal

    Hi,
    This problem occurs because the nodes system table with respect to workflow is not updated properly. I hope you might have deleted or changed the workflow design after this you need to update the index of the workflow template too.
    Follow the below steps
    1. Execute PFTC choose task type as Workflow template and open in change mode.
    2. On menu goto Addtional Data ---> Agent Assignment ---> Maintain
    3. Choose the workflow template ID and click on the icon on the application tool bar with Red and white colur (Football ) i am not sure I think you can try with CTRL + F11 but you hvae to update the index.
    After doing this Execute SWUD txn Check for the consistencies of the workflow template. if you do not find any error refresh the buffer and org environment.
    Even after doing all this stuff you still face the issue then generate a version  just simply insert a dummy step in the workflow activate and then delete the dummy step activate and refresh the buffer and org environment and try to execute.
    This error ususally occurs (upto my knowledge) if the nodes table of the workflow is not updated properly, So the above mentioned  ways are to deal with it.
    Regards
    Pavan

  • Error when defining successor for node 0000000198

    Hello ,
    We are using leave request service on ESS portal.
    From last few days we are getting error like " Error when defining successor for node 0000000198   "
    All agents are assigned properly and also v have checked PFTC setting for Workflow.
    the method which are using is Synchrounous.
    this error is nt coming perticulary for one employee but it is coming for sick leave workflow.
    Please help
    thanks

    Hi,
    This is a binding issue between the workflow container and the task 
    container because we can see the text in the workflow container but 
    it is empty in the task container.
    Our proposed solution is to go into the Dev or QAS environment and 
    regenerate the binding between the workflow and this particular task. 
    We will test and if this works, this will resolve issue.

  • Error when defining successor for node

    Experts,
    We are having a problem with one of our workflows that keeps erroring whenever we try to complete it.  The error message states "Error when defining successor for node 0000000159".  This error does not occur in 4.6c environment and the workflow is working fine.  However, our team is in the process of upgrading to ECC 6.0 and the workflow is not working properly in that environment.  The workflow is designed for BO BUS2038 and the error occurs when we try to close all tasks and complete the workflow.  Can someone direct us to something that we can check, we've pretty much exhausted all our options?  Thanks.

    Hi Teferi,
    This problem occurs in ECC 6 when a step with Synchronous Task/Method does not have the Step executed outcome activated (this is allowed in 4.6C for synch task with terminating events). Check if your Task/method is synchronous.
    Cheers,
    Ramki Maley.

  • "500 internal server error" when trying to use F4 help in the variable sele

    Hi Experts,
    I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
    How could this be resolved?
    Quick reply would be very helpfull.
    Thanks in advance !!

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • Error when defining a variable  other than CHAR

    I am getting a syntax error when I define variables :
    data: l_arbei  type p.
    constants:  l_delim  type x  value '09'.
    Message L_ARBEI must be a character-type field (data type C, N, D or T). an open control structure introduced by "INTERFACE"
    Has anyone else experienced this problem.  Why can I not define these variables.

    data: l_arbei  type p decimals 1,
          l_ismnw  type p decimals 1.
      write w_ops-work_activity to l_arbei. 
      l_arbei = l_arbei - l_ismnw.          
      if l_arbei gt 0.                      
        write l_arbei to w_ops-work_activity.
      endif.
    As mentioned same error message when defining the following:
    constants:  c_delim  type x value '09'.
         split i_input1-line at c_delim into 
               w_hdr-orderid                 
               w_hdr-order_type.              
    I agree that there should be no problem with the definitions. However cannot understand why it does not like it.  Thought there might be an additional requirement for Unicode systems.

  • Copy Protection Error when doing a system recover - Satellite C655

    I have a satellite c655 S5206.  The computer seemed to have a virus as it would lock on windows and eventually wouldn't boot.  I tried using the system recover option built in but it didn't work so I ordered the disk from Toshiba.  When I tried to use them I got an Error 0x80030309 copy protection error.  I though it was a corrupted or bad hard drive so I ordered a new one but I still get the same error when trying to install disk 1 of the system recovery process.  Any help or explanation would be helpful.  Thanks

    Hi Models may differ in the way you use your recovery discs. You should read your user manuel to find out how to use these discs. Here's the basic way.
    Using Recovery CDs / DVDs / Media
    If you have created recovery DVDs/media for your system, you can restore your system from such media, if necessary. For example, if your original internal storage drive fails, you can restore your system to a new internal storage drive from your recovery DVDs/media. For instructions on creating recovery DVDs/media, see the How To: Understanding System Recovery Options + Creating / Purchasing Recovery Media article.
    IMPORTANT: The recovery process deletes information stored on the internal storage drive. Be sure to save your work to external media before executing the recovery.
    To recover your internal storage drive from recovery DVDs/media:
    Make sure your computer is turned off.
    Do one of the following: If your recovery files are on DVDs, insert the first recovery DVD into your optical disc drive. If your recovery files are on a USB flash drive, connect the USB flash drive to your computer.
    Turn on your computer. When the initial TOSHIBA screen displays, press the F12 key on your keyboard. The boot menu displays.
    Using the arrow keys, select the DVD option or the USB Flash option, depending on which type of media you are using, and then press the Enter key.
    A warning screen appears, stating that when the recovery is executed all data on your internal storage drive will be deleted and rewritten unless the “Recovery of Factory Default Software with user’s data” option is selected. Click Yes to continue.
    When the Toshiba Recovery Wizard opens and the “Selecting a process” screen displays, select Recovery of Factory Default Software, and then click Next.
    On the next screen you may have recovery method options. The default and recommended method is to Recover to Out of Box state.
    Follow the on screen instructions as you navigate through the system recovery steps.
    The laptop will restart multiple times and install the needed components.
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • Error when defining Solman connection

    Dear Gurus.
    When defining connection to Solman, the following error message appears:
    The full log attached.
    Please advice!
    Regards
    Vladimir

    Hi Vladimir,
    Yes, I failed to get that to work as well (I contacted Support, it is a known issue). Please see this document for setting up the Solution Manager connection: http://support.sap.com/content/dam/library/support/support-programs-services/Solution%20Manager/Business%20Process%20Ope…
    You can also read SAP note 1265635, I like the previously mentioned PDF because it has screen captures.
    As a further read, once all is set up, I recommend what Martin Lauer wrote up in a nice blog entry on the subject Solution Manager: Monitoring SAP CPS by Redwood jobs with SAP Solution Manager.
    Regards,
    HP

  • Error when defining a program executable

    Could anybody explain the following error, which appears when I attempt to define an executable, GLCRVL against a program (GLCRVL2). Appears when closing the "Concurrent Program Executable" form:
    *"APP-FND-00508: Please enter a unique execution file name that is not already in use for your application"*
    The executable in question is
    /opt/oracle/DOLNSGC3/apps_11i/appl/gl/11.5.0/bin/GLCRVL
    I made a copy of the GLCRVL spawned program, which now exists in FND_CONCURRENT_PROGRAMS AS
    SQL> select application_id AS APP_ID
    2 ,concurrent_program_id AS CP_ID
    3 ,concurrent_program_name AS CP_NAME
    4 ,executable_application_id AS EXA_ID
    5 ,executable_id AS EX_ID
    6 ,execution_method_code AS EXM_CODE
    7 ,argument_method_code AS AM_CODE
    8 ,enabled_flag
    9 from FND_CONCURRENT_PROGRAMS
    10 where CONCURRENT_PROGRAM_NAME in ('GLCRVL', 'GLCRVL2')
    11 /
    APP_ID CP_ID CP_NAME XA_ID EX_ID E A E
    101 20397 GLCRVL 101 149 A D Y
    101 45769 GLCRVL2 101 149 A D Y
    Running 11.5.0 on Sun Solaris with 64-bit 10.2.0.4.0 Oracle DB Server

    Hi all,
    not sure if any of you are still watching this one, but I thought I'd update you on some good progress! I managed to get a spawned process working by registering it using the PL/SQL API, as follows:
    set serveroutput on
    declare
      b_Continue boolean := true;
      v_Prg_Name        varchar2(20) := 'GL_REVAL';
      v_Exec_Name       varchar2(20) := 'GL_REVAL';
    begin
      begin
        begin
          fnd_program.delete_executable(v_Exec_name, 'SQLGL');
          commit;
          dbms_output.put_line('executable ' || v_Exec_Name || ' removed from SQLGL');
          exception -- catch
            when others then
              null;
        end;
        fnd_program.executable(v_Exec_Name -- executable
                              , 'SQLGL' -- application
                              , v_Exec_Name -- short_name
                              , 'Backend program - Reval Balances' -- description
                              , 'Spawned' -- execution_method
                              , 'GLCRVL' -- execution_file_name
                              , null -- subroutine_name
                              , null -- Execution File Path
                              , 'US' -- language_code
                              , null);
        commit;
        b_Continue := true;
        dbms_output.put_line('Registration of executable ' || v_Exec_Name || ' sucessful');
        exception
          when others then
            rollback;
            dbms_output.put_line('Registration error for executable ' || v_Exec_Name || ', ' || sqlerrm);
      end;
      if (b_Continue) then
        begin
          begin
            fnd_program.delete_program(v_Prg_Name, 'SQLGL');
            commit;
            dbms_output.put_line('program ' || v_Prg_Name || ' in SQLGL removed');
            exception -- catch
              when others then
                null;
          end;
          fnd_program.register ( program                        => 'Program - Revalue Balances (Backend)'
                                ,application                    => 'SQLGL'
                                ,enabled                        => 'Y'
                                ,short_name                     => v_Prg_Name
                                ,description                    => 'Revalue Balances'
                                ,executable_short_name          => v_Exec_Name
                                ,executable_application         => 'SQLGL'
                                ,execution_options              => null
                                ,priority                       => null
                                ,save_output                    => 'Y'
                                ,print                          => 'Y'
                                ,cols                           => null
                                ,rows                           => null
                                ,style                          => null
                                ,style_required                 => 'N'
                                ,printer                        => null
                                ,request_type                   => null
                                ,request_type_application       => null
                                ,use_in_srs                     => 'Y'
                                ,allow_disabled_values          => 'N'
                                ,run_alone                      => 'N'
                                ,output_type                    => 'TEXT'
                                ,enable_trace                   => 'N'
                                ,restart                        => 'N'
                                ,nls_compliant                  => 'Y'
                                ,icon_name                      => null
                                ,language_code                  => 'US'
                                ,mls_function_short_name        => null
                                ,mls_function_application       => null
                                ,incrementor                    => null);
          commit;
          dbms_output.put_line('Registration of program ' || v_Prg_Name || ' sucessful');
          exception
            when others then
              b_Continue := false;
              rollback;
              dbms_output.put_line('Registration error for program GL_REVAL ' || sqlerrm);
        end;
      end if;
      if (b_Continue) then
        begin
          fnd_program.remove_from_group(v_Prg_Name, 'SQLGL', 'GL Concurrent Program Group', 'SQLGL');
          dbms_output.put_line('program ' || v_Prg_Name || ' removed from group "GL Concurrent_Group" in SQLGL');
          commit;
          exception
            when others then
              rollback;
              null;
        end;
        begin
          fnd_program.add_to_group(v_Prg_Name -- program_short_name
                                 , 'SQLGL' -- application
                                 , 'GL Concurrent Program Group' -- Request Group Name
                                 , 'SQLGL'); -- Report Group Application
          commit;
          b_Continue := true;
          dbms_output.put_line('program, ' || v_Prg_Name || ', sucessfully added to group "GL Concurrent Program Group"');
          exception
            when others then
              b_Continue := false;
              rollback;
              dbms_output.put_line('Registration error for program ' || v_Prg_Name || ' in group' || sqlerrm);
        end;
      end if;
      begin
        if (b_Continue) then
          if (fnd_program.parameter_exists (v_Prg_Name, 'SQLGL', 'Set of Books ID') ) then
            fnd_program.delete_parameter(v_Prg_Name, 'SQLGL', 'Set of Books ID');
            commit;
            dbms_output.put_line('Parameter "Set of Books ID" removed');
          end if;
          if (fnd_program.parameter_exists (v_Prg_Name, 'SQLGL', 'Revaluation ID') ) then
            fnd_program.delete_parameter(v_Prg_Name, 'SQLGL', 'Revaluation ID');
            commit;
            dbms_output.put_line('Parameter "Revaluation ID" removed');
          end if;
          if (fnd_program.parameter_exists (v_Prg_Name, 'SQLGL', 'PERIOD') ) then
            fnd_program.delete_parameter(v_Prg_Name, 'SQLGL', 'PERIOD');
            commit;
            dbms_output.put_line('Parameter "PERIOD" removed');
          end if;
          if (fnd_program.parameter_exists (v_Prg_Name, 'SQLGL', 'EFFECTIVE_DATE') ) then
            fnd_program.delete_parameter(v_Prg_Name, 'SQLGL', 'EFFECTIVE_DATE');
            commit;
            dbms_output.put_line('Parameter "EFFECTIVE_DATE" removed');
          end if;
          if (fnd_program.parameter_exists (v_Prg_Name, 'SQLGL', 'RATE_DATE') ) then
            fnd_program.delete_parameter(v_Prg_Name, 'SQLGL', 'RATE_DATE');
            commit;
            dbms_output.put_line('Parameter "RATE_DATE" removed');
          end if;
          fnd_program.parameter (program_short_name            => v_Prg_Name
                                ,application                   =>  'SQLGL'
                                ,sequence                      => 10
                                ,parameter                     => 'Set Of Books ID'
                                ,description                   => null
                                ,enabled                       => 'Y'
                                ,value_set                     => 'GL_SRS_SET_OF_BOOKS'
                                ,default_type                  => 'S'
                                ,default_value                 => null
                                ,required                      => 'Y'
                                ,enable_security               => 'N'
                                ,range                         => null
                                ,display                       => 'N'
                                ,display_size                  => 30
                                ,description_size              => 50
                                ,concatenated_description_size => 25
                                ,prompt                        => 'Set Of Books'
                                ,token                         => '');
          dbms_output.put_line('Parameter "Set of Books ID" added');
          fnd_program.parameter (program_short_name            => v_Prg_Name
                                ,application                   =>  'SQLGL'
                                ,sequence                      => 20
                                ,parameter                     => 'Revaluation ID'
                                ,description                   => null
                                ,enabled                       => 'Y'
                                ,value_set                     => 'GL_SRS_REVAL_NAME'
                                ,default_type                  => 'S'
                                ,default_value                 => null
                                ,required                      => 'Y'
                                ,enable_security               => 'N'
                                ,range                         => null
                                ,display                       => 'Y'
                                ,display_size                  => 35
                                ,description_size              => 50
                                ,concatenated_description_size => 25
                                ,prompt                        => 'Revaluation'
                                ,token                         => '');
          dbms_output.put_line('Parameter "Revaluation ID" added');
          fnd_program.parameter (program_short_name            => v_Prg_Name
                                ,application                   =>  'SQLGL'
                                ,sequence                      => 30
                                ,parameter                     => 'PERIOD'
                                ,description                   => null
                                ,enabled                       => 'Y'
                                ,value_set                     => 'GL_SRS_REVAL_PERIOD'
                                ,default_type                  => null
                                ,default_value                 => null
                                ,required                      => 'Y'
                                ,enable_security               => 'N'
                                ,range                         => null
                                ,display                       => 'Y'
                                ,display_size                  => 15
                                ,description_size              => 50
                                ,concatenated_description_size => 25
                                ,prompt                        => 'Period'
                                ,token                         => '');
          dbms_output.put_line('Parameter "PERIOD" added');
          fnd_program.parameter (program_short_name            => v_Prg_Name
                                ,application                   =>  'SQLGL'
                                ,sequence                      => 40
                                ,parameter                     => 'EFFECTIVE_DATE'
                                ,description                   => null
                                ,enabled                       => 'Y'
                                ,value_set                     => 'GL_SRS_STANDARD_DATE'
                                ,default_type                  => 'S'
                                ,default_value                 => null
                                ,required                      => 'Y'
                                ,enable_security               => 'N'
                                ,range                         => null
                                ,display                       => 'Y'
                                ,display_size                  => 11
                                ,description_size              => 50
                                ,concatenated_description_size => 25
                                ,prompt                        => 'Effective Date'
                                ,token                         => '');
          dbms_output.put_line('Parameter "EFFECTIVE_DATE" added');
          fnd_program.parameter (program_short_name            => v_Prg_Name
                                ,application                   =>  'SQLGL'
                                ,sequence                      => 50
                                ,parameter                     => 'RATE_DATE'
                                ,description                   => null
                                ,enabled                       => 'Y'
                                ,value_set                     => 'GL_SRS_STANDARD_DATE'
                                ,default_type                  => 'A'
                                ,default_value                 => 'EFFECTIVE_DATE.VALUE'
                                ,required                      => 'N'
                                ,enable_security               => 'N'
                                ,range                         => null
                                ,display                       => 'Y'
                                ,display_size                  => 11
                                ,description_size              => 50
                                ,concatenated_description_size => 25
                                ,prompt                        => 'Rate Date'
                                ,token                         => '');
          dbms_output.put_line('Parameter "RATE_DATE" added');
          commit;
          dbms_output.put_line(' ');
          dbms_output.put_line('All parameters added sucessfully ');
          b_Continue := true;
        end if; -- if (b_Continue) then
        exception
          when others then
            rollback;
            b_Continue := false;
            dbms_output.put_line('Error adding parameters ');
      end;
      if (b_Continue) then
        dbms_output.put_line('All registration was sucessful');
      else
        dbms_output.put_line('Registration unsucessful');
      end if;
      exception
        when others then
          rollback;
          dbms_output.put_line('Registration Error ' || sqlerrm);
    end;
    show errI then ran a test using the following script, and it seems to work!!!
    set serveroutput on
    declare
      b_Set_NLS         boolean;
      b_Wait            boolean;
      n_Request_ID      number;
      p_Language        varchar2(20) := 'AMERICAN';
      v_Phase           varchar2(100);
      v_Status          varchar2(100);
      v_Dev_Phase       varchar2(100);
      v_Dev_Status      varchar2(100);
      v_Message         varchar2(100);
      FND_EXCEPTION     exception;
      v_FND_EXC         varchar2(50);
      v_Prg_Name        varchar2(20) := 'GL_REVAL';
    begin
      fnd_global.apps_initialize(1208, 50211, 101);
      fnd_program.enable_program(v_Prg_Name, 'SQLGL', 'Y');
      if not (fnd_program.executable_exists(v_Prg_Name, 'SQLGL') ) then
        v_FND_EXC := 'App ' || v_Prg_Name || ' does not exist';
        raise FND_EXCEPTION;
      end if;
      dbms_session.set_nls(param => 'nls_language'
                          ,value => p_Language);
      b_Set_NLS := fnd_submit.set_nls_options(p_Language);
      -- Test parameters
      n_Request_ID := fnd_request.submit_request( application => 'SQLGL'
                                                 ,program     => v_Prg_Name
                                                 ,description => 'Program - Revalue Balances (Backend)'
                                                 ,start_time  => ''
                                                 ,sub_request => false
                                                 ,argument1   => '2'
                                                 ,argument2   => '10060' --p_Revaluation_ID
                                                 ,argument3   => 'Oct-09' --p_Period
                                                 ,argument4   => '2009/10/31 00:00:00'
                                                 --,argument5   => p_Rate_Date
      if (n_Request_ID > 0) then
        commit;
        b_Wait := fnd_concurrent.wait_for_request(request_id => n_Request_ID
                                                 ,interval   => 60
                                                 ,max_wait   => 0
                                                 ,phase      => v_Phase
                                                 ,status     => v_Status
                                                 ,dev_phase  => v_Dev_Phase
                                                 ,dev_status => v_Dev_Status
                                                 ,message    => v_Message);
        v_FND_EXC := v_Dev_Status;
        if (v_Dev_Phase = 'COMPLETE') then
          case v_Dev_Status
            when 'WARNING' then
              raise FND_EXCEPTION;
            when 'ERROR' then
              raise FND_EXCEPTION;
            when 'NORMAL' then
              null;
            else
              v_FND_EXC := 'UNKNOWN';
              raise FND_EXCEPTION;
          end case;
        else
          v_FND_EXC := 'INCOMPLETE,' || v_Dev_Phase;
          raise FND_EXCEPTION;
        end if;
      end if;
      -- No Request ID has been returned by FND_REQUEST.SUBMIT_REQUEST or FND_SUBMIT.SUBMIT_SET
      if (n_Request_ID = 0) then
        v_FND_EXC := 'SUBMISSION FAILURE';
        raise FND_EXCEPTION;
      end if;
      dbms_output.put_line(v_Prg_Name || ' ran fine ');
    exception
      when FND_EXCEPTION then
        dbms_output.put_line('Request Exception, ' || v_FND_EXC);
      when others then
        v_FND_EXC := 'UNKNOWN';
        dbms_output.put_line(v_FND_EXC || ' ' || sqlerrm);
    end;
    /Cheers!
    P;

  • Runtime error (syntax error) when defining a new logical system

    Hi!
    I get a short dump when trying to define a logical system, the field <b>clidep</b> does is not defined in function module <b>SCPR_BCSET_PROT_GET_TABKEYS</b>:
    CALL FUNCTION 'SCPR_HI_DB_SCPRACTR_READ'
        EXPORTING
          TABLENAME     = wa_tabnames-low
          VIEWNAME      = viewname
          CLIDEP        = clidep
        IMPORTING
          ACTKEYS       = actkeys
        EXCEPTIONS
          NO_DATA_FOUND = 1
          OTHERS        = 2.
    I have searched for notes, but I haven't fiund anything to correct the error. Does anyone one how to correct this?
    - Mari Virik

    Hi!
    I get a short dump when trying to define a logical system, the field <b>clidep</b> does is not defined in function module <b>SCPR_BCSET_PROT_GET_TABKEYS</b>:
    CALL FUNCTION 'SCPR_HI_DB_SCPRACTR_READ'
        EXPORTING
          TABLENAME     = wa_tabnames-low
          VIEWNAME      = viewname
          CLIDEP        = clidep
        IMPORTING
          ACTKEYS       = actkeys
        EXCEPTIONS
          NO_DATA_FOUND = 1
          OTHERS        = 2.
    I have searched for notes, but I haven't fiund anything to correct the error. Does anyone one how to correct this?
    - Mari Virik

  • Error when defining a variable from a class

    Hi,
    I'm getting this error message when trying to define a
    variable from a class:
    '1086: Syntax error: expecting semicolon before left paren.'
    I can't see where the error is.
    The scripts Question.as and Codeframe.as is located int the
    folder Mycomponents under the project.
    Regards
    /Acke
    **** Main app *****
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.CloseEvent;
    import myComponents.*;
    var Question():myComponents.Question=new Question(); // !!
    This line causes the error !!
    other code goes here....
    ]]>
    </mx:Script>
    **** The class definition ******
    package myComponents
    //import other classes needed
    import Mycomponents.Codeframe
    public class Question {
    // Define properties and methods.
    // Define public vars.
    public var Qtype:string;
    public var Condition:string;
    public var Qnumber:string;
    public var Qheading:string;
    public var Pretext:string;
    public var Qtext:string;
    public var Posttext:string;
    public var Codeframe():string;
    public var Reserved:string;
    public var EditableFrom:string;
    public var EditableTo:string;
    public var Decimal:string;
    public var SetQfactor:string;
    public var Logic_if():string;
    public var Logic_then():string;
    // Public constructor.
    //public function Question(){
    // do stuff to set initial values for properties
    public function Question(Type:string,
    Condition:string,
    Qnumber:string,
    Qheading:string,
    Pretext:string,
    Qtext:string,
    Posttext:string,
    Codeframe():string,
    Reserved:string,
    EditableFrom:string,
    EditableTo:string,
    Decimal:string,
    SetQfactor:string,
    Logic_if():string,
    Logic_then():string,
    ):Void
    this.Type=Type;
    this.Condition=Condition;
    this.Qnumber=Qnumber;
    this.Qheading=Qheading;
    this.Pretext=Pretext;
    this.Qtext=Qtext;
    this.Posttext=Posttext;
    this.Codeframe()=Codeframe();
    this.Reserved=Reserved;
    this.EditableFrom=EditableFrom;
    this.EditableTo=EditableTo;
    this.Decimal=Decimal;
    this.SetQfactor=SetQfactor;
    this.Logic_if()=Logic_if();
    this.Logic_then()=Logic_then();
    }

    1.
    It should be
    var theQuestion:Question = new
    Question(sType,sCondition:string,sQnumber,sQheading,sPretext,sQtext,sPosttext,
    sCodeframe,sReserved,sEditableFrom,sEditableTo,sDecimal,sSetQfactor,sLogic_if,sLogic_then )
    As you don't have default values in the constructor - you
    should specify the parameters.
    2. why do use type "string" ? It should be "String" if you
    refer to a standard type
    3. What are you trying to say by this:
    public var Codeframe():string;
    public var Logic_if():string;
    public var Logic_then():string;
    There should not be any parenthesis in the variable
    declaration.
    4.
    this is wrong
    var Question():Question=new Question();
    this even wronger
    var Question():Array=new Question(); // I'm trying to create
    an array here anyway...could this be the problem??
    no parenthesis!
    var Qs():Question=new Question();
    hmmmm....
    .var Qs()=new Question();
    I think you should start reading from the following link to
    get more understanding of the variables, types & declarations:
    http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDo cs_Parts&file=00001863.html
    Cheers,
    Dmitri.

  • Problem when define Value range for data element

    Dear
    When I define a new data element in ABAP Dictionary, for example, ZDATA_ELEMENT_TEST.
    I use domain ZDOMAIN_TEST.
    (Data type is DEC, the length is 10, and decimals is 2 with sign.)
    Now, I want to restrict that, user can ONLY input the value from 10 to 100.
    From ABAP course and the Internet, I switch to "Value Range" tab, and define 10 for Lower Limit, 100 for Upper Limit in Intervals section.
    And write the simple program.
    PARAMETERS test TYPE ZDATA_ELEMENT_TEST.
    WRITE: test.
    And run it.
    Line: -
    But, there is a problem.
    When I input 200 for test, the program still run and display 200 to screen without any error report or notification. The ABAP runtime system doesn't check the input value.
    I want to config for the domain that can satisfies, if the user input the wrong value (e.g: 200 in the previous case), the program will auto raise the error report, or exception, or sth like that.
    Any help is welcome.

    Hi Hanni,
    Welcome to forum.
    Try to attach key word VALUE CHECK to your PARAMETER statement.
    I.e:
    PARAMETERS test TYPE ZDATA_ELEMENT_TEST VALUE CHECK.
    Note: The addition VALUE CHECK cannot be used together with the additions AS CHECKBOX, RADIOBUTTON, or NO-DISPLAY.
    Regards,

  • Function error when calling in background

    Hi people! I need some help please.
    I have an program that call an RFC function. This RFC function made select in BSAD, and because of the range, will return a lot of registers, so it cause timeout. We tried run it on backgroung, but after 1 hour app, an short dump occurs with the message CALL_FUNCTION_REMOTE_ERROR. I think the cause of this error is select taking too long time. Whats go wrong? In background mode even with a lot os data, should work, no?
    Thanks!

    Hi,
    If you can check more detais about errors in the SM58 in the source system or ST22.
    It is helpfull to execute the RFC with ST05.
    And if you need to change any data for RFC Destination, check transaction SMQS.
    Regrads,
    Fernando

  • Hyperion Reports - HFMCurrency function error when expanding rows

    <p>Im using Hyperion Reports 7.2.On the report in the production environment, Ihave a cell containing a HFMCurrency function with a conditionalformatting:</p><p> </p><p>    I<b>n<<HFMCurrency("Grid1", 5, A, 1)>>Thousands</b></p><p> </p><p>    Conditional formatting applied:</p><p> </p><p>        IF Member NameValue contains Contributions</p><p>        OR</p><p>        IF Member NameValue contains Parent</p><p>        OR</p><p>        IF Member NameValue equals Proportion</p><p>    </p><p>        THEN ReplaceString Value : In USD Thousands</p><p> </p><p>The report contains multiple expandable rows. Everytime a row isexpanded it returns this value with an error on the cell containingthe formula:</p><p> </p><p>    <b>In Error: Unable to get cell valueThousands</b></p><p> </p><p>It's weird because the error on the report does not persist inthe development environment. Any insights will be helpful. You mayreply on this thread or send directly your comments to:[email protected]</p><p> </p><p>Thanks.</p><p> </p>

    If you use this function/syntax on the row without expansions does it work?<BR><BR>If so, I believe the issue has to do with the syntax. You might need to use the current keyword to make the function dynamic (for example, <<HFMCurrency("Grid1", current,A,1)>>). When you write the formula with a fixed value for rows, it's not dynamic (for the expanded rows). <BR><BR>Although, I wouldn't expect you to get an error, just the wrong description. <BR><BR>To narrow it down, I would try the function on a row w/o expansions or conditional formatting. Then add expansions. If that works, add back the conditional formatting.

  • Error when defining Xi-track in CMS

    Hi,
    when I try to create an Xi track in CMS and when saving I get this error:
    Unexpected error; inform your system administrator: com.sap.cms.util.exception.CMSUnexpectedException: Reading GDI ... FAILED. Source is not well formed. SAXParseException at line -1, column -1. Details: Message: Generic Exception: Stacktrace: com.sap.engine.lib.xml.parser.NestedSAXParserException: Generic Exception:  -> com.sap.aii.util.misc.api.BaseRuntimeException: Parsing generic data instance: begin of unexpected element "html"! at com.sap.aii.util.hmi.core.gdi2.GdiCharStreamer$GdiCharReader.startElement(GdiCharStreamer.java:344) at ....
    Anybody that has experienced the same or understand why?
    We are running NW2004s
    XI URL Development is set to http://host1:51700/rep/
    XI URL Consolidation is set to http://host2:53600/rep/
    Kind regards Johan

    Hi found out the error on my own but thought I should share...
    The CMS tries to connect to http://host1:51700/rep/cmstransport/int and http://host2:53600/rep/cmstransport/int with the CMS user defined in Domain Data, in my case user cmsadm.
    The password for this user had expired in both client systems and instead of downloading a XML the CMS was prompted by an HTML page requesting a password change...
    rgds Johan

Maybe you are looking for

  • Please help for using perform in SAP script

    As subject. My sap script code as below: /: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004 /:USING    &SPELL-WORD& /:CHANGING &SPELL-WORD& /:ENDPERFORM My program ZRAP004 code as below: FORM get_chamt_date USING u_iword TYPE spell-word                   

  • Need to remove crop lines set in custom function 3

    Hello All, I need help! I set the custom function 3 to the on position, thinking it would just give me lines to show where an 8x10 crop would be ~ I did not realize that it would actually crop all of my images. I shoot raw and I have imported them in

  • Installing printers via GPO

    Hi guys, I'm trying to deploy a printer using a GPO and I wonder what's the difference between deploying "USER|Computer\Policies\Windows Settings\Printer connections" and "USER|Computer\Preferences\Control Panel Settings\Printers" By the way, my coll

  • Creating a curved line made up of repetitive objects

    Is there a way to create a curved line consisting of what looks like disconnected arrows? Something like this but curved: > > > > > > > > > > I thought I once did something like this...just drawing a line and instead of the solid line it was a line o

  • How to make the notification sounds play through EarPods

    The notification sounds/ringer on my iPod touch keeps playing through the external speakers even though I have EarPods plugged in. If I turn on a video of game tho, it will play through the earpods. Is it possible to make the notification sounds play