Adding Condition types to ME11

hello gurus!
My requirement is to add freight condition types to ME11 while creating info records. The users should enter freight conditions unconditionally w/o which the info record should not be saved. I tried validating this before save. I used Badi SD_COND_SAVE_A to validate if freight conditions are entered by the user, if not the transaction throws an error message. However the error message takes me back to the CREATE RECORD : PURCH. ORGANISATION DATA 1 screen and the net price entry gets locked and the PB00 condition type is also lost.
I am new to ABAP and in dire need of help!!!
Thanks in advance

Hi,
Create the BADI, activate it, and if you are creating it, check that in CT_KONPDB_NEW you have a line for the desired KSCHL and that CT_KONPDB_OLD is empty (without lines). I suggest you to set a break-point and check the structures in the interface. Set filters with commands CHECK to avoid that all kind of conditions run this coding.
For instance.
  CHECK sy-tcode = 'ME11'.
  field-symbols:  <konp_old> type konpdb,
                 <konp_new> type konpdb,
                 <konh_old> type konhdb,
                 <konh_new> type konhdb,
                 <kondat_new> type vkondat,
                 <kondat_old> type vkondat,
                 <vake> type vakevb.
      read table ct_konpdb_new assigning <konp_new>
                    with   kschl = 'COND'.
      IF sy-subrc <> 0. 
        MESSAGE e398(00) WITH ...
      ENDIF.
I hope this helps you
Regards
Eduardo

