Opportunity create or change field condition

Hi All
a simple query...a functionality has to be added only when the opportunity is created or sales prospect field value is changed. That means create / change in prospect field value are the conditions to be checked before proceeding further.
How to achieve this in the simplest manner?
Thanks in advance.

Hi Dipesh
thanks for the reply
actually parties involved tab has to be populated.
I am using crm_ordar_maintain in order_save badi.
now the value to be populated depends on the sales prospect of opportunity. so in case sales prospect is changed the corresponding value to be populated should also change.
but since order_save gets triggered every time we save opportunity, I want to restrict it to create/ change in prospect field only.
hope m clear.
thanks

Similar Messages

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • Changing Price Conditions in Sales Order with SD_SALESDOCUMENT_CHANGE

    Hello there!
    I need to change the value of a price condition in a sale order ;I'm using the f.m.  SD_SALESDOCUMENT_CHANGE.
    It doesnt' work as I want, 'cause it creates an other price conditions instead of just changing the price value of the actual one.
    Waiting for your tips,
    thanks.
    This is how my code looks like:
    PARAMETER: p_vbeln LIKE vbak-vbeln.
    data: st_order_header_inx   TYPE  bapisdhd1x,
            st_conditions LIKE bapicond,
            st_conditionsx LIKE bapicondx,
            tb_conditions TYPE TABLE OF bapicond,
            tb_conditionsx TYPE TABLE OF bapicondx,
            tb_return TYPE TABLE  OF  bapiret2.
    st_order_header_inx-updateflag = 'U'.
      st_conditions-itm_number = '0010'.
      st_conditions-cond_type = 'PR00'.
      st_conditions-cond_updat = 'X'.
      st_conditions-cond_value = '100'. "Value I want to enter
      APPEND st_conditions TO tb_conditions.
    st_conditionsx-itm_number = '0010'.
      st_conditionsx-cond_type = 'PR00'.
      st_conditionsx-updateflag = 'U'.
      st_conditionsx-cond_value = 'X'.
      APPEND ls_conditionsx TO tb_conditionsx.
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
        salesdocument                = p_vbeln
          order_header_inx          = st_order_header_inx
        TABLES
          return                           = tb_return
          conditions_in               = tb_conditions
          conditions_inx              = tb_conditionsx  .

    Get the conditions records first from the Sales Order with BAPI BAPISDORDER_GETDETAILEDLIST
    CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
      EXPORTING
        i_bapi_view          = lw_bapi_view
      TABLES
        sales_documents      = lt_order
        order_conditions_out = lt_conditions_out.
    Then populate the conditions internal table with the data that you get from the previous code
    move-corresponding lw_conditions_out to lw_order_conditions_in.
    lw_order_conditions_in-cond_value = '100'   " the value that you want to modify
    APPEND lw_order_conditions_in TO lt_order_conditions_in.
    CLEAR lw_order_conditions_inx.
    lw_order_conditions_inx-itm_number = lv_kposn.
    lw_order_conditions_inx-cond_st_no = lw_conditions_out-cond_st_no.
    lw_order_conditions_inx-cond_count = lw_conditions_out-cond_count.
    lw_order_conditions_inx-cond_type  = lw_conditions_out-cond_type.
    lw_order_conditions_inx-updateflag = 'U'.
    lw_order_conditions_inx-cond_value = lc_x.
    APPEND lw_order_conditions_inx TO lt_order_conditions_inx.
    You didn't populate the fields cond_st_no and -cond_count. Then just call BAPI SD_SALESDOCUMENT_CHANGE to change the Sales order.
    Hope that helps.
    Erwin

  • How to change pricing conditions

    Hello Experts,
    i'm trying to change pricing conditions in routines.
    SPRO --> SD --> System Modifications --> Routines --> Define Copying Requirements (double click any activities) -->  it will open "Maintain Requirement and Formula"
    select from menubar "Formulas --> Condition Value"
    Routine Number --> 36 - Cumulation condition.
    i want to change conditions in this Routine 36, so i copy this routine and create a new routine name
    901 - Cumulation condition
    i want to change Pricing Conditions in this routines. this standard routine adding all sub-total pricing values. but i want to display all sub-total pricing value separately in there respective field.
    i'm checking this result in VA11.
    any ideas? i know i have to change code in this copied rotines for this calculations. but i'm not finding any clue where this value is getting added in each sub-total field level.
    if any more clarification needed, please ask.

    Hi Rabindra
    For Net Price you can refer this Note 80183.
    Neha

  • Crm_order_maintain ,changing pricing condition value at item level

    Hi,
    I am trying to change the pricing condition value at item level while creating sales order through CRM_ORDER_MAINTAIN.
    I am not able to change the condition value.
    Code is below.
          wa_inputfields-ref_guid   = wa_orderi-guid.
          wa_inputfields-ref_kind   = 'B'.
          wa_inputfields-objectname = 'PRIDOC'.
          wa_fieldname-fieldname    = 'KBETR'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KMEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KPEIN'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'KSCHL'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          wa_fieldname-fieldname    = 'WAERS'.
          append wa_fieldname to wa_inputfields-FIELD_NAMES.
          INSERT wa_inputfields INTO TABLE it_inputfields.
    wa_pricing_add-KSCHL  = 'ZP06'.
    wa_pricing_add-WAERS  = 'USD'.
    wa_pricing_add-KBETR = '10'.
    wa_pricing_add-KPEIN = '1'.
    wa_pricing_add-KMEIN = 'ST'.
    INSERT wa_pricing_add INTO table it_pricing_add .
    wa_pricing-REF_GUID     = wa_orderi-guid.
    wa_pricing-REF_KIND      = 'B'.
    wa_pricing-PRICING_TYPE  = 'A'.
    wa_pricing-COND_ADD = it_pricing_add.
    wa_pricing-PRICING_PROCEDURE = 'ZVDSP'.
    append wa_pricing to it_pricing.
    Can you tell me how to overwrite the condition value while creating sales order using crm_order_maintain.?
    Regards,
    Indhra.E

    Hello Indhra,
    Check the CT_INPUT_FIELDS table, in the OBJECTNAME field you will find all the tables that are filled during the function call. Check those tables mentioned in the OBJECTNAME to look for any pricing related data.
    When your order is in change mode and you activate debug <b>just before you make the change</b>, the CRM_ORDER_MAINTAIN FM call contains <b>data only relevant for the change you just made</b>. In other words, you need to fill exactly the same tables as CRMD_ORDER does.
    E.g. You just change the pricing procedure and you see in debug that 5 tables are filled, you must do exactly the same in your code! It's quite anoying but you're using a low-level API FM that can handle ANY transaction type in CRM!
    Check it, it works!!
    <b>Reward points if useful!</b>
    Regards,
    Joost

  • Error during manuel entry/Change of condition.

    Dear friends,
    while I am trying to create standard customer order(VA01), I have faced an error message as: Item 00001:Error during manuel entry/Change of condition.
    Can anyone tell me solution?
    Thanks in advance.

    Hi,
    Goto to V/08 for your pricing procedure, check for the condition type if it is mandatory condition and / or if it is manual condition.
    In V/06, select condition type and check the value for Manual entry field
    Hope you get some inputs
    regards,
    Sagar

  • Creating a terms and conditions object that is compatible with reader 7

    Hi
    I'm trying to create a text field to display some terms and conditions.  The ideal solution in my scenario is that the terms are displayed in one, read-only, text field with a scroll bar.  Simple enough apart from 2 limitations. . the terms need to have formatting, (carriage returns and bullet points minimum), and it must be compatible with adobe reader 7.
    To make the scroll bar work in adobe reader 7 I have made the text field's value "user entered" and added validation using javascript to reset the field when any changes are made, but whilst simply copy-pasting from word into the default value box works in adobe reader 9, it does not work when tested using adobe reader 7.
    Hope you can help
    Thanks
    David

    You can turn off compatibility checking, but more and more of the Google Toolbar will not work. Google is no longer supporting the Google Toolbar so you should use the alternatives.
    Hi Mark,
    See http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    If you have an aspect that is not covered, indicate what that is; otherwise, expect you to be fully functional within 1-2 weeks.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Change shipping condition from required to optional

    Dear friends
    I want to change some fields in customer master how to do it
    Example change shipping condition from required to optional how do I do it
    Ahmed

    Dear Jyothi.
    Pleas find the path and do as per instruction in Define Account Groups with Screen Layout (Customers) chose your account group and do seting as per your requirement ok it will give option gernal data and some other data so do it
    It you have any problem let me know ok
    Path
    SPRO u2013 financial accounting new u2013 account receivable and account payable u2013customer account -master data - Preparations for Creating Customer Master Data- Define Account Groups with Screen Layout (Customers)
    Regards
    Ahmed

  • How can we change Pricing condition price date

    Hi SAP Gurus,
    I have requirement as following.
    When we create a sales order if any contract is available it should be populated in a diaglog box, and when user select a one , we keep this as a z-field in the sales order header level, so far fine.
    And the requirement includes the pricing date for one of pricing condition should be the first delivery date(schedulelinedate).
    We have the condition records with the pricing date as document date, we cannt keep commited delivery date as pricingdate(komv-kdatu).
    So i need a solution, thru i can modify the KOMV-KDATU
    for the condition type,with the first schedule line date.
    could anybody knows how to modify the KOMV structure values?????
    The quick answer will be highly apreciated?
    Thanks & Regards,
    Praveen

    Hi Praveen,
    You can use user exit "USEREXIT_PRICING_PREPARE_TKOMK" to change Pricing Condition Table at header level & "USEREXIT_PRICING_PREPARE_TKOMP" at item level. These exits are present in include "MV45AFZZ" of Sales Order program "SAPMV45A".
    Cheers,
    Gajendra

  • BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value

    Hallo Gurus,
    I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
    Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
    Can someone please help!
    Thsi is my piece of code::
    itab_BAPISDH1X-UPDATEFLAG = 'U'.
    append itab_BAPISDH1X.
    itab_BAPICOND-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICOND-COND_TYPE = 'ZST3'.
    itab_BAPICOND-COND_VALUE = '15.00'.
    itab_BAPICOND-COND_UPDAT = 'X'.
    append itab_BAPICOND.
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
      EXPORTING
        salesdocument                = p_vbeln
      QUOTATION_HEADER_IN          =
        quotation_header_inx         = itab_BAPISDH1X
      tables
        return                       = itab_BAPIRET2
       CONDITIONS_IN                =  itab_BAPICOND
       CONDITIONS_INX               =  itab_BAPICONDX
    Thanks!
    Mukta

    Hmm...
    Change the following....and check..
    itab_BAPICONDX-ITM_NUMBER = '10'.
    itab_BAPICOND-COND_ST_NO = '31'.
    itab_BAPICOND-COND_COUNT = '00'.
    itab_BAPICONDX-COND_TYPE = 'ZST3'.
    itab_BAPICONDX-UPDATEFLAG = 'X'.
    itab_BAPICONDX-COND_VALUE = 'X'.
    append itab_BAPICONDX.
    "change the above to.....
    ab_BAPICONDX-COND_TYPE = 'X'.
    append itab_BAPICONDX.
    The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
    Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
    Cheers...

  • AET error while creating a new field

    Hi Experts,
    We have a requirement to create a check box/newfield on Account Details screen in Web UI. I am trying to create a new field using AET but am getting the following error message. Please help.
    1. Error during generation of object CI_EEW_BUT000
    2. Customizable CSOL conflict for objects changed in other TR.
    We have a config TR involving the role field on account details component (BP_HEAD/ACCOUNTDETAILS). Do we need to release the transport before creating any new fields.
    The generation of the field fails when I select the extension and click on 'SAVE and GENERATE'.
    Please help.
    Thanks,
    Rohit

    Hello Rohit,
    Please  apply note 1707978 to solve the issue.
    thanks
    Willie

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • Created and changed columns strategy in HtmlDb?

    I have two date columns on all my tables created and changed. Created is not null. The columns are maintained by database triggers. I would like for these two columns to be displayed but not changed in a form.
    I have tried different ways to do this:
    1) Text Field (Disabled, does not save state)
    Create works fine but updating gives an error because the created column can not be null.
    2) Text Field (Disabled, saves state)
    Create works fine but updating gives ORA-01821: date format not recognized. I use a format mask like this: DD.MM.YYYY HH24:MI:SS
    3) Date Picker (use application format mask)
    Works fine but it ignores my format mask and the user can now change the dates.
    Has anybody done this with success? Also it would be nice with a solution that does not involve a lot of code sine I have to do this lots of places :-)

    I got pretty much the same as you can se below. It's not a problem with the triggers. But I got it working now with the :new = :old and it don't want to waste more time on this. But thanks a lot for your help!
    create or replace trigger tilbud_under_kategori_b_ins_r
    before insert on tilbud_under_kategori
    for each row
    begin
    if :new.id is null then
    :new.id := util.getSeqNextVal;
    end if;
    if :new.oprettet_af is null then
    :new.oprettet_af := util.getUserName;
    end if;
    if :new.oprettet_tidspunkt is null then
    :new.oprettet_tidspunkt := sysdate;
    end if;
    end;
    create or replace trigger tilbud_under_kategori_b_upd_r
    before update on tilbud_under_kategori
    for each row
    begin
    :new.oprettet_af := :old.oprettet_af;
    :new.oprettet_tidspunkt := :old.oprettet_tidspunkt;
    if :new.opdateret_af is null then
    :new.opdateret_af := util.getUserName;
    end if;
    if :new.opdateret_tidspunkt is null then
    :new.opdateret_tidspunkt := sysdate;
    end if;
    end;
    /

  • Report on Change in Condition Record effects which all Sales Orders

    Hello Gurus,
    Thanks in advance. My customer requires a report which gives him list of Sales Orders effected due to Change in Condition Record.
    Proper input to this will be greatly rewarded.
    Regards,
    Vishvesh Kamdar

    hi,
    whenever u change the condition record it will fall under the validility date, ie.,
    <b>example:</b>
    Condition record for cond type PR00 is
    <b>valid from 01/05/2007 to 31/99/9999 is  Rs.1000</b>
    but suddenly when u change prices  on 01/10/2007 then system will display has below
    <b>vaild from 01/05/2007 to 31/09/2007 is Rs.1000
    vaild from 01/10/2007 to 31/99/999 is Rs.1500</b>
    hence u take all the sale orders & billing document which are created from 01/10/2007, this will slove ur purpose
    SE16-->vbak--->enter -
    > here u will find created on enter the date & execute
    hope this heklps u
    regards,
    Arunprasad

  • How can I create a custom field in contacts and have it appear in ICal?

    How can I create a custom field in contacts (death date) and have it appear in calendar?
    Birthdays seems to work fine but I'd like to do the same for a custom field called Date of Death

    By default, iTunes convert files to type AAC which has an extension of .m4a
    For iTunes to recognize them as Audiobook files, the extension needs to change from .m4a to .m4b
    This can be done a number of different ways. Here are 2 (beginner and advanced)
    . simply, by renaming each file from windows explorer
    . more complex, by using Start/Run/cmd to get a "DOS" type window,
    using the command "cd" to change to the directory that your files are in
    and entering "ren *.m4a *.m4b"

Maybe you are looking for

  • How can I copy Captivate 6.x document array data into a new Javascript array

    I'd like to copy an array from my captivate document variables to a variable within a script my project runs.  I attempted to use objCP.cpEIGetValue("m_VarHandle.Array.slice(0)") but that didnt seem to work.

  • Chart not appearing in Interactive report

    Hi, I have a nice interactive report. When I try to display a chart using the tools of the report, nothing appears. There is only a message, a kind of progression message saying "loading xml..... 100%", and then nothing appears. I am using Applicatio

  • New line in output

    Hi I have a receiver FCC.(file to file scenario) I wanted a an empty line at the begininning of my output. Does add.headerline work for that? if not can sum1 suggest something? Thanks Mark

  • Closing material for previous period (CKM3)

    Hi Guys, I have a problem, which im going to close a material for current period with status "quantities and values entered". But system wont allowed it, because the previous period hasnt close yet, and the status also "quantites and values entered"

  • Where can I find my order history?

    Where can I find order history?