How assign formula to condition type??

I have a condition type with calculation type G (Formula).  I know that formula is calculated in VOFM, however, how to assign this formula to Condition Type??.
Thanks in advance.

hi,
you have to create one additional cond type for the result. let say ZZZZ,
then go to VOFM ->formula-> condition value-> create new routine
this the code,
DATA: xkomv_ZCSA TYPE komv_index, A TYPE WMTO_S-AMOUNT,
xkomv_Z001 TYPE komv_index,
xkomv_Z002 TYPE komv_index,
xkomv_Z003 TYPE komv_index,
xkomv_ZZZZ TYPE komv_index,
xkomv_old TYPE komv_index.
CLEAR: xkomv_Z001, xkomv_Z002, xkomv_Z003, xkomv_ZZZZ, xkomv_old.
xkomv_old = xkomv.
READ TABLE xkomv WITH KEY kschl = 'Z001.
IF sy-subrc EQ 0.
xkomv_Z001 = xkomv.
ENDIF.
READ TABLE xkomv WITH KEY kschl = 'Z002'.
IF sy-subrc EQ 0.
xkomv_Z002 = xkomv.
ENDIF.
READ TABLE xkomv WITH KEY kschl = 'Z003'.
IF sy-subrc EQ 0.
xkomv_Z003 = xkomv.
ENDIF.
READ TABLE xkomv WITH KEY kschl = 'ZZZZ'.
IF sy-subrc EQ 0.
xkomv_ZZZZ = xkomv.
ENDIF.
CLEAR : XKWERT.
A = ( XKOMV_Z001-KWERT + XKOMV_Z002-KWERT +  XKOMV_Z003-KWERT ) / 3.
A = A * 100.
CALL FUNCTION 'CURRENCY_AMOUNT_DISPLAY_TO_SAP'
  EXPORTING
    CURRENCY = XKOMV-WAERS
    AMOUNT_DISPLAY = A
  IMPORTING
    AMOUNT_INTERNAL = A.
MOVE A TO XKWERT.
xkomv = xkomv_old.
AFTER THAT activate this routine, the put this routine in pricing procedure for condition type ZZZZ.
it'll works
point if it's helpful
Best Regard,
Hendry

