Negative Values for condition in BAPI_SALESORDER_SIMULATE

Hey Guys,
I have a problem with a condition type in order_header_in. I fill order_header_in-CD_TYPE1 with the condition key 'ZMIN' and order_header_in-CD_VALUE1 with '-8'. Because I want to subtract 8 % from every netto value of the material prices.
The problem is that the bapi calculates 8% of every netto value, but adds the 8% to every netto value. I want to subtract 8%.
The bapi adds no matter if I fill order_header_in-CD_VALUE1 with '-8' or with '8'.
Can anybody help me?
Greetings
Timo

Sorry for the question. I recognized that the condition type is customized as a addition type. So it is correct that the value is added to the netto value!

Similar Messages

  • Issue with Negative Value for Total valuated stock 0VALSTCKQTY.

    Hi Experts,
    we loaded the Cube with datasources 2LIS_03_BX, 2LIS_03_BF and 2LIS_03_UM.
    We mapped the quanity field from 2LIS_03_BF in transformation either into Key figures "Quantity issued from valuated stock" (0ISSVALSTCK) or "Quantity received into valuated stock" (0RECVALSTCK ) of the cube.
    For obtaining the Total Valuated stock, we used the Key figure 0VALSTCKQTY. This key figure is having the Inflow and Out flow values as 0RECVALSTCK and 0ISSVALSTCK. When i tried to check the content of 0VALSTCKQTY, the key figure  0VALSTCKQTY is not present in the infoCube content. I understood that the value for this key figure would be calculated at the time of query execution with the formula
    { Last obtained Valuated stock + (Received Valuated Stock u2013 Issued Valuated Stock ) }.
    The issue is the first records in the query is obtained with negative value for the total valuated stock 0VALSTCKQTY even though the values of Received Valuated Stock  and  Issued Valuated Stock are with Zero.  Could any one please help me on how the first record in the query is with a negative value eventhough the inflow and out flow fields of it are with Zero.
    Many Thanks in advance.
    Jeswanth

    Hi Srini,
    I observed an interresting reason for the stock being with negative in the first record.
    Issue : While executing the BEx report, we have the first record with a negative value.
    Let me explain with an example
    Material  : XYZ
    Plant      : A
    Date of Stock Initialization for data source 2LIS_03_BX -
    >  12th April 2009.
    So on 12 Th April 2009 consider that we have a stock in store with a value of 2640.
    Then we have loaded wih Data source 2LIS_03_BF for all Historic Movement types.
    At the time of query execution we will have the first record with a negative of available stock present on the day of initialization .
    So, as we have initilized the data source 2LIS_03_BX on 12 th April 2009, we have at that time a stock of 2640 in availability.
    Exactly with the same value of 2640, we are having a negative value i.e. -2640.
    and also one more point to be noted is ...as we have initialized the data source 2LIS_03_BX on 12 th APril 2009...it has created a
    opening balance of 2640 on the day of initiailization i.e on 12 th April 2009 in infocube....(which is an extra record...)...so if the previous record of 12,04,2009 is having some value in it..then it will get added to 2640 EA..which will give incorrect stock
    So in the query the records will appear in the below following manner
    Calendar Day     Total stock                                                                Received stock                                          Issued Stock         
    28.12.2005 --->  - 2640 EA
    29.12.2005 --->    2000 EA                                                                       640 EA                                                        0
    10.04.2009 --->      0                                                                                0                                                               2000 EA      
    11.04.2009 -
    >    0                                                                                0                                                                0          
                                 (For making
                                  the earlier record of  initilization to 0  a negative value -2640 EA is created in the first record )
    12.04.2009 (Initializtion day) --->  2640 EA                                                 0                                                                0
    13.04.2009 
    the day before initialization the total stock will be 0 due to the negative effect introduced by the first record and from the day of initialization the records will be the accurate values...  On 12 th april 2009 we can see that a stock of 2640 is brought into the total stock. In fact if there is no negative value i.e. -2640 in the first record then ...the value on 11.04.2009 will be 2640 Ea and this will get summed up with the Opening balance of 2640 EA created by 2LIS_03_BX on the day of intitialization. So on 12 .04. 2009 the total stock will be shown as 5280 EA...so in order to prevent the double value only we observed that the first record is created with the negative of available stock present on the initialization ...to make the record before the day of initialization i.e. 11.04.2009...to be 0...so that from 12 th April 2009 ..will start to see the actual total stock in the query result...
    This is happening only if we use  both the data sources 2LIS_03_BX and 2LIS_03_BF  for loading into BW.....
    If we load alone by 2LIS_03_BF ...then as 2LIS_03_BX is ruled out in the loading...then no negative of available stock will be created ...because there will be bno opening balance created on the day of initialization.....and the opeing balance available will be flowing into consecutive records due to the movement types and 12 th April 2009 will be shown with avaialable total stock of 2640 EA.
    Kindly let us know your opinions on this...
    Thanks.
    regards,
    Jeswanth

  • Negative Values for Stock Quantity in BI

    Dear Experts,
    I have a report based on Inventory Management Multiprovider which is executed to check the Valuated Stock Quantity for single day input entry. ( Valuated Stock Qty is a non cumulative Key figure with Inflow as Quantity Received into Valuated Stock and outflow as Quantity Issued from Valuated Stock )
    So Valuated Stock Qty for a particular day = (Quantity Received into Valuated Stock till that day) - (Quantity Issued from Valuated Stock till that day).  So i think, checking the cube data in BI will not help to resolve the issue.
    Issue: : When I execute the report in BI for some dates I am getting Negative Values for Valuated Stock Quantity which is wrong output.
    Can this issue be resolved by filling set up tables and loading it to BI, say for last month?
    Could you please suggest any other solutions available?
    Also it will be helpful if you could explain what needs to be analyzed in ECC side (with T Codes)
    Thanks in advance
    Vinod

    Hi Vinod,
    try these transactions on the ECC side:
    MMBE to view stock of a material
    MB51 to view all material documents for your selection (i.e. material)
    The business content stock reporting in BW is mainly using datasource 2LIS_03_BF for movements and 2LIS_03_UM for revaluations. For this to work you will have to have all material documents loaded into your cube.
    Also have a look at this How To paper if you haven't yet.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Best,
    Ralf

  • SQL-Developer  4.0.0.13.80 Bug? No negative values for axis scale accepted

    I reported this problem already for the versions EA1 and EA2 of SQL-Developer 4 (4.0EA1 No negative values for axis scales in diagrams) but it still exists in 4.0.0.13.80:  Even if it is now possible to define the minimum and maximum values for the y-axis of a diagram, I found no way to enter negative values for the minimum value. Neither -100 nor (100) is accepted. The value always switches to 0. I have a report which shows values from -97 to 387. Automatic scaling sets the y-axis from -200 to 500 but I would prefer a scale from -100 to 400. How is this possible?
    btw.: the German translation for "scale" in the diagram settings is bad. It is translated with "Nachkommastellen" but it should be "Skalierung".

    In 4.0EA2 this topic is still not fixed.

  • Incorrect value for condition type P101 in Stock Transport order

    Hello Friends,
    We have a scenario where in transfering material from one plant to another using the STO way , the excise duty from the sending plant should be loadded on the inventory of the receiving plant.
    In this scenario the excise duty X% is calculated on the condition type P101 (which is the standard price or the moving average price from the material master accounting view)
    Giving below a sample cas e for the error occuring:-
    - Suppose a material M1 has stock of 5,00,000 EA of total value 2,03,707.16 inr , thus the moving average price calculated by the system is 0.41 inr per unit.
    - When i try to create the Stock transport order for this material the P101 condition value now appears as 2,05,000 inr for same 5,00,000 Quantity
    If we check the difference between the material master value and condition value their is a difference of 1292.84
    As mentioned the excise duty(X%)  is now getting calcuated on 2,05,000 . When we do post goods issue against the delivery created for the stock transport order the inventory value posted is from the material master i.e 2,03,707.16 , but the excise value are calculated on 2,05,000 in the Purchase.
    This difference in value between the condition P101 in PO and the actual inventory posting value is resulting in incorrect calcuation of the excise duty.
    can some help me regarding this issue.
    regards,

    Dear Gundam,
    This might accured due to the rounding off problem, so please chek the rounding off condition type is available in the invoice or not.
    If not plaese maintain the rounding off condition type sames as in the sales order then try.
    I hope this will help you,
    Regards,
    Murali.

  • Formula variable as reference value for condition

    Hi,
    I am trying to use a formula variable (user entry, Optional) for a condition. I use all characteristics in drill down independently while defining the condition. I have 2 issues here
    1. If I give a default value for the variable to display as 500, the report displays only 5 and even in the variable I see default value changed to 5.
    2. If I enter a two digit number for the variable even if there are records matching the condition, I am getting message "No data was found meeting the above conditions"
    Would appreciate any help on why this is happening. We are on BW 3.0B Support pack 20.
    Thanks

    Unni,
    this sounds like a program error. Please check SAP notes. If you can't find a solution, open an OSS message.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Maintain value for condition type

    Hi All
    How can i maintain fix value for any condition type so that while creating PO it will automatically picked in PO.
    e.g I want to maintain CVD as 16%
    usefull ans will be rewarded
    rajesh

    Hi,
    You maintain the condition record for CVD in FV11 for combination of Tax code etc
    Make sure you maintain "Changes to be allowed" manual entries as C auto entry
    has priority in customizing OBQ1
    The condittion value will flow auto
    BR
    Diwakar
    reward if helpful

  • Negative values for Custom field in SAP coding block !

    Hi All,
    Hope all of you are doing fine.
    I need your valuable suggestion/possible workaround for the following requirement.
    u2022 The project requires me to add a custom new field to SAP coding block, which can take negative numeric values.
    u2022 The standard u201Caddition of custom fieldu201D configuration allows me to have the data type of the newly added custom field as either NUMC or CHAR. NUMC data type does not allow negative values. Standard configuration does not allow me to choose other data types (for custom field addition) like QUAN which can allow negative values (by checking the Sign at domain level in data type).
    u2022 Moreover, once I have added the custom field, itu2019s not possible to change the data type of the newly added field (say from NUMC to QUAN).
    I wanted to know if anyone of you have any project experience/knowledge about possible workaround, where we can add a custom field in SAP coding block, which can accept negative numeric values (through standard configuration or otherwise).

    No experience on that, but I strongly advise you to not trying to do something else than what was designed by SAP. So, you can create a character type field, with for example a field exit (though this technology is obsolete, it's very useful in that case) to validate its content (and reformat it if needed).
    Note that from a functional perspective, I think an amount is strange in the coding block, so maybe ask the functional people to know why they need it...

  • Select returns negative values for unsigned datatypes in MySQL DB

    Hi, I have a table in a MySQL database where some fields are declared as "unsigned".
    Example:
    CREATE TABLE countries (
    Country_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    Number SMALLINT UNSIGNED NOT NULL
    My problem is when inside a .xsql file, I try to do a select:
    <xsql:query>
    select Number from countries where Country_id="15"
    </xsql:query>
    If inside the Database, Number always goes from 0 to 65535 (UNSIGNED SMALLINT),
    the resulting XML of that query will always show negative values if Number is
    bigger than 32767 (so it ignores the "UNSIGNED").
    Have you seen something like this before? Do you kwno what I'm doing wrong or what
    can I do to retrieve the values unsigned?
    Thanks a lot!
    David

    hi muneer
    >
    We are facing a strange issue in our R12.1.3 Ebiz instance (DB 11.2.0.1) - Solaris Sparc 64 bit - 2 node (1 node Apps, 1 node DB).
    Some of the purchase orders are having a negative purchase order number.
    SQL> select segment1 from PO_HEADERS_ALL where segment1 < '0';
    SEGMENT1
    -7951814
    -8960847please see
    Error: Purchase Order Creation Could Not Be Initiated, But PO Was Created With Negative PO Number And No Distributions [ID 789464.1]     To Bottom     
    PO Creation Process Failed In Sourcing And Creates Document With Negative Numbers [ID 1479616.1]
    Purchase Order Receipt FAQ (P4312) [ID 1306869.1]
    How it could happen. Any suggestions please !looks like a bug
    Can a Purchase Order (PO) Be Created With Negative Quantity or Price? [ID 241389.1]
    AppsMasti
    Sharing is caring

  • 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 use the page total value for conditional formatting

    Hi
    I am very new to xml publisher report.. I have calculated the report total like this--
    <?add-page-total:pt;'ENT_AMT'?> now i display it in a table colomn by using the syntax
    <?show-page-total:pt;'#,##0.00'?>
    Now what i want to do is if the value of the page total is greater than 1000 the color of that coloumn in the table will change. But by any means i cannot access the value and do the condition checking..
    Plz help..
    Thanks and Regards
    Joydeep Mitra

    Hi Mitra,
    You can use this if you want to change the color of a cell:
    <?if:total>1000?><xsl:attribute xdofo:ctx="block" name="background-color">red
    </xsl:attribute><?end if?>
    Regards,
    Marius

  • Negative values for Purchase Order Number

    Hi,
    We are facing a strange issue in our R12.1.3 Ebiz instance (DB 11.2.0.1) - Solaris Sparc 64 bit - 2 node (1 node Apps, 1 node DB).
    Some of the purchase orders are having a negative purchase order number.
    SQL> select segment1 from PO_HEADERS_ALL where segment1 < '0';
    SEGMENT1
    -7951814
    -8960847
    How it could happen. Any suggestions please !

    hi muneer
    >
    We are facing a strange issue in our R12.1.3 Ebiz instance (DB 11.2.0.1) - Solaris Sparc 64 bit - 2 node (1 node Apps, 1 node DB).
    Some of the purchase orders are having a negative purchase order number.
    SQL> select segment1 from PO_HEADERS_ALL where segment1 < '0';
    SEGMENT1
    -7951814
    -8960847please see
    Error: Purchase Order Creation Could Not Be Initiated, But PO Was Created With Negative PO Number And No Distributions [ID 789464.1]     To Bottom     
    PO Creation Process Failed In Sourcing And Creates Document With Negative Numbers [ID 1479616.1]
    Purchase Order Receipt FAQ (P4312) [ID 1306869.1]
    How it could happen. Any suggestions please !looks like a bug
    Can a Purchase Order (PO) Be Created With Negative Quantity or Price? [ID 241389.1]
    AppsMasti
    Sharing is caring

  • Negative values in report for delta

    Hello,
    I am getting negative values for service level report metrics in delta loading, intresting thing is metrics is giving correct values for almost all the order but for around 40 order I am getting -ve values in metrics (i am getting -100 % and correct value should be 100 %, it is for around 40 records only for other records I am getting it correctly), If I do the full initalization again it brings me the correct poistive values but again get some -ve values when I run the new delta loads.
    Please give your suggestion on comments on this. I will assign point to all the answers and full point to right answer.
    if you need any further information pl let me know
    Hitesh

    Hello Manga, Kedar and Eric,
    Thanks for your quick replies,
    Manga, I am checking the orders on r/3 how they were processed thanks for your suggestions
    Kedar, yes these are custom extractor using 2lis_11_v_ssl and 2lis_11_vaitm going to ods and then to infocube and I am reporting it on infocube. can you please specify in detail what exactly I should check on extracotr side/ do I need to check at first level ODS anthing specific ??
    as these metrics calculation are done using RKFs and  CKFs in query designer and those all are correct.
    Pl advise
    Any other suggestions/ comments are most welcome
    Note: I have assigned points to all the answers
    Hitesh
    Message was edited by: Hitesh Asknani
    Message was edited by: Hitesh Asknani

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • Show negative values as 0 in BEx Report

    Hi Gurus,
    I have a report which shows negative values for POs in BW BEx. The user wants all negative values to show up as 0 in the report. Is there a way I can show that as 0 in the report  for all negative numbers easily.
    Any help is deeply appreciated.
    Thanks.

    Hi,
    Make a new formula and write a simple condition like this.
    (PO value<=0)*0+(PO value>0)*PO value
    Make sure to use boolean operators while writing this condition.If any issues get back to me.
    Hope it helps.
    Regards,
    AL

Maybe you are looking for

  • Get textbox values from ADF table

    Hi, I have af:table with input Textbox as a single column in which user can enter values. I have applied valuechangelistener for textbox using which I can get values entered by user. Say I have multiple rows. When valuechangelistener is called, I get

  • Item Category Determination in Deliveries against STO

    Dear Guru, In our STO process, there will always have a Outbound delivery created for this STO PO. Actually my question is how the system deterermine the correct item category for the outbound delivery. I checked through configuration under "Define I

  • Case statement in a multiple query

    Hi everyone, This is my first time to use case statement in a multiple query. I have tried to implement it but i got no luck.. Please see below set define off SELECT g.GROUP_NAME as Market ,t.NAME as "Template Name" ,t.TEMPLATE_ID as "Template ID" ,(

  • Linux user lost in solaris 10 network configuration :\

    I installed for evaluation Solaris 10 dor x86 and i'm trring to configure network interfaces. My problem is: If i "ping www.google.com" not works, but if i "nslookup www.google.com" works and i get ip ( 66.249.85.104 ) and if i "ping 66.249.85.104" o

  • Airport Utility on Windows XP laptop  can't find  AE

    Today, Airport Utility on Windows XP laptop says it can't find my Apple Extreme device. Yesterday, Windows found it and provided wireless connection immediately. Today, no-go. The only change is that I plugged in a USB mouse -- doesn't seem likely th