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.

Similar Messages

  • 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.

  • 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.

  • MacBook Pro freezes when using any app other than the web browser.

    My MacBook freezes when using any app other than the web browser. I can open up Google Chrome and use it all day with no problem, but if I minimize it and try to browse through photos in my picture folder or do anything that involves the Finder, the computer just freezes up and I get the rainbow wheel. If I put in a CD to play it, the computer freezes with the rainbow wheel. Any suggestions? I would like to use the mac for more things than the internet.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • FormulaCalc error when using variablesin variable files?

    I defined two variables RForce_ and IntLength_' in variables files:
    as following:
    IntLength_ : I <1700>
    RForce_ : R <1.4314>
    in vbs file,I have following:
    Call FormulaCalc("Ch('PSA_Kraft') := ('RForce_'-'RForce_'/'IntLength_'*'Gurtweg')")
    When I run the vbs file,diadem reports following error:
    The formula
    Ch('PSA_Kraft') := ('RForce_'-'RForce_'/'IntLength_'*'Gurtweg')
    contains an invalid mathematical operation .. ('RForce_'>-<'RForce_'/'IntLength_'*'G.. with text!
    When I don't use variables, as following:
    Call FormulaCalc("Ch('PSA_Kraft') := (1.4314-0.000842*'Gurtweg')")
    my vbs file can run correctly.
    Anything wrong with my code?

    Hi Junwei You,
    Yes, there is a problem with the formula calculator expression.  You need to use the ' character only when you are referencing existing data channels, not for VAS file variables.  Also, I strongly recommend that you always use the full Ch('ChannelName') construct when you reference an existing data channel.  Try this instead:
    Call FormulaCalc("Ch('PSA_Kraft') := RForce_ - RForce_/IntLength_*Ch('Gurtweg')")  Note that you may need to insert further parentheses to specify the exact order of the / and * operators.
    Regards,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • 'Font contains bad/Widths' and 'Cannot find/create font' errors when saving pdf as Other Reduced Size PDF

    I am exporting .indd files from within Indesign as pdf files, opening in Acrobat Pro XI. I have no trouble creating the initial pdf file, however, when I go to Save Other > Reduced Size PDF I get error messages. Depending on the file, I receive either the message, "The font (Myriad Pro) contains bad/Widths" replacing the text with dots or "Cannot find or create the font (Helvetica) Some characters may not print or display properly" replacing text with dots or boxes.
    My confusion is that the file is exporting to pdf from Indesign without error, it is only when I try to Save Other> Reduce Size PDF that the error occurs.
    Also, it is only occurring on five out of 120 pages. These same fonts are on other pages and I have no trouble at all with exporting or Reduce Size PDF.
    More frustrating is that I have never had this problem occur in all my previous versions of Acrobat using the same process and typefaces.
    I am reaching deadline on this and cannot find a solution other than to reload Acrobat 9 and ditch this upgrade.
    Any help would be greatly appreciated.

    I, too have experienced this issue. Upon export from INDD CS6, I see the error message "The font 'IXWIPX+SourceHanSansSC-Bold' contains bad \Widths."
    The only items on the single-page InDesign document I'm trying to export are copies of a one-page PDF (which was extracted from a longer PDF, arranged into a cover format). I can provide all files as necessary. The longer document that the one page came from also experienced an error when I tried to print to Adobe PDF. While I still get a PDF of the cover on export, despite the "bad \widths" message, it won't print from certain machines. I get nothing (not even an empty shell file) from the attempt to print the larger document (where the cover elements came from) to PDF.
    I can deal with these issues with a few unorthodox workarounds, but wanted to offer comments or volunteer to help test fixes if possible.
    For the record, I'm really not enjoying Acrobat XI. It doesn't seem to have much by way of new features (at least not that I use), and some of those I used most in version X are gone or less functional. Common fonts like Times New Roman are often not found (even though they are definitely on my system); I have a much harder time editing text through the new interface, and I have a few other small gripes—some that I don't have time to get into, others that wouldn't really matter, except that they weren't a problem until I "upgraded." Just sayin'.
    Thanks for listening.

  • 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: This page has graphics other than images or text on it

    I recently upgraded to Adobe Acrobat 9 Pro, and I am experiencing a problem
    with OCR text recognition.
    If I use "Create PDF from Scanner" or "Create PDF from file" (using a
    monochrome TIFF image) to create a PDF, I can then perform OCR on the PDF
    file in Acrobat.
    But if I open a monochrome TIFF image in some other program (Irfanview) and
    print that to the Adobe PDF printer, then open that PDF in Acrobat and try
    to perform OCR on it, I get the following message:
    "Acrobat could not perform recognition (OCR) on this page because: This page
    has graphics other than images or text on it. It cannot be captured."
    If I select the scanned image in the PDF file using the TouchUp Object tool,
    and then cut it to the clipboard, I am then able to then select a second
    blank object on the page, that has the same dimensions as the scan (it is
    full page size). If I delete that object, then paste the first one back in
    (the scanned image), then OCR will work. So what is this additional object
    that is preventing OCR? I did not have this issue with versions 4-8 of
    Acrobat.
    Also, this problem appears to only pertain to 1-bit monochrome images. I
    scanned the same page to 8-bit grayscale, then printed that to Adobe PDF
    from Irfanview, and that PDF file allows OCR to be performed. Does anyone
    else have a problem using OCR when the PDF was created by printing a
    monochrome raster image to PDF?

    Not sure this will work for indesign, but for any other searches about the OCR problem with "This page has graphics other than images or text on it", I used this workaround for a huge scanned text that Acrobat 9 Pro wouldn't OCR:
    1. Save As.... > TIFF image
    This saved each page as a tiff, so if your file is big, you might want to create a special folder for it. (I had 1100 pages!)
    2. Open the folder with the TIFF images.
    3. Select all files.
    4. Right-click > Open with.... > Choose.... > Other.... > Acrobat
    5. Popup will ask if you want to open all files in a single document. Obviously a good choice for 1100 pages.
    6. After the new PDF generates, save it.
    7. Document > OCR --- should work now.
    8. If it does, don't forget to delete the folders with the TIFFs.
    Hope that helps someone.

  • HT3384 Template will not open; Pages does not respond when one chooses template other than blank

    The Pages template system crashes when I attempt to choose a template other than blank.  How do I fix this problem, so that I can successfully choose any template that I desire?

    Is it all templates or just a few? It could be a corrupt font or duplicate fonts or an out-dated font. Launch Font Book & validate fonts & check for duplicates.

  • Error when adding "permissions to other applications" in a Azure AD application

    I'm trying to give rights to access office 365 to a custom application.
    When I try to add "Office 365 Exchange Online" or "Office 365 SharePoint Online" I get an error when I click on the save button
    Could not update application   --> This
    request has a value that is not valid.
    Is it broken ? I have this issue for a web application and for a native application

    Hi, 
    what permission sets are you delegating? i see you have '3' set for exchange online and '2' for sharepoint knowing this will allow me to help further. 
    Thanks 
    James.

  • 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

  • ODI "Session Stopped" Error when refresh a variable

    Hi ,
    I have a error using ODI when I refresh a global variable and odi report this error information as "Seesion Stopped"!!!
    Does anyone come across it? Do you have any suggestion to me?
    Thank you in advance!
    Jack

    Have you got any constraints defined on your datastore at all ?
    Static control is set to what on your interface?

  • Error when using the variable System::ErrorDescription

    HI All,
    When I try to use the variable System::ErrorDescription I get the following error:
    The element cannot be found in a collection. This error happens when you try to retrieve an element from a collection on a container during execution of the package and the element is not there.
    Do I need to declare it or it's a variable that always is available to get exceptions from the execution states?

    if this is in a Script Task then:
    - add the variable in the Script task property ReadOnlyVariables list
    - in the Script Code refer to it as
    string ErrorDesc = (string) Dts.Variables["System::ErrorDescription"].Value;
    Jan D'Hondt - SQL server BI development

Maybe you are looking for

  • Add javascript to Out of the box Modal Dialogue Box in Sharepoint 2010.

    Hi, We have Sharepoint and Project Server 2010 SP-2 enviroment. We are using Project Server Timesheet for our managing Time logging. Project Server 2010 has "Add existing task" Modal Dialogue box in which I want to add "Javascript" code in order to s

  • Is it possible to retreive data and store it in database from a AWM cube?

    Hi all, Table to cube is possible by maintaining..but Is it possible to retreive data as it stored in cube and store it in database from a AWM cube? Regards, Arjun Jkoshi

  • COLOUR MANAGEMENT IN PHOTOSHOP CS2 AND COLOUR SAMPLE POINTS

    I always place colour sample points on my images in order to monitor colour changes as I adjust. When I soft proof (using using Perceptual rendering),I go to the Information pallette and right click on the colour sample points.I then choose Proof opt

  • How do i get round osx utilities and start up normally

    Apple installed fresh operating system. I pressed control R as instructed to restore from a time achine back up but that back up did not work as it said it was corrupted. Now i am just getting OSX utilities every time I start computer up. What do i d

  • Consignment Issue for BOM

    Hello All, In my company they want to do consigment with BOM's and some of the components in the BOM are free item. Poeple implemented here told we can't do this and just created consignment fillup and left the process half way. example: Customer A a