FM or BAPI to create new condition type / record for material - VK11

Hi All,
    I need to copy condition records from one material to another material, to do that using the below FM. For the below values even its not raising any exception or creating pricing record. Could any one tell me am i missing any other parameters ?
Please let me know.
*& Report  Z_TEST292011
REPORT  Z_TEST292011.
data: ls_komg type KOMG,
      ls_komv type komv,
      lt_komv TYPE TABLE OF komv,
      lv_new_record.
*ls_komg-kunnr = '0001000008'. " Cust number
ls_komg-matnr = 'A0168L1600100006'. " Mat number
ls_komg-VKORG = '3101'.
ls_komg-vtweg = '10'.
clear: Lt_komv,LS_KOMV.
ls_komv-kappl = 'V '. " Application V = Sales
ls_komv-kschl = 'ZR00'. " Condition type
ls_komv-krech = 'B'. " calculation type; B -Fixed amount
ls_komv-waers = 'USD'. " Currency
ls_komv-kpein = '100'.
ls_komv-kmein = 'EA'. " Unit of measurement
ls_komv-kbetr = '121.50'. " new condition value
append ls_komv to lt_komv.
CALL FUNCTION 'RV_CONDITION_COPY'
  EXPORTING
    application                       = 'V'
    condition_table                   = '005'
    condition_type                    = 'ZR00'
*    DATE_FROM                         = '20110629'
*    DATE_TO                           = '99991231'
    ENQUEUE                           = 'X'
*   I_KOMK                            = ' '
*   I_KOMP                            = ' '
    key_fields                        = ls_komg
    MAINTAIN_MODE                     = 'A'
    NO_AUTHORITY_CHECK                = 'X'
    NO_FIELD_CHECK                    = 'X'
*   SELECTION_DATE                    = '00000000'
    KEEP_OLD_RECORDS                  = 'X'
*   MATERIAL_M                        =
*   USED_BY_IDOC                      = ' '
*   I_KONA                            =
    OVERLAP_CONFIRMED                 = 'X'
    NO_DB_UPDATE                      = ' '
*   USED_BY_RETAIL                    = ' '
IMPORTING
*   E_KOMK                            =
*   E_KOMP                            =
    NEW_RECORD                        = lv_new_record
*   E_DATAB                           =
*   E_DATBI                           =
*   E_PRDAT                           =
  tables
    copy_records                      = lt_komv
*   COPY_STAFFEL                      =
*   COPY_RECS_IDOC                    =
EXCEPTIONS
   ENQUEUE_ON_RECORD                 = 1
   INVALID_APPLICATION               = 2
   INVALID_CONDITION_NUMBER          = 3
   INVALID_CONDITION_TYPE            = 4
   NO_AUTHORITY_EKORG                = 5
   NO_AUTHORITY_KSCHL                = 6
   NO_AUTHORITY_VKORG                = 7
   NO_SELECTION                      = 8
   TABLE_NOT_VALID                   = 9
   NO_MATERIAL_FOR_SETTLEMENT        = 10
   NO_UNIT_FOR_PERIOD_COND           = 11
   NO_UNIT_REFERENCE_MAGNITUDE       = 12
   INVALID_CONDITION_TABLE           = 13
   OTHERS                            = 14
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
break jdonepud.
call function 'RV_CONDITION_SAVE'.
call function 'RV_CONDITION_RESET'.

Hello ,
why dont you try LSMW -RV14BTCI ?
regards
Prabhu

