Get name of user depending on condition types by changing the sales order

Hi,
I need to display the name of the user who made the changes in the condition types
i.e.. need to get the name of the user , by changing in the condition types through transaction VA02.
I am having object id and tabkey (of table CDPOS) but in table CDHDR, i am getting only one entry for object Id and there i can not get the user name depending on the different conditions types.
Please help me to solve this issue.
Regards,
Darshana

Hi,
Item details are stored under the TABNAME = 'VBAP'.
For example if you execute the function module 'CHANGEDOCUMENT_READ' for order number 5000000000, item number 10,
Function module will return an entry with TABNAME = 'VBAP', TABKEY = '5000000000000010', and other details.
Execute the function module by passing object class = 'VERKBELEG' and object id = <order number>
Regards
Vinod

Similar Messages

  • User exit for condition type for redeterming in sales order

    Hi SD Experts
    One condition type is created With the key combination Order type and Inciters
    When the contract is created and on the bases of Inciters given the value is calculating correctly
    But when we change the other Inciters in sales Order is not redeterming
    since this condition type key fields are added one it may not be  redeterming
    is there any user exit ?
    Pls help in this regard
    jeevan.S

    Use the exit USEREXIT_NEW_PRICING_VBAP in program MV45AFZB. This userexit can be used to perform new pricing, depending on the change of datafields.
    Regards,
    GSL.

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • Condition type not determine in sales order

    I have condition record maintained for the condition type as per the order reason. When I create the sales order system is not reading the condition record so no condition type is getting determined. Pricing date from the sales order is within the validity period of condition record.Parmeters are also matching but still in the sales order condition type is not getting determine.
    Thanx
    PNU

    In that case, do update of pricing.
    To do that, Sales Order - Item data - Condition Tab - Click Update button and choose option B - Carry out new pricing.
    To know who manually remove this.
    Choose Enviroment from menu bar in sales order - choose Change for display of change in the doc.
    Regards
    JP

  • Condition Types display in a Sales Order

    Dear Gurus,
    In our Pricing Procedure we have 2 condition types ZFR1 (Freight) and ZINS (Insurance) which are always Header type and should be entered manually. So according to normal procedure, I inserted them in the pricing procedure and maintained them as 'Manual' and selected them as Header conditions in Details of condition types with no Access Sequence and also selected them as 'No Limitations'.
    Now my requirement is that these condition types ZFR1 & ZINS should be available by default in a Sales Order under 'Conditions' tab and under 'CnTy' column and their values should be in Editable mode under 'Amount' column, when we go to the Header data view, but should be greyed out in Item data view, since they are Header conditions belonging to the whole document.
    Here my problem is that what ever combination I do in V/06 or V/08, system is not displaying the condition types by default. That is, I have to or the end user has to remember to enter the condition types and enter the values. But if I can display them as default when we go the Header view, Conditions tab,. end user will see them and will remember to enter values in them.
    The one problem I have is, I cannot make them as 'Mandatory, as they are not always required in all Sales Orders, so there are times when we dont have to enter any values there.
    I went through the search forum but didnt find any useful material, kindly help me out here.
    Regards
    Venkat - Hyd

    Dear Lakshmipathijee,
    Thanks for your answer, I have indeed maintained both the condition types at Header level. Normally when we do this kind of settings, the conditions screen is like the following:
    10....0....PR00....Basic Price...........1000.....(this 1000 is from condition record)
    Now if the end user needs to add values for ZFR1 or ZINS, he needs to remember the Condition types and enter them to be able to enter values in the document.
    But suppose there is a way of displaying the Condition Types with out values as shown below, then the end user will not have to remember to fill them up, he can simply come to the conditions screen and they are visible there and he will just fill them up with values. The following is how I would like the conditions screen to be seen:
    10....0....PR00....Basic Price...........1000.....(this 1000 is from condition record)
    20....0....ZFR1....Total Freight.........._____...(this should be a blank field)
    30....0....ZINS.....Total Insurance......_____...(this should be a blank field)
    In these editable fields of Freight and Insurance, the end user will enter the values in case they are neccessary or leave them blank.
    If I maintain the condition types as mandatory and manual, header condition screen is not displaying the Condition types??!!!!
    If I maintain the Header conditions as Item conditions also in V/06, then the header conditions screen is displaying the conditions in grey mode, without any value (as they are manual conditions) and in the item screen, they are in editable mode, but system is not allowing me to input any value, saying these condition types are not item level condition types and they are to be maintained at header level, but like I said, at Header level, the fields are greyed out !!!!
    So, any help plz..
    Regards
    Venkat - Hyd

  • Condition Type for commissions across sales orders

    Hi,
    I have a requirement for which I need inputs:
    We have sales employee who will get commissions based on the total sales they make. The relevant sales employee will be brought into SAP as a business partner (specific account group and hence partner function).
    A tiered commission would be set up for each of the sales employee, for e.g. 1 to 10,000 , commission is 2 %, 10,000 to 30,000 commission is 3 % and above that is 5 %. The commission applicable should be determined at the time of sales order creation. The commission applied to an order should be determined based on all the sales orders for the sales employee and not that specific sales order. For e.g. if the sales employee has already got one sales order of worth 6000 and he gets another order of worth 9000, then as per the example, he is entitled to 2 % for 4000 of the order (his total sales now reacheds 10,000 and he moves now into the next bracket) and is entitled to 3% for 5000 of the order value. Also in case any order gets cancelled then the cumulative sales value for the sales employee should take care of the cancelled order.
    I have a condition type where by I maintain the scale and the corresponding commision rates for the sales employee. I have ticked the condition update setting so as to cumulate the order value. I have the following questions:-
    1. How do I ensure that the rate applicable for the specific order takes into consideration the past sales orders for the sales employee and not only that sales order.
    2. How do I determine the condition record based on parter function (partner funtion for the sales employee)? I did bring in the partner role in the pricing communication structure but that does not work.
    3. How should I take care that the cancellation or sales order takes out that value from the cumulative value for the condition record. As of now it does not.
    A quick response would be highly appreciated.

    Hi Kastubha,
    Thanks for your reply. I am trying now to use rebates for this functionality. However I have few questions and I am unable to progress beyond a point:
    Let's say that for a sales employee i set the rebate agreement. The sales employee's commission is as follows:
    1 - 10,000  (1 %)
    10, 000 - 30,000 (3%)
    30,000 and above (5%)
    The calculation type for condition type is percentage, scale type is graduated to interval scale.
    I am trying to use scale in rebate agreement to set up the commission structure for the sales employee. However, there is only accrual rate that I can enter. There is no place to enter the accrual rates as per the scale.
    Because of this, what is happening that the rebate record determined is the accrual rate and not what is as per the scale. Also I need the condition record to keep track of total sales for the employee so that it knows what commission rate to apply based on how much the sales employee has achieved.
    Am waiting for you inputs.
    Best Regards,
    Sunil

  • Condition type not coming in sales order

    Hi,
    we have a condition type Z026. The issue is that  it is not set in the order but the condition records exists. The pricing analysis shows that condition reocrd is missing but the fact is the condition record is there. The acess seq is Z026 and there are many tables in the acess sequence.
    The first table in the access seq is 906 and the condition record exists but still the system says that the condition record is not found using  cond preliminary step (header fields like customer/sales org/div). the cond record is maintained for  relevant sales org/dist channel/customer/material. cond preliminary step means that system first looks for the header fields but everything is there.
    The condition is active and the conditon is created on 21.7.10 with validitity from 21.7.10 to 31.1.2010 and the pricing date in sales order is 27.7.10. so everyhting is fine but yet the condition is not coming in sales order
    what could be the issue.
    regds

    Hi,
    Now try creating a sales order with 20.07.2010 as the pricing date. It will work. Create another order with 21.07.2010 and it will not work. If so, it is due to the validity date. When you give 21.07.2010 as validity date and there is already another record which was valid on that date, the gap of one day can happen and we have experienced this. There is even an OSS note explaining this concept, which makes sense business-wise.
    However you check the scenarios I have mentioned. If the behaviour is as I have mentioned, then you have to change the pricing date of your problamatic sales order to one day earlier, or move the validity date one day earlier.
    If the behaviour is different, pls lemme know

  • Condition type not appearing in Sales order

    Hi All,
    Iam using TAXINN, Copied ZINFAC to KINFAC,
    I have created JIVP and JIVC for VAT and CST,
    I have maintained Condition Records for JIVP and JIVC.
    Both these condition records are not reflecting in my sales order, i.e. the records are not coming.
    Please help me in this regard
    Siva Narayana.B

    hi,
    please check if the condition records are mentioned for the key combination matching the sales order. ie if the condition records are maintained for the required combinations. Then check if the correct tax codes are maintained in the condition record and properly determined at FTXP.
    Thanks
    Sadhu Kishore

  • Discount condition type not appearing in sales order but in invoice

    Hi,
    I have two discount condition types (MPDI,ZSDI) in my pricing procedure,at the time of sales order creation one discount condition is not appearing.
    On analyzing the condition type MPDI,system throws message "Access not been executed due to previous access",what would be the reason.
    In the billing ,i could see the condition type appearing.I have checked this,but i could not understand why it is happening.Even the condition catergory of condition is empty not L.
    Also please find the screen shots below,
    Pradeep

    Pradeep,
    Am sure user might have deleted the condition type in sales order, the same condition type woudl have entered manually in invoice.
    Please check my testing, i have done the same entered ZA09 manually and after saving have deleted again in sales order, after dilivery and when i created invoice here i have entered manually the same condition type.
    So in your case also the same thing could have happend, check the change log and also in invoce condtion tab check the condtion type in analysis ( Invoice analysis not order). so that you can udnerstand whether it was entered manully or not.
    On analyzing the condition type MPDI,system throws message "Access not been executed due to previous access",what would be the reason.
    This is because in the condtion tyoe the abvoe key combiantion was found with records hence the below key combition was ignored. this you observe in your screen shot with with 5.00
    So my guess is the condtion records was deleted in sales order.
    thanks,
    srinu.

  • 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.

  • Default Condition types in header of sales order

    Hi
    i have a requirement like this.
    sales order should have default  pricing Condition types in header details with amount(kbetr)  field ready for input.
    we have approched functional consultant he couldn't make the fields enabled but he couldnt .please give the solution approach.

    Hi,
    That is standard configuration. We should not make a any changes in that.
    Regards,
    Renuka S.

  • To Remove Discount Condition Type In Invoice from Sales Order

    Hi All,
    For my sales order I have the net price and discount but when I create invoice, I would like the discount to be removed automatically. May I know how can I configure that other than remove the item line manually.
    Kindly advise.
    Thank you!
    Regards,
    Yvonne

    Hello,
    Do you want to delete Discount Condition in Invoice & its effect should not happen on Invoice Amount calculation?
    If the above is your requirement, then have two seperate Pricing Procedures for Sales Order & Invoice.
    Both these Pricing Procedures will have same Condition types & other settings except the Discount Condition will not be present in the Invoice Pricing Procedure.
    Define a new DoPP for Invoice Document Type & maintain Pricing Procedure determination (Sales Area + CoPP + DoPP).
    Thus while creating Invoice, the Discount condition & its value will not appear in Invoice.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • Append condition type to Invoice from sales order

    Hello,
    We have some condition types which are entered manually in sales order. When invoice is created, we want to copy the data of these condition types to the invoice.
    Pricing procedures are different for sales order and invoice.
    So how can we achieve this functionality? 1) copying requirement 2) BADI or 3) any formula.
    Please advice.
    Rgds,
    Anand

    Hi Anand,
    this is done through copy control.Tcode-VTFA [sales order to invoice].Here u maintain ur source document i.e ur order type, destination i.e invoice type.give ur item category and then set pricing type as - C [copy manual pricing and redetermine tax] .all the data will be copied from sales order to invoice irrespective of ur different pricing procedures.
    Assign points if helpfull.
    Regards
    sharad
    Edited by: Sharad Kaliya on Aug 1, 2008 8:22 AM

  • Monthly purchase value,depending on condition type used.

    Can we search for PO,depending on condition type used in the PO.eg. we are using a condition ZENT for entry tax and
    the requirement is to search the po containing that ZENT condition.In dynamic selection mode there is condition group in
    purchase order detail,but it is not selecting the required PO.please guide.

    Hi,
    This requirement is not possible in std SAP Report.
    You need to develop a Z report with the help of ABAPers.
    Give proper logic for them for creating this req.
    Regards,
    Rahul

  • Mass update of condition type in the sales order

    Dear Experts,
    we have to do mass update of one condition type for already existing sales orders with out causing any changes to the manual conditions and also for other automatically determined conditions.
    The condition type for which we have to update in sales orders is included in the pricing procedure very recently.
    Please guide me in this regard.
    Thanks and Regards
    Yoganand Pingili

    Yoganand Pingili
    Goto T code VA05 enter your criteria for sales orders selection.
    Next screen. Select all sales order you want to change price.
    Menu>EDIT>Mass change>New Pricing>select 'C'.
    This will solve your problem
    try and revert
    Edited by: Yadav on Oct 9, 2009 8:25 AM

Maybe you are looking for