Reverse sign of some characteristic values

Hi experts,
The user wants to see a key figure for some characteristic values as positive but, this value, is negative.
We don't use this characteristic on selections or formulas, we use it on free characteristics, so we can't use the reverse sign option.
is there any way to do it ?
Thanks in advance.

Hi,
You can do this in both ways:
Back End:
Write a routine as follows:
Considering the same example which you have given.
If char value = A1 then key figure = KF x -1
else result = KF.
Front End:
A. Create two restricted key figures:
1. Restrict the first one for value A1, say RKF name is RKF1
2. Restrict the second with value not equals to A1,  say RKF name is RKF2
B. Create two calculated key figures:
1. first calculated key figure will be CKF1 = RKF1 x -1
2. second calculated key figure will be CKF2 = RKF2 x 1
C. Now use table interface to join the two columns.
You can refer the below attached document for Table interface....
[http://help.sap.com/saphelp_nw04/helpdata/en/a2/06a83a4bd5a27ae10000000a11402f/frameset.htm]
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49dfeb90-0201-0010-a1a2-9d7a7ca1a238]
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0aca990-0201-0010-0380-f3aac4127a57]
Hope this will help you!
Regards,
Ishdeep.

Similar Messages

  • DMS - BADIs: Read Characteristic values

    Hello,
    we want to implement a characteristic-check in the Document BADI DOCUMENT_STATUS01~AFTER_CHANGE_STATUS.
    Therefore we need to read the chacteristic values of the default class.
    If the user enters i.e. some characteristic values in the CV02N an changes the Document Status (without saving between), the new characteristic values cannot be accessed via BAPI_DOCUMENT_GETDETAIL2 (getclassification=x).
    Is there an other way to get the characteristic values in the Document BADIs ?
    Best regards,
    Stefan.

    Hello Pelaez,
    thanks, we read the buffer with the the function module CLFM_GET_INTERNAL_TABLES.
    If the buffer is empty, we get the characteristic values with the BAPI_DOCUMENT_GETDETAIL2.
    Stefan.

  • Reverse sign not working in some column

    Hi all,
    a strange issue  happened today when we tryed to apply "reverse sign" on a Key Figure in BEx.
    Pratically, we marked a key figures with "reverse sign" but when we launched the query not all values
    were correctly changed of sign.
    As you can see on the screenshot above, the "Aggregators" and "Genial" values, have negative sign (-77,6 and -72,7)
    also if in the infocube they are negatives and we have marked reverse sign on the Key figure (the right value should be +77,6 and + 72.7).
    The "Direct" value works normally (357).
    Assumption:
    no reverse sign is presents on the rows (Characteristics);
    I compared all flags present on both the key figures "Direct" and "Aggregation" properties and they are identical.
    I already launched the RSRT on BW with the same wrong result.
    we just migrated at BW 7.3 SP 10
    Then I marked "keep sign" 
    I saved it  and executed the  query.
    all values were  correctly negatives.
    then I marked again "revrerse sign".
    saved
    I ran the query
    and now... the values are correctly all positive as expected.
    Anyone have an idea?
    Are there some notes to solve this issue?

    Hi Gennaro.
    check this:
    https://help.sap.com/saphelp_nw73/helpdata/en/01/dc31f9ad6d2e4d852ad4b169a5197c/content.htm
    "The priority rule - that the last changed setting is the one used"
    Best Regards
    Radek

  • Reverse Sign in Business rule Parameter

    Hi Guys,
    Can anyone give me some scenario where we can use reverse sign in  the business rule (Checked). Why we change the sign of the account.
    Source Account                      Destination Account                        Reverse Sign
    1030200000                             1030200000
    Thanks...

    Hi,
    This helps you to adjust the signs when you are posting values from one ACCTYPE account to another.

  • Report painter - Reverse signs

    Hi,
    I want to change a report using the report painter. There is one specific line that I want to reverse signs, i.e. if the value is actually 2,500, I want it to be 2,500-.
    I'm trying to select this specific line by clicking on it and then F9 (Select/deselect). Then, I click on F7 (Reverse signs) and I get the message «Signs are reversed for the selected area».
    But the result is not good. It changes ALL the signs of every possible line, and not only the signs that I selected using F9.
    Thanks,
    Julien

    Hi,
    Using f7 u can reverse balance of all not for individual.
    Means If a row bal is cr(-), then it will become Dr(+) and
    if it is Dr(+) it will become  Cr (-).
    In short sigen of any cell depends on row characteristic balance.
    If  u r not able to clarify your doubt please sendus detail query like wether u r using GR31 tcode or else.
    Regards,
    Pari

  • Cell Definition and Reverse sign Issue after upgrade

    Hi ,
    we are having a issue here after upgrade to BI 7 from 3.1c .
    There is a Collision between Cell Definition and Reverse sign in the query designer.
    Issue is . We have Key Figure "Net Days AR" which has Reverse Sign Checked under properties. In 3.1c when we ran the report the Net Days AR would get value like  for example    -40 . but now after upgrade to BI 7 SP 16 we are getting value 40. the negative sign is missing. The formula is correct.
    I went and checkd if we have any cell definitions defined on this and found the cell definitions onthis keyfigure.
    values are comming correct if there are  no cell definitions.
    Thanks in Advance and Points will be awarded.
    Thanks,
    Reddy

    we have the same problem. In BI 2004s with BEx 3.x when the cell reference is defined, the reverse sign flag is ignored.
    I opened a message to SAP. Until now no solution and I think we'll never receive solution. Here are the answers we received:
    SAP
    I have to say this is the limitation of front end 3.5.
    In designer 3.5, it works this way:
    When you define a cell referance, this cell is blocked from change of the column property change. No matter how you change the column key fig proerty, it keeps the original status when you define it.
    If you want the defined cell property, you need to delete the cell
    referance, change property, then redefine the referance.
    I agree this is very inconvinience, that's why I would recommend you to use query designer 7.0 if possible. With 7.0 front end, you can define separately the property for defined cells. It is more flexible.
    ME
    At the moment it is not possible to migrate to 7.0 frontend.
    I tried to delete the cell reference, change properties and redefine the reference. I tried to create new columns, define cell properties, save and define the cell reference. I tried several different combinations...
    No way, as soon as I define the cell reference, column properties are ignored.
    1) How can we restore the correct behavour of a query in frontend 3.5?
    2) If we found a way to restore it, we need a smart procedure to modify all our existing queries (including how to identify those affected by this inconvenience).
    SAP
    For front end 3.5, you need do following:
    1. delete cell referance
    2. change the column property (such as tick on or off the sign reversal)
    3. re-define the cell (this cell will with the new sign status)
    4. define formular base on cell
    After step 3, you can't change cell property whatever you do in
    column property. This is the designed behavior.
    If you want to change property after step 3, you need to start
    all over from step 1.
    ME
    I did it.
    Don't work. When I define the cell reference, column properties are ignored.
    SAP
    It seems there is some issue in front end.
    Do you use the front end 3.5 with latest patch?
    Could you please check front end installation as per sapbexc.xla (described in note 197460). If there are problems shown within this check do the following:
    - Remove your frontend via 'START' - 'PROGRAMS' - 'SAP FRONTEND' -'REMOVE SAP FRONTEND'
    - Install the lastest frontend and GUI patch (according to note 496977or 496989 again and check the installation).
    ME
    I don't think so. I am using:
    Sapgui 7.10 Patch 8
    Bex 3.50 Patch 3
    Bex 7.x Patch 5
    to be continued...

  • Reverse sign on amounts -  how to achieve this?

    Hi,
    The requirement is to convert the actual + amount to Reverse sign only for particular items against the key figure.  How can we achieve this?
    I appreciate your help.
    Thanks,
    BW USA

    Hi,
    can you identify your particular items with a characteristic value (e.g. ITM_TYPE)?
    if yes then, assuming you want to reverse the sign of KF form ITM_TYPES A and B
    - Create a selection (S_REV_KF) with KF and ITM_TYPE = A OR B.
    - create a formula RESULT = KF - 2 x S_REV_KF.
    other possibilities: create a hierarchy with reversed sign nodes, structure  (only if very few "items"... also possibility to add a nav attr attribute to your "item" in order to restrict more easily your S_REV_KF....
    finally post the result with the logic in your cube via URules....
    hope this helps....
    Olivier.

  • Populate Batch characteristic values in create sales order BAPI

    Can anybody help me in populating the batch characteristic values using BAPI_SALESORDER_CREATEFROMDAT2?
    I have checked the related notes provided by SAP, like, 567348 but it will be great if someone can send some code snippet on this.

      Subramanian, Brad and Raja.
      Thanks for your suggestions its were useful, with
      these i can resolve my problem.
       !!! Best Regards !!!
    Raja
      I used the se37 to test bapis, is more easy and fast !!
      and you can save data like variant, and you can simulate the real execution without write any code abap,
    and re-process the times that you need,
    when you know what fields you need you write your abap code faster.
       Thanks !!!
    Message was edited by: Noemi Huerta

  • Performance - Conversion of characteristic values to SID

    Greetings:
    Yesterday I load 556.000 record into an infocube.
    No transformations of any kind. Direct assign for every infoobject. Very simple
    It lasted 1 h 30m to complete the loading.
    It started loading  7 datapackage of 50.000 records each.
    I realized that 3 of those datapackage (#2, #4 and #7) lasted from 41:47min to 41:59min in the "Conversion of characteristic values to SID" task. The other 5 lasted ... seconds.
    Any idea of that could be going on during this conversion?
    I don't understant why some datapackages last so long and other don't.
    Does anybody has any idea about this?
    Thanks in regards.
    Guillermo

    Hi Daniel,
    The SID generation is based upon the Dimension Table and Master data.
    If you see the dimension table can be build with different types like:
    one to many
    many to one
    many to many
    one to one
    So, if the dimension's for that datapacket data is many to many then it has to get all the relations and then it has to assign an SID.
    If it is one to one then there will be no more work to be done by the system to assign the SID's
    Hope you understood the back-end process.
    With Regards,
    Ravi Kanth.

  • Condition type value updation using characteristic value in sales order

    Hi Experts,
    We are implementing SAP for one of our Spain client. In that one of the Legal requirements is, whenever they are selling the finished products to domestic customers who contain OIL as one of the component then, some additional cost needs to be calculated and collected from customer and which needs to be paid back to Spain Government every month on Region basis.
           If OIL is not a component to produce the finished product then, not required to charge the customer additionally.
    The OIL content used to produce every finished product will vary based on product characteristic value. Meaning, for some finished product the OIL used will be 2.2 KG and for some products it will be 3.5, 4.3 KG and etc.
    Since various combinations of products are available for the client, during sales order creation we are planning to update some special characteristic which the data flow from u201CVariant Tableu201D. In the variant table we are going to maintain the OIL Quantity required making finished product.
    But we are not sure how to activate a new condition type with the value fetched in the special characteristic. This new condition type needs to be activated based on this characteristic value and multiplied with total order quantity and price to charge from customer.
    Example, the special characteristic fetched the value of 2.2 KG based on variant table. Total Order quantity is 10 PC and charge is 0.06 EURO per KG. in this case, (2.2 x 10 ) x 0.06 EURO = 1.32 EURO
    I need the expert opinion how to activate the new condition type based on characteristic value and achieve the above requirement.
    Thanks in advance.
    Warm Regards,
    VEL

    Hello,
    I have replicated the whole requirememt in IDES and getting the price calculation as needed but the only issue with the Conversion factor for the condition type. Either you need to maintian the conv factor in material master or need to enter manually for the condition type in SO. Some how you have to maintain the conversion factor to calculate the price for the condition type in different unit.
    For easy of understanding Lets make the whole requirement in 2 parts
    Part - 1
    Oil qty calculation. For convenience sake I have taken oil qty also in TO
    1) Created a num char OIL_QTY1 with length 9 and decimal places 5 and UOM as TO
    2) Created Variant table to infer the OIL qty in TO per piece of finished prod ( This oil qty data may be depends on various factors). For certain Finished products the oil qty may be 0 or blank
    3) Created a REF char SO_QTY  to pull the SO qty to configuration and add this char in class 300(Table:VBAP,Field :KWMENG)
    4) Created another char SO_OIL_QTY  (Num with length 9 and decimal places 5 and UOM as TO)
    5) Created a PROCEDURE say PROC_SO_OIL_QTY with code
    *$self.SO_OIL_QTY = $self.OIL_QTY1 * $self.SO_QTY*
    6) Create another PROCEDURE as mentioned earlier with modified code
    $SELF.A_VARCOND = 'TEST_001' if OIL_QTY1 specified,
    $SET_PRICING_FACTOR ($SELF,A_VARCOND,'TEST_001', SO_OIL_QTY)
    Note: Maintain proper seq of the procedures in profile. The Qty cal proc should be before the price related procedures.
    PART-2
    1) For the condition type maintained 60 EUR per TO (0.06 EUR per KG)
    Now if you create SO for the Finished product of 10 PC
    the Char values will be
    OIL_QTY1  = 0.00022 TO (inferred from Variant table th proc)
    SO_QTY    = 10
    SO_OIL_QTY = 0.0022 TO
    Get into conditions tab
    Here Condition type ZSIG will be displayed as error with Amount 60 EUR per TO and condition value will be blank. Just enter value 1 in the col NumC and CCon fields.
    Now the Condition value will appear as 1.32 EUR.
    Hope this gives some more clarity
    Regards
    Brahmaji D

  • How to change the characteristic value in a item of sales order by FM?

    Hi experts,
    I guess the FM BAPI_SALESORDER_CHANGE can implement my requirement. But I have made many testing program, that's all failed. I don't know which part is not correct. So could you give a very simple sample to me? Just change the characteristic value in a item of sales order, not do any change for other parts. Thanks in advanced.
    Regrads

    Hi Birendra,
    Thanks for you explain. I follow your guide to wirte abap program. But related characteristic value still not changed in SO main screen. could you give me some suggestion? Thanks a lot!
    type-pools: IBCO2,
                IBXX.
    data: l_CUOBJ type CUOBJ_VA,
          l_ibase type IBCO2_IBASE_REC,
          l_CONFIGURATION type IBCO2_INSTANCE_TAB2,
          w_CONFIGURATION type IBCO2_INSTANCE_REC2,
          l_ROOT_OBJECT type IBXX_BUSINESS_OBJECT.
    data: t_IBCO2_VALUE_TAB type IBCO2_VALUE_TAB,
          w_IBCO2_VALUE_REC type IBCO2_VALUE_REC.
    select single CUOBJ
      into l_CUOBJ
      from VBAP
      where VBELN = '0020030609'
        and POSNR = '000020'.
      CALL FUNCTION 'CUCB_GET_CONFIGURATION'
        EXPORTING
          INSTANCE                           = l_CUOBJ
        IS_BUSINESS_OBJECT                 =
        IV_MOMENT                          =
        IV_WITH_DB_INSTANCE                =
       IMPORTING
         IBASE                              = l_ibase
         CONFIGURATION                      = l_CONFIGURATION
        EO_CBASE_REF                       =
      EXCEPTIONS
        INVALID_INPUT                      = 1
        INVALID_INSTANCE                   = 2
        INSTANCE_IS_A_CLASSIFICATION       = 3
        OTHERS                             = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    loop at l_CONFIGURATION into w_CONFIGURATION.
      l_ROOT_OBJECT = w_CONFIGURATION-OWNER.
    t_IBCO2_VALUE_TAB[] = w_CONFIGURATION-values[].
      read table w_CONFIGURATION-values into w_IBCO2_VALUE_REC with key ATINN = '0000000222'.
      w_IBCO2_VALUE_REC-ATWRT = 'TMP'.
      modify w_CONFIGURATION-values from w_IBCO2_VALUE_REC index sy-tabix.
      modify l_CONFIGURATION from w_CONFIGURATION index 1.
      clear: w_CONFIGURATION.
    endloop.
    CALL FUNCTION 'CUCB_SET_CONFIGURATION'
      EXPORTING
        ROOT_INSTANCE                      = l_CUOBJ
      IS_CBASE_HEADER                    =
      CHANGING
        CONFIGURATION                      = l_CONFIGURATION
    EXCEPTIONS
      INVALID_INPUT                      = 1
      INVALID_INSTANCE                   = 2
      INSTANCE_IS_A_CLASSIFICATION       = 3
      OTHERS                             = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CUCB_CONFIGURATION_TO_DB'
      EXPORTING
        ROOT_INSTANCE                       = l_CUOBJ
        ROOT_OBJECT                         = l_ROOT_OBJECT
      FORCE_NEW_INSTANCE                  =
      IV_WITHOUT_COMMIT_UPDATE            = ' '
      IV_MATERIAL                         =
      IV_LOCATION                         =
      IV_TECHS                            =
    IMPORTING
      NEW_INSTANCE                        =
    TABLES
      EXP_NEW_NESTED_CUOBJS               =
    EXCEPTIONS
      INVALID_INSTANCE                    = 1
      INVALID_ROOT_INSTANCE               = 2
      NO_CHANGES                          = 3
      ALREADY_REGISTERED_FOR_UPDATE       = 4
      INSTANCE_IS_A_CLASSIFICATION        = 5
      OTHERS                              = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Error at sales order: Inconsistent characteristic value assignment

    Hi SAPians
    There is a problem in variant configuration. I have configurable materials at sales order level with BOMs and super BOMs. When I am executing the scenario, not able to process further after selecting characteristic values for a configurable material. The error saying " Inconsistent  characteristic value assignment". I checked all the relevant master data, every thing is okay. But I am not able to proceed further. Can any one provide some valuable inputs for this.
    Raksha.

    Hi
    Did u create variant table (CU61) if not plz and try to make it by tick mark of Decision table..
    u can check assignmebt consitance thru CU60 ..if there again blank plz maintain it manually..
    basically wt happened during creation of Characteristics and assignment of value in value tab .. there is indicator ..which influence assignment consistance..
    hope u may get clue.
    correct me if i went wrong..
    thanks
    mk

  • Reverse sign +/- in a hierarchy

    Hi all
    I need to subtract just one node of a hierarchy. So I ticked the flag reverse sign +/-, and then I set the node I need to be changed.
    The problem is that it doesn´t work. My node sign is not reversed as I expected.
    Should I do anything else?
    thks in advance

    No, what I want to say is this:
    I have a hierarchy and I need to subtrac one node (I need to change the sign), so in maintenance infoobject I tick the option reverse sign of a node.
    the value of my node is -100 and after ticked reverse sign +/- for this node in my hierarchy, when I execute my report the value is -100 instead of 100.
    I don´t know why this is not working.

  • Hide a row or column for characteristic value # in Query Designer

    Hi gurus,
    I would if we could hide a result row / column if one of the characteristic value is #. The requirement is actually to remove the meaningless row / column from the whole result set. For example, I have a char Material Group in the column. Since not every Material is assigned to a Material Group, I will get the following layout:
    Material_Group A
    Material_Group B
    Material_Group C
    Is it possible to define in query designer so that the column with # will automatically not be displayed?
    Thanks,
    Meng

    Hi Meng,
    I guess we have the same users..
    But there is one thing that is going to make a non sense on the report: if you do not display the "#" for material group, then the total of your query by material group will not be the summation of what is displayed on the screen...and if the user explort the information in Excel (pretty sure they will do so), you will have some calls that your query does not balance....
    Based on that assumption, tell the users to assign a material group to the materials, so that this unassigned column disappears. You could even give them a control report listing all the parts that do not have a material group
    If this is a standard business rule not to have a material group for all parts, then, what you could do is to change the text for empty rows for Material group, then the "#" will disappear and wil be under the text description you defined.
    But keep in mind that your data is made of materials which do not have a material group in their definition, noraml or not ?
    PY

  • How to use a characteristic value variable in a formula?

    Hi all,
    I have created a characteristic value variable (manual input) for 0CALDAY in a query to get the Start & End date. There is requirement in the report to display a KF showing the duration between Start & End Date.
    I have tried to create a Formula Variable with Replacement Path, Ref Char 0CALDAY. In the Replacement Rule, there is an option to Replace Variable With variable. However, I wasn't able to locate the variable I have created for user input.
    Any idea how to achieve this?
    Many thanks,
    Yoong-En

    hi,
    if you have the start and end dates as user entry then follow this
    1) create a formula variable with reference char as start date of the type customer exit
    2) create another formula with end date as reference char of type customer exit
    3) in the cmod write the code your logic should be in such a way the the value at the user entry should be passed on to this formula variable the same for end date code
    4) create a formula with ( start date formula variable - end date formula variable)
    you can use this code
    WHEN 'ZV_YRFKDAT'.(formula  variable name)
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZV_KEYDAT1'.(user entry variable name)
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW = LOC_VAR_RANGE-LOW. "low value, e.g.YYYY (2006) part of key date (20060625)
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT = 'EQ'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
    repeat teh same for end date
    hope this helps
    Thanks
    krishna.y
        ENDIF.

Maybe you are looking for