Similar Messages

  • How to create new Wage type specifically for IT14 and IT15 only

    Hi Gurus,
    I was assigned to create a new wage type to be used for Infotypes 14 and 15 only.
    Another thing is to have this for % deduction rather than having a fixed amount ($).
    Appreciate all your help.
    thanks!

    FOR IT0014
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > RECURRING PAYMENTS AND DEDUCTIONS- - - -  >WAGE TYPES- - - -  >CREATE WAGE TYPE CATALOG
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > RECURRING PAYMENTS AND DEDUCTIONS- - - -  >WAGE TYPES- - - -  >Check wage type group 'Recurring Payments and Deductions
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > RECURRING PAYMENTS AND DEDUCTIONS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >CHECK ENTRY PERMISSIBILITY PER INFOTYPE
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > RECURRING PAYMENTS AND DEDUCTIONS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >Define Wage Type Permissibility for each PS and ESG
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > RECURRING PAYMENTS AND DEDUCTIONS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >Check wage type characteristics
    FOR IT0015
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > ADDITIONAL PAYMENTS- - - -  >WAGE TYPES- - - -  >CREATE WAGE TYPE CATALOG
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > ADDITIONAL PAYMENTS- - - -  >WAGE TYPES- - - -  >Check wage type group ADDITIONAL PAYMENTS
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > ADDITIONAL PAYMENTS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >CHECK ENTRY PERMISSIBILITY PER INFOTYPE
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > ADDITIONAL PAYMENTS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >Define Wage Type Permissibility for each PS and ESG
    PM - - - -  > PA- - - -  >PAYROLL DATA- - - -  > ADDITIONAL PAYMENTS- - - -  >WAGE TYPES- - - -  >CHECK WAGE TYPE CATALOG- - - -  >Check wage type characteristics
    Last step of the both set you ( V_T511) have to define the indirect valuation method ( PRZNT, SUMME Etc)
    Don't forget to maintain V_T539J, the place where you defining your component is a percentage of another component

  • How to create a new condition type for palets

    Hello Gurus,
    I want to create a new condition type to order material palets (like LP02) but I need to calculate a discount in % for entire palets only.
    By example:
    A discount of 5% for each completed palets.
    I order 1 palet for 100euros, I want a discount of 5 euros, and final price is 95euros.
    I order 1,5 palets for 150 euros, I want a discount of 5 euros and final price is 145 euros (100-5% + 50) and not 142,5euros (150-5%).
    I order 2 palets for 200 euros, I want a discount of 10 euros and final price is 190euros
    I tried with a fixed amount calculation type and it works fine, I have a discount only for entire palets. But when I tried with percentage calculation type, it doesn't work.
    Any Idea?
    Thank you for your help
    Gregory

    Hi,
    In the pricing procedure config, you will have to create a new formula under the AltCBV (Alternative formula for condition base value) column.  The base quantity should be
    Order Qty DIV 1
    That will give you the effect of truncating the decimals.   Suggest you get an ABAPer to have a look for you.
    Phyllis.

  • New condition type

    I created a new condition type 01ZF for freight % and assigned it in the calulation schema 0100. It also appears in the drop down while creating an order but does not get saved when selected.

    Hi
    Which SRM version are you using ?
    <b>When this Condition type is not getting saved ? What are the steps you are doing ?</b>
    <u>Meanwhile, Please go through the following SAP OSS Notes and Business Add-Ins(BADIs) which will help -></u>
    Note 640369 - Incorrect values in dropdown in account assignment details
    Note 1027656 - Simplified pricing:wrong price calculation in SC using prod.
    Note 1038241 - Simplified pricing: Follow-on note to note 1027656
    Note 1034949 - Wrong price in SC when a product has multiple conditions
    Note 539720 - Simplified pricing (classic scenario)
    Note 637562 - Simplified pricing
    <u>BADIs -> </u>
    1) BBP_PRICEDATA_READ
    2) PRODUCT_UPDATE2
    3) PRC_PRICING_INIT
    Note 622282 - EBP 3.5 - price is lost in the Shopping Cart
    <b>Related links -></b>
    <u>Pricing</u>
    http://help.sap.com/saphelp_srm50/helpdata/en/72/f40f3c98ddaa4ce10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/ee/d9df3bbcce4b37e10000000a114084/frameset.htm
    Do let me know.
    Regards
    - Atul

  • New Condition type for pricing

    Hi,
    I have a requirement wherein I want to create new condition type for add on cost of material with manaual entry . this condition is to be given in inforecord.
    How to proceed? also, this contion type to be inserted in pricing schema??

    Dear Smitha,
    You may ask what is the condition type?
    For example:
    - discounts, surcharges or tax taxes add to net price
    - delivery costs, cash discounts add to effective price
    Discounts or surcharges may be percentage based, quantity dependent, or absolute.
    Best Regards,
    ian, Wong Loke Foong

  • New condition type for freight

    hi,
    i want to create new condition type for freight like some different ways of transportation like (roadrailair), three are at a time, which user exit i want to take and where it will trigger

    hi,
    as you have to have three condition types for sales order
    ROAD - VENDOR1 - ZVE1
    RAIL - VENDOR2 - ZVE2
    ROAD - VENDOR3 - ZVE3 - into sales order.
    create a screen exit and add this in your delivery addational tab page - MANUAL ENTRY BY THE USER.
    with
    LEG 1 - ROAD - VENDOR1 - ZVE1
    LEG 2 - RAIL - VENDOR2 - ZVE2
    LEG 3 - ROAD - VENDOR3 - ZVE3
    create a Z table which captures the information for this.
    and link this table to FB70 - t.code
    and settle it individually as per FFA.
    balajia

  • New condition type, new tax codes

    Hi,
    I have created new condition type for tax procedure TAXIN. I have defined the account key for it. The condition type is basically for exempted input tax transaction. Then I created new tax codes by using the new condition type. The percentage of the tax codes is 0 as it is exempted.
    When I am trying to post invoice by using above taxcodes, it gives me error that the tax code is not defined in taxprocedure TAXIN.
    What could be the reason?

    Did you create the tax code in the development or prouction system?
    If in development you need to export the tax code by going to FTXP and selecting Tax Code -> Transport -> Export. Then when you release the transport you should go to the Production system and select Tax Code -> Transport -> Import.

  • Requirement of creation of new condition types and Account keys tax codes

    Hi,
                   In what all possible scenarios will the requirement to create new Condition types and accont keys arise for the creation of new depreciation keys.
    Thanks
    Raja.
    Edited by: Raja Gopal 345 on Aug 29, 2010 1:06 PM

    Unless you use jurisdiction codes, and no external tax system, for
    example with tax procedure TAXUSJ, there is no validity dates for the
    condition records.  You can see this differnce by comparing the tables
    A003 without jurisdiction codes and A053 with jurisdiction codes.  A053
    contains the extra fields DATBI (key field) and DATAB.  This is the
    standard functionality.
    Please have a look at the following part of note 418582:
    " Changing past percentage rates has to be inhibited in order to avoid
    database inconsistencies. For this reason, the functions which allow you
    to transport time-dependent tax codes with percentage rates from the
    past are not supported."

  • Create new condition for SO

    Dear Experts,
    Kindly assist me how to create conditiaon type for just 4 sales order type out off 10 sales order type.
    Exp:
    We have ZZ01 till ZZ10 - SO type
    ZZ01-ZZ04 - wanted to add aditional condition, that is admin fee during SO creation.
    Means I need to create new condition type for SO as ZAF1 & then tag this condition type with GL acc. 2000000000.
    - is that possible to view this condition only for those SO type & others are not allow to view during SO creation.
    - this condition ZAF1 (adnib fee) should tag with correct GL acc. the moment billing taking place.
    Kindly advice me what are configuration needed in order to create this settings. I never done this before for SD module. Thus please brief me well in order to place all these settings in SAP. Thank you.
    rgds,
    nantha

    Hi,
    You can also follow this
    Pricing procedure config:
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table: If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in SPRO as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence: If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in SPRO as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type: If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in SPRO as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the necessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure: It is recommended to copy a similar pricing procedure & make the necessary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in SPRO as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure: After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    Step 5: Condition record: Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc.

  • Create a new condition type for tax... and assign in the Tax determniation

    Hi,
    I need to add custom condition tax type, i tried creating the condition in OBQ1 and add that condtion in FI pricing OBQ3, now I want to confirm what is basic conept means whenever we create on condtion in OQB1 and add in OBQ3.
    i need to add that in Sales order and need to maunally populate that in the sales order.
    could anybody suggest to create a new condition type for tax.(full process).
    Thanks
    shankar

    Hi,
    Goto the T.Code "V/06".Create one new "Z" condition type.
    Maintain the Condition Class as "D(Taxes)".
    Calculation type as "A(percentage)".
    Cond. Category as "D(Tax)".
    Select the tick mark for "Group Condition" if it is applicable for you.
    In the next step assign this condition type to your pricing procedure by using the T.Code "V/08".
    Also maintain access sequence by using the T.Code "V/07" and assign it to your Condition type.
    Now this condition type will appeared in your sales order after maintain teh condition records.
    Regards,
    Krishna.

  • Creation of New Condition Type

    Hello SAP Folks,
    I have one issue related to pricing. See the case is i have to produce an extra cost in the Sales Order which is actually depended
    upon the net price. This condition type is percentage based and calculation works in the following way:
    Let the new condition type be Z123 and Net price be PR00.
    So for year variation 1-2 year, the condition type Z123 will be 1.5 times of PR00
                                      2-3 year, the condition type Z123 will be 2.0 times of PR00
                                      3-5 year, the condition type Z123 will be 3.0 times of PR00
    Can anyone throw light on how to configure this condition type ???
    Regards,
    Sarthak

    Hi,
    For Z123 Condition type make (V/06)
    Cond. class A Discount or surcharge
    Calculat.type A Percentage
    Plus/minus A Positive
    and all other settings are same as Discount condition Type
    For making Z123 customize an Discont Condition Type (EX:K004,)
    Then while creating the condition record give the percentage as 150% 1-2 yearin valid from and to date,
    give the percentage as 200% 2-3 yearin valid from and to date, give the percentage as 300% 3-4 yearin valid from and to date, and save the record. (VK11)
    In the pricing procedure For step z123 condition type from which you want the % that is step of PR00 should be mentioned in the FROM and TO column.(V/08)
    This will result as per your requirement

  • Pricing: New condition type not getting listed in options in product master

    Hi,
    I have created a new pricing procedure and also created a new condition type for it. I am trying to create a condition record in the product master for this  condition type but the condition is not there in the list of conditions. How can I inlcude it in the condition list?
    Even the new condition type I have created by copying 0PR0 is not getting listed in the options, whereas 0PR0 is getting listed.
    Regards,
    Meenakshi
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:27 AM
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:29 AM

    Hi Meenakshi,
    you need to enhance the condition maintenance group in the customizing, which is assigned to the product master. Please check: IMG: Customer Relationship Management -> Master Data -> Products -> Special Settings for Sales Operations -> Assign Condition Group to Application CRM and IMG: Customer Relationship Management -> Master Data -> Conditions and Condition Technique -> Condition Technique: Basics -> Create Maintenance Group.
    Best Regards,
    Michael

  • Creation of new condition type: MWST

    Hi, Everyone.
    I would like to ask for some help regarding this issue: Creation of new condition type: MWST with the following details:
    1. For the country French Polynesia, Create a new VAT condition of 10%.
    2. Create a new one called : Class : Z u2013 Designation : France : TOM corresponding to 10 % of VAT to be invoiced
    and then associate this new VAT code u201CZu201D to the applicant Nr 221860
    If you could provide me a step by step process on how to resolve this, it would be very much appreciated.  Thank you so much.

    Hello
    What type of condition type you want.
    It is always advisable to create a new conditon type copying a standard condition type.
    For gross price condition types select PB00/PBXX
    For freight charges, Copy FRA1/FRB1
    Regards

  • 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

  • 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