Similar Messages

  • RECN (Process Contract) Error while adding condition type

    Hi All
    I am processing the contract (RECN). While adding a new condition type, it gives me thr error
    Parameter KWH (area unit) for calculation formula Y3 has errors
    Moreover when i defined this calculation formula (Y3), units KWH are not coming in area unit field (F4-possible entries).
    Pls help me with that.
    Thnx in advance
    Deepak

    Hi,
    i am assuming you have added customised formula to condition type while creation of conditon. for the formula there is no link to Badi.
    if the above is right, you need not to add any formula and parameter while creation of conditon,first remove the formula form the conditon and assign standard one.
    then select the formula after inserting the condition. error about the formula may be  no value is being supplied from the formula.
    thanks
    Jilani

  • Adding condition type

    when i was trying to enter cnd type MWS3 manually in the pricing procedure  it is throwing an error that requirment is not fulfilled for condition type MWS3
    I  have  checked in the pricing procedure the
    requirement was 10-plant is set
    Alt cnd type-16-rounding the total
    Alt base value-931-set manual update

    Hi there,
    You will get to know the exact condition creteria for a requirement only when you get into the code.
    In your case inspite the requirement that plant is set, there might be some additional creteria, like sales org or company code mentioned in the code.
    Regards,
    Sivanand

  • Addition of Condition type in XKOMV programmatically - Sales Order creation

    Hi,
    I need to add a condition type ( a record with whole data like Amount etc,.) in XKOMV programmatically during a Sales order creation, so that the new condition type gets automatically saved along with other data in VA01. Please suggest the better way of doing this - through Userexits or Form routines.
    Thanks in Advance,
    Sirisha.
    Edited by: hema Namuduri on Oct 20, 2011 5:12 PM
    Edited by: hema Namuduri on Oct 20, 2011 5:13 PM

    Hi E_Hinojosa / madhurao123,
    I added the below code in FORM userexit_xkomv_bewerten_end ( of Include: RV61AFZB ) which will get triggered in 'Pricing' Function Module.
          FORM USEREXIT_XKOMV_BEWERTEN_END                              *
    FORM userexit_xkomv_bewerten_end.
    DATA: l_amt1 TYPE vbak-netwr,
                v_waerk TYPE waerk.
    l_amt1 = '56000'.    " Let's say..
              READ TABLE xkomv WITH KEY kschl = 'ZF02 '.
              IF sy-subrc <> 0.
                  xkomv-stunr = '012  '.
                  xkomv-kschl = 'ZF02 '.
                  xkomv-krech = 'B    '.
                  xkomv-kwert = l_amt1.
                  xkomv-kbetr = l_amt1.
                  xkomv-ksteu = 'C'.
    Select single waerk into v_waerk from vbak where vbeln = komp-vgbel.
                  IF v_waerk <> space.
                    xkomv-waers = v_waerk. 
                  ENDIF.
                  xkomv-zaehk = 99.
                  CLEAR: xkomv-kntyp,
                         xkomv-kstat,
                         xkomv-kolnr,
                         xkomv-knumh,
                         xkomv-kopos,
                         xkomv-kinak.
                  xkomv-kherk = 'C'.
                  xkomv-kvsl1 = 'ERL  '.
                  xkomv-drukz = 'X'.
                  xkomv-kaend_loe = 'X'.
                  xkomv-updkz = 'I'.
                  APPEND xkomv. CLEAR xkomv.
                  DELETE xkomv WHERE kschl = 'ZH00 ' OR kschl = 'ZF00 '.
                  komp-netwr = l_amt1.
                ENDIF.
    ENDFORM.                    "USEREXIT_XKOMV_BEWERTEN_END
    Above is the main logic I am using, apart from other Export, Import statements etc,.The above code is getting triggered during every screen transition.
    It is automatically adding condition type 'ZF02' with all values during the creation of sales orders for some contracts, but not for other contracts. I am trying to trace what is the difference in both scenarios.
    Please suggest.
    Regards,
    Sirisha N.

  • In import Pricing Proceedure,  Some Condition types added to Material Cost

    HI,
    In Import Pricing procedure, Some condition types (Like Basic Customs Duty,Edu Cess & Hier Edu Cess) are added to material cost. The remaining are not added. What is the configuration to add condition types to Material cost?
    Note -  we have added FR3 account key for all condition types. Then why few condition types are added to material cost and why others are not added to material cost?
    Can any one please help me on this..
    Thanks
    KB

    Assign key "NVV" to those condition types which are to be loaded to material cost.
    Hope this resolves ur problem

  • Sales Order creation of adding new condition type to Item

    Hi Expert,
    The sales order has been created and need to add new condition type (Z601) to the first item(10). While adding the condition I am getting warning message like
    "Item 000030 exists already; the entry will be ignored".
    Where item 030 will be the last item.
    I have cheked but it's a standard report SAPFV45P, we can't modify. Please let me know can we set any field in the sales order so that we wont be getting this message.
    Regards,
    Mahesh

    Hello,
             If you would like to add the Condition Type automatically for a specific Item based on some condition (Lets say, Item Category), then you can code a Pricing Routine in VOFM Transaction and it will be automatically assigned.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Condition types not copied correctly from Me11 to Me21

    Dear All,
                I am facing a problem in my client place, it is a import scenario where i create ME11 for a material with a combination of a vendor. After maintaining condition types like J1CV, JSDB when I am creating PO for that vendor condtion types are not copied exactly..system excludes some condtions i dont know why but it is working perfectly ion the Qlty system problem is only in Production..pls help me to over come this problem
    Regards
    Saru

    Hi,
    Mike is right, it is likely to be a problem aith the priccing procedure.
    The procedure allocated to the PO may have been set up without the conditions you used in the Info record?
    Check the assignment of the pricing procedure to the PO (there may be a vendor schema group on the vendor master record purchasing view that is pointing to a different schema)
    Check in SPRO Logistics > Materials management > Purchasing > conditions > define price determination process > define schema determination.
    Look for any setting that uses the schema group from the vendor (if the vendor schema group is blank then the system will use the schema associated qwith a blank schema group).
    Then when you can see what schema the P org and vensdor group are pointing to, check the condition types linked to that in the "define calculation schema" menu above the one you just used in SPRO.
    Steve B
    Steve B

  • Value from condition types not to be added to material price

    Hi friends,
    I have a Pricing procedure for Cross company stock transfers.
    Supplying plant put some margin on the material price and will supply it.
    Now My question is how to avoid the value of the margin getting inventorized(adding to the material price) in the receiving plant
    As iam using Std price for this FERT material in the receiving plant , it is trying to inventorize.
    I have assigned an Account key and accrual key , for this margin condition type in my pricing procedure.
    many thanks
    Manish

    Hi
    In Transaction code, M/08.....for your Pricing procedure and for that particular condition type ....Check Statistical Indicator..
    In Transaction code: M/06.....For your particular condition type and go into detail....In control Data:2 tab, check Accurals also..
    Hope this will help you  to meet your requirement.
    Reward if useful
    Regards
    S.Baskaran

  • No accounting document generated while new condition type is added

    Hi
    I added a new condition type to the pricing procedure. While creating the invoice if i try giving a value to the new condition type then i get the message "No accounting document generated", but when i leave it as blank then there is no problem with the a/c docs.
    I assume I haven't done the complete settings correctly. Pls help.
    I am using  RVAA01 as the pricing procedure for standard order.
    Regards,
    Sujai

    Hi,
    As I do not have access to your system, can not comment in details.
    But if I have to add a tax codition in pricing, what I would do is :
    Create a tax condition, assign it in tax procedure.
    Copy it as sales pricing condition.
    Assign it in pricing procedure.
    Create condition record for tax condition in VK19.
    Check tax code in FTXP & its assignment in OB40.
    Create condition record for MWST.
    I think you need to check the above configuration.
    Savita

  • Adding manual condition types to a service contract

    Hi,
    I need to add a manual condition type and price value at billplan line item level in a service contract. Could anyone please let me know any way of adding it after the service contract has already been created?

    Hi,
    You need to first create the Condition type which can take manual entries or the manual entries are prefered.
    Then add the Condition type to the pricing procedure being determined in service contract.
    Once done when you go to edit mode in conditions tab you shoudl be able to add the above condition types.
    Regards,
    Tanu

  • Adding pricing condition type  while complaint creation

    Hi,
    I want to add condition type , whille calim creation. I have written the Zpgm using crm_ordwer_maintian , we can do that.
    But the problem is I need to put in some BADI, i tried order_Save and pricing_I badi.
    But it gives dump 'maintian'  bapi in the order_Save. I treid with 'multi_ow'  but its not adding the condition type.
    Please help me , where I need to put this code ?
    Thanks,
    Sushant

    heyy, its working fine , some parameter missing.

  • Condition value of Tax condition type gets added to Total Value in Contract

    Hi All,
    I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan.  Consequently, the second line has null Outgoing target value.
    However, the header Total value in the Contract  gets wrongly calculated as Basic condition value of 1st line  + Condition value of tax condition type of line one due to this.   When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
    For eg.
    Normal Error free  Contract
    Total Value at Header =   700.00 EUR
                       Material          Outgoing Target val
    Item 0010    MAT1               450.00                          ( 450 + 50 (tax )  )
    Item 0020    MAT2               150.00   
    Contract with billing plan error in second line
    Total value at Header =   550.00 EUR 
                            MAterial       Outgoing target val          
    Item 0010         MAT1             450.00                    ( 450 + 50 (tax ) )
    Item 0020         MAT2              0.00         
    Any inputs would be most welcome.
    Regards,
    Venkatesh.
    Edited by: Venkatesh Gopalarathnam on Jan 24, 2012 9:48 AM

    No, i didn't.
    Actually, i enter condition type and amount in sales order manually.
    At that time my program which i modified at 'Define And Assign Pricing Procedures' in IMG should be run. 
    But the result of running is different from my purpose.
    To change Condition value of condition type in sales order, are there any solution?

  • Adding the tax condition type after customer pays

    Hi,
    I have a strange situation.
    The customer has payed the invoice amount and evrything is cleared and the complete Order to Cash cycle is complete.
    Now my client wants to charge the customer with the tax amount (implemented later) on the invoice that is already been cleared.And that amount should as usual go to the tax G/L account. There are not many Condiiton types but just the base price condition type and tax condition type.
    I have maintained a necessary condition record for MWST.
    SAP transaction wise I am thinking to create a normal sales order of the invoice amount (Base + Tax condition type) and then complete the order to cash cycle.And once it is completed I would create a debit memo request and subsequent debit memo for the base price which would be adjusted later.
    This will solve my basic purpose of Tax amount goin to the tax account.
    This is only for few SO in the production
    Please let me know in case anyone has a better idea.

    Hi ronaldo
    You create a sales order with document type L2 ( debit process) . so you create the sales order with reference to billing . Now manually you enter the tax condition type (MWST) at the sales order level and then do billing.Make sure that in the tax condition type details you have maintained the option C "Manual entries are possible" .So that you can enter the the tax condition type manually at the sales order level.
    So some additional taxes are being charged to the payer.So he will be paying some extra taxes as he has already paid for the billing document that has been passed to FI
    Regards
    Srinath

  • 3 Condition types to be added

    Hello,
    We have 3 custom condition types defined in pricing procedure. We need to add the values of all these 3 conditions and add into the last (i.e.  3rd condition).
    Basically we want to collect the sum of all 3 conditions into the third condition value.
    How can we use a condition value formula for it?
    STEP  Condition Type  From  To  Subtotal     AltCty
    90       ZTST1                                B
    100     ZTST2                                B
    110     ZTST3                                B              987 ?
    But how can Formula 987 will collect the total of all these 3 conditions ZTST1, ZTST2 and ZTST3 ?
    Thanks to advice,
    Anand

    Hi,
    Good Day,
    Please Try below code in your formula.
    ***form frm_kond_basis_987.
    data : kwert_1 like xkomv-kwert .
    data : it_komv like xkomv occurs 0 with header line.
    refresh it_komv.
    clear it_komv.
    it_komv[] = xkomv[].
    kwert_1 = 0.
    loop at it_komv.
      if it_komv-kschl = 'ZTST1' or  it_komv-kschl = 'ZTST2'
         or  it_komv-kschl = 'ZTST3' .
          kwert_1 = kwert_1 + it_komv-kwert.
      endif.
    endloop.
    xkwert = kwert_1.
    *****endform.
    Best Regards,
    KSK

  • Condition type to be added in SIS

    Dear Experts,
           How can I add a condition type in SIS? Customer already has info structure created. I recently created a statistical condition type in pricing procedure and the requirement is that the condition type created need to be displayed in SIS. While using the T code MCSI, in order to have the data for the newly created condition type in the SIS report, is it enough if I set a value between 1 to 6 in Condition subtotals field or should any other configuration need to be done? Please advise.
    Regards,
    Madhavan

    To get the report as below for my condition type, I am unable to add in the 2nd screen.

Maybe you are looking for