Shifting -ve sign from end to start in Keyfigure

Hi,
I am exporting BI data to external Flat files--
There i need to shift some of the -ve signs of the field values which are existing at end to the starting point of the field value--
Ex: 20098- to -20098.
for that in the routine i am writing code as below:
if result_fields-keyfigure LT 0.
       shift result_fields-keyfigure RIGHT CIRCULAR.
     endif.
This coding was working fine earlier.
But now it throws error msg saying keyfigure has to be of string type to carry on this operation.
is there any way i could acheive the above said result?
Simran

Hi Sunmit,
Thanks for the reply.
Yes i did the same-- ( Operated number as char but the -ve sign remains as it was)
I am using new open hub destination object and transformation to acheive the same.
In the open hub detination we maintain the fields what we want to have in flat file . There you have in the field definition tab and there is a column conversion routine.
Against the fields names for which i want to shift the -ve sign, i had created conversion routine and declared this particular number as char instead of using template of infoobject
When i run DTP, to my surprise the result is as same as before ---
are these conversion routines are not supported in opne hub destination objects????
There must be some proviosion that SAP must have provided . Otherwise you cannot shift -ve sign for external systems just sounds absurd for me as no one uses the -ve sign after the number
Any clues?
Edited by: S Simran on Feb 11, 2009 10:25 AM

