Pricing Date on New Line Item Added to Order

We have a requirement, for example, if we create an order for 07/19/2010, the pricing date comes in as 07/19/2010 which is correct.  The customer calls back and wants to add a line item or 2, to the order on 07/22/2010.  The new line items are priced as of the original pricing date 07/19/2010.  How do we automatically update the new line items with today's pricing date instead of the old date.  Is there an automated way to do this thru configuration.  Or do we need to use user exits:
MV45AFZZ - USEREXIT_PRICING_PREPARE_TKOMK
MV45AFZZ - USEREXIT_PRICING_PREPARE_TKOMP
Thanks,
Mark

Hi,
There is no automatic way to populate the pricing date for item when item is added at later point of time. In this case, the pricing date at header is copied to the item.  This cannot be achived by configuration.
As you have mentioned, you have to use the user exits relevant for pricing. The user exits you have mentioned are not correct for this purpose. The purpose of these user exits are different. You need to find the correct one with the help of an ABAPer.

Similar Messages

  • Different Pricing date for two line items

    Hi guru's
    How to give different pricing dates for two line items
    in a sales order
    To elaborate
    I have two line items one i need pricing date order date
    second one i need pricing date should be delivery date
    Thanks in advance
    Srinivas

    Dear Srinivas,
             While creating sales order select the item which you want to change the pricing date then go to menu>GOTO>Item -->Click on Sales A here you can able to change the pricing date as you like.
    You can change the pricing date of the item in the sales order through sales order change mode but that sales order should be open.
    I hope it will help you,
    Regards,
    Murali.

  • How can I add a new line item for production order?

    HI all,
    How can I add a new line item for production order through BAPI/FM? Thanks in advance.

    Hi Mil,
      Unfortunetly SAP is not in front of me.
    But if possible go to BAPI transaction , check for any production order's bapi for CHANGE purpose. Where you will be able to add your new line.
    Reward if useful!

  • User exit - VA01 - Adding new line items while Sales Order Creation

    Hi All ,
    I have a requirement where : in VA01 , i have to add new line items using USER EXIT or BADI.
    The scenario is : we maintain Characteristics for Material. When we select a particular characteristics, Factor and length will be displayed in a Popup. we can specify the Factor and lenght.
    Here , if i specify Factor as 10 and lenght as 1000. the Material has to be cut / split into 10 items of 1000 mts each. and the ITEMs table control should get 10 ITEMS .
    How to add new items using User exit or Badi in VA01 while creating a sales order.
    i have identified the user exit . What code should be used to add new line items.
    kindly help me in solvng this.
    Waiting for your replies.
    Thanks in advance.
    Suki.

    hi
    wich user exit do you take for that ???

  • Inserting new line item in Sales order

    Hi,
    We are doing a feasibility check to find out whether a new line item can be successfully inserted into a sales order based on certain pricing conditions that is received through an ORDERS05 inbound idoc.
    I tried adding a new segment E1EDP01 to the existing idoc in the user exit EXIT_SAPLVEDA_011 assuming that the VA01 posting program would accept the new line item but that approach is not working.
    Looking at various posts in the forum, I gather that the best way is to use the function 'BAPI_SALESORDER_CHANGE'. Can anyone please let me know how exactly a new item can be inserted using this function module?
    Any help would be appreciated.
    Thanks

    Hi Sneha,
    Please use the FM 'BAPI_SALESORDER_CHANGE' to add a new line item as under:
    CALL 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument               = "Pass the Sales order no here"
          order_header_inx            =  "Pass the value of update flag as I as u need to "
                                                   "insert a new line item"
        TABLES
          return                             =  "Will contain the error/success messages"
                                                   "after the processing"
          ORDER_ITEM_IN            =  "Here pass the item info tht needs to be added"
    Also do a Commit Work after this FM call to reflect the changes in database.
    Regards,
    Chetan.
    PS: Reward points if this is helpful.
    Message was edited by:
            Chetan H. Dubey

  • Create a new line item in sales order

    Hi,
    I have to create a new line item in a sales order. The scenario is that if we donot find the desired quantity from a plant. Then we have to go ahead and pick the remaining quantity from another plant and automatically create a new line item.The new plant is picked from a custom table so u need not worry about it.
    According to me I will have to use the BAPI for it but one constraint is that while creating a sales order the order number assignment is not done until saved. So what can be done in the case if its a new document.
    Kindly let me know if there is any appropriate user exit or if someone has worked on a similar requirement.
    thanks
    Varun

    Hi,
    Thanks for your response. I have tried to use these exits already but the problem dat comes here is dat when we try to use the BAPI we donot have any sales document created in the first instance(i.e. while creating an order) so the BAPI returns error and when i tried to populate the itabs in the program directly the new values just wont get processed.
    I think like: in case its a new document and we face this scenario I can just terminate the document creation and create a new document using the BAPI with proper plant assignments.But i am doubtful about the stability of this process.
    Kindly comment.
    Thanks
    Varun

  • Clearing field data for new line item in me51n PR Creation

    hello everyone!!
    As you can see from the below picture, i have created some custom fields which are to be fillup during PR creation. now when user trying to create a second line item under a PR then those custom fields are holding previous value. But it should be blank.
    please help.
    best regards.

    Please uncomment this:
    ORDER_ITEM_INX-target_qty = 'X'.
    You can check the 2nd example in this link for your reference.
    http://sap4.com/wiki/index.php?title=BAPI_SALESORDER_CHANGE
    Regards,
    Naimesh Patel

  • *insert new line item in sales order*

    Hi guys,
    I have requirment where, user would enter a material and system determines if free material is to be added to it. thats standard based on configuration.
    the user is maintaing ztable for additional free product for the material. now, i want to insert the third additional item along with other items. this has to be added before saving and it has to show on screen before user saves it.
    Thanks,
    Abhi.

    See, if u debug and enter the exit, then it shows 2 line item  in xvbap[] i.e. sale material and free material.
    now i want to add third add. free item. if insert in internal table xvbap[], it doesn't show on screen
    i want the solution for that.
    can anybody help me with that.

  • Issue in creation of new line item in repair order-Reg

    Hi all,
    I have a query in Service Management Module of SAP while working in standard IDES System.
    I followed the procedure given in the IDES material.
    As per the standard system the fourth line item in the repair order should be automatically created, once the service order is technically confirmed and completed. In my case iam able to get the first three (Item Categories - IRRS,IRRE,IRRP) line items but even after completing the service order technically iam not gettin the fourth line item (IRAL). Only based on the Fourth line item we can create the Outbound delivery for the repaired item. After that the billing process need to be processed. My query is how to get the fourth line item automatically in the repair order after i technically complete the Service Order. 
    To brief you on the entire process that i have followed:
    1. The QM Check need to be activated for the material.
    2. Creating the Service Notification and the repair request.
    3. Posting the GR of a piece of equipment to be repaired.
    4. Processing the technical check.
    5. Displaying the repair request and the service order.
    6. Editing the Service Order.
    7. Processing and Confirming the Service Order.
    8. Technically Completing the Service Order.
    9. Delivering the Repaired Piece of Equipment.
    Then Comes the BILLING.....
    In the above, after the eighth Step the Fourth Line item will be created automatically created but it DOESNT....
    regards
    Venu

    Hi ,
    Review your repair procedure and copy controls defined for this stage...mya be some thing is missing over there causing this behaviour.
    As you told completion of Service order will determine the last item and enable us to delivery the item to customer...
    Thanks,
    sudhi

  • Restricting new line item of completed sales order in VA02

    Hi,
    My requirement is to restrict the user to add new line items for Sales Order if the <b>Header status</b> is completed in VA02 transaction.
    I have done the coding in "<b>userexit_move_field_to_vbap</b>" as it is displaying pop up an error message and stop the users from adding a new line item.
    Popup message contains 2 buttons 'Continue' & ‘Exit’.
    If user clicks ‘<b>Continue</b>’ it should be stay in same transaction (Va02) and if user clicks '<b>Exit</b>' it should exit the VA02 transaction.
    But when I click the '<b>Continue</b>' button it is staying in the same transaction and newly entered line item values are not clearing. But these values should not appear after clicking '<b>Continue</b>' button.
    Can any body please help me in this regard?
    Thanks in advance.
    Ranjith.

    Hey,
    Is this ranjith tavidisetty.... if yes please call me on 09974440499...
    need to speak to you.....
    regards,
    naveen.

  • Adding new line item directly to PO

    Hi,
    We have a requirement for adding a new line item directly within the Purchase Order in SRM (without using the shopping cart). We are using the FM BBP_PD_PO_UPDATE for this purpose. However, we are getting the following error while updating. " BUFFER TABLE NOT UP-TO-DATE". Please provide assistance in order to resolve this issue.
    Regards,
    Arun

    We achieved  based on the Security roles to identify if the user is Requester or Purchaser or Manager and Webdynpro changes by the portal team to activate the Change and Order button based on the required business rules.
    Transaction Code for PO Change to be added to the security role.
    Requisitioner:  Any user with out any existing A012 relationship with any existing Organizational units on the current date:
    Manager:  Any user having A012 relationship with any existing Organizational units on the current date.
    If the Authorization object checked programmatically results the value of "PUR" then the standard SAP code for "Purchaser" has to be executed.
    Some additional Info :
    Control list of PO using BADI BBP_WF_LIST - Change Work lists and Search Results Lists   Method:  BBP_WF_LIST
    Badi -BBP_AUTHORITY_CHECK for any additional authorisation checks
    Hope this helps.
    Thanks
    Balaji

  • PR...New line item not to be added

    Hi,
    I have a PR where release process is at line item. After approval (Release of the PR) the system does not allow any chnages to the PR Line item . BUt it allows to add new line item to the PR. How do we check that the new line item cannot be added to the PR.
    Regards
    Nandini

    Hi
    You can restrict changes to the PR after release by customisation. On OMGQ go to release indicator> choose the release indicator which once it is effected you do not want any changes...select the "details"  then  "changes after start of release process" - on the field changeability..enter " 1"  for cannot be changed.
    This will work perfectly since no additional items can be entered once the PR is approved. if you only restrict by changing the field selection screen, additional items can still be added.
    if for any reason you want  to make changes to the PR then the approver must reset the release.
    regards
    Nrikah

  • Adding new line item while save

    Hi all,
    use an implementation of BADI  ME_PROCESS_REQ_CUST in the MM-Purchase-Requisition, method IF_EX_ME_PROCESS_REQ_CUST~POST while save.
    based on the line items available(USER ENTERED) i have to add few more line items based on the account assignment category and quantity while save.
    How to create new line items (copying the existing line item and change the quantity ) and save the requestion with the additional line items. I used this code. while calling the method CRETE_ITEM  create based on the object REF_ITEM  in the MY_STATE.
    the REF_ITEM object is Initial . so while creation the empty object is created.
    kindly help to give tips/details  to handle.
    Coding:
    data: l_item_list TYPE MMPUR_REQUISITION_ITEMS,
    l_item TYPE MMPUR_REQUISITION_ITEM,
    l_item_akt TYPE mereq_item,
    l_item_ref TYPE ref to IF_PURCHASE_REQUISITION_ITEM.
    l_item_list = im_header->get_items().
    loop at l_item_list into l_item.
    l_item_akt = l_item-item->get_data( ).
    IF l_item_akt-MENGE > 1 AND
           l_item_akt -KNTTP = 'A'.
          DO l_item_akt -MENGE TIMES.
             l_item-item= IM_HEADER->CREATE_ITEM( IM_ITEM =  l_item-item).
            INSERT  l_item INTO TABLE IT_ITEMS_list.
    %%%%%  here i checked useing    get data  method  i am not getting any data other than relesing procedure data.
    I used SET_DATA method to set the data. even I am not getting data.
    endloop.
    (Debugging the code, I manage by doubleclicking while create Item  method the fieldcontent of l_item (e.g ) to show the content of the class-attribute my_state. This works only if the field “Interface” in the Debugger is empty because then I see the attributes of the class. If the field Interface is filled with “IF_PURCHASE_REQUISITION_ITEM”, there aren’t any attributes shown.)
    Thanks in advance for your kind help!!
    Nicole

    I searched sdn and found this not possible.

  • Adding new line item in SC after it is added to PR or PO

    Hi Experts,
    Our customer wants that if line item is added to PR and PO on ECC side, it should be added to SC as well. I am sure you can't change apporved SC for which follow on document is created. But if someone did similar kind of requirement.
    Here is requirement.
    >  SC has 2 line items.
    >  PR is created in ECC for 2 line items after SC is apporved.
    > User added 3rd line item in PR on ECC side.
    > Customer wants this line item should be added to SC as well.
    Please advise.
    Regards,
    Kamal

    Hi,
    In Classic Scenario: This is not possible .when you are adding a P.O in ECC it will not reflect in
    SRM.
    In Extended Classic scenario: In SRM  only P.O is  created .You can add a new line items (or) change
    because P.O in SRM Server is the main P.O.
    Moreover in this also Shopping cart will not update. Once Shopping cart is approved you can do any changes
    Please check which scenario your client is using.
    Regards
    G.Ganesh Kumar

  • Adding new line item to Delivery

    When I try to post (Add) a delivery document based on a sales order that has a line item added that did not belong to the sales order I get the following error "[OACT] No matching records found (ODBC -2028)".  Looking in the DI API documentation I see that the Document_Lines object has a mandatory AccountCode property.  How do I go about getting the appropriate account code for the added line item?  The help documentation shows some sample code (included below), which doesn't make much sense to me. 
    Dim sStr As String
        Dim vRs As SAPbobsCOM.Recordset
        Dim vBOB As SAPbobsCOM.SBObob
        Dim vCH As SAPbobsCOM.ChartOfAccounts
        Set vCH = Vcmp.GetBusinessObject(oChartOfAccounts)
        Set vBOB = Vcmp.GetBusinessObject(BoBridge)
        Set vRs = Vcmp.GetBusinessObject(BoRecordset)
        Set vRs = vBOB.GetObjectKeyBySingleValue(oBusinessPartners, "CardName", "aaa", bqc_Equal)
        ' When working with segmentation use this function
        ' to find the account key in the ChartOfAccount object
        Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "125100000100101", bqc_Equal)
        'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).
        sStr = vRs.Fields.Item(0).Value
        'Use the sStr value to set the AccountCode
    Where does the FormatCode value of "125100000100101" come from?  Why the first call to GetObjectKeyBySingleValue?  It doesn't appear the results are being used?
    Any help would be greatly appreciated!
    Thanks,
    Jason Eiler
    BTW - I'm developing with/for SAP Business One version 2004 (or 6.7 of the DI API).

    Hi Jason,
    First of all:
    The displayed account code must be translated into the internally used code ("_SYS...") when using segmentation - when not using segemntation it is just internal code = displayed code.
    The code displayed is just a sample to give you a hint in case you are already familiar with the SAP Business One application.
    Therefore the sample code does not talk about where you got e.g. the value for FormatCode from ("FormatCode" is e.g. a field in table OACT where the account name with segments is (redundantly) stored without separators).
    The user should know on which account he/she wants to book a line on; maybe you might want to give some help to the user by displaying a dialog with suitable - or preselected accounts?
    In addition I am sure you know how to assign a string value to a string property - without explicitly writing it, right?
    HTH,
    Frank

Maybe you are looking for