How to add -ve sign or +ve sign before an interger value

I have 18000 but i want to get -18000 or +18000 in output according to some condition.
how would i get it.
points will awarded
help me out

Hi,
Try the below mentioned code:
Integers cannot be concatenated with sign. So only Strings, chanacters or numbers types of variables should be used.
DATA: v_int     TYPE i.
DATA: v_num     TYPE string.
DATA: v_sign    TYPE c VALUE '-'.
v_int = 18000.
IF condition.
v_num = v_int.
CONCATENATE v_sign v_num INTO v_num.
condense v_num.
WRITE:/ v_num.
endif.
Reward points if helpful answer.
Ashvender

Similar Messages

  • How to add currency sign?

    Hi,
    I have a group currency key figure in my report. I want to add $ sign in front of the amount for ex. 12550 it should show as $12550.
    How to add currency sign $ in front of the aount.
    Pts for ans.
    Regards,
    Shri.

    Hi,
    You can enable currency in the reporting output using following steps:
    Query properties> Display> select Display scaling factors for key figures.
    but using this option currency($) will be displayed after the amount. it means key figure values will be displayed like 300$, 800$.
    hope it helps..
    regards,
    raju

  • How to add Percentage Sign

    Hi All,
    I have made one formula which calculating percentage.
    I am getting right value of that formula.
    Ex.
    A=50, B=100
    formula:  A/B*100 And answer is : 50
    Now i want to display this 50 as 50%.
    How can i add this % sign with this value?
    Regards,
    RIshit

    Hi Shantanu & Rakesh,
    Thanks for your earliest reply.
    But i cannot modify formula.
    Because i have used this in Cell Reference formula, in my report there are minimum 100 formula.
    Please suggest any other way?
    Thanks & Regards,
    Rishit

  • How to display -ve sign before amount in ALV grid

    Hi,
    I want to display -ve numbers in an ALV grid. But the sign always appear at the end of the number. Is there any option with which I can display -ve sign before the number.
    Regards,
    Deepti

    Hi,
    <b>You can refer to below threads:</b>
    ALV - negative sign in the front
    Prefix Negative sign in type P field in an ALV report
    Or
    USe Function Module <b>CLOI_PUT_SIGN_IN_FRONT</b>, may be this works in your case.
    <b>Reward if helpful</b>
    Rgds

  • How to add a Picklist/Drop down in a page with values (Without Personaliz)

    hi,
    i am very very new to OAF ....please help me out on the below requirement....
    Please suggest me how to add a pick list/drop down field to a page, with some values. (without personalization)
    And the second one is when ever i'll chose a value from the drop down the page will reload and display a message on the page.(messages are different for the different values)
    Thanks
    Prakash

    Prakash
    As mentioned by Anil you can use the above link for new poplist generation through extension. As far as reloading the page in that case you need to make use of PPR for that item.Do refer dev guide for more details
    You can use below code for creating poplist in processRequest of your extended controller
    OAMessageChoiceBean mcb = (OAMessageChoiceBean) createWebBean(pageContext, MESSAGE_CHOICE_BEAN);
    mcb.setPickListViewUsageName("TestVO");
    mcb.setListValueAttribute("LookupCode");
    mcb.setListDisplayAttribute("Meaning" );
    mcb.setID("test");
    mcib.setFireActionForSubmit ("event1",null,null,false, false);//This is event that cause reload of pageYou can handle the event in pfr method
      if("event1".equals(pageContext.getParameter("event")))
    }Thanks
    AJ

  • How to add document signing to CUPS-PDF Printer?

    I am seeking a solution to digitally mass-sign PDF Documents. I'd prefer a way to add this into a CUPS-PDF Printer so I can use a shared queue on the server. Anything without a GUI is welcome. Adobe Acrobat is way to expensive for this and can not be automated at all.
    Any suggestion is welcome. I sadly couldn't find an appropriate solution here or via Google.
    Best Regards
    MacLemon

    I am quite Apache savvy, having my own tipi. So the config is not the problem. I just don't know where to start with a CUPS filter to add this.
    I have started a thread at the CUPS.org Fora and hope to find some info there.
    MacLemon

  • Stoplight Format: How to show percent sign next to each value?

    I need to show a percent sign next to each data value on a column that has a stoplight format. The calculation has been created and works perfectly. But when I add the stoplight format, the percent sign '%' disappears. For example, acolumn data value is 95.25%. After I add the stoplight formula, 95.25% becomes 95.25.

    Thanks for your help, nearly worked but only returned results where the if statement was met ie where locked =0, so I used an additional statement to display something else when when locked=1
    <?php
    if($row_spec_rx['locked'] == 1) {
    echo "button html goes here";
    ?>
    <?php
    if($row_spec_rx['locked'] == 0) {
    echo "something else";
    ?>
    I am sure there must be a more elegant way of doing this!

  • How to add new rows in Advanced Table along with attribute value?

    Hi,
    I have one advanced table that contain one messageChoice and messageTextInput field.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table,
    but I want to add attribute value(contactId) each time when new row created.
    contactId I am getting from pageContext.getParameter("contactId")
    How to achive this? Please suggest.
    Thanks & Regards,
    Sunita

    Hi,
    There are two ways to do it.
    1. Use create method of entity object, create method fires whenever you creates new row.
    2. Handle the event raised by addanotherrow button and write logic there to initialize contactid as you are getting contactid from pageContext so I will suggest you to use this method.
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM)))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    //write your logic here to default the contact id
    Hope this will help.
    Regards,
    Reetesh Sharma

  • In PO printout, how to add a customs also included in the total PO Value?

    Hi all,
                  In PO Printout customs value is not included in total PO value. But it's showing in the customs row, for ex. matrl value 100, customs 20. both are showing in PO Print out. But in PO Print out total value only matrl value is showing(100 not 120). how to correct it. where i have to do settings? can anyone help me in this regard.Thanks in advance.
    Pradeesh

    Pls check the Pricing Calculation schema settings.
    Regards
    TGB

  • How to add a check constraint to a column to accept values in the following format: "L214"?

    All I could come up with is this:
    check (column_name like '____');
    But That doesn't enforce the first character to be a letter and the other three to be numbers.

    Hi,
    "PS: Why the f***you have so many subforums here?"
    Because it is much easier to seperate and let experts answer to specific details of SQL Server. SQL Server is not a small product as many people think ;-)
    Here is the solution:
    CREATe table SampleA (A INT, B VARCHAR(MAX) CHECK (B LIKE '[A-Z][0-9][0-9][0-9]'))
    INSERT INTO SampleA VALUES (1,'0000')
    Msg 547, Level 16, State 0, Line 2
    The INSERT statement conflicted with the CHECK constraint "CK__SampleA__B__38B96646". The conflict occurred in database "master", table "dbo.SampleA", column 'B'.
    The statement has been terminated.
    INSERT INTO SampleA VALUES (1,'L000')
    --(1 row(s) affected)
    INSERT INTO SampleA VALUES (1,'L0001')
    Msg 547, Level 16, State 0, Line 2
    The INSERT statement conflicted with the CHECK constraint "CK__SampleA__B__38B96646". The conflict occurred in database "master", table "dbo.SampleA", column 'B'.
    The statement has been terminated.
    -Jens
    Jens K. Suessmeyer http://blogs.msdn.com/Jenss

  • How to Add/Edit/Delete UI Components(i.e not text values) in a UIContainer as per XML data using mxml.

    Hi All,
    I was asked to make a application for monitoring a remote devices and data is accessed through XMLSocket, the devices at the remote system could be added/deleted at runtime. and Web UI should act accotdingly. What is the best way of approch to implement it ?is it using mxml component or using action script?.I already implemented using mxml and could display devices in Web, for dynamic addiotion/deletion/edition of devices and its properties i'm looking for your inputs/suggestion.
    thanks in Advance.

    hi satyamurthy,
    assign unique name to each of the UIComponents adding to the container ( default stage )
    by using the name property of the components you can get the object from the container using
    container.getChildByName("name assigned to the property") this function will return as DisplayObject
    typecast the DisplayObject to the target class to that you can edit the object.
    example:
    var sp:Sprite = myContainer.getChildByName("one") as Sprite;   // here I am getting sprite reference with name 'one' from 'myContainer'
    sp.x=sp.x + 10;  // here I am editing the property 'x' of the Sprite whose name is 'one'
    Note : similarly you can perform operation on the sprite
    Deleting UIComponent:
    removeChild will be used to remove the child from the container where it is added
    container.removeChild(container.getChildByName("name assigned to the property"));
    If this post answers your question or helps, please mark it as such

  • How to add a dollar sign $ to a formatted currency field

    Any idea how to add a $ sign to a formatted field?

    Hi Kim,
    Right click on the field and click on Format Field.
    In the !Format event type: $@_$_.
    This should place a $ before your output value.
    James.

  • How to add on the measuring the frequency in my Final Year Project...

    Hi...i has design my final year project...my problem is how to add on some measurement in my final year project...now i want add measurement  frequency...in to my final year project...so i hope someone willing can help me or can give me advice....how to add on measurement frequency... before that i state my final project, for information.. i has design my final year project using LabVIEW 8.6.....Thank You
    Attachments:
    Oscilloscope A.llb ‏228 KB

    ''sanam [[#question-1055070|said]]''
    <blockquote>
    Hello,
    we are two members in our group Ambreen Akhtar and Sanam Naz
    we are females we want to create an adds on for our final year project as we are universtiy students of UOG M-IT(4th semester)..we would like to enquire what kindS of language and tools will be used to create an adds ons...I want to filter unwanted text and images that we dont want to see or read text but not all kinds of adds...
    we want to enquire about the following things below:
    1:met lab library.
    2:check content to check the images and text.
    3:content filter.
    we want to make a new plug in your browser(Mozilla firefox)
    Thanks in advance.
    </blockquote>
    uog(university of gujrat) MiT(Master in information technology) mean..

  • How to add a picture in Background of Sing in and Sign out Screen

    Hi MOSC,
    How do i add a picture in the background of Sing in and sign out screen in HCM People Soft 9.2 and People Tools 8.53.
    Also, how do i get rid of the Language are from the sign on page.
    thanks,
    Response will be greatly appreciated!
    User 501241

    Ha, I lost the reply I had typed up and I see Jim replied while I was writing it.
    In addition to his comments about changing the file.  It's actually signin not signon.html. Jim has the right path though. signon.html is the file that redirects the client to URL=../psp/ps/?cmd=login command which displays signin.html.  It's at /home/psadm2/psft/pt/8.53/webserv/peoplesoft/applications/peoplesoft/PORTAL.war/ps/signon.html. 
    I also gave two blog posts on the topic.
    Creating a Custom PeopleSoft Sign On Page - Remote PSAdmin and Hide the ‘Windows 7 is not supported’ message | The PeopleSoft Tipster Blog
    The first tells you how to add the background in the comments.  The latter discusses customizing the file for other reasons and gives some additional info.
    Oh, I also mentioned that the languages are all in a td tag with the class name of pslanguageframe.  Which may help you find it, because if I remember the language codes use JSP variables.  Just edit the table structure as you like and aligning it to your liking.

  • How can add with Imovie 11 a sign on a film like e.g. a circle around  a football player,

    I would like to add some signs or colors on still images of my film. How to do that? Thank you in advance

    visit my web-site
    https://sites.google.com/site/karstenschluter/imovie09tricks/how-to-add-a-pointe r
    includes a free download of some circles .. and pointers ..

Maybe you are looking for

  • How can I display an e-mail when the message is in HTML?

    I occasionally receive e-mails whose messages are in HTML. They're unreadable unless I save them outside thunderbird as files with the .html extension and open them in firefox. Is there some less cumbersome way of reading them directly in thunderbird

  • Writing Data to Multiple Files

    Hi, I got a problem while writing the data to multiple files. Actually my requirement is, I want to read the data from multiple files and retrieve the required data from those and save that data into separate files. Meaning if i read the data from "D

  • To change an editor of an app, do we have to resubmit the app?

    We have to change the name of the editor of an app already displayed and also change the name of this app:...Do we have to submit a new app or can we just propose an upgrade?

  • Safari 5 Crashes all time when i write something on the toolbar

    ok so this is the problem, i start safari, i try to write any web direction on the toolbar and then safari crashes. btw i can enter to a web by topsites and i can write web direction in the search bar, but i cant write anything on the toolbar i am th

  • Default Buttons in Webdyn Pro ALV

    Hello Experts, when we dispaly an oops ALV application we get the default buttons with image on the container like details,sort ascending, sort descending,print etc., How can we achieve this in ALV web dynpro. Thanx, Badri.