Similar Messages

  • Move minus sign(-) from end to start of field

    Hi,
    How to Move minus sign(-) from end to start of field. i e if       var = 120-, i want to display it as -120.
    if any one has the code , send me.
    Thanks in advance
    Krishna.

    Check the code, i hope it serves your purpose...
    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.
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to shift Negative sign from Right to left

    Hi friends,
    please tell me How to shift Negative sign from Right to left for quan data type i am getting on right side but i want to display it on left exactly preceding my output number display.

    hi yogesh
    check this function module..
    <u><i><b>CLOI_PUT_SIGN_IN_FRONT</b></i></u>
    this will move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all character fields), not right justifed as numbers normally are.
    chck this example..
    data: a1 type i value 56 ,
    a2 type i value 60,
    res type i.
    res = a1 - a2.
    data: res1(10).
    res1 = res.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    CHANGING
    VALUE = res1
    write res1.
    I<u><i><b>MPORTANT</b></i></u>
    You can use this FM CLOI_PUT_SIGN_IN_FRONT.
    But you need to declare the amount field as char.
    Or you can code like this
    data int type i.
    data char(10).
    int = -4.
    int = int * -1.
    write int to char.
    concatenate '-' char into char.
    reward if useful..
    Message was edited by:
            navjot sharma

  • Shifting -ve sign from right side of a value to left side in an alv report

    HI GURUS,
    i'm doing an alv report which displays grand totals of numeric fields as well.
    tab-othercost = itab-netwr - itab-wavwr - itab-kzwi2 - itab-kzwi5.
    when othercost value is -ve, the -ve sign is cuming right to the value.
    i'm using fm 'CLOI_PUT_SIGN_IN_FRONT' and shifting the -ve sign frm right to left of value.
    L_FIELDCAT-FIELDNAME = 'OTHERCOST'.
      L_FIELDCAT-TABNAME = 'TAB'.
      L_FIELDCAT-SELTEXT_M = 'OTHER COST'.
      L_FIELDCAT-COL_POS = 9.
      L_FIELDCAT-DO_SUM = 'X'.
      L_FIELDCAT-DATATYPE = 'CURR'.
      APPEND L_FIELDCAT TO L_FIELDCAT.
      CLEAR L_FIELDCAT.
    but in the grandtotal value i'm getting -ve sign in the right side of value.
    plz let me wht to do to change the sign in grnadtotal value as well...

    Hi,
    do all the calculations in a currency variable...and then finally move it to the character variable..
    Also try commenting this line.
    *L_FIELDCAT-DATATYPE = 'CURR'. "Commented
    Ex..
    DATA: v_netwr TYPE netwr.
    DATA: v_netwr_c TYPE char20.
    v_netwr = 100 - 200.
    WRITE: v_netwr TO v_netwr_c CURRENCY 'USD'.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value = v_netwr_c.
    WRITE: / v_netwr_c.
    Thanks
    Naren

  • How can I prevent deleted mail from ending up in "All Mail"     and "Archives"?  To my horror, I've emptied these boxes and lost all my mail from all my boxes  (and why do I need to enter this question three times?"

    How can I prevent deleted mail from ending up in "All Mail" and "Archives"? 
    To my horror, I emptied these boxes and lost all my mail from all my boxes .
    All mail also disappeared from my iPad, I suppose because they are "synched"
    (Also, no offense, but why do I need to enter this question multiple times?)
    Thanks for any thoughts.

    I'm having a similar but slightly different problem. My company just migrated to Gmail, and it's saving mail drafts every 30 seconds into my Trash folder.
    I unchecked the "Show in IMAP" preference in the Gmail settings, but my Drafts folder completely disappeared. I went back and checked it and the folder reappeared (with my drafts still in there).
    I like the idea if starting an email on my laptop and having the option of finishing it on my iPhone or iPad, so only saving Drafts locally would not be ideal.

  • Error: JAR-Ressources in JNLP-File are not signed from the same Certificate

    I have two handfull jars, all signed in batch with the same
    Certificate. When i start my App with Webstart it tells me:
    Your JAR-Ressources in JNLP-File are not signed from the same Certificate.
    "JAR-Ressourcen in JNLP-Datei sind nicht von demselben Zertifikat signiert"
    Well im shure that i signed all my jars with the same Certificate.
    What can i do to solve this problem ???

    I get the same error.
    Strangely exactly every second time it works and every second time I execute the JNLP I get the following error:
    network: Cache-Eintrag nicht gefunden [url: http://localhost:8080/fibo/lib/js_15R41.jar, Version: null]
    network: Verbindung von socket://127.0.0.1:3621 mit Proxy=DIRECT wird hergestellt
    #### Java Web Start Error:
    #### JAR-Ressourcen in JNLP-Datei sind nicht von demselben Zertifikat signiertCan this have something to do with browser caching? So that every 2nd time it tries to access the cache, fails. And than ignores the cache and works?
    Any ideas?
    Cheers,
    Rio

  • Why can't I open Adobe Reader after I download it?  Says something abut signing the end user agreement ...

    Why can't I open Adobe Reader after I download it?  The screen is just completely black.  Says something about signing the end user agreement ...

    you can find many articles on how to repair mac disc permissions on Google. Just
    try googling it. Else you can always ask applecare. They will guide you with
    same.
    Some links that might help you are:
    1) http://support.apple.com/kb/HT1782
    2) http://support.apple.com/kb/HT1452
    It is better if you take help from apple for the same.
    -Karan

  • When i set iphoto to 'fit slideshow to music' the song cuts off before the end and starts again.  Anyone know why?

    I have tried changing the seconds each slide displays for and fiting the slides to the music and no matter what I do the song cuts off 30-40 seconds before it actually ends and starts again.  I haven't had this problem before.

    Hi kjackson73,
    Thanks for visiting Apple Support Communities.
    If the same songs seem to cut out on multiple devices, first try re-importing or converting them using iTunes. You can also download iTunes Store purchases again. See these articles for more information:
    iPhone and iPod touch: Songs or other audio content are skipped during playback
    http://support.apple.com/kb/TS3159
    If the original CD is available, remove the affected content from the iPhone or iPod touch and then import it again from the CD using iTunes.
    If the original CD is not available, convert the content to AAC using iTunes.
    Download past purchases
    http://support.apple.com/kb/HT2519
    Best,
    Jeremy

  • Shipping dates(Loading start,Loading End,shipment start...)

    Hi,
    In the shipment transaction(VT01n) what (Configuration)settings are required to populate the fields
    Loading start,Loading End,shipment start, and shipment end dates  in the Planning side.
    REgards
    Rahul

    Yes. Its called Inferred member concept or Early Arriving facts
    You can handle them as follows
    1. In the ETL for fact identify cases where you've dimension key value coming but reference missing from the corresponding dimension table
    2. Insert those records to dimension table with just the available business key value and retrieve the generated surrogate key. For all the other attributes put some default value. Have a bit field called IsInferred in the table with default value 0. Set
    it to 1 for the above records. This would avoid missing reference error for FK
    3. In the ETL for the dimension include one step to look for cases where IsInferred = 1 and do an update of all attribute values except business key. Also make sure IsInferred is reset to 0. This will make sure the missing information gets automatically
    added during the next ETL run for the dimensions
    4. If you make use of standard SCD task available in SSIS it can take care of this scenario by itself
    See
    http://www.mssqltips.com/sqlservertip/1446/handle-early-arriving-facts-in-sql-server-integration-services-ssis/
    http://chandunayakwadi.blogspot.in/2013/01/handling-inferred-members-in-ssis.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Cross Disolve that isn't centered, ending or starting on cut.

    I'm cutting on a film that needs long transitions with dissolves that are not centered, ending or starting on the cut, i.e. 60-frame dissolve with 10-frames before the cut - quite an easy thing to do on Avid, but as I am still new to FCP, I'm not sure where to find it?
    Double clicking the transition allows me to adjust the dissolve but only as a centered, starting at or ending at....another editor suggested that I keyframe the opacity in, but that is really timeconsuming and cumbersome. Any suggestions would be appreciated....thanks!
    Susan.

    Hi Susan
    You can't ake assymetrical dissolves in FCP - I miss it from Avid too.
    I don't think there is any difference between the result of of making a dissolve the way you want to and just rolling your cut point back ten frames and make a starting from cut dissolve. The two dissolves should look exactly the same.
    Hope that helps
    Jim
    I'm cutting on a film that needs long transitions
    with dissolves that are not centered, ending or
    starting on the cut, i.e. 60-frame dissolve with
    10-frames before the cut - quite an easy thing to do
    on Avid, but as I am still new to FCP, I'm not sure
    where to find it?
    Double clicking the transition allows me to adjust
    the dissolve but only as a centered, starting at or
    ending at....another editor suggested that I keyframe
    the opacity in, but that is really timeconsuming and
    cumbersome. Any suggestions would be
    appreciated....thanks!
    Susan.

  • How to create a Windows 8.1 Desktop icon from the Metro/Start and/or Search Tool?

    I'm a Desktop user, but often find myself needing to go to the Metro/Start and Search Tool to find programs and App(let)s in order to run them.  However, after doing this several times for many programs, I find myself wanting to create
    Desktop icons to run the programs more easily.  Is there a way to do this from the Metro/Start Icon and/or Search Tool results?
    If not, Microsoft, please consider adding the ability to do this.
    It would be very nice if this ability supported all of the icon types shown in the Metro/Start, Search Tool, and Control Panel interfaces, e.g.: Metro Apps, Desktop Programs, Charms, and Control Panel Applets.
    Currently, there is a way to pin the Metro/Start Icon to the Desktop, but the Taskbar will get very cluttered with even only a handful icons.
    It would be very nice if the desktop icon created by this also supported the context options that the program/app(let) now shows as Tasks when the icon is pinned to the Desktop Taskbar.
    Additionally, it would be nice if I could also simply drag a Pinned Taskbar icon onto the Desktop area, again, retaining it's Tasks as context menu options when the Desktop Taskbar icon is right clicked.
    This ability would be very helpful for people needing to get to programs and App(let)s, without having to resort the Metro/Start and Search Tool, because when there are a lot of Metro/Start icons, I have well over a hundred icons, it
    can be very hard to find one simply eye-balling lot.  The Search feature is much better, provided I know the name to look for and can remember it.
    Finally, this ability would be very helpful, because the kinds of desktop shortcut icons that I can create using the New Shortcut option, assuming that can I find the program/App(let)'s name and path information, do not support the context options
    that the icons could in Windows 7 when an icon is created while installing the program.
    Thanks,
    Howard Brown 
    hrb

    Hi Howard Brown,
    Thanks for your suggestions about Windows user experience. Actually, we are glad to hear more feedback
     about Windows operating system so that we can improve Windows to make it be more easier to
     use.
    As a suggestion for your current situation, you can use Windows Charm Bar to search Apps, it is also easy to use.
    Alex Zhao
    TechNet Community Support

  • How do you stop Audigy programs from loading at start

    I posted yesterday regarding my sound card (Audigy 2 ZS Platinum) taking up a large amount of CPU.
    I went into my BIOS and basically assigned every free IRQ to my PCI cards and yet again changed the slot that the card sits on. Everything is back to normal and I think I might know why, which is where my question comes in.
    Thankfully, XP allows me to use the card without rebooting. If I do reboot, I have a feeling 3 things will happen.
    . A pop up window will appear at the top of my screen that allows me to control certain aspects of the card.
    2. A program will appear in my task bar (white with blue headphones) which allows me to run Creative Programs.
    3. My CPU will jack up again.
    Because I didn't have to reboot when i re-installed the card, these two programs are not running.
    My question is, how do I stop those two programs from loading at start up? I've closed them down in the past after a reboot and it does not help, so obviously something is loading with them.
    Any help would be greatly appreciated.
    Thank you.
    AMD Athlon XP (.8), 52MD RAM, XP SP2, ATI Radeon 9700 Pro

    That is not part of Firefox, but appears to be an add-on. You appear to have this add-on installed - https://addons.mozilla.org/firefox/addon/3481/
    For details of how to uninstall the add-on see the [[uninstalling add-ons]] article.

  • Can we remove the negative sign from amounts.

    Hi guys,
    When we run F110 , SAP gives us the list of all payments.
    The payments wil be like 7000 - . There will be a negative symbol in the output generated in the layout.
    Is it possible to remove the - sign from the layout?
    Thanks a lot in advance..
    Regards,
    Srikanth.

    Hi
    SAP will understand the Dr and Cr on the bases of signs, that mewans all -Ve sign refers to credit. you can not remove this sign. however you can remove this sign once you export the same to excel and from with the help of CNTRL+FIND you can remove in the excel sheet.

  • HT1349 How can i shift my files from iphone into a new android phone?

    How can i shift my files from iphone into a new android phone?

    There's no files to shift.

  • LaserJet Pro 200 color MFP M276nw prints image shifted 1/2" from top of page.

    When printing any report, diagnostic or form from the machine system I get printed image shift approx. 1/2" from the top.
    Is there any adjustment that can be made to the MFP to center image?

    Hi @patrick22152, 
    I understand that when printing documents or a printer hardware self test, it shifts 1/2" from the top of the page. I can help you with this.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector) This ensures the printer is receiving full power and may help this situation.
    It sounds like the paper isn't feeding properly. Since you are having this issue with the hardware tests and printing from the computer. If it was just the computer, I would check the paper type selected in the print driver, to make sure it isn't set on the proper paper type and not the default unspecified paper.
    Try another type of paper to see if you get the same results.
    I have provided a document with some steps to try to see if that will resolve the issue.
    'Load Paper' Error Message Displays and the Printer Does Not Pick Up or Feed Paper.
    Disregard the title.
    Here is a example of how the Configuration Report should look like.
    Printing a Configuration Report.
    Run a cleaning page:
    From the Home screen, touch the Setup button.
    Touch the Service menu.
    Touch the Cleaning Page button.
    Load plain letter or A4 paper when you are prompted.
    Touch the OK button to begin the cleaning process.
    What size and kind of paper are you using?
    What operating system are you using? How to Find the Windows Edition and Version on Your Computer.
    How is the printer connected? (USB/Ethernet/Wireless)
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • Can't update my ipod touch to iOS 5.3 (4th G)!

    i have an ipod touch 4th generation. i want to update it to iOS 5.3 but everytime i do from itunes an error message occurs in different forms. however the most frequent message is: There was a problem downloading the software for the ipod: "xxx's ipo

  • Please help - need to restore my iPhone

    When plugging my iPhone into computer for the first time, I accidentally restored my iPhone with my fiance's for the backup. I freaked out and unplugged it halfway through the restoration. Now I have half of his settings/apps/contact info. and half o

  • Problem using Custom tag in JSP

    Iam facing problem when i am deploying my files on j2ee 1.4 server it give following erroer:: my .tld file and jsp are given below any body can help me; mytaglib.tld file: <<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE taglib PUBLIC "-//Sun

  • DMS Configuration required to use for PM (Plant Maintenance)

    Dear Experts, We are planning to use external server for document management i.e. SAP DMS ... can anyone forward useful documents to [email protected].. I am new to this SAP DMS, any document on DMS-PM will be helpful for me thanks in advance Nagesh

  • Delta Enabling for Enhanced field

    I have enhancement on standard datasource (Datasource is from Customer Service Appl and enhanced field is from PMCO table and its linked through OBJNR and OBJNR is Primary key in PMCO table and standard field in datasource). My question when users ma