Check for negative sign

Hi all,
1. Is there any function module to check whthere the given number is negative or positive ?
2.While running my BDC program a session is created.When this session will be processed ?
Rgds,
Venkonk.

1. if NUM < 0 then its negative
    if NUM > 0 then its positive
2.You need to go to SM35 to process this session manually.
   If you want this session to be procesed within the program you need to run or submit the program RSBDCSUB.
Regards
Gopi

Similar Messages

  • Checking for Paragraph sign / Return Character with indexOf()

    Hello all
    Al want to use String.indexIf() method to check for any Paragraph signs, or Return characters in a string, then delete or change them.
    I already tried the following, without success!
    int index = myAddress.indexOf('\r');
    and ('\n')
    Please help
    Thanks in advance
    Jaco

    just try to use a StringBuffer or the more diffcult way put the string into a StringTokenizer and set for delimitters all the paragraphs and whitespaces and then tokenize the string. You just have to determine the length of the splitstring and then you know where the characters are you look for

  • Checking for negatives

    How do I check if the user has inputted a negative number? And I have to return that negative number with the output.

    Basically, I have to insert comma's wherever neccessary. For example, if a user inputs 1234 .. I have to insert a comma after the 1, so it will output 1,234. However, if the user inserts a negative .. how abouts would I go to inserting a comma in the desired spot. If the user inters -1234 .. I would need to ouput -1,234. Any help with the code on how to do that?
    Here's the code that I have right now ..
    public final class LongFormatter
        public static String formatLong(Long l){
              long lNumber = l.longValue();
              if (lNumber <1000)
                 return l.toString();
              Long lNumber2 = new Long(lNumber/1000);
              Long remainder = new Long(lNumber%1000);
              String sNumber = LongFormatter.formatLong(lNumber2);
              return sNumber + "," + remainder;
    }And here's the test code that I'm using ..
    public static void main(String[] args){
          String formattedNumber=LongFormatter.formatLong(new Long(1));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(12));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(123));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(1234));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(12345));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(123456));
          System.out.println(formattedNumber);
          formattedNumber=LongFormatter.formatLong(new Long(1234567));
          System.out.println(formattedNumber);
    }

  • ITunes 10 will not connect to Store, let me sign in, check for updates on Windows Vista 32 bit.

    Has anyone had trouble connecting to the iTunes Store while using Itunes 10 for PC?
    I cannot check for updates, sign in, or connect to the store so all my app downloads must be done from my device.
    Using:
    Windows Vista 32-bit.
    Cox McAfee anti-virus/firewall.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Negative sign for DMBTR field in ALV output

    Hi Experts,
    Before posting I have searched for more than 3 hours in the forums to get a solution for this.
    I did not get any solution so I am posting this problem which I need to resolve.
    I have to display the DMBTR field in ALV output for which a grand total will have to be displayed.
    Here for all the values in DMBTR which are negative are getting displayed as '-        6673.56','-       289956.23' as I am using the edit mask 'V_____________.__'.
    I have to get the value shown as '-6673.56', '-289956.23'.
    I tried to use convert this DMBTR to String and have successfully displayed the negative sign correctly in front of the value but I am not getting the totals which I need to have
    PLease check and suggest for a solution.
    Regards
    Kishore

    Hi,
      If this is the case, then you can use character field to display the sign on the left. Sum up the total and use the event end of list to display the same. Remember to set the TECH and NO_OUT in the field catalog.
    Hope this helps.
    Regards,
    Siva

  • Negative Sign for Asset G/L Account balance

    hi
       I m having one problem....I created the sales invoice for a customer "ABC" of total INR 63000.00 and when the customer paid the amount for that invoice thru "Cheque" .Banking -
    >Incoming Payments and i selected the BP code "ABC" and the invoice related to him get displayed and i choose the related invoice and went to "Payment Means" -
    >"Check" tab
          G/L Account -
    > 124563 ( Initially this account balance is 0.00)
      I entered all the Cheque details and its amount and added that incoming payment.
        After adding when i check the account balance 124563 its showing the balance as -63000.00 , the amount is shown in negative sign
        Company Details
          Display Credit Balance with Negative Sign is unchecked
       Please anyone help me out in making the balance with positive sign
    Edited by: Rajeswari Palaniyappan on Nov 25, 2008 10:00 AM

    Hi Rajeswari
    This is a common error that consultants make when implementing SAP Business One. There is no quick fix for this and the best is to create a new database and re-import all the transactions and masters. Make sure this time that the Display Credit Balance with Negative Sign is ticked.
    Unfortunately this one tick affects the way amounts are posted to the journal tables & others and cannot be fixed manually. You could try raising a support message with SAP but I am sure they will tell you the same thing I have.
    Kind regards
    Peter Juby

  • Negative sign mapping handling for amount field

    hi Experts,
    From SAP ecc to PI we are receiving - negative sign after the amount value 1000 - . can you please suggest the suitable graphical mapping or UDF whenever amount value in -ve should give the ouput result as -1000. .
    Regards,
    Krushi.

    Hi Krushi - I don't see any complexity in it..
    Use graphical function "endswith" to check if the amount has "-"
    If yes then use replace function to replace "-" and then again conact it with "-"
    amount                              then amount->replacevlaue "-"-> concat + "-",amount
              endswith          if
    -                                        else amount
    For graphical function look at the below blog-
    Standard Functions in PI 7.0 - Process Integration - SCN Wiki

  • Transferring the negative sign from Right to Left for a currency field.

    Hi All,
    I am trying to transfer the negative sign in a currency field from right to left but in doing that i am not getting the comma seperators of the currency field.
    For eg : If the value is 12,345,678.00- then after converting it i am getting it as
    -12345678.00 and i am loosing the commas.
    I am trying to transfer the negative sign by first converting the currency field into character field.
    Kindly help for the same.
    Thanks,
    Sharadendu

    Hi,
    Use FM CLOI_PUT_SIGN_IN_FRONT.
    Try this code as well
    data: var(10),
    length type i.
    var = '300-'.
    write var.
    length = strlen( var ).
    length = length - 1.
    replace first occurrence of '-' in var+length(1) with ''.
    concatenate '-' var into var.
    write:/ var.
    Regards,
    Satish
    Message was edited by:
            Satish Panakala

  • Negative Sign in the front for amount

    Hi Friends,
    i am facing problem in negative sign
    while using fm : cloi_put_sign_in_front which accepts char variable.
    In my report amount type is char15 and here negative sign appears after using this fm but when i download this data in one other char structure DATA: BEGIN OF itab_proextract OCCURS 0,
            line(502) TYPE c,
          END OF itab_proextract.
    Amount is right justified always..but afterusing this amount gets displayed in left due to this my other variable which are getting downloded after amount comes as concatenated for ex...
    Before :
    00102384NALCUS/406FED      00AX          4.26-         5126.84-
    After
    00102384NALCUS/406FED      00AX-4.26           -5126.84
    Please help me....

    Hi,
      You can reer to the following links:
    negative sign in front.
    negative sign before amount in report display(urgent)
    or
    try this code
    data : l_amt(15) value '435.46-'.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
           CHANGING
                VALUE = l_amt.
    write : l_amt.
    or
    you can try this :
    DATA : BEGIN OF IG_DOWNLOAD OCCURS 0,
    F1(4),
    F2(4),
    F3 TYPE DMBTR,
    F4 TYPE I,
    F5 TYPE NETPR,
    F6,
    END OF IG_DOWNLOAD.
    DATA : BEGIN OF IG_DOWNLOAD1 OCCURS 0,
    F1(4),
    F2(4),
    F3(16),
    F4 TYPE I,
    F5(16),
    F6,
    END OF IG_DOWNLOAD1.
    DATA : VALUE(16).
    IG_DOWNLOAD-F1 = 'AAAA'.
    IG_DOWNLOAD-F2 = 'BBBB'.
    IG_DOWNLOAD-F3 = '-3.86'.
    IG_DOWNLOAD-F4 = 1.
    IG_DOWNLOAD-F5 = '4.58-'.
    IG_DOWNLOAD-F6 = 'A'.
    APPEND IG_DOWNLOAD.
    CLEAR IG_DOWNLOAD.
    LOOP AT IG_DOWNLOAD.
    MOVE-CORRESPONDING IG_DOWNLOAD TO IG_DOWNLOAD1.
    VALUE = IG_DOWNLOAD-F3.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    CHANGING
    VALUE = VALUE.
    IG_DOWNLOAD1-F3 = VALUE.
    VALUE = IG_DOWNLOAD-F5.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    CHANGING
    VALUE = VALUE.
    IG_DOWNLOAD1-F5 = VALUE.
    APPEND IG_DOWNLOAD1.
    CLEAR IG_DOWNLOAD1.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = 'C:\A1.xls'
    FILETYPE = 'ASC'
    WRITE_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = IG_DOWNLOAD1.
    Thank You.
    Regads,
    Dhanalakshmi L

  • Check info "Amount paid is showning with negative sign"

    Hi ppl,
    After the RFFOUS_C program is run and after the check generated, If i go and check the "check inforamtion" in PAYR table. It is showing the paid amount as 2000.00-
    The amount is shown with a 'minus' sign at the end.
    What this means???
    Please help.... Thanks!

    Hi Sri,
    The Amount with negative sign is pulled out from the Payment document against the GL account. This means that the funds are going out or its an outgoing payment.
    Rgds,
    Vinod

  • Sign in required Tap Continue and sign in to check for downloads popup

    Hi All,
    I have implemented Auto Renewable App purchasases in my application, everything is working fine.
    We are testing the app throughly and for each and every condition possible(network down,hundreads of sandbox users  etc).
    While testing the things many times we are stopping the transaction in beteween but after some time we were restoring the same transaction and it works after that.So far so good.
    Now on many ipads we are getting the message popup saying "sign in required Tap Continue and sign in to check for downloads".
    I dont know what this means because i have already purchased the product in sandbox and evrything works great but many times this poup is irritating us so please lt us know the solution for same.
    Please let me know how to get rid of this error asap.Because of this error only Our QA's are not releasing the app.
    Please help me out to solve this asap.

    Same here, this is an irritating issue. I am getting this with non-renewing subscriptions.

  • I did the ios7 updated but my setting still give me the red sign of update and when i check for update it shown ur iphone is updated

    I did the ios7 updated but my setting still give me the red sign of update and when i check for update it shown ur iphone is updated

    If you are a Windows user, try temporarily disabling your antivirus and any other anti-whatever that is required with Windows before beginning the process again.

  • HT204266 Trying to check for updates but when I hit updates I keep getting the message  cannot connect to iTunes. I'm signed in in my settings so not sure what else to do?

    I'm trying to connect to the app store to check for updates but when I go to the update tab I keep getting the message cannot connect to iTunes store. I am signed into iTunes in my settings so not sure what to do!

    You should not get that message if you are simply trying to load the shuffle with songs from your iTunes library.  If iTunes is trying to Update or Restore the shuffle, and you get that message, try the suggestions in this article
    http://support.apple.com/kb/TS1814

  • "sign-in required, click continue and sign in to check for downloads".

    On trying to access the ITunes store or ITunes in general, I keep getting a pop-up window stating "sign-in required, click continue and sign in to check for downloads". Itunes then doesn't recognise the sign in attempt and the pop-up appears again. Has anyone seen this and have any thoughts or advice?

    Contact Apple for help with Apple ID account security

  • I hv iPhone with ios 6.0.2 My iphone could not able to check for update-it's just showing "checking for updates" with loading sign How can I upgrade to ios 7?  Help pls

    I hv iPhone with ios 6.0.2
    My iphone could not able to check for update…it’s just showing “checking for updates” with loading sign
    How can I upgrade to ios 7?
    Help pls

    I agree- I apologize if I sounded skeptical and attacking. In no way did I mean it to sound that way.
    I completely agree on the software-hardware combo issue- this is why apple killed off 1G and 2G devices- because newer software revisions would never ever run well if at all on such ancient devices. can you imagine running iOS 6 on an iPhone/iPod touch 1G? That would be terrible. Let alone iOS 3 runs terrible on them and now are generally rendered useless due to newer App Store requirements (most require 4.3+ now to allow apple to kill off the older devices). forcing newer software on older hardware (apple, dell, HP,... Anything electronic this definitely applies to) will almost always yield less-than-par results. The other part is apple forcing you to upgrade by means of intentially making things obsolete. all companies do that.
    All of this factual info aside, the issue at hand with the 5 is not a software-hardware combo problem- those are most widely seen with the major revisions. then again, this isn't the first time apple has gotten caught up in battery drain snafus (even iOS 5 was plagued with this as well- and now there are some people desperate to roll back but can't). it basically waters it down to the point where keeping the stock software will always yield the best results even though newer versions provide better features- it all depends on whether or not the person deems the added features are worth a performance hit.
    PS. I'm still at 100%- and I've been using it periodically throughout the day. your combo worked for you, but didn't for me. And may or may not work for others- As the tech world would say, mileage may vary.
    PSS. What model/carrier do you have? Just wondering.

Maybe you are looking for

  • MozBackup no longer works. Please help.

    When I try to backup Thunderbird using MozBackup, just before the process finishes I get the error message "Backup''s file isn't valid. Backup has failed". This has never occurred when I have backed up Thunderbird in the past. Can anyone help me plea

  • AT100 without update to 3.2

    Hi there, I just bought a Toshiba AT100 running android 3.1. I know there is an update to 3.2 but it doesen't appear in my service station. Do i need to update my service station? Is there a problem with my tablet version? I have a portuguese version

  • How do I put credits and acknowledgements at the end of a slideshow?

    How do I put credits at the end of a slideshow?

  • mx:States issue

    I have a problem with state changing. I have a MAIN.MXML that has <mx:States> tag. Assume there is a top navigation, from there I click on LIBRARY button then following state is called up. <mx:State name="viewResources" basedOn="MainApp"> <mx:AddChil

  • How to show the status for all CPU? Solaris 9 & 10 can support how many CPU

    Hi, may i know wat is the command to show all of the CPU status? i tried use "top" command, but could show all. Any Idea? And somemore, may I know Solaris 9 and 10 can support how many CPUs? thanks regards raymond