Similar Messages

  • How I tie the formula with conditions type?

    Hi,
    Than create the formula with tcode O3I7:
    1) how I tie the formula with conditions type?
    2) how I tie the conditions type with the formula with Calculation Schema?
    help me, please.
    thanks
    Edited by: celeste ziantoni on Feb 5, 2008 6:45 PM

    Hello,
    Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
    Thanks,
    Venu

  • How to Activate a Condition Type in the Tax OCde for A/P  -- Very Urgent

    Hi  Peers
    I'm creating a new Tax Code in T.Code FTXP, while creating, One Condition Type is Deactivated, say JM01, How to activate that condition Type. I know how to activate the Condition Type in A/R side but I want to know it in A/P side.  Plz help. Its very urgent. 
    Regards
    Rajaram

    Hi Rajaram,
    U pls Check ur configuration. First u check the calculation procedure (F.A- Tax on sales & purchase-Basic setting-Check calculation procedure _ Define procedure) In the procedure field u  check JM01 is activated or deactivated otherwise u created in condition Type.
    I think its usefull otherwise u let me know
    Thanks
    R.Manigandan

  • How to hide a condition type in pricing procedure

    Hi all,
    Please tell me how to hide a condition type in pricing procedure.
    This is urgent.
    Thanks in advance.

    Hi ,
    If it is very Urjent,,,,,,,,,,,,Better to Contact with ABAP.
    Other wise,,send Very Clearly,,,,You wont to Display in PP.but if it is Satisfie you want to see in Sales order.
    Is it right,,,,,,,
    Regard
    ram

  • How to make the condition type active

    hi,
    how to make the condition type active when its in inactive stage and its showing yellow triangle and y in the control features of it.
    and
    how to solve if is showing a statement as "INITAILISED".
    regards,
    balajit

    Dear Balaji,
    Yes it will come as Inactive mode.....If you make the 2 condition Class is same in single Pricing procedure ,In Standard system will display like this only..
    For Example:PR00-Condition class is Price
    EX00-Condition class is Price
    Then first Condition type will become Inactive.. change the Class of the Second Condition Type.
    Best Regards
    raj.

  • How to create Reference Condition Types

    Hi ,
                 Please tell me how to create Ref.Condition Types?
    I have a requirement.."I should create a Zdiscount(13%) which should be copied to the sales order automatically based on PR00"
    How to do that?
    Points for sure
    RamChandra

    Hi,
    You can use condition supplement functionality.
    Check the link [Condition Supplements|http://help.sap.com/saphelp_47x200/helpdata/en/93/7432de546011d1a7020000e829fd11/frameset.htm]
    You can also check the field RefConType for the discount condition type in SPRO -> Sales and distribution -> Basic functions ->Pricing -> Pricing control ->Define condition type.
    Regards,

  • Assign Shipment Cost Condition Types to Origin Groups

    Hi all!
    I need to assign condition types from shipment cost document (tr VI01) to origin groups. In customizing we have possibility to assign purchase document condition types to origin groups, but i cannot choose conditions types from shipment document there. Please, help, Is there any customizing whehe i can do it?

    Hi,
    Generate table which include field Transportation planning point(or any other which is common) by T_03
    Assign this table in access sequence by T_07
    Then in condition type detail under tab changes which can be done option MANUAL ENTRIES - set blank (No limitations ) by T_06
    Then maintain condition record in TK11 for all conditions
    Here don't put any prices for condition just save
    Now When you create shipment cost document all condition will come automatically,then user will put only price and save.
    Kapil

  • How to assign vendor to condition type by default?

    Hi,
    Here one import PO is having more than 100 line items and for each condition type different, different vendor has to be assigned.
    Is there any way to make it default before only like all custom duty conditions belong to one custom clearing vendor only all the time, so that each and every time they need not assign it manually..
    How to do it pls let me know..
    regards,
    Sanjana

    Hi,
       You can create an access sequence for the customs conditions, for example with condition table 780 for plant. In this case you can maintain the import duty condditions based on plant. You can assign the access sequence to the import duty conditions. Now you can maintain the condition records for the import duty conditions in MEK1 based on the access sequence. Since the duty rates may change, you may maintain the condition records without duty rates. Now go to details of the conditions, where you will find "Vendor" field. There you can assign the customs vendor, so that it will be defaulted all the time based on the access sequence (In my example, based on plant).
    Regards
    AKPT

  • How to set a condition type to inactive/statistical during sales order crea

    Hi
    There is a manual header condition (Z0L1) in one our pricing procedure which I want to set to inactive or make it statistical during sales order (doc type Z9) creation in some scenarios.
    How can I achieve?
    Can I use user exit USEREXIT_PRICING_CHECK (Program MV61AFZA) and what code should I write here. Any help would be highly appreciated
    Regards,
    Javed

    Thanks for your replies. Basically this condition type is a manual condition type which will be entered in sales order and then will be available in billing document. But when there is a return order created with reference to that billing document then I want that the manual condition is not deteremined in the return order.
    I tried by assigning a requirement to the condition type in pricing procedure but seems to be pricing requirement don't work for manual header conditions. Then I tried to assign a condition value formula and tried to set the value to zero in case of return orders but that also did not work.
    Then I also tried to apply the same logic in user exit USEREXIT_PRICING_CHECK  in the following programs
    LV69AFZZ
    MV61AFZA
    But still it did not work. Any help would be highly appreciated
    Regards
    Javed

  • How to block particular condition type not being posted

    Hi,
          We don't want a particular condition type ( customized & accruel ) to be posted into accounting when creating a billing. That condition type is deleted and after that this is how it works now.
    1. When a billing is cretaed from a new sale order ( which does not have that condition type ) it works fine.
    2. When a billing is created from a sale order which refers to the old sale order which in turn has this condition type, then this conditon type is posted into accounting.
        Can some one help in this issue so that I want to block this condition type being get posted in accounting. Is there any Userexit or can it be done with other options. I am an ABAPer, please give specific answer.

    Hi Jagadish,
    The reason why we do account determination is that we would want the system to post the  respective amounts to respective G/L accounts automatically.  What amounts to be posted to what G/L accounts is decided by the Account keys .
    Now if for a particular condition type in the pricing procedure  if you remove Account key the system will not post to the G/L accounts. But generally in this case I believe while creating the Bill system will throw an error in account determination.
    For that what you can do is create completely new accont key and assign a provisional G/L account which is not to be included in your Balance Sheet accounts or P & L accounts (can be restriscted by FI Guys).
    But remember to use a completely new oricing proicedure for this case.
    Hope this helps.....
    J Nagesh

  • How are US tax condition types XR1 to XR6 calculated

    i searched few forums to understand the ways of US taxes getting claculated particularly on condition types XR1 to XR6, is the value available in SAP system or is the percentage value maintained in the taxware or vertex system?
    if in SAP where is this maintained, i could see the same input & output tax codes assigned in OBCL settings for many states in US, so i am not able to relate this in FTXP, as different states provide different calculation.
    if it is maintained through external system, is there way we can check the values or see in the screen?, how is this link of checking the external system enabled, is it through 301 cal type & its associated function module,
    will there be a chance to change this value from the user end or do we need to seek Taxware or Vertex assistance here.
    sorry on too many questions.
    just got confused with the way it works
    Regards
    Ilango

    Hi Ilango,
    Check my responses to your respective questions:
    i searched few forums to understand the ways of US taxes getting claculated particularly on condition types XR1 to XR6, is the value available in SAP system or is the percentage value maintained in the taxware or vertex system?
    In SAP, only Condition Type XR1 to XR6 are only condition which is responsible for computation of tax in US & Canada. Where, even condition types UTXD & UTXE are equally essential to this. These condition types used for external tax calculation.
    if in SAP where is this maintained, i could see the same input & output tax codes assigned in OBCL settings for many states in US, so i am not able to relate this in FTXP, as different states provide different calculation.
    Well, I don't think there much from SD side to explorer here. As Tax procedure hardly have any role to play in SD business process for tax rate determination. But, that is very significant from GL Account determination for respective Tax Transaction in SD.
    Refer my posts on
    Tax code and SAP SD - ERP Operations - SCN Wiki
    Plant-wise Different Tax General Ledger Accounts - ERP Operations - SCN Wiki
    Whereas, configuration for Non-Taxable transaction as maintained in TCode OBCL, generally comes in picture when Tax Jurisdiction is not maintained in respective Ship-to master. Based on that configuration system will determine Tax Jurisdiction for those Ship-to.
    % are maintained in FV11, not in FTXP.
    if it is maintained through external system, is there way we can check the values or see in the screen?, how is this link of checking the external system enabled, is it through 301 cal type & its associated function module,
    301 is not the only Routine associated. As like UTXD & UTXE there respective routines 500(collect tax input - export to IVP) & 501(get tax output data - import from IVP) are equally important with others 301 to 306(Set tax values and percentage into condition structure and fill tax base amount based on FM  GET_TAX_RESULTS_FOR_301_306)
    Refer SCN Wiki Tax jurisdiction - ERP SD - SCN Wiki
    will there be a chance to change this value from the user end or do we need to seek Taxware or Vertex assistance here.
    Hope you are aware, these tax IVPs are tool that is used to calculate taxes for the US tax rules.Yes, you might need to ask respective Tax IVP.
    In Taxware, it provides the tax jurisdictions codes for master data addresses in SAP. Based on combination of both tax jurisdictions, the Taxware product code and dates, Taxware returns rates and amounts of tax and which jurisdictions get the tax.
    Hope that helps you. If you still have any specific question, do revert back.
    Thanks, JP

  • Error while releasing Billing: Assign HD00 (Frieght) Condition type in COPA

    Hi,
    I am getting the below error while releasing billing document.
    Assign condition HD00 type in COPA
    HD00 condition type is frieght condition type
    Is it good thing if we assign this condition type to COPA value field in KE4I? or we should not assign Frieght condition to COPA?
    Please advise
    Thanks
    Kishore

    HI Kishore,
    To which GL account are you posting this freight condition value? Is that GL created as a revenue element (of category '11'/'12')?
    If yes (has to be 'yes', since you are getting the error message), then you don't have a choice but assigning a CO-PA value field in KE4I. The idea here is, if you have created the GL as revenue element, then you intend to take it to Controlling module for further analysis. Thus, making your FI/CO reconciliation easy.
    If you do want to carry this value to CO-PA for analytical reporting then don't create that particular GL (assuming you are posting freight to a separate GL) as a revenue element. That said, it does make sense to carry this value to CO-PA and in your present case, you don't have a choice as the message which you got is an error message, which you can't circumvent.
    Hope this helps.

  • How to hide the Condition types in item condition screen in Sales Order ?

    Hi Experts,
    We got new requirement from the Client. Pricing Condition types  are ZZBG, ZPBG, ZPBA, ZFSG, ZBDG and ZBHG part in Pricing Procedure. These condition types have Condition records. These need to be hidden in Item conditions screen in Sales Order but other status of the conditions remain unchanged. Pleas provide me the solution earliest  How this we can achieve in a best way.
    Best Regards,
    Srikith

    Hi Srikanth,
    You can achieve this using CONDITION EXCLUSION.
    Maintain Condition exclusion for first condition type its Exclude the condition types which are below to that.
    You must set a condition exclusion indicator for the price. You can do this in two ways:
    If you want to set the condition exclusion indicator a follows then you specify it:
    1..for all condition records of a condition type (e.g. with condition type PR00) when defining a condition type in SD Customizing
    2.for an individual condition record (e.g. only for material 4711) in the detail screen of a condition record (in the Condition exclusion field)
    Hope this will helps you
    Dasaradha

  • In Stock trasfer order how to pick pricing condition types

    Dear Experts,
    I am new to SAP MM my question is In Stock transfer order (plant to plant through purchasing) it is picking PI01 pricing condition types? how it is picking? what are the Accounting doc are updating?

    Hi,
    Goto the following node SPRO > IMG > Materials management > Purchasing > Conditions > Define Price determination process > Define shcema determiantion
    Define schema for transport orders under which you will be able to see RM2000, when you try to open the RM2000 through M/08 transaction code.
    You will be able to see the PI01 as the basic price condition type.
    Accounting entries
    During Goods Issue.
    The stock account in the supplying plant gets Credited with the MAP value.
    The stock account in the receivving plant gets debited with the MAP value.
    If there exists any diffeence then the key AUF will get hitted.
    During Goods Receipt.
    No accounting doucment gets generated.
    Regards,
    DilliB

  • How to check 2 condition types (kschl)

    Hi,
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp kschl EQ 'JEC1' OR
                                                  KSCHL EQ 'JMO1'.
    how to write this above stmt? I have to check 2 condition types with a single read stmt?
    regards,
    Star Shankar

    I guess Kishan wants to refer as:
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    if <b>i_komv-</b>kschl EQ 'JEC1' OR
    <b>i_komv-</b>KSCHL EQ 'JMO1'.
    ....<code>
    endif.
    As KSCHL is part of internal table I_KOMV.
    or
    READ TABLE i_komv WITH KEY kposn = ekPo-ebelp .
    check i_komv-kschl EQ 'JEC1' OR i_komv-KSCHL EQ 'JMO1'.
    ....<code>
    Kishan,
    Correct me if i am wrong.
    Regards
    Eswar

Maybe you are looking for

  • How do you re-set the master password without knowing what it is?

    I set up a master password, and can't remember it.  I haven't activated the filevault, so from what I read, that is good.  But I still don't know how to re-set the master password if I don't have the old one to change it.  Please help.  I have too ma

  • Free item field checked defaultly in PO for one specific vendor

    Hi, If we always send a free PO to a vendor, is there any place to configure that once we create PO to this specific vendor, the free item field is checked defaultly? Some posts on the web indicated that they succeeded in doing this by setting in ven

  • Ask the Expert: Cisco Prime Infrastructure - Implementation and Deployment

    Welcome to the Cisco Support Community Ask the Expert conversation. This Ask The expert Session will cover questions spanning Cisco Prime Infrastructure on Implementation and Deployment on Wired and Wireless. This will be more specific to Customer’s

  • Oracle service registy  server startup issue.

    hi I have installed the oracle service registry . After that i have created the OSR specific domain in weblogic server as per the OSR installation guide. admin server and osr_server1 instances created in that domain. when i am trying to start OSR ser

  • App Download manager had problems installing Microsoft C++ 2008

    I used download app for Creative Cloud - illustrator / Photoshop / Premier / After Effects all had this error log - should i worry? They seem to be running OK Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example