Fox editor for multiplying with minus value

Dear experts,
I am getting a source keyfigure of type amount and I need to change its value and need to send to the target in the transfornation.
So I am trying to do that in Fox formula editor ( I am not aware whether it can be done here or not but trying)
1) So I did like this
Sourcefiled * (-1)   - > Syntax check is saying formula element is not allowed here
2) Then I tried like this
Sourcefield*-1 -> Syntax check is saying formula element is not allowed here
3) I tried with using the function Reverse sign.
NEGATIVE( sourcefield ) -> Syntax check shown correct.
Please tell me which is the best practise we need to follow to multiply the source value with -1 .
Do we need to do that in the routine or fox formula is ok.
Thank you .

Hi SD,
If you have many fields which require this formula or other calculations then you can do it in End Routine.
Or if there is only one field on which you are going to apply formula then you can do it in field routine only by applying formula - In your 3 options - last option ' NEGATIVE( sourcefield )' is correct and will work fine.
For example, if you have amount field 10 then after applying this formula the amount value will be -10.
So in essence if one or two fields in transformation you can use field routine (strictly when you do not have to use any selects/loops in field routine) else you use end routine.
Please let me know if there are any questions.
Thanks
Amit

Similar Messages

  • Display a message in a For Loop  with field value

    Hello All,
    pls,i wanna display a message in a For Loop with field value the code is:
    FOR Q1 IN GET_SUM_EXP_QUANTITY LOOP               .
    INSERT INTO PLN_PLAN_DISTRIBUTION_WAY
    (FIN_YEAR_CODE , MONTH_CODE , MATERIAL_CODE , DISTRIBUTION_WAY , EXPECTED_QUANTITY , GROUP_CODE)
    VALUES (:PLN_PLAN.FIN_YEAR_CODE , TO_CHAR(V_FROM_DATE,'MM') , Q1.MATERIAL_CODE , 1 , V_MONTHLY_QTY , Q1.GROUP_CODE);
    MESSAGE(':PLN_PLAN.FIN_YEAR_CODE'||:PLN_PLAN.FIN_YEAR_CODE ||' '||'V_FROM_DATE = '||TO_CHAR(V_FROM_DATE,'MM'), 'Q1.MATERIAL_CODE'||' '|| Q1.MATERIAL_CODE||' '||'DISTRIBUTION_WAY'||' = 1'||'EXPECTED_QUANTITY'||' = '|| V_MONTHLY_QTY||'GROUP_CODE'|| ' '|| Q1.GROUP_CODE);
    FORMS_DDL('COMMIT');
    How 2 display a message with the value:
    Q1.MATERIAL_CODE
    Q1.GROUP_CODE
    message(Q1.MATERIAL_CODE)     
    gave me numeric or value error on run time when pressed on button
    Regards,
    Abdetu..

    Thanks 4 reply..
    again they r in a For Loop as mentioned above...
         INSERT INTO PLN_PLAN_DISTRIBUTION_WAY
                                                           (FIN_YEAR_CODE , MONTH_CODE , MATERIAL_CODE , DISTRIBUTION_WAY , EXPECTED_QUANTITY , GROUP_CODE)
                                            VALUES (:PLN_PLAN.FIN_YEAR_CODE , V_REPAIR_MONTH , Q1.MATERIAL_CODE , 1 , V_REPAIR_Qty , Q1.GROUP_CODE);
    FORMS_DDL('COMMIT');
    The fields in bold r required to be displayed for testing puposes..
    this gives me numeric or value error in runtime..
    Best regards,
    Abdetu..

  • Error in Visual Editor for java with eclipse

    hello eb
    till i ysterday i used visual editor for java with eclipse normally without any problem but to day when i opened eclipse it display me this error :
    Error trying to set new File into editor
    Motif : java.lang.NullPointerException
    and i think that the problem comes from the visual editor plugin because when i add a new frame or even for the old frame it dosent display for me the graphical component like every time
    if si has the solution or can advise me thank you alot and i really dont know what to do .
    it is for my stydy project and i have to finish xorking as fast as possible so if so can help me

    well this forum here is the official java-forum by Sun.
    you are asking for help on Eclipse, a software made by IBM since the cooperation between the two werent that bright all the time.(hence the name eclipse)
    i just looked a few hours myself, and the latest version of the VE was suited for 3.0.2, the version fitting to the latest 3.1 build of eclipse, was still just a release candidate.
    wait a few days/weeks for a final build and retry.

  • Report for Asset with only values (No Zero values)

    Hi All
    There is requirement where in the user wants to genenerate report for assets with  values .There should not be Zero balance assets  included in the output. In short only with values in the asset master the report needs to be generated. Can one have any idea on this .
    regards
    Navin
    Edited by: Naveen Rao on Jan 22, 2009 10:04 AM

    Hi
    Can you  please specify the report name.
    regards
    Navin

  • IDOC for CHRMAS04 with Heirarchy Values??

    Hi All,
    Hoping someone has experience in defining a IDOC for Basic Type CHRMAS04 with Heirarchy values.  Also how do I manually create one using transaction CT04.
    Basically we want the characteristic values to look as follows
    Parent 1
    Parent 2
    Parent 3
    Child 1 Linked to Parent 1
    Child 2 Linked to Parent 1
    Child 3 Linked to Parent 1
    Child 4 Linked to Parent 2
    Child 5 Linked to Parent 2
    Child 6 Linked to Parent 3
    This gives a drop down list in the characteristic display.
    I think field CAWN-ATWHI is the field that states this is a Parent value amd field cawn-ATZHH poins from the child to the parent.
    Thanks for the Help.

    The standard characteristic IDOC has all the fields required, but the definitions that come with Best Practice for Data Migration need to be modified to include these fields.
    The additional fields are as follows:
    Hierarchy
    Counter
    Parent Counter
    Value High
    The rules need to be as follows:
    Set Hierarchy = 'X' for each value which begins a level in the Hierarchty
    Set counter as a sequential value for the characteristic
    Set Parent Counter as the reference to the childs parent counter
    Set Value High as the reference to the childs parent value
    See Example Below
    NameValueValid-From DateOperator Signs GreaterLanguageHierarchyCounterParent CounterValue High
    ZPM_R_WORK_CATEGORY0119000101~ENX1~
    ZPM_R_WORK_CATEGORY0619000101~ENX32~
    ZPM_R_WORK_CATEGORY0719000101~ENX52~
    ZPM_R_WORK_CATEGORY0819000101~ENX70~
    ZPM_R_WORK_CATEGORY0919000101~ENX75~
    ZPM_R_WORK_CATEGORY010219000101~ENX21~01
    ZPM_R_WORK_CATEGORY010319000101~ENX111~01
    ZPM_R_WORK_CATEGORY010419000101~ENX171~01
    ZPM_R_WORK_CATEGORY010519000101~ENX231~01
    ZPM_R_WORK_CATEGORY013019000101~EN261~01
    ZPM_R_WORK_CATEGORY013119000101~EN271~01
    ZPM_R_WORK_CATEGORY013219000101~EN281~01
    ZPM_R_WORK_CATEGORY013319000101~EN291~01
    ZPM_R_WORK_CATEGORY013619000101~EN301~01
    ZPM_R_WORK_CATEGORY013719000101~EN311~01
    ZPM_R_WORK_CATEGORY064019000101~EN3332~06

  • Editor for ASP with syntax highlighting? (I use Bluefish)

    Is there a decent, simple (or not-so-simple) editor for ASP code?  Or, is there a way to get Bluefish to highlight ASP correctly?
    Don't suggest VIM.  I love it, but I haven't learned the intricacies of it yet. 
    And, yes, I apologize for writing ASP... 

    Hi,
    this is a short introduction, might help at start:
    Starts with some generell settings, please note that I just add these
    settings to the files in /usr/share/scite, most of the stuff can also be set in
    files in your ~. Refer to scite docs for filenames onn that.
    SciTEGlobal.properties: general settings which are mostly scattered over
    the file. Find the lines and tweak them.
    # I like my Scite with tabs and a statusbar, displaying line and column
    tabbar.visible=1
    tabbar.hide.one=1
    tabbar.multiline=1
    statusbar.visible=1
    #comment out this line to have it displayed under the textfield not besides
    #split.vertical=1
    #display line numbers (create enough space for 4 digits)
    line.margin.visible=1
    line.margin.width=4
    # ask b4 automatically reload an altered file on disk
    are.you.sure.on.reload=1
    # show name and number of my tab in titlebar
    title.full.path=1
    title.show.buffers=1
    # save the buffer state in a file
    and reload on startup
    save.recent=1
    save.session=1
    load.on.activate=1
    # allows 25 tabs
    buffers=25
    # I plain hate tabs and using 8 spaces is waste of place
    # converts tab hits to spaces
    tabsize=2
    indent.size=2
    use.tabs=0
    # some sane fontsettings: - the ! activates pango -> AA fonts
    # sets them all to similar sizes and monospace font
    # after the if PLAT_GTK these must be tabs in intendation!
    if PLAT_GTK
    font.base=font:!bitstream vera sans mono,size:9
    font.small=font:!bitstream vera sans mono,size:8
    font.comment=font:!bitstream vera sans mono,italics,size:9
    font.code.comment.box=$(font.comment)
    font.code.comment.line=$(font.comment)
    font.code.comment.doc=$(font.comment)
    font.text=font:!bitstream vera sans mono,size:9
    font.text.comment=font:!bitstream vera sans mono,size:8
    font.embedded.base=font:!bitstream vera sans mono,size:9
    font.embedded.comment=font:!bitstream vera sans mono,size:9
    font.monospace=font:!bitstream vera sans mono,size:9
    font.vbs=font:!bitstream vera sans mono,italics,size:9
    # uuh, netscape - long time not seen, replce with firefox
    if PLAT_GTK
    command.print.*=a2ps "$(FileNameExt)"
    command.scite.help=mozilla-firefox "file://$(SciteDefaultHome)/SciTEDoc.html"
    # add a vertical line at column 80
    edge.column=80
    edge.mode=1
    edge.colour=#E0E0E0
    go on to html.properties file; to get the advantages you need the php.api
    and the phpfunctions.properties from http://scintilla.sourceforge.net/SciTEExtras.html
    there you also find api files for ASP
    #replace netscape with mozilla-firefox again
    if PLAT_GTK
    command.go.$(file.patterns.web)=mozilla-firefox "file:///$(FilePath)"
    # load the .api file which I downloaded from the web; it contains, per line,
    # a short explaination of each command
    # $file.patterns.php is defined for *.php and friends by file extensions
    api.$(file.patterns.php)=$(SciteDefaultHome)/php.api
    # the calltips for the hypertext lexer shall not be case sensitive
    calltip.hypertext.ignorecase=1
    # define how the calltipps should be parsed, the following is the same as
    # the standard anyway, but might be overwritten by some people in SciTEGlobal
    calltip.hypertext.parameters.start=(
    calltip.hypertext.parameters.end=)
    calltip.hypertext.parameters.separators=,
    # some calltips have an additionally explaination after the final ")"
    # -this makes display them in a second line
    calltip.hypertext.end.definition=)
    # autocopleter stuff
    # defines which type of characters let the autocompletion pop up
    autocomplete.hypertext.start.characters=_$(chars.alpha)
    # also the autocompletion should not be case sensitive since, grrr php and html
    autocomplete.html.ignorecase=1
    # extend the "Extras" menu with some commands
    # Tidy Checking
    command.name.1.$(file.patterns.web)=HTML Tidy Validate
    command.1.$(file.patterns.web)=tidy -quiet -errors $(FilePath)
    error.select.line=1
    # Tidy Cleanup and indent
    command.name.2.$(file.patterns.web)=HTML Tidy Cleanup
    command.2.$(file.patterns.web)=tidy -i -wrap 80 -m $(FilePath)
    # the executed command alternates the file, so it should be saved b4 and must be
    # re-read -> activate are.you.sure.on.reload=1 , makes things easier to handle
    # !!!! THERE IS NO UNDO ON THIS COMMAND !!!!
    command.save.before.1.$(file.patterns.web)=1
    command.is.filter.2.$(file.patterns.web)=1
    # activate a lint checker for php files
    command.name.1.$(file.patterns.php)=Check PHP syntax
    command.1.$(file.patterns.php)=php -l $(FilePath)
    the tidy doesn't work onClick, but it shows you the errors in line and column
    some pictures to show stuff:
    the gray edge at column 80 and the php-lint checker in action:
    autocomplete code:
    the calltip, NOTE: it is wrapped after the ) which was our setting:
    calltip.hypertext.end.definition=)
    and the delimiter , let highlight the the correct argument:
    whoever want's jump in and wikify that, go ahead, leave me a note where
    I shall help.
    -neri

  • Possible to simulate a spreadsheet for input, with static values per row

    Haven't seen this done but thought I'd ask, is it possible to simulate a spreadsheet interface in Apex? Basically, I have 9 columns each of which needs to be filled out for 10 time periods per day (row), and it's easiest for the user to tab across the columns then down to a new row / next timeslot, to fill out the whole day's worth of data, rather than entering hour by hour & then changing the timeslot manually. This would require that the value for column 1 of row 1 = 8, column 1 of row 2 = 9, column 1 of row 3 = 10 and so on. So, a tabular form but with static values on each row.
    Is this possible & if so, any pointers to what to start researching to make this work would be greatly appreciated. I know they can work in a spreadsheet & upoad it and we may go that way but this seemed like an interesting problem to see if Apex could handle it; I just am uncertain where to start on it is all.
    Many thanks for your pointers!
    gp
    Edited by: 834058 on Jul 18, 2011 10:37 AM

    Tabular report, with some modifications to have rows added at start of usage. User would on occasion need to click a control to add rows..
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Snmp for oids with multiple values

    Hi,
    So if we have array of OIDs defined in the mib file (eg, 1.3.6.1.4.1.22.1.1, 1.3.6.1.4.1.22.1.2, 1.3.6.1.4.1.22.1.3 and so on each having different values). does anyone know how can we capture this using SNMP fetchlet?
    or
    do we need to specify each oid separately?
    Thanks

    Maybe I misunderstood lushhay here. I thought lushhay wanted to associate a key with multiple values. So one way is to have the value of the Hashtable key to be an ArrayList.
    Hashtable table = new HashTable();
    String key1 = "myKey";
    String key2 = "myKey2";
    Date value1 = (some date value);
    Date value2 = (another date value);
    Date value3 = (another date value);
    ArrayList valueList = new ArrayList();
    valueList.add(value1);
    valueList.add(value2);
    valueList.add(value3);
    table.put(key1,valueList);
    This would associate "myKey1" with 3 date values stored in an ArrayList.
    There is a downside to using the string concatenation method. You assume that the content of each values will never contain a delimiter. You also assume that the values are strings. But if the values are byte[], the string concatenation will not work. If the values are Dates, it can still work, but you would have to convert it from Date to String then concatenate, then get the String value through StringTokenizer and then convert back to Date.
    But anyways, if the values are Strings (and won't contain the delimiter character), then the concatenation method would suffice.

  • Standard Report for PO with Condition Value

    HI MM experts,
    I have checked all the existing standard reports ME2*, cud not find the report which gives the
    condition value means
    Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
    condition value for the above is Rs.10, in std sap all reports are showing with net price only
    PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
    Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.

    Thank you! It is not meeting my requirement.
    I am looking for sap standard report to see the PO value or condition value which is nothing but
    Qty X net price. I do not want to touch the tables.
    for analysis purpose, i want to have the total PO value in any MM Standard Report.
    Today i am visiting every PO and looking at header data for PO value. or at item level Condition value.

  • Default text editor for files with no extension

    If I double-click on a file with a name like README, the Finder opens the file with TextEdit.app. I can easily change which editor is used if the file had an extension (e.g. if it was called README.txt or README.html), but without an extension, OS X had no way to set a preferred editor. If I open this from the terminal I can set the EDITOR environment variable, or use open -a appName, but my question is about the Finder. Thanks!

    extremely annoying. when i first switched to OS X, i had to rewite a hundred or so perl scripts for my servers... because any text file or data file or whatever, that didn't have an extension after it, would no longer open in BBEdit, like it always did in 9.2
    3 years later i'm still occasionally getting that annoying 'doh, what do i open this with' message. macs are getting dumber all the time.
    i guess apple thinks windows got it right associating the extension with the app.
    and half my 'change alls' don't stick either.

  • Accessing DefaultValues for parameters with dynamic values

    We have a custom user interface we place in front of all Crystal Reports (to maintain look&feel) that reads the parameters from the report and dynamically generates controls for user input.  The only time this doesn't work is for parameters that have dynamically generated default values.  If there is a static list of default values then we get the list from the DefaultValues collection; but if the list is dynamic then the collection is empty.
    Is there a way to force this collection to be populated, or alternatively, a way to find out what SQL query is being used to populate the parameter list?

    I think you may be out of luck. Dynamic cascading parameters (DCPs) are a relatively late addition to the Crystal Reports product line, and the Crystal Reports SDKs haven't caught up to that yet. Currently we don't have SDK access to dynamic value collections, including the SQL queries made for them. The most we can do at the moment is determine whether the parameter field uses dynamic or static values.

  • Pro*C & SQLDA with NULL value for predicate column

    Hi: I am using a C program to update a table via a dynamic sql (method 4) and SQLDA. In the update statement predicate, I have place holders (as in TBLCOL=:C000). One of the columns in the predicate contains null values, so I set L[n] = 0, V[n] = pData (which pData[0] = '\0'), *(I[n]) = -1, and T[n] = 5 (for text). I cannot find the row that I know is there.
    I cannot change my statement to contain TBLCOL IS NULL, since I don't know ahead of time if I'm looking for rows with null values for this column. The Pro*C manual says that by setting the appropriate *(I[n]) = -1, it indicates to Oracle to simulate the "IS NULL" clause, and update the appropriate rows. In my case, I receive 1403 as SQLCODE when I use TBLCOL=:C000 vs TBLCOL IS NULL. What am I doing wrong? Thank you for your help.

    You should include these columns as well;
    ChangeType (see mxi_changetype)
    ValOwner (repository)
    UserID ("jobid=<>", usermskey, GUI (mmc), DG (dyngrp), reconcile)
    IdAudit  (This is the event task (add and del member for assignments)
    ParentAuditId (AuditID of parent which last updated the attribute, not consistent)
    ChangedBy (Holds the MSKEY of the user which last changed the attribute)
    ExpiryTime
    to make sure you get a fuller picture of the audit record.
    Your selection does not cover all events and descriptions
    br,
    Chris

  • How To Display Minus value in SAP SCript

    Hello Guys.
    I am working on a Script. My Problem is that For a fields BSAD-DMBTR.
    I have to show this fields value as minus or plus as per condition with fields
    <b>bsad-shkzg</b>. In my Internal table it's update as minus but when  I am calling  Write form with loop.  the value is not display with minus sign.
    How can I display value with minus sign in SAP script.
    Regards
    Swati,,

    Hello Guys..
    Thanks for Reply. But I am doing that thing already. My Internal table is updated with minus value. My Problem is not That.
    let's suppose.
    itab-name  =  'xyz'.
    itab-value   =   100.
    append itab.
    itab-name  =  'xyz1'.
    itab-value   =   -1 * 100.
    append itab.
    loop at itab.
    CALL FUNCTION 'WRITE_FORM'
        EXPORTING
            element                  = 'LINE'
            function                 = 'SET'
            type                     = 'BODY'
            window                   = 'MAIN'
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            spool_error              = 8
            codepage                 = 9
            OTHERS                   = 10.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    endloop.
    Now when value is printed in SAP Script both value is display as plus .I want to display secound value as minus.
    Please reply it's urgent.
    Thanks
    Swati....

  • Quantity should populate with minus sign.

    Hi All,
    I want to populate GR quantity for mat doc with minus value if movement type is 102 or someother.
    I want to write a routine in transformations.
    So how can I?

    Hi Baazi,
    You can maintain the minus sign in characteristic routine of transformation.
    Map. movement type and GR quanity from source to GR quanityt of target
    if source_fields-movement_type = '102'.
    result = GR quantity * -1.
    else
    result = GR Quantity.
    endif.
    -- Selva

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

Maybe you are looking for

  • IPod Touch not recognized by iTunes and not charging when plugged into computer

    I plugged in my iPod touch to my Mac computer. My iPod doesn't charge and iTunes isn't recognizing it. I have turned my iPod on/off, I have reset it, I have the newest version of iTunes, and I restarted my computer. Nothing has helped. What do I do?

  • Using Toplink with Eclipse - (Newbie question)

    If you have (for instance): * a blank Dynacmic Web Project in Eclipse * and you have a Workbench Toplink project- say an XML or Database project. Then you have to save your Toplink project, which spurts out various directories e.g. classes, descripto

  • Satellite L670-153: problem with a 4Gb SONY mass storage

    I have a satellite L670-153 laptop with Windows 7 64 bit. When I conect a 4Gb SONY USB mass storage, Windows mount the USB mass storage. But after some minutes, the USB mass storage is unmount and mount and unmount indefinitely. I update the bios and

  • 7.0.2 Problems

    Apple, Please dont release new versions until tested. I haven't been able to sync for a week now, which means I will NOT be buying any music if I cant get it to my IPOD!! Itunes just hangs and an end progam is required every time. I know I am not alo

  • ITunes asking for credit?

    My friend came to my house a while ago and signed into his account and authorized his iPod with my computer. That went fine but when I went to sign back in it says my account has not been used with iTunes. Then it goes to ask me for a credit card. I