Negative values 10.00- needs to be -1000 in dtp in open hub?

Hi all,
Can anyone help me to write a routine on negative values!!
in the cube it is 10.00- but when we export it it should be  - 1000. The decimal places should be also be multiplied by 100 and it should apply for the company code india only!!
pls help me n this!!
Thanks
pooja

Hi,
I guess you just need to multiply the value with 100.
You need to write:
If COMM_STRUCTURE-COMPCODE = INDIA
VAR = COMM_CTRUCTURE-VALUE * 100
RESULT = VAR
eles
RESULT = COMM_CTRUCTURE-VALUE
I hope it will help.
Thanks,
S

Similar Messages

  • Displaying Currency as Negative Value

    Hi All,
    I have an object Amount. Based on a condition, i.e if movement_type is 500 then i need to display the amount field as negative value.
    IF movement_type = 500 then amount should be displayed as negative value.If amount is $10 then it shuld be displayed as -$10.
    How do we proceed to display amount as negative value.Do we need to do this at report level or at can i go ahead at update routine level.Please let me know how to do.
    Regards,
    Sudha.

    Try out the follwing  formula using Boolean Operations
    (movement_type == 500) * (Amount - (2*Amount)) + (movement_type <> 500) * (Amount)
    try with (Amount - (2Amount))* because *(Amount * (-1))* does not work.

  • Text Values in Open Hub Destination

    Hi ,
      Can anybody tell how to extract the text of particular info object using open hub destination into a file.
      For ex data is loaded from sales billing cube, ship to customer code is extracted , but need ship to customer name . how to extract this in open hub destination using BI 7.
    In queries , we use display key and text then get both key and text values. similar like that is it possible to get in open hub or not.
    Thanks .

    Hi Uppala,
    Following are 2 approaches to achieve this
    Approach 1:
    1. Create info spoke which will extract data from cube to data base table (do not use file)
    2. Create one more info spoke which will extract master data text to data base table (again do not use file)
    3. Create join on both the data base tables.
    4. Write a ABAP program which will create a file based on the joins of tables.
    Approach 2 :
    1. Create multiprovider on cube and master data info object
    2. Create info spoke based on the multi provider, that will extract data to flat file
    For 2nd approach u have to put certain filters to avoid unwanted rows
    Regards,
    Ajinkya

  • Open hub - output structure enhancement - will delta need to disturb ?

    Hi,
    We have done some changes to the Open hub output structure and added few output fields, now we need to move it to production. I can see in production it is delta enabled i.e. only newly added data is written in output file.
    Now, I need to move new structure to the Production, I wanted to know shall I need to distrube the delta management for Open hub output, ot it will taken care automatically.
    Kindly advice.

    Thanks,
    Which is the best ABAP function to extract an SAP table to a flat file??
    Because at this point, I have put in <b>IF_EX_OPENHUB_TRANSFORM~TRANSFORM</b>
    the following:
    method IF_EX_OPENHUB_TRANSFORM~TRANSFORM.
    data: l_s_data_in type /BIC/CYZEPC_OH_EPCOT_PROSPER,
          l_s_data_out type ZEPC_I_EPCOT_PROSPER.
      data l_dummy.
      message i899(rsbo) with 'exit started' into l_dummy.
      i_r_log->add_sy_message( ).
      clear e_t_data_out.
      loop at i_t_data_in into l_s_data_in.
        move: l_s_data_in-/BIC/ZEPCC0018 to l_s_data_out-MARQUEFIL,
              l_s_data_in-/BIC/ZEPCC0005 to l_s_data_out-GENRE,
              l_s_data_in-CALMONTH       to l_s_data_out-MOISFERME,
              l_s_data_in-/BIC/ZEPCC0008 to l_s_data_out-TYPPROSPER,
              l_s_data_in-CALYEAR        to l_s_data_out-ANNEE,
              'ABC'                 to l_s_data_out-COD_MVT.
        insert l_s_data_out into table e_t_data_out.
      endloop.
      message i899(rsbo) with 'exit finished' into l_dummy.
      i_r_log->add_sy_message( ).
    endmethod.
    So now my <u>destination DB ta</u>ble, <b>/BIC/OHZEPC_OH_E</b> (same as structure <b>ZEPC_I_EPCOT_PROSPER</b> above) should have the data inside. 
    Can I now just insert a fuction at the end to download the table to flat file???
    Thanks,
    Tim

  • Need help implementing Radix sort to handle negative values

    Hi !
    I'm in desperate need for some help here...
    I've been struggling with this Radix sort algorithm for some time now. It sorts positive integers very well, and very fast, but it cant handle negative values. Is there anyone who can help me improve this algorithm to also sort negative integer values?
    I need it to be as fast or even faster then the current one, and it has to be able to sort values in an array from address x -> y.
    Here's what I have so far
    /** sorts an int array using RadixSort (can only handle positive values [0 , 2^31-1])
          * @param a an array to be sorted
          * @param b an array of the same size as a (a.length) to be used for temporary storage
          * @param start start position in a (included)
          * @param stop stop position in a (excluded)
         public void sort(int[] a, int[] b, int start, int stop){
              int[] b_orig = b;
              int rshift = 0, bits = 8;
              for (int mask = ~(-1 << bits); mask != 0; mask <<= bits, rshift += bits) {
                   int[] cntarray = null;
                   try{cntarray = new int[1 << bits];}catch(Exception e){System.out.println("Error");};
                   for (int p = start; p < stop; ++p) {
                        int key = (a[p] & mask) >> rshift;
                        ++cntarray[key];
                   for (int i = 1; i < cntarray.length; ++i)
                        cntarray[i] += cntarray[i-1];
                   for (int p = stop-1; p >= start; --p) {
                        int key = (a[p] & mask) >> rshift;
                        --cntarray[key];
                        b[cntarray[key]+start] = a[p];
                   int[] temp = b; b = a; a = temp;
              if (a == b_orig)
                   System.arraycopy(a, start, b, start, stop-start);
         }I think it can be solved by offsetting all positive values the with the number of negative values found in "a" during the last run through the main for loop (as the last (or first) 8 bits in an 32 bit integer contains the prefix bit (first bit in an 32 bit integer), 0 for positive value, 1 for negative).
    Thanks in advance !
    /Sygard.

    ah, beautiful !
    /** sorts an int array using RadixSort (can handle values [-2^31 , 2^31-1])
          * @param a an array to be sorted
          * @param b an array of the same size as a (a.length) to be used for temporary storage
          * @param start start position in a (included)
          * @param stop stop position in a (excluded)
         public void sort(int[] a, int[] b, int start, int stop){
              int[] b_orig = b;
              int rshift = 0;
              for (int mask = ~(-1 << bits); mask != 0; mask <<= bits, rshift += bits) {
                   int[] cntarray = null;
                   try{cntarray = new int[1 << bits];}catch(Exception e){System.out.println("Error");};
                   if(rshift == 24){
                        for (int p = start; p < stop; ++p) {
                             int key = ((a[p] & mask) >>> rshift) ^ 0x80;
                             ++cntarray[key];
                        for (int i = 1; i < cntarray.length; ++i)
                             cntarray[i] += cntarray[i-1];
                        for (int p = stop-1; p >= start; --p) {
                             int key = ((a[p] & mask) >>> rshift) ^ 0x80;
                             --cntarray[key];
                             b[cntarray[key]+start] = a[p];
                        int[] temp = b; b = a; a = temp;
                   else{
                        for (int p = start; p < stop; ++p) {
                             int key = (a[p] & mask) >>> rshift;
                             ++cntarray[key];
                        for (int i = 1; i < cntarray.length; ++i)
                             cntarray[i] += cntarray[i-1];
                        for (int p = stop-1; p >= start; --p) {
                             int key = (a[p] & mask) >>> rshift;
                             --cntarray[key];
                             b[cntarray[key]+start] = a[p];
                        int[] temp = b; b = a; a = temp;
              if (a == b_orig)
                   System.arraycopy(a, start, b, start, stop-start);
         }That's what I ended up with - and it works !
    Thanks a million !!

  • How to remove negative values for non-cumulative amount

    Hello
    I have a requirement from the user, wherein he needs to see the balance amount from credit and debit without calendar day being a factor. Hence, they do not need a bank passbook kind of scenario.
    I kept the balance amount aggregation as sum+last value. It works fine when I keep calendar day in rows. However, removing it shows negative value in the balance amount in case of just debit.
    They wish to see 30,000 on 07.12.2014 and 25,000 on 04.02.2015 in Non-cumulative key figure column. This works if I drag 0calday, but doesnt work in this scenario.
    Is it possible?

    Hi Yasemin
    Credit & Debit are inflow and outflow amount key figures. The user want the data somewhat like this:-
    GL Account No.
    Credit
    Debit
    Non Cumulative Balance
    1
    1000
    1000
    1
    500
    500
    1
    100
    400
    However, as of now, I get this data only when I keep 0calday in rows. If I remove it the data turns into this:-
    GL Account No.
    Credit
    Debit
    Non Cumulative Balance
    1
    1000
    1000
    1
    500
    -500
    1
    100
    -100
    I also tried suppressing result rows, yet it didnt work. This scenario is sort of like an account passbook debit and credit amount balance report, but they want that amount coming in without the 0calday row.

  • How to enter negative value in a currency field

    Hi Experts,
    Please help me how to allow to enter negative value in a field on report selection.
    I created a currency field on a report selection using PARAMETERS.
    I can enter positive value in the field. But, I cannot enter negative value.
    SAP shows an error message 00 126 "Specify positive values only".
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
    However, I cannot do it on screen 1000 created by report program.
    Thanks,
    George

    Hi ,
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
        Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
    regards
    Prabhu

  • Runtime error while putting negative value in to table control field

    Hi Guys,
                  I am working on a Table Control which has Currency
    and quantity fields.In PBO when the program is trying put a
    negative value then It is going into a runtime error.
    The Error description is,
    Runtime errors         DYNPRO_FIELD_CONVERSION
                                                                                    Error analysis                                                                               
    The program flow was interrupted and could not be resumed.                                 
    Program "SAPMZDBPRJCTEDFIG" tried to display fields on screen 0100. However, an            
    error occurred while this data was being converted.                                                                               
    How to correct the error                                                                               
    A conversion error occurred while the program was trying to   display data on the screen.                                                                               
    The ABAP output field and the screen field may not have the   same format.                                                                               
    Some field types require more characters on the screen than                                
    in the ABAP program. For example, a date field on a screen needs                           
    two characters more than it would in the program. When attempting to                       
    display the date on the screen, an error will occur that triggers the                      
    error message.                                                                               
    Screen name.............. "SAPMZDBPRJCTEDFIG"                                
                  Screen number............ 0100                                               
                  Screen field............. "ZDB_PROJCTD_FIG-ZWORKDONE"                        
                  Error text............... "FX015: Sign lost."                                 Further data:                                                                               
    I have tried increase the screen field length to more than the ABAP program field length and the scrren field name is of data type which supports signed value.
    But still I am getting the error.the error is 'Sign is lost'.
    I would appreaciate if you can help me with this.
    Correct answer will be rewarded.
    Thank you in advance,
    Sanujit Acharya

    Check The Forum
    Re: PA-BN : "FX015: Sign lost." dump
    Kanagaraja L

  • Conditions type of category "Delivery Costs"(B) donu00B4t allow negative values

    Hello,
    I would like to know if it is possible to munipulate a condition type with category "B" Delivery costs in such a way that it allows a negative entry in the Purchase Order.
    Estandard SAP does not allow it. Message: 06259 "Negative Delivery costs are not allowed".
    If the above is not possible, can anyone tell me how a can manipulate a Discount (fixed amount) in such a way that it not only points at a particlar account (accruels indicator does this job) upon MIGO, but also apears as a line-item upon receiving the invoice (MIRO). As far as I know, only Planned delivery costs can do this job. But they do not allow negative values!
    If anyone has encountered a similar task, please tell me how they solved it.
    Thanks,
    Aart

    Hello Guys,
    The scenario isas follows.
    When one buys fuel, in Chile  one has to pay fuel especific Taxes.
    Version especific config does not resolve this because we need the tax in amount (value) not in percentage.
    In our system we resolved this by creating a material "Fuel especific Taxes" which points at a tax-account  with a special tax-indicator.
    So far so good.
    Now the government implemented a second fuel tax - "Fuel tax variable" which we might resolve in the same way, but the problem is this tax might be negative(!).
    We cannot create a material with a "negative value" in our Purchase Order and discount conditions have inmediate efect on the material costs in the PO.
    The ideal would be incorporate a condition type in the PO which upon invoicing (MIRO) shows up with the tax account (and a possible negative value!
    The model we have developed upto now is using the tabpage "GeneralAccount" in the MIRO but in this model we have to indicate the account ourselves. The system does not propose it.
    Thats why I thought of the "Planned Delivery costs" option.
    Hope this clarifies a bit more the case we have.
    Thanks for any feedback
    Aart

  • Service PO Creation With Negative value

    Hi all,
    I am trying to create a Services PO using the BAPI 'BAPI_PO_CREATE1'
    In my scenario, First time PO will create with negative value.
    Then I will remove some conditions in Services line.
    Then PO value will becomes positive.
    When i create the bapi in ME21N, its working fine. Net values of PO become negative.
    But When I try the same using the BAPI, net price of the PO stored as 0(ZERO).
    If I create a PO with positive value using the same BAPI, everything is fine.
    If I change the PO after creation(removing the service line to make bapi value as positive), Net values are doubled since value stored as zero instead of negative value.
    Kindly help me to get out of this issue.
    Note: I need to create a Services PO with negative value using the BAPI
    Thanks in advance.

    Hi,
    No need to create service PO with negative quantity!
    If payment not done for your servicePO, you can cancel invoice document and then revoke SES.
    If any other process involved you can do subsequent debit or subsequent credit  for your service PO in t.code:MIRO.
    Regards,
    Biju K

  • Using decode function without negative values

    Hi friends
    I am using oracle 11g
    I have at doubt regarding the following.
    create table Device(Did char(20),Dname char(20),Datetime char(40),Val char(20));
    insert into Device values('1','ABC','06/13/2012 18:00','400');
    insert into Device values('1','abc','06/13/2012 18:05','600');
    insert into Device values('1','abc','06/13/2012 18:55','600');
    insert into Device values('1','abc','06/13/2012 19:00','-32768');
    insert into Device values('1','abc','06/13/2012 19:05','800');
    insert into Device values('1','abc','06/13/2012 19:10','600');
    insert into Device values('1','abc','06/13/2012 19:15','900');
    insert into Device values('1','abc','06/13/2012 19:55','1100');
    insert into Device values('1','abc','06/13/2012 20:00','-32768');
    insert into Device values('1','abc','06/13/2012 20:05','-32768');
    Like this I am inserting data into table for every 5 minutes Here i need the result like
    output:
    Dname 18:00 19:00 20:00
    abc 400 -32768 -32768
    to retrieve this result i am using decode function
    SELECT Dname,
    MAX(DECODE ( rn , 1,val )) h1,
    MAX(DECODE ( rn , 2, val )) h2,
    FROM
    (SELECT Dname,Datetime,row_number() OVER
    (partition by Dname order by datetime asc) rn FROM Device
    where substr(datetime,15,2)='00' group by Dname.
    According to above data expected result is
    Dname 18:00 19:00 20:00
    abc 400 600(or)800 1100
    This means I dont want to display negative values instead of that values i want to show previous or next value.
    Edited by: 913672 on Jul 2, 2012 3:44 AM

    Are you looking for something like this?
    select * from
    select dname,
           datetime,
           val,
           lag(val) over (partition by upper(dname) order by datetime) prev_val,
           lead(val) over (partition by upper(dname) order by datetime) next_val,
           case when nvl(val,0)<0  and lag(val) over (partition by upper(dname) order by datetime) >0 then
             lag(val) over (partition by upper(dname) order by datetime)
           else 
             lead(val) over (partition by upper(dname) order by datetime)
           end gt0_val
    from device
    order by datetime
    where substr(datetime,15,2)='00';Please take a look at the result_column gt0_val.
    Edited by: hm on 02.07.2012 04:06

  • Numbers do not accept negative values after upgrading to Snow Leopard

    I have iWork 9 installed in Leopard, and after upgrading to Snow Leopard, Numbers don't accept negative values, e.g. -141. They are defined as text and are aligned left in the cell, even if the cell is defined for numbers. Positive values are defined as numbers and aligned right.
    All my statistics are wrong now. I don't where to find a sollution. Need to fix this asap.

    I may guarantee that the cell contains a standard minus symbol.
    I entered in the Index.xml to see if something was odd.
    All is perfect.
    I can't imagine that the OP replaced deliberately a wrong char by a correct one before sending the file to my mailbox.
    And I repeat,
    (1) in the file which I received, the cell was really treated as a text one.
    (2) on my machine, on the OP's alternate machine, on the OP's alternate user account, resetting the cell's status to numbers apply well.
    So, if a third party component is the culprit, it would be easy to identify: it must be in one of the user account able to receive third party items which means
    <userAccount>:Applications
    <userAccount>:Library:Address Book Plug-Ins
    <userAccount>:Library:Fonts
    <userAccount>:Library:Contextual Menu Items
    <userAccount>:Library:LaunchAgents
    <userAccount>:Library:PreferencesPanes
    <userAccount>:Library:Scripting Additions
    <userAccount>:Library:Services
    <userAccount>:Library:Widgets
    But from my point of view it would be more efficient to try to search a culprit in the
    <userAccount>:Library:Caches folder.
    An efficient tip would be to compress every subfolder of this folder as a .zip file and trash the original file.
    Reboot so that the account restarts without the caches.
    If th account continue to fail, my idea was bad.
    If it behaves well, the culprit was one of the caches.
    unpack them one by one so you will get the wrongdoer.
    Yvan KOENIG (VALLAURIS, France) mardi 8 septembre 2009 18:50:27

  • Service Purchase Order with Negative Value

    Hi Experts,
    is there a method of creating a purchase order of services that can have negative value on it?
    the requirement is that the PO, SES and Invoice of the previously issued PO needs to be adjusted by creating a new Purchase order.
    Please advise.
    Thank you,
    Barakzai.

    Hi,
    No need to create service PO with negative quantity!
    If payment not done for your servicePO, you can cancel invoice document and then revoke SES.
    If any other process involved you can do subsequent debit or subsequent credit  for your service PO in t.code:MIRO.
    Regards,
    Biju K

  • Credit note for invoice with item with negative value

    Hi,
    is it possible to create credit note for invoice, where in one line is negative value (its non stock item).
    There exists 2 possibilities:
    negative qty and positive price (its possible create only through SDK, not SBO)
    positive price and negative qty
    for example
    itemcode 123
    qty -1
    price 1000
    How to create credit note from this invoice?
    Thanks a lot for hints.
    Petr

    Hello Petr Verner,
    It's a standard functionality of Business one, that it is impossible to enter a negative amount in an independant credit note or in a credit note based on a invoice with negative amount.
    To solve this issue:
    1.  For the rows with the positive Row Total, create an "independent" Credit Memo (not based on an Invoice).
    2.  For the rows with the negative Row Total, create another Invoice with a positive Row Total opposite to the original negative Row, and reconcile between the two rows manually via Banking => Bank Statements and Reconciliations => Reconciliation.
    Hope the above helps.
    Wilma Wang
    SAP Business One Forums Team

  • How to show negative value in Pie Chart from Webi?

    I have below example data, I want to convert this to a pie chart in Web Intelligence, my problem is after I convert it to a pie chart, the revenue '-30' is shown as '30', looks like the pie chart is not suppor the negative value to show, I want to know if there is any workaround or solution to make the pie chart to show the negative value? Is this behavior is by design? do we have any official document to explain this?
    The product I used is BOE XI 3.1 SP3.
    Department    Revenue
    A                      100
    B                       -30
    C                        80
    Edited by: Alex Wang on Jul 13, 2010 5:51 PM

    Why are you showing this information as a pie chart? It doesn't make sense to try and display a negative slice in a pie chart. I can't really think of a logical way to try and draw a negative slice in a pie chart. With a pie chart you will need all your information to either all be positive or all negative, otherwise it doesn't work.
    What you need is to have a bar chart, with positive and negative values on the y axis.

Maybe you are looking for

  • Is there a way I can store music in a playlist without it displaying in my musc library?

    I know it mght sound stupid, but there are some trance songs that I have downloaded and I wish to just play them from my playlists, but I do not want them to show in the music library, because I'm a neat freak (yea I said it) and i don't like my main

  • Can't find Javadoc for ADF Faces components

    I have tried to locate javadoc documentation for ADF Faces Java classes, but am not able to find anything. For example, the ADF Faces tag documentation for af:convertNumber has the following comment: "Further more information see javadoc for oracle.a

  • VBA Macro Script on a Mac

    How do I convert VBA script so it does the same thing on a Mac as it does in Microsoft Office? We have a Word file that references an Excel spreadsheet, and uses some clever coding (done by someone else, I assume it's clever but it may not be) to mak

  • OAM 11gR2 on High Availability

    Hi, We are trying to install Admin servers in Active passive mode in a single domain to manage single set of managed servers (for OAM component). The scenerio is that I have Admin Server + Managed Server on OAMHOST1 and OAMHOST2 both. I can start Adm

  • Export to Excel-status icons

    When i do the "Export to Excel" from a PPM dashboard it opens an excel sheet with all the contents except the icons.  I am using Office 2007 and i have the excel options->Trust center->Macro Settings->Enable all macros and Trust access to VBA project