Field sequence Change in Sales order after adding new field( Resolved)

Hi I have added a new filed into sales order/item overview.(addded thr se51-layout ) . but when i go to va01/02/03, i noticed that the field sequence is changed due to my new field.(but when i see the layout its differnt and correct.)( even i checked changing the groups also)
Is there something i need to do..?Please advise. Thanks a lot.
<b>Answer:</b>
Table view is configurable in VA01/02/03.( No matter where you add the  new fields)
Users can always move them to desired position.
Message was edited by: Deadlock1
Message was edited by: Deadlock1
Message was edited by: Deadlock1

Hi
In the comments for the subroutine, it says:
*       Parameter new_pricing controls the new pricing in the calling *
*       form. It can be filled according the the allowed values       *
*       of domain KNPRS (Pricing type), for example:                  *
*       ' ' = no new pricing                                          *
*       B   = Carry out new pricing                                   *
*       C   = Copy manual pricing elements and redetermine the others
So, you must write:
If VBAP_WERKS NE *VBAP_WERKS.
  new_pricing = 'B'.
Endif.
Regards
Eduardo
Edited by: E_Hinojosa on Aug 25, 2011 8:21 AM

Similar Messages

  • Price has been changed in sales order after invoice created

    Hi,
    We have a scenario where there has been a change in sales order prices after invoice created. when user try to pull out a report for incomplete sales orders through V.02 and these orders populating in (incompletion log is showing for Customer Expected price).
    when I looked into the changes for those sales orders, there is FI job which did all those changes and it is difficult to find the details of what the job does.
    Please suggest me the work around how should I remove these sales orders from incompletion log.
    Thanks
    Anuja

    Hi. Anuja. has accounting document generated.? Because once the accounting document generates there no fields we can change apart from output types. I think in your scenario there are no accounting documents generated. may be , because of that reason The pricing has changed after the invoice. In order to solve this , in billing type uncheck posting block check box......
    I Think it might helpful.
    regards, ADITHYA

  • Ship to party address no change in sales order after delivery creation

    hi
    We have a below requirement
    After creation of delivery document,we should not be able to go and change ship to party in va02 of sales order..
    Tried using partner functions config,but it disables ship to party change completely...
    But we want to disable ship to party change only if delivery is already created.
    regards
    sudha

    hi swetha,
    as per my understanding goes:
    you need to make SH field GREY when a delivery document is generated for it.
    but now even if delivery is created or not SH field is GREYED.
    you can use
    USEREXIT_MOVE_FIELD_TO_VBAK in program MV45AFZZ
    LOGIC : when ever the sales order status is completed or partially completed then only this SH field should be GREYED other wise NOT.
    hope this clears your issue & please check from your end
    balajia

  • Disable certain changes in sales order after production order release

    We are in the MTO scenario and are also using variant configuration. The business requirement is that after a production order has been released (REL status) the preceding sales order item should be “locked” for certain changes. Such changes would include VC and some other fields (e.g. quantity and dates). Some minor changes like texts should still be allowed.
    The best idea we could come up with is to put some validation in the sales order user exits, but there are some disadvantages. It seems kind of strange though that there would be no such functionality in standard SAP (e.g. some changes in the order can’t be made after a delivery has been created). Is there by chance anything in the configuration that we missed?
    I found this old thread, but it still seems to require user exits. Unfortunately couldn't find anything specifically on the production order / SO integration.
    Thank you!

    Hi Jelena,
    Try in the userexit MV45AFZZ
      (form userexit_field_modification)
    Example:
    select * from afpo where kdauf = vbap-vbeln
    and   kdpos = vbap-posnr.        
    if sy-subrc = 0.
    select single * from aufk where aufnr = afpo-aufnr.
    if aufk-loekz = ' '.                                 
    select single * from jest where objnr = aufk-objnr
    and   stat  = 'I0002''   
    and   inact = ' '.
    if sy-subrc = 0.
    screen-input = 0'.
    endif.
    endif
    endif.
    endselect.
    .H.Terras

  • Automatic price update if key field values changed in sales order and bill

    Hi Experts,
    I have requirement as follows.
    <b><u>Scenario: -</b> </u>We wanted carryout the pricing based on Incoterms, customer and material. I have created the condition table with these fields. And maintained the condition record. The values will flow to sales order without any problem.
    <b>
    Problem: - </b>When we change the incoterms say for CIF to FOB the system should redetermine the price automatically, but this is not happening (If will redetermine only freight). If we carryout new pricing manually the right price will flow.
    <b>
    Expectations: -</b> Is their any exit or any configuration setting where in system will redetermine the price automatically if we change the field value in sales order(For the field value it will be used to create condition table).
    If anyone done this please help me with setting or Exit and code to enable us to come out from the situation.
    We need this to happen while creating sales order as well as billing, Since @ billing prices will be redetermined.
    Thanks in advance for the needful.
    With regards,
    Manjunatha H.S.
    M: 9740433511
    <b></b><u></u><u></u>

    Hi Shivakumar,
    You can use USEREXIT_NEW_PRICING_VBAP in include SAPMV45A for this.
    Regards
    Nikhilesh

  • Roll Back the Sales Order After Adding

    Hi Experts,
    I want to roll back the system form trasaction like Sales Order. After adding the Sales Order immediately i want to roll back the transaction.
    I used the Company.Transaction Object, but it is only working on User Tables. Not in System Forms like Sales Order.
    Can you please tell me the solution for this ASAP.
    Thanks in Advance,
    G.Suresh

    Hi Petr,
    You didnt get my point. In my concern is, i am going to add Sales Order by Manually not using code.
      In FormDataEvent of the Sales Order
                Select Case BusinessObjectInfo.EventType
                    Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD
                     If BusinessObjectInfo.ActionSuccess = True Then
    /***** This Code for getting current transaction of the Sales Order *****/
                            Dim oObject As SAPbobsCOM.Documents
                            oObject = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                            oObject.Browser.GetByKeys(BusinessObjectInfo.ObjectKey).
    /**** here i want to rollback the saved sales order  ****/
                    End If
                  End Select
    Can you tell me, how i ll rollback the already saved transaction which added by user from Sales Order Screen not in code.
    Thanks in Advance,
    G.Suresh.

  • Fields missing in SM30 after adding new fields to the table

    Hi ABAPers,
    I added a new field & marked another field as primary key in the table. Then I generated the table maintenance view for the table in SE55 and adjusted Database utility SE14.
    When i saw the table in SM30. The number of fields in the overview screen of SM30 shows less field then existing in table. i.e in my table i have 10 fields(3 primary). in SM30 it shows only 5 fields(3 primary + 2 normal fields)
    In SE51, the overview screen of the table show less fields in the field list..
    I want all the fields in the Table maintenance overview screen. Please suggest me a way forward friends..
    Note: the system is 4.0B.
    Thanks...Suresh Kumar

    Hi
    You have to re-generate your dialog for SM30 by table maitenance generator.
    - From Se11 go to table maitenance generator
    - Choose update icon
    - Set flags for NEW FIELD
    - Go to expert
    - Set flag to re-generate dynpro
    Message was edited by: max bianchi

  • Restrict manual change in sales order with respect to quotation

    Hi All,
    The user use to create sales order with respect to quotation.  The user can able to change pricing as well as some header and item fields.  How can I restrict user for manual change in sales order expect some specific fields.
    Thanks.

    Hi Sunil,
    It is possible through configuration better you can post in sd forums.
    For the condition type settings , ensure that the manual entries is 'D'. it wont allow any changes in the order.
    Regards,
    Madhu.
    Edited by: madhurao123 on Aug 1, 2011 1:08 PM

  • Change of Ship to Party on sales order after invoice

    Hi all,
    I have created a sales order, created a despatch advice and then created an invoice. After that i opened sales order and changed ship to party there. System is allowing me to change ship to party on sales order after invoice. I want that system should not let me change ship to party on sales order after invoice.
    How can i do that as this is an audit issue as we have different prices for different ship to parties.
    Please respond.
    Best Regards,
    AI.

    Hi
    You have two options
    1. create a transaction variant in T.code SHD0 for VA02 and make the field as display in the variant. But remember that you will not be able to use standard T.code VA02 after this, you need to make and use a "Z" t.code like ZA02
    2. Take the help of your ABAPER and ask him to find a screen exit in the sales order PBO module, where he will be able to grey out the ship to party field.
    Hope this helps
    Chandra Kiran

  • How to change the pricing rate of Sales Order after delivery is created?

    Is it possible to update(change) the pricing rate which belong to a specific condition type, of the "Sales Orders"  after corresponding delivery is created ?
    number of the Sales Order to be changed is huge. How can I handle this situation ?
    immediate replies would be rewarded

    Repricing is only possible if your pricing record has a valid from date that is equal to or before the pricing date on the order. Otherwise, your pricing rate change will be applicable only from the begin date of that record.
    Assuming that it is allowed by config, you can go to VA02, go to conditions, and then there is small button at the bottom, that says 'Update'. By pressing that, your system will automatically reprice the sales order, provided, as I said, all pre-conditions are met. Once you know that you can do this, then you can adopt any of the technical solutions that Rich had suggested above to do the mass changes.

  • Different field mode(display/change) in sales order payment terms (VA02)

    Hello All,
    In the VA02 transaction, when we are changing the sales orders, in the billing document of that material shows different modes for different fields.
    VA02->DOUBLE CLICK ON THE MATERIAL->BILLING DOCUMENT->FIELD PAYMENT TERMS.
    For some orders, field is in display mode and for some orders, it is in changeable mode.
    Could anyone please let me know about this..?
    thanks and regards,
    MERVIN

    Dear Jignesh
    As you would be aware Payment Terms will flow in SO both at header level and at item level.
    So in order to control the item level changes, go to VOV7, select the item category and untick the box [Business Item]   By doing so, whatever header level datas flows into SO, that will be copied to item level also and you will be controlling the changes at item level and end users cannot make changes at item level.
    Now you have to control at header level for which you have to apply User exits in the program MV45AFZZ - USEREXIT_MOVE_FIELD_TO_VBAK
    thanks
    G. Lakshmipathi

  • Change Distribution channel in Sale order after O/B delivery

    Dear All,
    I want to change Distribution channel in Sale order after O/B delivery. i am trying same in MASS change sale order, but there is no any selection for Distribution channel.
    Please suggest new way to chane Distribution channel in sale order after O/B delovery
    -Sunil

    Hi,
    Please post this thread in Sales & Distribution forum

  • Adding new field to sale order BDOC and replicate to R3

    Hi all,
    I'm trying to map the new customize field in CRM to field VBKD-VSART in R3.
    The reason behind this  was because my customer would like to have field shipping type appear in CRM order, but since this field is not provided by SAP, I've to create it. 
    What I did was:
    1) Create new field VSART via EEWB in CRM. This is done and working fine, the field appeared in 'customer fields' tab.
    2) Put this new field to BDOC in CRM.  I believe this is done when I created via EEWB. I think it use BADI CRM_BTX_EXTENSIONS , implementation CRM_GEN_OBJECTS for this part.
    3) Put BDOC into BAPI in CRM.  This is the part that I'm having a problem with.
    I found that I need to use BADI CRM_DATAEXCHG_BADI for that and I've checked example from implementation CRM_BTX_EEW_DATAEXCH. However, it only contain example to input field in VBAK, VBAP and VBEP.  Can anyone guide me on this part?
    4) Map BAPI to R3. I think that I need to use userexit MV45AFZZ form USEREXIT_MOVE_FIELD_TO_VBKD for that. But what is the incoming structure that I could use to map with VBKD.
    Any help would be appreciate, Thank you in advance.
    Gilbert

    Hello Gilbert,
    Please find if this helps,
    BDOC's to update the custom fields in R/3 from the CRM sales order
    Replication of new customer fields in order to R/3
    regards,
    Muralidhar Prasad Chatna.

  • Interdependent Changes in Sales Orders (CRM -- R/3)

    Dear Sap gurus,
    at my current customer they have implemented warranty complaints in SAP CRM.
    This is a copy of the transaction type CRMC (service complaint)- Type leading transaction category = BUS2000120 (complaints).
    Once the complaint has user status 'closed' this complaint is sent to R/3 for further processing.
    At that moment no changes made in R/3 are replicated back to CRM.
    Note 642944 explains that ou can make changes independent of the system in which you originally created the order. This is called scenario A (compared to scenarios X , Y and Z which are described in oss note 705200 (which are valid for older releases of CRM and R/3). <b>Since we are using CRM 5.0 and R/3 (release 4.7 and one is SAP ECC 6.0) we fall into validity for scenario A.</b>
    You still have a bunch of other related OSS notes such as:
    - 630778: Scenario A: mutual change of sales documents
    - 620139: Scenario A: independent changes in sales documents- R/3
    - 720511: FAQ: Data exchange sales documents (CRM <-> R/3) II
    - 656224: FAQ: Sales documents data exchange (CRM>-> R/3)
    - 642269: Scenario A: mutual change of sales documents - CRM
    - 971782: New Badi for exchanging data from sales document lists
    - 541113: Data exchange scenario for orders (CRM-R/3)
    -490932: Data exchange of sales transactions between CRM & R/3
    <u><b>My question is the following:</b></u>
    Since they speak about sales orders/Sales documents etc all the time, I am wondering if all these notes also would apply in the case of CRM Complaints (CRMC with leading transaction category COMPLAINTS).
    I would like to avoid investigating every single note, if in any case these would not apply to Complaints.
    <b>(Just for the record: the reason why I ask is that for example Product proposal (in the cross selling context) is for example also not supported for Complaints in SAP CRM 5.0, as opposed to Sales orders and Quotations.)</b>
    Thanks for a quick answer for those that already have had experience.
    davy

    To start with I have to describe the actual scenario...(therefore I think Interdependent changes is not valid as Lorna explained already).
    <b>Scenario:</b>
    We are using Complaint management in CRM 5.0. combined with SAP ECC 6.0.
    Now we are not following the standard process flow which is described in:
    http://help.sap.com/saphelp_crm50/helpdata/en/ed/8816f949e90644ada2c210ba2316e0/content.htm
    When Creating a Complaint (CRMC) and adding a unit (individual object/material) at header level, and the spare parts (on item level) we do certain validation checks
    for warranty validity etc.
    On item level we can set the status on either "Accepted" or "rejected"(where we also indicate per item based on code groups if this should be
    - credit memo request
    - free of charge substitute delivery
    After all item statuses are either Accepted or rejected, the user status on header level automatically changes to 'immediate settlement'.
    When this is the case we can manually set the user status to closed on header level.
    At this very moment replication takes place in the form that a Sales Order is created in R/3 with either a credit memo request and/or
    a Free of charge delivery. (these have the same item category as in SAP CRM).
    so far so good. But in this stage no manual changes are possible anymore in the SAP CRM complaint.
    Changes can still be made on Sales order level in R/3 by adding for example another item (spare part).
    <b>My Question now is:</b>
    Suppose a change is made on sales order level (this sales order has the same number as the complain which was originally created in SAP CRM), how can we
    update the Complaint in SAP CRM?
    I first was looking at delta replication for sales documents (described in notes 642944 and 705200) but this is not valid since the actual complaint is not
    replicated to R/3 in the first place.
    The only thing I could think of is making use of some action (profile)...which might for example check if the R/3 sales order with same document number is changed.
    Anyone experience with setting up such a thing or perhaps has another suggestion?
    Thanks in advance
    davy

  • Dates fields issue in the sales orders through IDOC

    Hi all,
    I'm trying to create a sales order through Inbound IDOC using IDOC_INPUT_ORDERS.
    I have 2 custom fields in the sales order which are date fields.
    I'm populating them from the IDOC segments(using E1EDKT1-tdid, E1EDKT2-tdline) in the user-exit just before the call trasacation statement. These dates are not coming for a few orders... but are getting populated normally for few of them.
    But the tricky part is that... if I process the same IDOC for the second time.. the order created is having the dates.
    My issue is that.. i need all the orders to be populated with the dates which IDOC have.
    Could anyone please help me with this issue.
    All the answers/replies are highly appreciated!!
    Thanks for you help!

    hi,
    the following may be of help
    There are 2 major exceptions to the batch input internal table. All text data from the segments E1EDKT1/2 and E1EDPT1/2 are not part of the batch input session. Text elements from these segments are posted directly to the data base AFTER the sales order has been created (please note: in order that item texts are posted correctly to the sales order the field POSEX from segment E1EDP01 MUST be transmitted). Also, configurable material information from the IDOC is exported to a global memory and therefore will not be part of the batch input session. Configurable material data is performed in Form CHECK_CONFIGURATION and the data is exported to global memory in the following code:
    Exportiert IDOC Daten ins globale Memory     
    export IDOC data to global memory            
      call function 'CUXC_IDOC_TO_MEMORY'          
           tables                                  
                cfg_instref = xe1curef             
                cfg_ref     = xe1cucfg             
                inst        = xe1cuins             
                part_of     = xe1cuprt             
                value       = xe1cuval             
           exceptions                              
                error       = 1                    
                others      = 2.                   
    One extra piece of useful infomartion if you wish to debug the process is to set your breakpoints at the following points
    for Function module IDOC_INPUT_ORDERS
    include LVEDAF0F..
      CALL TRANSACTION 'VA01' USING bdcdata
                                MODE  input_method
                                UPDATE 'S'
                                MESSAGES INTO xbdcmsgcoll.
    Now input_method is A foreground process and N for background processing but try changing it to P (pass through mode)
    If you have breakpoints in va01, e.g. MV45AF0B_BELEG_SICHERN,(the part where the sales document is saved)
    they will be hit, e.g
    perform userexit_save_document_prepare.
    perform userexit_save_document.
    Lastly, don't forget using program SDJEDI , see note 380603 for more information on this
    Hope this is useful
    Paul Quinn

Maybe you are looking for