Sales order updation - reg

Hi Experts,
    I am updating schedule line item category in sale order using the user exit MV45AFZZ.
Within that user exit I am modifying the standard internal table XVBEP with new schedule line item category.
It is updating when I use VA01, VA02.
But when I update sales order using BAPI, it is not getting updated. But that portion of code is triggered and XVBEP internal table is getting updated. But in sales order it is not updated. After that piece of code no where XVBEP internal table is updated.
Kindly help me.
Thanks and regards,
Venkat.
Edited by: VENKAT RAMAN on Jun 17, 2010 3:18 PM

Hi,
Add following line in the code which you have written in user exit.
MOVE 'U' to xvbep-updkz.
Regards
Vinod

Similar Messages

  • Sales Order update in APO

    Hi,
    We have a z-program in ECC which is triggered once sales order is saved. As of now we have maintained a nominal delay (30 secs) in the program to take into account sales order update to APO (as we are fetching some key information from APO based on SO update to APO).
    So instead of maintaing the delay in the program, is it possible to check that the sales order specific CIF queue is processed successfully and then that is taken as a trigger point to execute the program in ECC.
    Regards,
    YR

    Hi Babu,
    thanks for your reply...
    One last query before I close this thread.
    Can this queue processing in table TRFCQIN be mapped as a 'trigger event' in case it is successful to initiate the program on ECC side with reference to the specific sales order ?
    YR

  • Sales order updation if master data is incomplition

    is there any solution for sales order updation if master dat is incomolish.
    Ex.we r created material master without account assingment group. while creating sales order it is showing in incomplition for gl a/c and we saved it. and we made POs on order.
    now with out deleting POs i want clear the sale order
    thanks
    sreenivas

    Hi,
    You have two options
    1) Goto Material master data maintain account assignment group.
    2) create billing document for that sales order. In billing Item level, click on item details tab.
        In accounting segment select material account assignment group and save it. System will create  accounting   document.
    If you don't maintain any account assignment group in material master, system will give incomplete message in sales order, complete the G/L account.  You don't want to maintain account assignment group in material master then choose table '2' in VKOA and maintain G/L accounts. so system will not give any incomplete messages at sales order level.
    Chandra

  • BPL Sales orders: Updating index tables

    Hello forum,
    After using BPL to copy sales orders, index tables are not updated. Examples of these tables are VAKPA (sales index by partner function), VAPMA (sales index by material), VLPMA (deliveries by material) or VRPMA (billing documents by material).
    To correct this what we do is run program RVV05IVB (Reorganization of SD Document Indices) but this report is very time consuming. (it is not that easy to know the documents numbers for all sales / deliveries / billing docs that were copied so we have to run the report for all documents; even if we knew the document numbers, though, the report is very slow because these tables do not have an index by document).
    Is this the way to do it, or are other people working differently?
    Or should these tables be included in the context?
    Thanks in advance,
    Rui Dantas

    >
    Nico Gaertner wrote:
    > Alternatively you can also create this index on the receiver side and connect these tables with the Table VBUK in the BPL datamodel.
    > Nico
    In this case you mean sender system, right?
    The access won't be that bad if you choose the right table to link: VBAP-MATNR for VAPMA, or VBPA-KUNNR + VBPA-PARVW for VAKPA. I'll try in our system.
    It would be even better, of course, if we could link from more than one table (e.g. VBAK + VBAP to VAPMA). This is not possible, right?

  • Sales Order updation error

    Hi All,
    I am facing problems while updating a sales order. I have some custom actions in the middle. I am loading another custom window when tabbing out of Quantity field in Salesorder matrix. In that window I am updating batch quantity for the Sales order line from which I tabbed out using DI API to zero quantity. After that action,I am trying to update the Sales Order. Then I am receiving the error "There is a difference between the document total and its components. [Sales Order - Document Total (FC)]  [Message 439-138]". Please help me on this issue.
    Thanks
    Jisha

    Hi John,
    Thank you for the updation. Yes. I am working with an addon.
    Let me explain my current environment and requirments.
    I have 2 cases which I am mentioning below. In the given 2 cases , first case(adding Sales Order works well for me). Problem occurs while updation.
    Adding Sales Order
    When I am adding a new Sales Order, I am updating the batch allocation for the line items using DI API in the FORM_DATA_ADD_Event - Action success true section. (This section work successfully)
    Updating the Sales Order
    In the update mode, If I am changing the quantity for the Sales Order lines(I am mentioning here only the case when I am reducing quantiy) , the custom window opens for me to reallocate the batches for the new quantity. In this window, I am not updating the new batch allocation. Just I am clearing the existing batch allocation  using DI API so that I can give the new batch allocation in the Sales Order window - FORM_DATA_UPDATE_Event - Action success true section.
    After this step, when I am trying to update the Sales Order , I am getting the error"There is a difference between the document total and its components. [Sales Order - Document Total (FC)]  [Message 439-138]".
    Can you please give me a solution for this?
    One more thing to note, If the unit price field for the line item is zero, the Sales Order is getting updated successfully. If the price is greater than zero, then only the problem occur.
    Please let me know, if you need further details.
    Thanks
    Jisha

  • Sales Order Updation when a Quotation is saved

    Hi All,
    Kindly help me with this.
    I have the following scenario : A Quotation (ZQR) is created with reference to a Sales Order (ZRPR). The current requirement is that if the status of the Quotation is put to "Accepted" and the quotation is saved, then a new line needs to be added to the ZRPR Order on line 1000 through "Repairs" with repair action = '109' (i.e Debit), Material = 'LABOR', item Category = 'ZSER' and Quantity = 1.
    Is there any way so that i can update the Sales Order when the Quotation is Accepted and is saved??? Please help.
    Thanks,
    Vijay

    Hey,
    You could use workflow to automatically create a Sales order when a PO is saved.
    -Kiran
    *Please mark useful answers

  • Return Sales order - update of Item category change

    Hi
    We are creating the Return Sales order with respective original sales order.
    After copying the line item details in to return sales order, we are not able to change item category to another.  Since item category is in display mode(grayed out).
    We tried with
    1.Transaction varant, it is not helpful.
    2.Maintained the item category which is required in item category determination(Manual entries)
    Though we are able to change the item catgory in the sales order through some user exit, price condition are in active status. we are doing price update, but still condition types are still in-active.
    Please help, how to change the item cateogry and to redetermine the price based on the item category in sales order.
    Thanks & Regards,
    Rajesh.

    Then how do you settle it with the customer? He has still paid for the original materials and has returned some or all of them. He is still going to be invoiced for the full quantity. There should be some way to either replace the materials or give him a credit memo
    but coming to Gunda's query, the only way I see to map this is to create a different order type ZRE which is a copy of RE and item category ZREN which is a copy of REN. In ZREN, turn on Pricing. Maintain copy controls from OR to ZRE and keep the pricing condition type Manual. Then whenever the business decides not to give the customer a refund, go to the item conditions, set the pricing condition value to 0 and save the order

  • BAPI / Function Module for Sale order updation

    Hi,
         I need to update sale order details(Reason for rejection)..Can you please tell me any of the existing BAPI's / Function modules to do the same.

    hi,
      try bapi_salesorder_change
        <b>allocate points if useful</b>
    regards,
    pavan

  • XI IDOC ORDERS04 create sales order update VBKD_BSARK

    Hello
    I have created a sales order interface from an external partner who sends a file (Purchase order), XI reads and transfers to R/3 via IDOC ORDERS04 to create the sales order.  this works fine, but i need the purchase order type field VBKD-BSARK to be updated for further processing of order confirmations and deliveries (the customer also has manual orders created which are handled differently).
    in the XI mapping i have mapped the required entry for VBKD-BSARK into E1EDP02-BSARK, but it does not work.  I notice that this is at line itme level.  i have had a good look through the segements in ORDERS04 but I cannot find any reference to PO type.
    I also tried mapping the required data to E1EDK14 'QUALF'=013 .. this did not work either.  i use FM IDOC_INPUT_ORDERS and can only find reference to vbap-bsark  but this is not working.  it always takes the default setting.
    Does anyone have any ideas?  I have to use ORDERS04 as we have user enhancements for sales orders that are not available with SALESOREDERCREATEFROMDAT2.  which may work ok.
    cheers
    Nick

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved after data entry is completed.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Problem with sales order update from MIGO ( using BADI)

    I have written a BADI while doing MIGO, through which I am updating Sales order “Order Quanity”.
    I am able to update the Quantity successfully in sales order, but I am getting following update termination message which is mentioned below.
    "Sales Order 376446 has failed an update to the billing date associated to Transaction MIGO
    Contact your STC Key user for assistance
    PO Number:"
    Any clue? Please suggest.
    Regards,
    Krishna Prasad MVN

    I have written a BADI while doing MIGO, through which I am updating Sales order “Order Quanity”.
    I am able to update the Quantity successfully in sales order, but I am getting following update termination message which is mentioned below.
    "Sales Order 376446 has failed an update to the billing date associated to Transaction MIGO
    Contact your STC Key user for assistance
    PO Number:"
    Any clue? Please suggest.
    Regards,
    Krishna Prasad MVN

  • Problem with Sales Order update(VA02)

    Hi,
    I have created a sales order. I am changing the same order. I am adding few more items to this order and saving it. When I am saving this order, it says that the order has been saved. and when I am trying to view the same order again using VA02, I am getting a 'SAP office express info' popup saying 'Express document "Update was terminated" received from author "Paddu"'. and the description says 'Update was terminated'.
    Error Info...   V2 101: Error during update of Table VBAP
    Can someone tell me why I am getting this error. and what is this error related to.
    and when I again view the order in VA02, the changes I did were not saved. Con someone please tell me the reason for this. Thanks in advance.
    Best Regards,
    Paddu.

    Hi Gert,
    Thanks for your reply. Sorry for not providing the details.
    I just found the update error details in SM13. Please find the details below.
    Function Module   : RV_SALES_DOCUMENT_UPDATE
    Status                  : Update was terminated
    Report                  : LV45UF0V
    Row                      : 175
    Error details   Class:     V2         Number:    101
    V2 101: Error during update of Table VBAP
    Could you please let me know if you find any reason for this error as it is very urgent. Once again I am very much thankful to your time. Tell me if you find any reason.
    Thannks & Regards,
    Paddu.

  • Sales order - update line status to close the document with DTW

    Hi everybody,
    yesterday i tried to update the line status of sales order lines from "O" to "C" with DTW. At first he ask me for DocRate. Then set DocRate to "1". After then DTW wrote, that I can't update the lines, during update the document... Can someone help me..., maybe with an example for DTW.
    Happy new year to everyone.
    Best regards
    Stefan

    Hi Stefan Ressel,
    Welcome To SAP Community Network Forum
    Sales Order line status close that means for particular line Item Quantity Delivered through Delivery document and sales order line status open to close.
    OR
    You have to manually close Sales Order line status without delivered Quantity.
    Check in your case Item Quantity are to be delivered through Delivery document. Right click on line & check Target document.
    If Sales Order Item Quantity are to be delivered through Delivery document then SAP restrict to update line status.
    Thanks,
    Srujal Patel

  • Sales Order Updation when the delivery changed

    Hello Experts,
                           I am working an object where I need to update the sales order when the delivery changed.
                             Actually when the remote system rejected the delivery an IDOC will come to R/3
    Sooner the delivery changed in R/3 I need to update few fields in sales order.
              When I am trying to code in the exit in the FM attached to the IDOC it is first updating the sales order and calling ws_update_delivery  next.
    Even if I am trying in mv45afz1 also same thing is happening.
              Can anyone let me know how to solve this problem.

    Hi,
    you can see the work center capacity situation for manufacturing an item in the salesorder. But it needs Assemble to Order strategy. Anyway u can see the material details in the sales order.
    Kiran.

  • BAPI sales order update

    Hi folks,
    Can anybody tell me the BAPI name to update the plant, route and storage location in the sales order.
    if possible please tell me BAPI name in general which updates the sales order values...
    thanks in advance

    Hi,
    Use the bapi'S 'BAPI_SALESORDER_CHANGE'
    and 'BAPI_TRANSACTION_COMMIT' to update the sales orders.
    Regards,
    Sudheer Kumar

  • Sales Order Update in BI

    Hi all,
    I have an issue in BI. We pull all the sales order details from R/3 (Version 4.0) into BI everyday. When an item in the order is rejected, it is getting updated in BI. But when the same item is recreated (by removing the rejection code or setting it to blank), the quantity is not getting updated in BI until we do some reassignment process every month. Is there any way that the quantity gets updated in BI instead of waiting for monthly process.
    Example:
    Sales Order Item: S1
    Scenario1:
    Quantity: 50 (in R/3 and BI)
    Scenario2: (With Rejection code in R/3)
    Quantity: 0 (in R/3 and BI)
    Scenario3: (After removing the Rejection code in R/3)
    Quantity: 50 (in R/3):
    Quanrtity:0 (in BI)
    Appreciate your help in advance
    Thanks,
    Sai

    then check your keys... have a look at the change log for a specific example, you'll see why it's not being updated

