Mathematical expressions are converted to gibberish

When feeding a pdf with text and equations into ExportPDF, text is correctly converted in the resultant docx  but equations or mathematical expressions are returned as gibberish. Is there a way to get correct this?

Hi,
Try turning of OCR feature in ExportPDF(See screenshot below). It might help
~Pranav

Similar Messages

  • How do I turn a string into a mathematical expression?

    Hi,
    I'm creating a calculator program and I'm trying to take a mathematical expression from a JTextField, like 1 + 2, and turn it into an actual expression that will give me the answer. Is there any way to do this?
    Thanks in advance

    Yes, but as far as I know, you have to do it yourself. It just boils down to string parsing. I'd rather not give you too much advice for fear that it's a school project. Try it out and post any specific problems that you're having.
    Some minor advice... you'll find the String and StringTokenizer classes helpful, along with the java.math package.
    I did it by taking the string and converting it to chars and
    pushing all the chars on the stackYou deal with stacks but not the stack in Java. Anyways, why use a stack? How will you be able to deal with order of operations if you use a stack and pop them one at a time?

  • Some CGM graphics do not appear when FrameMaker files are converted to PDF

    CGM files are exported from ISO (Arbortext Isodraw 7.0 CadProcess) files. Then they are imported into Adobe FrameMaker 7.2, where all elements of the illustration are visible and can be printed. The FrameMaker FM file is converted to a PDF file using the Adobe PDF converter function of Frame. When the PDF file is opened by Adobe Acrobat 8,0 Professional, some, but not all of the illustrations in the file exhibit this problem (The callouts and other text may appear, but the lines, curves, etc. do not). The illustration prints the same way it appears on the screen. When exporting the ISO file as a CGM, the following selections are made.
    When importing file into Frame, "Import by Reference" is selected.
    When creating PDF in Frame, the following selections are made.
    Any Suggestions would be greatly appreciated. Thanks very much.

    Thanks, Michael.
    I will give it a try.
    Avox Systems Web Site: http://www.avoxsys.com
    AVOX SYSTEMS
    AIRCRAFT SYSTEMS
    Rick Barusic
    Senior Technical Writer
    225 Erie Street - Lancaster, NY 14086 - USA
    Tel: 716-686-1706
    [email protected]
    http://www.zodiacaerospace.com
    The information transmitted is intended only for the person or entity to
    which it is addressed and may contain confidential and/or privileged
    material. Any review, retransmission, dissemination, or other use of or
    taking any action in reliance upon this information by persons or entities
    other than the intended recipient is prohibited. If you received this in
    error, please contact the sender and delete the material from any
    computer.
    From:   MichaelKazlow <[email protected]>
    To:     rick barusic <[email protected]>
    Date:   11/24/2010 10:32 PM
    Subject:        Some CGM graphics do not appear when
    FrameMakerfiles are converted to PDF
    First you should update to the latest version of Acrobat 8, since you say
    you are running Acrobat 8, you should update to 8.2.5. Update your
    FrameMaker to 7.2p158. Those two steps might do the trick. If that fails
    try using a different settings file. Perhaps High Quality or Press
    Quality. I would never use Standard for anything where fidelity is
    important.

  • SOME FIELDS OF WORK AREA ARE CONVERTED TO ***** AT AT NEW STATEMENT

    HELLO
    SOME OF THE FIELDS OF WORK AREA ARE CONVERTED INTO *********** AT AT NEW STATEMENT .FIND BELOW THE CODE
    *& Report  YTEST_OBJECTS7
    REPORT  YTEST_OBJECTS7.
    Program Description
    Author.........: Jitendra Dash                                       *
    Creation date..: 17/09/2010                                                    *
    GAP ID/FS Id...:                                                     *
    Transport......:                                                     *
    Description u2026..:                                                     *
    CHANGE HISTORY u2013 Should be completed in reverse date order           *
    Revised by........: <Developer name>                                 *
    Change date.......: Date of creation>                                *
    CR/Defect No......:  <Change Request No>/ <Defect#<xxx>              *
    Transport.........: <Request No>                                     *
    Description.......: Description about modification                   *
    Data Declaration
    TYPES: BEGIN OF gx_input,
             NEMI      TYPE EXT_UI,
             DIVISION  TYPE SPARTE ,
             DATE      TYPE ERDAT,
             DATE1     TYPE ERDAT,
           END OF gx_input.
    TYPES: BEGIN OF gx_input1,
             NEMI      TYPE EXT_UI,
             DIVISION  TYPE SPARTE ,
             DATE      TYPE ERDAT,
             DATE1     TYPE ERDAT,
             int_ui    TYPE INT_UI,
             ANlage    type   anlage,
             SERVICE   TYPE SERCODE,
             SERVICEID TYPE SERVICE_PROV,
             SPARTE    TYPE SPARTE,
            END OF gx_input1.
    TYPES : BEGIN OF gx_euitrans,
            INT_UI TYPE INT_UI,
            EXT_UI type EXT_UI,
            END OF gx_euitrans.
    TYPES : BEGIN OF gx_eservice,
            INT_UI TYPE INT_UI,
            SERVICE TYPE SERCODE,
            SERVICEID TYPE SERVICE_PROV,
            SPARTE    TYPE SPARTE,
            END OF gx_eservice.
    TYPES : BEGIN OF gx_inst,
            int_ui TYPE INT_UI,
            ANlage type   anlage,
            END OF gx_inst.
    TYPES : BEGIN OF gx_ever,
            ANLAGE TYPE anlage,
            EINZDAT TYPE EINZDAT,
            AUSZDAT TYPE AUSZDAT,
            VERTRAG type VERTRAG,
            vkonto TYPE VKONT_KK,
            END OF gx_ever .
    TYPES : BEGIN OF gx_fkkvkp,
            VKONT type VKONT_KK,
            GPART type GPART_KK,
            END OF gx_fkkvkp.
    DATA : GIT_INPUT TYPE STANDARD TABLE OF GX_INPUT,
           git_euitrans TYPE STANDARD TABLE OF gx_euitrans,
           git_eservice TYPE STANDARD TABLE OF gx_eservice,
           git_inst TYPE STANDARD TABLE OF gx_inst,
           git_ever TYPE STANDARD TABLE OF  gx_ever,
           GIT_INPUT1 TYPE STANDARD TABLE OF GX_INPUT1,
           GIT_fkkvkp TYPE STANDARD TABLE OF GX_fkkvkp,
           WA_INPUT TYPE gx_input,
           wa_euitrans LIKE LINE OF git_euitrans,
           wa_eservice like LINE OF git_eservice,
           WA_inst LIKE LINE OF git_inst,
           wa_ever LIKE LINE OF git_ever,
           wa_INPUT1 like LINE OF git_INPUT1,
           wa_fkkvkp like LINE OF GIT_fkkvkp.
    DATA: gv_v_localfile TYPE localfile,
          gv_g_localfile type string,
          gv_g_alocalfile type string,
          gv_g_sender type SERVICE_PROV,
          gv_g_reciever type SERVICE_PROV.
    CONSTANTS : GC_AINP TYPE c LENGTH 50 VALUE '/tmp'.
    ************Selection screen for input *********************
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE t1.
    PARAMETERS : p_rad1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND chk,
                 p_rad2 RADIOBUTTON GROUP grp,
                 p_file TYPE file_table-filename MODIF ID m1,
                 p_afile TYPE file_table-filename MODIF ID m2.
    SELECTION-SCREEN END OF BLOCK b1.
    ***************Initialization*****************************
    INITIALIZATION.
      t1 = text-001.
    ***Selection of Appl ser and Presen ser for I/P file******
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'.
          IF screen-group1 = 'M2'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ELSEIF p_rad2 = 'X'.
          IF screen-group1 = 'M1'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDIF.
      ENDLOOP.
    **F4 help for inputting the Filename from presentation Ser*
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name  = sy-repid
          dynpro_number = sy-dynnr
          field_name    = p_file
        CHANGING
          file_name     = gv_v_localfile
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
      IF sy-subrc = 0.
        MOVE gv_v_localfile TO p_file.
        move gv_v_localfile to gv_g_localfile.
      ENDIF.
    ***F4 help for file on Application Server*******************
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_afile.
      CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
        EXPORTING
          directory        = GC_AINP
          filemask         = ' '
        IMPORTING
          serverfile       = p_afile
        EXCEPTIONS
          canceled_by_user = 1
          OTHERS           = 2.
      IF sy-subrc = 0.
        move p_afile to gv_g_alocalfile.
       MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    START-OF-SELECTION.
      IF p_rad1 = 'X'.
    *************Upload file into Itab from pres server*********
        CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
             FILENAME                      = gv_g_localfile
      FILETYPE                      = 'ASC'
            HAS_FIELD_SEPARATOR           = '|'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      CHECK_BOM                     = ' '
      VIRUS_SCAN_PROFILE            =
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
           TABLES
             DATA_TAB                      = GIT_INPUT
        EXCEPTIONS
          FILE_OPEN_ERROR               = 1
          FILE_READ_ERROR               = 2
          NO_BATCH                      = 3
          GUI_REFUSE_FILETRANSFER       = 4
          INVALID_TYPE                  = 5
          NO_AUTHORITY                  = 6
          UNKNOWN_ERROR                 = 7
          BAD_DATA_FORMAT               = 8
          HEADER_NOT_ALLOWED            = 9
          SEPARATOR_NOT_ALLOWED         = 10
          HEADER_TOO_LONG               = 11
          UNKNOWN_DP_ERROR              = 12
          ACCESS_DENIED                 = 13
          DP_OUT_OF_MEMORY              = 14
          DISK_FULL                     = 15
          DP_TIMEOUT                    = 16
          OTHERS                        = 17
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ELSEIF p_rad2 = 'X'.
    *************Upload file into Itab from Applic server*********
    ************file should be ; seperated and not tab seper******
       TRANSLATE gv_g_alocalfile USING '\/'.
       OPEN DATASET gv_g_alocalfile FOR INPUT MESSAGE gv_LC_MESSAGE in TEXT MODE ENCODING DEFAULT.
       IF sy-subrc = 0.
         DO.
           READ DATASET gv_g_alocalfile INTO wa_xls.
           IF sy-subrc IS NOT INITIAL.
             EXIT.
           ELSE.
             APPEND wa_xls TO git_xls.
           ENDIF.
         ENDDO.
       ENDIF.
       close DATASET gv_g_alocalfile.
      ENDIF.
      SELECT INT_UI EXT_UI from EUITRANS
                           into CORRESPONDING FIELDS OF TABLE git_euitrans
                           for ALL ENTRIES IN  GIT_INPUT
                           WHERE ext_ui = GIT_INPUT-NEMI.
      SElect INT_UI
             SERVICE
             SERVICEID
             SPARTE    from ESERVICE
                       into CORRESPONDING FIELDS OF TABLE git_eservice
                       FOR ALL ENTRIES IN git_euitrans
                       where INT_UI = git_euitrans-INT_UI .
      SELECT INT_UI
             ANLAGE from euiinstln
                    into CORRESPONDING FIELDS OF TABLE GIT_INST
                    FOR ALL ENTRIES IN  git_eservice
                    WHERE INT_UI = git_eservice-INT_UI.
      LOOP AT git_eservice into wa_eservice.
        READ TABLE git_euitrans into wa_euitrans
                                with KEY int_ui = wa_eservice-int_ui.
        IF SY-SUBRC = 0.
          READ TABLE git_input into wa_input
                               WITH key NEMI = wa_euitrans-EXT_UI.
          IF SY-SUBRC = 0.
            READ TABLE  GIT_INST into WA_INST
                                     with key int_ui = wa_eservice-int_ui.
             IF Sy-subrc = 0.
                  wa_input1-NEMI = wa_input-NEMI      .
                  wa_input1-DIVISION = wa_input-DIVISION.
                  wa_input1-DATE = wa_input-DATE.
                  wa_input1-DATE1 = wa_input-DATE1.
                  wa_input1-int_ui = wa_eservice-int_ui.
                  wa_input1-anlage = WA_INST-anlage.
                  wa_input1-SERVICE = wa_eservice-service.
                  wa_input1-SERVICEID = wa_eservice-serviceid.
                  wa_input1-SPARTE  = wa_eservice-sparte.
            Append wa_input1 to git_input1.
             ENDIF.
          ENDIF.
        ENDIF.
        clear : wa_eservice,wa_input,WA_INST,wa_euitrans,wa_input1 .
      ENDLOOP.
      SELECT anlage
             EINZDAT
             AUSZDAT
             VERTRAG
             VKONTO  from ever
                     into CORRESPONDING FIELDS OF TABLE git_ever
                     FOR ALL ENTRIES IN git_input1
                     WHERE anlage = git_input1-ANLAGE
                       and EINZDAT = git_input1-DATE
                       or  AUSZDAT = git_input1-DATE1.
      Select Vkont Gpart from fkkvkp
                         into CORRESPONDING FIELDS OF TABLE git_fkkvkp
                         for ALL ENTRIES IN git_ever
                         where  Vkont = git_ever-Vkonto.
    LOOP AT  git_input1 INTO wa_input1 .
    IF wa_input1-SPARTE = 01  .
    CASE wa_input1-SERVICE.
      WHEN 'FRMP'.
        gv_g_sender = wa_input1-SERVICEID.
      WHEN 'LNSP'.
        gv_g_reciever = wa_input1-SERVICEID.
    ENDCASE.
    ELSEIF wa_input1-SPARTE = 02 .
    CASE wa_input1-SERVICE.
      WHEN 'FRO'.
        gv_g_sender = wa_input1-SERVICEID.
      WHEN 'DB'.
        gv_g_reciever = wa_input1-SERVICEID.
    ENDCASE.
    ENDIF.
    data : int_ui TYPE INT_UI.
    *int_ui = wa_input1-int_ui .
    AT NEW int_ui .
    READ TABLE git_ever into wa_ever with key  anlage = wa_input1-anlage.
    READ TABLE git_fkkvkp INTO wa_fkkvkp with key Vkont = wa_ever-Vkonto.
    CALL FUNCTION 'ZIN_COMEV_CUSTDETAILNOTIF_OUT'
      EXPORTING
        Y_SENDER              = gv_g_sender
        Y_RECEIVER            = gv_g_reciever
        Y_PARTNER             = wa_fkkvkp-gpart
        Y_BASIC_PROCESS       = 'ZCDNO'
      Y_SWITCHNUM           =
      Y_SEN_LOAD            =
        Y_INTUI               = wa_input1-int_ui
      Y_TRANSACTIONID       =
        Y_DATE                = wa_input1-DATE
    IMPORTING
      X_TASK_ID             =
    TABLES
       IDOC_STATUS           =
       IDOC_CONTRL           =
       XYT_ERROR             =
    EXCEPTIONS
      GENERAL_FAULT         = 1
      NOT_FOUND             = 2
      OTHERS                = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDAT.
    ENDLOOP.
    IN THIS PROGRAM AT AT NEW STATEMENT IN LOOP SOME OF THE FIELDS OF wa_input1 IS CONVERTED TO ***** E.G  wa_input1-anlage.
    pLEASE HELP ME OUT

    HELLO
    My Q is some fields at AT NEW statement turns into *****.Please help me out
    TYPES: BEGIN OF gx_input1,
             NEMI      TYPE EXT_UI,
             DIVISION  TYPE SPARTE ,
             DATE      TYPE ERDAT,
             DATE1     TYPE ERDAT,
             int_ui    TYPE INT_UI,
             ANlage    type   anlage,
             SERVICE   TYPE SERCODE,
             SERVICEID TYPE SERVICE_PROV,
             SPARTE    TYPE SPARTE,
            END OF gx_input1.
    GIT_INPUT1 TYPE  gx_input1.
    LOOP AT  git_input1 INTO wa_input1 .
    AT NEW int_ui .----
    >hERE FIELDS OF wa_input1 ARE TURNED INTO *                                                                               
    EX: wa_input1-ANLAGE =******** AFTER AT IN COMMAND.
    END AT
    eNDLOOP

  • Links in Reflow are converted to  lowercase

    URL links in Edge Reflow are converted to lowercase and attempts to restore upper and lower case are overridden by the program.  Other than changing the html code in Dreamweaver is there a fix for this or is it a bug?

    This is a bug in Reflow. We've fixed it internally and you'll get it in the next release.
    Chris

  • When downloading text, quotation marks, commas & apostrophes are rendered as gibberish. How can I cure this?

    I use IBM Lotus Symphony as my default word processor. When I download materials as .txt, all apostrophes, quotation marks and hyphens are shown as gibberish> How do I get them to download and display normally?
    == This happened ==
    Every time Firefox opened
    == Some time ago

    I want to ask for more information. Do these files look ok in Firefox/Lotus/and another word processor? Where do you download them from and to?
    If you have a problem with display of fonts in Firefox, you can try to change font setting in Tools menu, Options window, Content panel, fonts section.

  • Exporting my Illustrator file as layered PSD files.... some are converting some are flattening?

    Anyone know why half the files are flattening and half are converting to editable layer files when exporting to PSD layer files?

    You have Transparencies applied which are modifying the Objects on the Layers below the one on which it is applied.

  • Why summaries are converted to character when exported to excel??

    Hi,
    When i export my discoverer workbooks to excel, all of my summaries are converted to character type and excel gives error messages for each cell and asks to convert them back to numbers. Its not possible to do so because Discoverer plus is a client tool and no client would prefer rework. They'll simply say why to use Discoverer then?
    Any suggestions appreciated.
    Thanks.

    Using Acrobat DC and the acrobat arrow tool. By right clicking on an image a submenu pops up. One of the items in that list is "Edit Image".  Ordinarily or historically this would then open the image in Photoshop as a temp file. Edits could be made and saved and the image would be auto updated back into the PDF.  In DC when selecting edit image, the document goes into a edit mode and the entire file gets converted into RGB color.  From here one could again right click on the same image and get the option to edit using another program, (like photoshop).  When returning back to document mode, the RGB conversion remains.
    I determine the files are converted to RGB by using the inspector tool in Acrobat as well as looking at the colorspace in Photoshop
    I determined the files were CMYK by building them that way and again verifying using Pitstop inspector.
    Following screen grabs show image before / and after selecting "Edit Image"

  • Which Forms Item properties are converted to APEX?

    Has it been documented which Forms item properties are converted to APEX with the Application Migrations tool?
    For instance the 'required' property will be converted, but item properties like 'format', 'initial value', 'hint', 'tooltip', 'auto hint', 'justification', 'case restriction' and 'max length' are ignored
    I hope more Forms item properties will be converted in a next APEX release.
    Regards,
    Mathieu

    Hello Roel,
    Thanks for the suggestion. I have read that piece of paper, but it doesn't tell you in detail what item properties are converted.
    I would have liked for instance that the "hint text" property is converted into a help text for a page item.
    If the auto hint or tooltip is set in forms, than the Template label of a page item should be set to optional/required with help.
    and so on...
    There are more item properties which could have a destination in APEX, I reckon.
    Now it's difficult to tell which are and which aren't converted.
    As soon as you have this kind of list you know which post configuration actions you have to perform.
    regards,
    Mathieu

  • Japanies characters are converting to # in output file in open dataset

    Hi Experts,
    I am trying to transfer data from my internal table to application server. When i use
    Open Dataset e_file for output in text mode encoding NON-UNICODE ignoring convertion errors.
    All Japanies and chines characters(double byte characters) are converting to "#" in output file. I have used set locale language commend also.Still same problem is there.
    Could you please any one help me on this.
    Thanks
    Srinivas

    hi
    problem exporting text in hebrew
    Similar kind of problem has been solved here.. check that link first
    Use the class CL_ABAP_CONV_OUT_CE and use it to convert file from unicode to ascii.
    After that you should call OPEN DATASET IN LEGACY MODE and write the file.
    you have to find the Code Page format for japanese here..
    Is your system Unicode enables, if not please check whether you have japanese installed on your system.
    Run the program RSCINST in SE38 which throws a pop up if u work on a Unicode system and also shows what are the language packs currently installed on ur system.... if u dont have Japanese installed then u need to contact Basis People for installion of that language pack

  • Airport Extreme and Airport Express are not found on the Airport Utility.  Internet still works.  Huh?

    Good People,
    I have an Airport Extreme serving as my wireless router with an external hard drive connected to it.  I also have an Airport Express in another room connected to a stereo for Airplay.  Neither can be found on the Airport Utility (v5.5.3), but wireless internet still works.  This happens often, with both reappearing in Airport Utility for short amounts of time periodically.  What's the deal?  Both the Extreme and Express are less than 6 months old.  It's a bit frustrating not getting tunes when you have everything set up right and not being able to use Time Machine consistently.
    All recommendations appreciated.
    Thanks.

    shakeelium wrote:
    Good People,
    I have an Airport Extreme serving as my wireless router with an external hard drive connected to it.  I also have an Airport Express in another room connected to a stereo for Airplay.  Neither can be found on the Airport Utility (v5.5.3), but wireless internet still works.  This happens often, with both reappearing in Airport Utility for short amounts of time periodically.
    I've once had the same problem.
    The reason for that issue is the frequency (radio band) hopping of the station.
    On your AP-Extreme
    Enter the manual setup
    Disable Guest Network if not desperately needed
    Set a dedicated name for the 5GHz wireless (wireless -> wireless options)
    Eventually change the radio mode (if no 802.11b/g systems in your home) to "only 802.11n (5GHz) - only 802.11n (2.4GHz)" by holding down the option key *alt* while clicking on the drop down.
    On your Mac
    Disable (switch off) wireless
    Enter system configuration -> network -> wireless
    Uncheck "Ask to join new networks"
    Enter advanced options and check that your wireless name is in the first position of the list. If not, drag it with the mouse to the first position.
    Click apply
    Join your wireless again and try to connect to the 5GHz name (SSID) because the 5GHz will improve the connection speed of your Mac remarkably.
    Eventually you might change the settings on the Express too.
    Check the location of the AP-Extreme.
    It should NOT be placed: On the floor, in a corner, behind furniture, near metal objects, life high voltage wire or cordless phone bases.
    It should be placed: As high as possible (up on a shelf or ceiling mounted) with a maximum line of sight to all stations, even thru walls.
    If your home situation allows that, try to use the 5GHz band only. If you own a iPhone this must use the 2.4GHz radio.
    Lupunus

  • Spot colors are converted!!!

    Spot colors are converted to rgb or cmyk when you upload them
    to the kuler website.

    Kuler does not support spot colors at this time, so there's
    no way to maintain them when you upload a theme built with spot
    colors.

  • How to define mathematical expression from the GUI textfield?

    Dear Sirs,
    I would be very grateful if you could advise in the following problem. I need that an arbitrary function, say f(x)=x^2+sin(x), was entered in the GUI textfield and then this function could be placed, e.g. in a loop for other mathematical calculations. The java program should understand that this is not a text but a mathematical expression. How can I achieve this? I would like to make an online java solver for ordinary differential equations (ODE) system in my university. Therefore the student should define somehow this ODE system, i.e. mathematical expressions, in my Java program.
    Thank you for an advance!!
    Anatoly Khripov, PhD,
    Associate professor,
    department of processes and food manufacturing facilities,
    St. Petersburg State University of Refrigeration and Food Engineering,
    St. Petersburg, Russia
    home page: http://model-gunipt.narod2.ru/index2.htm
    http://www.gunipt.edu.ru/en

    There's no need for files anywhere; have a look at this little example snippet:
    import javax.script.Invocable;
    import javax.script.ScriptEngine;
    import javax.script.ScriptEngineManager;
    public class ScriptDemo {
        public static void main(String[] args) {
            ScriptEngineManager manager = new ScriptEngineManager();
            ScriptEngine engine = manager.getEngineByName("JavaScript");
            try {
                 String expression = "function add(x, y) { return x+y; }";
                engine.eval(expression);
                 engine.put("a", 41);
                engine.put("b", 1);
                Invocable invocable= (Invocable)engine;
                double d= (Double)engine.eval("add(a, b)");
                System.out.println(d);
                System.out.println("add(1, 41)= "+invocable.invokeFunction("add", 1, 41));           
                System.out.println("add(a, b)= "+invocable.invokeFunction("add", "a", "b"));
                System.out.println("add(a, b)= "+engine.eval("add(a, b)"));
            } catch (NoSuchMethodException nsme) {
                 nsme.printStackTrace();
            } catch(Exception e) {
                e.printStackTrace();
    }kind regards,
    Jos

  • Hi one pressing enter the fields are converted to upper case

    hi
    in table maintiance module pool program i have created thre are three fields
    kunnr name1 and email id
    now on pressing enter on maintiance screen the all the theree fields are converted to upper case i want to avoid this conversion to upper case....
    pls suggest
    and on pressing enter PAI is callled i want to avoid pai being called at this point of time
    regards
    Arora

    yes i have activated the table
    for tabel mantiance generater it is coming as disble so i suppose no need to gernereate table mantiance gerneartor again/
    ys in dynpro for shp to name uppe or lower case check box is checked but it is coming as disabled.
    pls suggest  how to delect it and wht does upper/lower case check box in special attributed means?
    regards
    nishant

  • When pressing enter the values are converted to upper case in module pool

    hi
    tehre are three fields for maintanece in module pool
    wheni press enter the fields are converted to upper case i want to avoid this as i dont want to have the upper case
    i need to save in table as waht user has inputed not in upper case
    so i dont want the fields to be automatically converted to upper case whne pressing enter on screen
    regards
    Nishant

    hi Nishant ,
    <b>The solution to ur problem is breifly explained with a sample module pool program .</b>check it below :
    IN the TOP INCLUDE**********************
    DATA :
           wempid TYPE z7684dp-empid ,   " same name as in the screen declaration
           wname TYPE  z7684dp-name,
           wacc TYPE  z7684dp-account,
           wdesg TYPE  z7684dp-designation,
           ok_code TYPE sy-ucomm ,
           wa_z7684dp TYPE z7684dp,
           t_z7684dp TYPE STANDARD TABLE OF z7684dp,
    *****IN THE PAI OF THE SCREEN 100(for example)***********
    MODULE user_command_0100 INPUT.
      CASE ok_code .
        WHEN 'CRE' .                 " function code for the pushbotton to insert the values
    TRANSLATE wdesg TO LOWER CASE.
    TRANSLATE wempid TO LOWER CASE.
    TRANSLATE wname TO LOWER CASE.
    TRANSLATE wacc TO LOWER CASE.
          wa_z7684dp-empid = wempid .
          wa_z7684dp-name = wname .
          wa_z7684dp-account = wacc .
          wa_z7684dp-designation = wdesg .
          INSERT INTO z7684dp VALUES wa_z7684dp .
          IF sy-subrc EQ 0 .
            MESSAGE 'SUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ELSE .
            MESSAGE 'UNSUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ENDIF.
          CLEAR: wa_z7684dp , wempid , wname , wacc , wdesg.
    REVERT BACK WITH ANY FURTHUR QUERIES
    <b>DO REWARD WITRH POINTS IF USEFUL :)</b>

Maybe you are looking for

  • How to create a more general install package for an AIR app?

    Hi, I have been using the ADT to compile an exe of my AIR app along with some other files I want to distribute. Problem is, I would like to do more general install actions (e.g. copy a bunch of files to the users Documents directory, copy a file to t

  • Return Delivery Goods Receipt amount takes current MAP instead of old MAP

    Hi, I'm facing a problem in the following scenario: 1. Sales order is created 2. Delivery is created 3. Goods Issue for the Delivery is posted (cost of goods sold = current moving average price of material = 100 SEK) 4. Invoice is created Event: Movi

  • TNS-12560: TNSrotocol adapter error

    Iu2019m installing SAP ERP 6.0 on a Windows server 2008 with Oracle 10.2.0.4.0. First of all I installed the Oracle software by means of Oracle Universal Installer.Then I used the Sapinst tool. At the step u201CConfigure Oracle server Networku201D I

  • When I send a text it doesnt show in my sent box

    Have just bought a nokia 6300. When I send a text message and check in my sent box afterwards why does it never show the texts I have sent, it says box is empty yet when I check the message log it shows the message has gone. Also, stupid question but

  • Installing oracle 11.2 rac with IBM Storwize V7000 san with aix 6.1

    Has and one deployed 11g rac with IBM Storwize V7000 san with aix 6.1 Is this possible using Oracle CRS without going for OS cluster like GPFS