Maybe you are looking for

  • New 32gb ipod with only 26.4 gb available?

    So I got a new ipod and it says the capacity is 28 gb but I bought a 32gb and it says the total available storage is 26.4gb. First of all, it's 32gb and I understand if it becomes leveled down because of software (btw i did not software update) so th

  • LR 5 can't import photographs

    I upgraded my iMac to Yosemite and updated LR to 5.7.1. After these are done, I realised I could not import photographs like I used to do. I tried looking in the forum where some foun da solution by remove xmp file. I did not have such problem. What

  • Anyone else get a "net_rim_b​b_phone_ap​p" is not responding​?

    I got this message this morning, and now i have a blackberry app world notification, that doesn't go away, i checked and there is nothing to upgrade. Anyone have any ideas? thank you! =)

  • Fuzzy previews with Quick Preview

    Good evening, all. I recently upgraded from a 1st gen MacBook to a brand new 20" iMac. Now, with the new machine, I'm noticing that my images (captured in RAW, naturally) when displayed in Quick Preview mode while in full screen mode are fuzzy and pi

  • Have hand-me-down ipod nano 2nd generation

    Have hand-me-down ipod nano 2nd generation and need to replace music with mine.  When plug into computer device doesn't show up so I can synch it.  Have latest version of itunes.  When plug into computer doesn't give option to restore or reformat.  H