BAdI for negative numbers

Hello All,
  I am downloading data from an Infocube into a flatfile.
It downloads the negative amounts as 100.00- as the InfoSpoke downloads it in the internal format. I read note 856619 which is exactly for my case. But I can't get the code to work.
My InfoSpoke is called ZSINF_CO.
Could anyone help me on how to apply this note to this InfoSpoke. I have two key figures ZAMT and ZPROF in this InfoSpoke for which I have to convert the amounts from say 100.00- to -100.00
Any help is appreciated.
Thanks in advance.

Under the 'Data' menu in Excel you can use data validation to control what is entered, use a range 0 to 999999... You can add a message to explain the validation.
Cheers,
G.

Similar Messages

  • Parentheses for negative numbers in Excel 2011

    I couldn't find an appropriate section for this question.  Please forgive me if I posted it in the wrong place.
    I've been using Excel for Mac 2011 since it came out. Up until I updated to Yosemite, formatting negative numbers with parentheses appeared in the drop down menu, i.e., right click to get format cells, click "number" tab on top, click "number" on left. There is a dialog as to how you want negative numbers formatted. Parentheses used to be an option but no more. I attached a screen shot. Help!

    Same issue here with Excel 2011, problem started with the Yosemite installation and was not fixed with 10.10.1 nor the latest Microsoft update. 
    It's a big problem for accountants!
    On the Microsoft forum this gentleman replied with a workaround but it's a hassle to have to do this for each new spreadsheet.
    JonathanBuhacoff replied on November 9, 2014
    If you go to the dialog shown in Phillip's post and select "Custom" on the left side, you can enter this to get the parenthesis back:
    $#,##0;[Red](-$#,##0)
    Or this to use square brackets:
    $#,##0;[Red]"["-$#,##0"]"
    The format means  use $#,##0 for positive numbers and use [-$#,##0] in red for negative numbers.
    You could remove the hyphen too and just do this:
    $#,##0;[Red]"["$#,##0"]"
    I hope Apple takes note and pushes a fix for us.

  • Validation for negative numbers

    Hi,
    I have "quantity" variable as an Integer datatype , which should not allow "0" (zero) or "any negative values" (-1). Is there any simple predefined function in java to check this and throw a validation message if quantity is "0" or "-ve"? I should not use Javascript.
    Similarly if i add a value "<ragav555>" for "name" field it is added properly but in the update page the value "<ragav555>" is not displayed, this is happening only for "<ragav555>" , for "<555>" it is working fine. The name field is of varchar.
    Thanks

    Thanks dcminter, regarding the second point to brief it,
    I have a "Name:" which is a text field of varchar(40), i am entering a value <raghav555> in the textfield and click "submit" to save the data in to the DB. Which is successfully done. Once it is success, will display the "update" page in which the entered data <raghav555> should be displayed as read-only. But the problem here is the value <raghav555> is not displayed in the update page as read-only even though it is saved properly in the DB. This happens only for the alphanumeric compressed in "<" and ">". It is working fine for the entered name say, <123> and is showing fine in update as read-only. But when enter any alphanumeric value say, <sam123> it is not displayed in the update page as readonly and the value is getting lost(empty) in read-only. I have "name" as a String datatype in my VO.Why this behaviour is happening?
    This is what i am doing to display the data as readonly using Spring MVC:-
    <spring:bind path="name">
    ${command.name}
    <input type="hidden" name="${status.expression}" value="${status.value}">
    </spring:bind>
    Here command is nothong but my VO. As i mentioned this behaviour happening for the above mentioned condition and is working fine for the rest.
    Any ideas are welcome. Hope you got the point. Once again thanks.
    Thanks

  • ParseInt gives different values for negative numbers than other browsers

    Is this an known issue?
    I tested in Safari 4 beta (528.16), don't know about other releases.
    parseInt(-0.5) in Safari returns -1, while Chrome 3, Opera 10 and Firefox 3.5 returns zero.
    How can I workaround this?

    Hi,
    I tested in Safari 4 beta (528.16), don't know about other releases.
    Test with the official release. If you think it's a bug, you can report it at http://bugs.webkit.org

  • Negative Numbers importing wrong

    I have a Stored Procedure on my SQL Server 6.5 DB that returns a list of decimal values (sql datatype is decimal(5,2)), of which most are Negative numbers. When the procedure is run in a SQL tool (MS Query or ISQL) the values are returned correctly. When the stored procedure is called in Java, all values (negative or positive) are showing up as zero.
    I have tried all of the following ...
    double d = rs.getDouble(1);
    Float f = rs.getFloat(1);
    Double d2 = new Double(rs.getDouble(1));
    BigDecimal b = rs.getBigDecimal(1);
    String s = rs.getString(1);The value returned by the procedure should look something like -14.75 but when using System.out.println(f.toString()); it is shown as ".00". I have even tried exporting the data out of Java into MS Excel to see if it is just something funny with the System.out.println() statement but it shows all zeros in Excel also.
    Is there anything special or a specific data type that must be used for negative numbers to read correctly in Java? I've searched the forum, tutorials and API (1.3) and haven't found anything like this.
    Any help would be greatly appreciated!!!

    So why do you say the error has something to do with negative numbers when (in your own words): "all values (negative or positive) are showing up as zero"? I don't know what your problem is, but negative numbers probably ain't it.

  • BADI for check tax numbers in BP

    Hi,
    I need a BADI for check that the user pick two types of tax numbers (ES0 and ES1) in BP when createa a new IC.
    All BADIs that I find only execute on update and don't send exception.
    Anyone can I help me??
    Thanks

    Thanks Micheal
    but I need some additional information.
    I need to know how to get an error message in the function module I created.
    Thanks a lot

  • Is anyone having trouble using parenthesis to show negative numbers in excel after upgrading to Yosemite?

    Since upgrading to Yosemite, I can no longer reflect negative numbers with parenthesis using excel.  All of my existing spreadsheets also no longer show parenthesis, creating formatting problems.  Is anyone else experiencing this and is there a solution?

    I suggest you post your question to Microsofts own forums for their Mac software as it's their product you're having issues with
    http://answers.microsoft.com/en-us/mac

  • How do I disallow negative numbers in a selected group of cells (i.e. only allow values greater than or equal to zero)?

    I have a table of calculated values in Numbers, and I want to disallow negative numbers in the entire table. Any numbers that would be negative I would like changed to/displayed as zeroes, that way future calculations that may be based on this cell use the value of 0 for the calculation rather than the negative value. I have seen ways of doing this to single cells at a time, but I am interested in applying it to a large selection of cells.
    There is the Conditional Format option when you bring up the inspector, but I cannot get a custom rule to work for me. I select "Greater than or equal to" and I enter 0 in the box, but nothing changes. Can anyone help with this?
    Thanks

    A step toward simplifying the application of MAX to the issue, Jerry.
    This part, though:
    Now apply your long, animal-modeling, expressions to this new, interposing, table rather than the original.
    may still leave several references to be change from the original data table to the new one.
    One way to get around that is to use the Duplicate ("DATA-1) as the new table for raw data, and the Original (DATA) as the interposing table, using the formula =MAX(DATA-1::A2) as above, starting in DATA::A2.
    This way, the long expressions could continue to reference the original table (with its content now modified).
    ALTERNATE process:
    Find/Replace could also be used to speed the process of reassigning the modeling expressions to the duplicate table, as suggested by Jerry. But some cautions apply here.
    Find/Replace can be limited to Formulas only, but not to Some formulas only.
    Find/Replace can be limited to the Current Sheet only, but this can't be combined with Formulas only.
    More on this later, when I've had a chance to check some possibilities.
    Regards,
    Barry

  • BADI for Address Check in PA30 in ECC6.0

    Hi Friends,
    Is there any BADI for Address Check in PA30 in ECC6.0 similar to what we have in BP transaction in ECC6.0.
    Thanks,
    Pradeep

    check these...
    Enhancement/ Business Add-in            Description
    Enhancement
    PBASRP01                                PA: User exit distributed reporting
    PBAS0002                                PA: Enhancements for Personnel Administration - Menu
    PBAS0001                                PA: Pers.Admin./Recruitment: Default values and checks
    PARA0002                                Enhancement for Calculating Annual Salary; IT0008,14,15
    PARA0001                                Enhancement for Determining the Number of Periods
    HRRPAI01                                User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPC0001                                HR: PC download authorization
    HRPBAS01                                User Exit for HR Master Data
    Business Add-in
    HRPAD00_PREM                            Definition of User Exit for Collective Search Help PREM
    HRPAD00_RECOG_SCREEN                    Employee Recognition Screen
    HRPADUS_PBAS_0001                       Customer Exit for Message handling
    HRPAD_SUBTY_CHECK                       HR: Master Data, Subtype Check
    HR_F4_GET_SUBTYPE                       HR: Entry help for subtypes
    HR_FAST_ACTION_CHECK                    Check fields on the fast entry screen
    HR_INDVAL                               HR: Indirect wage type valuation
    HR_SET_PKGAB
    HRPAYXX_DELETE_PERNR                    BAdI for Reports Deleting Personnel Numbers
    HRPAD00_PAPM                            Definition of User Exit for Collective Search Help PAPM
    HRPAD00_GET_AF_0008                     Additional Fields for Basic Pay Infotype (0008)
    HRPAD00_ENTRY_LEAVE                     HR_ENTRY_DATE and HR_LEAVING_DATE
    HRPAD00_ADRS                            HR: Address formatting
    HRPAD00MGEACTIVATION                    Activation Action BAdI for Global Employees
    HRPAD00INFTY                            Update / Infotype maintenance
    HRPAD00AUTH_TIME                        Time Logic in the PA Authorization Check
    HRPAD00AUTH_RECORD                      Spanish Data Privacy Law: Exit for Recording
    HRPAD00AUTH_CHECK                       HR: Authorization Check
    HRIV_REDUCE_AMOUNT                      Reduction within Indirect Valuation
    No.of Exits:          8
    No.of BADis:         19

  • HFM 9.3 - FR Studio - can't format negative numbers with minus sign prefix?

    How can negative numbers on an account balance report be made to appear with a leading minus sign??
    This is a necessary requirement for generating an export file for loading to our new Tax software, but does not appear to be a format option.

    Have you tried going into Format Cells - Number - Negative Number Symbols - and typing a minus sign in the prefix box?

  • BADI for MIRO transaction

    Hello Experts,
    I need to capture the Serial Number during invoice entry and stored in a custom table. It is key to note that an invoice line item with a multiple quantity will require multiple serial numbers.
    I am looking for a BADI to enhance the screen to provide a input option for Serial Numbers.
    I figure out a BADI MRM_ITEM_CUSTFIELDS but not sure this is the best suitable one or not.
    Please provide your input.

    Abdul,
    General instructions for finding BAdI calls and when they happen:
    Go to transaction SE80 in a client where you can experiment with the transaction that you are interested in.
    Go to class CL_EXITHANDLER. [Select Class / Interface from the drop-down, and put CL_EXITHANDLER for the class.]
    Go to method get_instance. [Press RETURN to ensure that the contents of the Object Name frame are for CL_EXITHANDLER. Expand the Methods node. Double-click on GET_INSTANCE.]
    Insert a breakpoint just after the call to the method cl_exithandler=>get_class_name_by_interface.
    Use the transaction in which you are BAdI-hunting.
    Examine the contents of the field exit_name whenever the processing stops at the breakpoint. I have found a case where exit_name was an unknown field. Then class_name gave a good clue to the name of the BAdI.
    Hope this helps,
    John

  • Flex 2 Stacked Bars with Negative Numbers?

    Hi guys, the strangest thing: I have a client requesting
    sacked bars for bar charts/column charts however, I can't seem to
    get the negative numbers to go below a positive x-axis.
    Do these bug logs suggest I need Flex 3?
    https://bugs.adobe.com/jira/browse/FLEXDMV-921
    https://bugs.adobe.com/jira/browse/FLEXDMV-1181
    and if that's the case, how will upgrading effect my current
    project?
    Thank you.

    Great, as in another thread defined and discused, i am
    a scripter, not a programmer, but i like oaying with math.
    Daves method is easy, but what about Random( -300,1200).
    that must be a huge array to initialize.
    my function has a restriction:
    it works only, if there is a zero in the range or you'll
    never get the highest number of the range. Also it can only have a
    linear range.
    Dave can input a list like this gRandomChoises = [
    1,3,5,7,11,13,17] , what can be very usefull in some cases.
    Cheers,
    Wolfgang

  • Uni project methods & negative numbers arrghhh

    Hi there i have written a program for uni it creates a random number & gives the user 3 guesses at getting the number before giving them a message saying they have lost and revealing the actual number. So far so good . I managed to get this working but the next part of the project requires me to use a method which gives the user a message giving them a hint. The hint tells them whether they are hot, warm, cold etc.
    I have tried to implement this in my program using this code but its not working im getting 3 messages like
    ERROR: 'class' or 'interface expected
    Also i think my use of negative numbers is wrong i can remember someone telling me you have to change the negative number into a positive before u can manipulate it or something like that.
    Anyway any help would be greatly appreciated.
    import javax.swing.*;
    import java.util.*;
    public class Coursework1{
         public static void main(String args[]){
              int randomnumber,usersguessint,checkguess,guessvalid,attempts;
              String usersguess,output,close;
              boolean match;
              //create random number generator
              Random numGenerator = new Random();
              //generate a random number between 1 & 10 inclusive
              randomnumber = Math.abs(numGenerator.nextInt(9))+1;
                   //ask user for his first guess
                   usersguess=JOptionPane.showInputDialog("Please enter your guess between 1 & 10");
                   //convert users guess to integer
                   usersguessint = Integer.parseInt(usersguess);
                        //initialize variable attempts
                        for ( attempts = 0; attempts < 2; attempts++ ) {
                        //validate input
                        while (usersguessint<1||usersguessint>10){
                        usersguess=JOptionPane.showInputDialog("You entered an incorrect number \nPlease enter a numberbetween 1 & 10");
                         //convert users guess to integer
                        usersguessint = Integer.parseInt(usersguess);
                        } //end while loop
                             //call boolean method
                             match = checkGuess(usersguessint, randomnumber);
                             if (match==true){
                             //display text area in JoptionPane
                             output="You won";
                             JOptionPane.showMessageDialog(null,output,"You Won",JOptionPane.INFORMATION_MESSAGE);
                             break;}
                             else{
                             //call boolean method
                             close = howClose( usersguessint, randomnumber);
                             output="You were"+close;
                             JOptionPane.showMessageDialog(null,output,"hint",JOptionPane.INFORMATION_MESSAGE);
                             output="Try again";     
                             usersguess=JOptionPane.showInputDialog("Try again");
                             usersguessint = Integer.parseInt(usersguess);
                                  }     //end if
                   } //end for
              }//end main
                             //user defined method (chechguess)
                             public static boolean checkGuess(int usersguessint,int randomnumber){
                             boolean match = false;
                             if (usersguessint == randomnumber){
                             match = true;
                             return match;
                             }//end method
                             //user defined method (howClose)
                             public static String howClose(int usersguessint,int randomnumber){
                             String close
                             int difference;
                             difference = randomnumber-userguessint
                             if((difference<2)&&(difference>-2)){
                                  if((difference<3)&&(difference>-3)){
                                       if((difference<4)&&(difference>-4)){
                                            close="cold";
                                       }//end if
                                  else{
                                       close="warm";
                                  }//end if     
                             else{
                                  close="hot";
                             return close;     
                             }//end method
         }//endclass

    Yep, faulty as designed.
    try this:public static String howClose(int usersguessint, int randomnumber) {
              int difference;
              difference = randomnumber - usersguessint; // <---
              if ((difference < 2) && (difference > -2)) {
                   return "hot";
              if ((difference < 3) && (difference > -3)) {
                   return "warm";
              return "cold";
         }// end method

  • Entering negative numbers into a field

    How do I allow an item (non-base table) to accept negative numbers that are entered in the following way, "x-". I know that you can have a format mask with "x-". But that will not help me in this situation. Thanks in advance for your help!

    I dont kno what is your exact requirement. But if you are trying to accept a -ve number you can just enter -30 in a number field. but if you want 30- to be entered in a field then you can not do it directly. The workarround may be create a character field let the user enter the 30-. Possibility is that he may enter alphabetic or alpha numeric ,in this case take the substring of the field and check if it is a number field or not. if its not then do raise a message and raise form_trigger_failure to force the user to enter a valid number.
    like
    If NOT isnum(substr(:field1,1,length(:field1)-1) Then
    message ('Please enter a valid number');
    Raise Form_Trigger_failure;
    End If;
    Hope this will help.

  • Can anyone tell me how to Format cell values in numbers? I am wanting to make any negative numbers in brackets.

    Anyone able to help?

    You might want to post questions like this over on the Numbers community since it's more likely you'll find expertise there.
    However, this one I can help with.  If not already showing, you need to turn on the Inspector in Numbers.  You do that by clicking on the Inspector icon in the upper right, showing the inspector box highlighted in red below:
    Now select the cell(s) you want to format and click on the fourth tab (the one with the "42" in a box).  If want no currency sign, select number as your format, while if you want a currency symbol select currency as the format.
    Next to the "Decimals" option is the box in which you can select your "negative" format--you have four options for showing negative numbers, two of which will place negative numbers in parenthesis.
    Note that the inspector box controls a number of options and settings in Numbers. 
    If you used to working with Excel you have to understand that Numbers works entirely differently and will have more than a bit of a learning curve. 
    Generally I find Numbers is the weakest of the iWork offerings.  It is a useful program if you need a heaviliy formatted presentation of pure spreadsheet data, though if you want formatted spreadsheets in a mainly text report the Word/Excel combination works better.
    The program also falls short in a number of areas vs. Excel if your spreadsheet needs go beyond the basic.  It certainly isn't the most efficent at dealing with a large spreadsheet (and, in fact, the fact the default templates all have only a few rows is a good hint that this might not be the product for that megasheet :-) ).
    But if you just have basic spreadsheet needs it certainly can do the job.

Maybe you are looking for

  • Edge Animate CC(2014)

    を問題なくインストールした直後に.他の作業で必要のためWindowsのシステムの復元を行いました. システムの復元に伴い.インストール済みのEdgeAnimateは消えてしまいましたが. CCのポップアップウインドウにはEdgeAnimateがUp to dateと表示されているため.再インストールできません.プログラムのアンインストールにもAdobeのフォルダにもEdgeAnimateは存在しません. この状態から再インストールする方法を教えてください. 時系列→ (1)Edge Animat

  • Profit center

    hi can we take balance sheet report in business area wise.(in profit center wise) with regards prasanthi.

  • Width of stack chart not getting retained in Flex 4 but working in Flex3

    I have a stack chart on  my dashboard when I click on stack chart it become a column chart. When I trying  to come back on stack chart by clicking on column chart the width of columns of  stack chart does not match with the previous stack  chart. Not

  • Article: How to create a system shell

    After having waited for more than two months my article is finally finished: http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f083831d-f38c-2e10-9092-9311b8ef90ab Feeback welcome. Markus

  • Question on SwingUtilities.invokeLater

    The program I have included is attempting to "simulate" opening and loading a file into memory. Run the program, select File and then select Open. You will notice that the File menu does not disappear for 3 seconds (i.e. until the file has been compl