Maybe you are looking for

  • Excise invoice for depot sale

    Friends, While creating excise invoice using J1IJ for depot sale we are getting error as "you are not authorised to create". Ple guide. Edited by: shiv on Jan 9, 2009 10:42 AM

  • 110v and 220v?

    We're getting ready to buy our new iMacs, which we'll buy here, but we thought of buying the Airport Extreme in the US next month while we're there (it's cheaper). Does it automatically switch from 110v to 220v or do we have to buy it here? (Israel)

  • Ibook left hanging! Got info from single user mode - can u translate?

    Hi, am panicking here so help really appreciated! Got my ibook, G3, 17" screen. It won't start up. It goes as far as the spinning circle of lines. Tried to get into single user mode (got Applejack there) but it ends up saying 'we are hanging here'. T

  • Passing username and password question

    I am using the following to run an external crystal reports viewer: DECLARE       v_username VARCHAR2(255) := NULL ;       v_password VARCHAR2(255) := NULL ; BEGIN       v_username := GET_APPLICATION_PROPERTY(username) ;       v_password := GET_APPLI

  • Print billing document by providing document number as parameter separately

    Hi experts, We are aware that we can print billing document from VF03. My client want a separate program which takes document number as input and produces the same form which we find in VF03. I copied the form to a zform. I tried giving as separate i