Sales order Update indicator in the include program MV45AFZZ

Hi All,
Can somebody will give idea how do we can find whether the sales order is creating or changing when we are writing some code in the user exit MV45AFZZ.I checked in this program we can find only at item level XVBAP-UPDKZ but i want this at the header level.
One way we can find this is by checking SY-TOCDE = VA01 but this condition fail if we create sales order using the BAPI.
Regards
Mahesh

In create mode XVBAK-VBELN will be initial, where as in change mode it contains sales order number.

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

  • How to use the variables of Function exit in the include program

    i have a problem of using the variables of a function exit in the include program..
    If i use those variables there will be an error indicating 'Field FEBVW_IN is unknown. It is neither in one of the specified tables nor defined by a DATA statement'. Please help... Below is the code of the function exit:
    FUNCTION EXIT_SAPLIEDP_202.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IDOC_CONTROL_INDEX)
    *"     VALUE(IDOC_DATA_INDEX)
    *"     VALUE(FEBVW_IN) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_IN) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_IN) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_IN) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_IN) LIKE  FEBPI STRUCTURE  FEBPI
    *"  EXPORTING
    *"     VALUE(I_FIMSG) LIKE  FIMSG STRUCTURE  FIMSG
    *"     VALUE(FEBVW_OUT) LIKE  FEBVW STRUCTURE  FEBVW
    *"     VALUE(FEBKO_OUT) LIKE  FEBKO STRUCTURE  FEBKO
    *"     VALUE(FEBEP_OUT) LIKE  FEBEP STRUCTURE  FEBEP
    *"     VALUE(FEBRE_OUT) LIKE  FEBRE STRUCTURE  FEBRE
    *"     VALUE(FEBPI_OUT) LIKE  FEBPI STRUCTURE  FEBPI
    *"  TABLES
    *"      IDOC_CONTROL STRUCTURE  EDIDC
    *"      IDOC_DATA STRUCTURE  EDIDD
    *"      IDOC_AVIP STRUCTURE  AVIP OPTIONAL
    *"      IDOC_AVIR STRUCTURE  AVIR OPTIONAL
    *"      IDOC_AVIT STRUCTURE  AVIT OPTIONAL
    *"  CHANGING
    *"     REFERENCE(IDOC_AVIK) TYPE  AVIK OPTIONAL
    *"  EXCEPTIONS
    *"      PROC_ERROR
      INCLUDE ZXF08U10.
    Here is the code for the include program.
      INCLUDE ZXF08U10
    MOVE febvw_in TO febvw_out.

    Sometimes you will get this error message when checking include code in exits even though there is really no error - it happens because the include does not realise it is in the function due to the navigation index being out of date.
    Try activating the code - it may work even though the check said there were errors.
    You can also get this issue when trying to drill down on the field in the include to view its structure.
    Andrew

  • 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

  • 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

  • Problem in importing Sales Order with udf in the rows

    Dear All,
    I am having problem in importing Sales Order with udf in the rows. I mean it is getting imported but the udf values in the rows is not getting updated. But the udf values in the header is getting updated. I am using SAP 8.8 Pl 10.
    Can anyone guide me what to do in this scenario?
    Regards,
    Gary

    So , Login to DTW .
    with the Desired Database and Login Credentials.
    Goto - > Templates - > Customized Templates
    Select The Object .
    Right Click on the object needed and choose Create Template for the Structure .
    Then use this template for import .
    Hope it helps
    Thanks
    Ashish Ranjan

  • Cancelation of Sales order shipment doesnt reduce the withdrawal quantity

    Hi,
    I have this scenario, where if a Sales order shipment gets cancelled with a 602 Goods movement, I dont see the correct reflection of withdrawal quantity in RRP3. For eg: There was a total of 26 shipments initially, the withdrawal qty is 26 in APO, User cancelled quantity of 3 of them from a sales order delivery, so ideally the Forecast Tab in RRP3 should indicate 23 in Withdrawal and the 3 should be in the Allocated column.
    FYI:
    Forecast Consumption happens in SNP ( Consumption characteristics are Material/Plant/Customer ).
    Please advise whether we are missing any Config or is this a standard beheavior where the withdrawal quantity remains static irrespective of Delivery cancelation.
    Regards
    Gk

    Hi Gopakumar,
    If CIF is not useful for you in getting the right qty, order in live cache is not getting updated.
    in ECC you can run SDRQCR21 by giving order number can be useful as suggested by Bhramankar.
    Or you can delete the order & its delivery from live cache.
    1) get Order GUId from /SAPAPO/OM16
    2) Provide the internal order number in /SAPAPO/OM_DELETE_INCON_ORDERS and delete the order from live cache.
    3) Do CIF for the sales order and check, data will be replicated.
    Thanks,
    Bala.

  • 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

  • How to make sales order items appear on the billing due list?

    Dear All,
    We are using SAP CRM 5.0 standalone and we want to use CRM Billing.
    All necessary configuration has been done to enable CRM Billing on sales orders.
    Here is the list of what have been done:
    1. Defined Billing unit and assigned to my sales organization.
    2. Created billing document type for sales order (F2 as standard).
    3. Defined billing item category (TAN as transaction-based billing after complete)
    4. Defined billing item category determination (for trans. type TA, item category TAN, billing item category will be TAN)
    With all the above configuration, when I created a sales order (TA), set the order status to 'completed' and save it, I checked the item status, it is 'completed for billing'. However, when I ran 'Process Billing Due List', nothing has been picked up.
    I checked the order line item, and found that the 'Delivered Qty' field is 0. Could this be the reason? I set the item category TAN billing relevancy to be 'Transaction-based after completion', then it should not care about delivery, right?
    Please provide your input. Thanks so much in advance!
    Regards,
    Leon

    Dear Rekha,
    Thanks for your detailed reply. It seems that all the config points you mentioned in your email have already been covered. However I still don't see anything on my billing due list.
    Here is the list of what have been done:
    1. Defined Billing unit and assigned to my sales organization.
    2. Created billing document type for sales order (F2 as standard).
    3. Defined billing item category (TAN as transaction-based billing after complete)
    4. Defined billing item category determination (for trans. type TA, item category TAN, billing item category will be TAN)
    With all the above configuration, when I created a sales order (TA), set the order status to 'completed' and save it, I checked the item status, it is 'completed for billing'. However, when I ran 'Process Billing Due List', nothing has been picked up.
    I checked the order line item, and found that the 'Delivered Qty' field is 0. Could this be the reason? I set the item category TAN billing relevancy to be 'Transaction-based after completion', then it should not care about delivery, right?
    Please provide your input. Thanks so much in advance!
    Regards,
    Leon

  • Sales order with reference to the invoice

    How can we create a sales order with reference to the invoice

    Hi,
    1. Create sales order
    This process step can be triggered as follows:
    The customer accepts the quotation and places an order.
    You create a sales order with reference to a quotation. For more information, see Structure link processing Quotations. The system copies the items from the quotation.
    You create a sales order. This is also possible without performing the previous steps.
    2. Enter products
    You enter products requested by customers.
    Note
    If necessary, you can configure products again for every item of the sales order. You can find more information in the business scenario variant Structure linkQuotation and Order Management (Configure-to-Order) and under Structure linkProduct Configuration in the Sales Transaction.
    3. Check availability, schedule order and create requirements
    The system triggers an availability check and scheduling in SAP APO for every order item in SAP CRM. The confirmed quantities and dates are confirmed by SAP APO to SAP CRM, and saved in the sales order (see Structure linkAvailability Check in the Sales Order). At the same time, a customer requirement is created in SAP APO.
    Note
    You can also execute the availability check in SAP R/3. You can find more information under Structure linkAvailability Check with SAP R/3.
    4. Maintain and determine conditions
    The system determines the prices and the value of individual items. If necessary, you can process these. For more information, see Structure linkPricing.
    5. Perform credit check
    SAP R/3 executes a credit check based on the results of pricing in SAP CRM. The result of the credit check is confirmed in SAP CRM, and saved as the credit status at item level. For more information, see Structure linkAutomatic Credit Check.
    6. System replicates sales order
    After the sales order has been saved in SAP CRM, complete and without errors, it is replicated for logistics processing in SAP R/3. Order data is transferred together with confirmed scheduling lines to SAP R/3.
    7. System receives sales order
    After replication to SAP R/3, you can change the sales order in SAP CRM and SAP R/3. You can find more information on this under Structure linkData Exchange for Sales Transactions: CRM Enterprise - SAP R/3
    8. Send order confirmation to customer
    You can send the order confirmation either electronically, or in print to the customer. You can find more information under Structure linkSales Order Confirmation by E-Mail.
    9. Monitor status of order
    PS: Do award points

  • Sales order not reflecting in the stock reqmt list

    we have a MTO scenario.after the sales order is created we are not able to see the sales order in the stock requirement list.kindly please help.

    Hi
    following are the reason
    1) Check requirement type in sale order and strategy group in material master.
    2)if reason for rejection is activated  in sales order.
    3) cancel the sale order
    4) schedule line category should be  CP in sales order
    Edited by: surendra patil on Dec 29, 2008 7:30 AM
    Edited by: surendra patil on Dec 29, 2008 7:33 AM

  • How sales order number generated in the SAP R/3  is transferred to SAP APO

    Dear Experts,
    During the creation of the Sales order in SAP  R/3 an Purchase requisition is created in SAP APO and assigned with temporary sales order and when we save the sales order in R/3 the corresponding sales order number is attached with the purchase requisition in SAP APO. Is there any exits or BADI available while this Sales order detail transferred to APO or during this sales order details attached to Purchase requisition  in APO side.
    Many thanks in advance,
    Senthil

    Senthil,
    During the creation of the Sales order in SAP R/3 a Purchase requisition is created in SAP APO
    ?? I guess you are talking about one of the planning procedures that executes 'Start product heuristic immediately', yes?
    and assigned with temporary sales order
    I guess you are talking about [Temporary Quantity Assignments|http://help.sap.com/saphelp_glossary/en/74/b171467944d3119b440060b0671acc/content.htm], yes?
    Is there any exits or BADI available while this Sales order detail transferred to APO
    Standard enhancements are
    Sales order CIF enhancement on the ECC side
    CIFSLS03  (outbound from ECC)
    Sales order CIF enhancement on the APO side
    APOCF010 (Inbound from ECC)
    Best Regards,
    DB49

  • Direct URL to open the Sales order transaction based on the Transacation ID

    Hi All,
               Please help me...
    When i click the below link then it will navigate to the sales order transacation.
    https://dev1crm...:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMD_BUS2000115&blview=&analyze=X
    but my requirement is, now i have to create a differnet url for different transaction ID's.
    Let us consider few sales order transacation ID's :
    6500000001
    6500000002
    6500000003
    6500000004
    6500000005
    now i will  create a hyper link to these transaction id's  from the portal screen, and when ever user clicks on any of these transaction id, then i should navigate to the sales order transaction by showing the details about this transaction id.
    Please do suggest me how to handle this.
    Thanks in advance.
    anil

    Hi,
    I got the solution,
    append this string to the URL
    &crm_object_id=4603D4CDF5950535E100000082974D14
    4603D4CDF5950535E100000082974D14 --- Guid.
    Thanks,
    Anil

  • Change of sales order address while changing the delivery address

    Hi,
    Problem: Changing delivery address in outbound delivery is changing the originating sales order address for one user while for a different user id the sales order and delivery has their different delivery addresses.
    Scenario:
    1. A new sale order is created and its address for ship to party is modified (to say A1)
    2. Delivery for the sales order is created and the ship to party address is modified (to say A2).
    While executing this scenario with two different users we are getting different result
    For user 1, after step 2 both the sales order and delivery has shipping address as A2
    whereas for user 2, sales order has address A1 and delivery document has address A2
    How can this difference in behaviour be explained?

    Found the solution myself,
    The standard behavior is being modified in the user exits V09A0001 ( Reference/duplicate decision making manual address). Also refer to note 97832 for detailed solution.

  • Sales order delete and rejecting the line items

    Hi,
    1 )What is the difference between deleting a sales order and rejecting all the line items of a sales order.
    2) Are there any pre-conditions for deleting a sales order.
    3) why there is a need to reject line items of a sales order
    regards

    What is the difference between deleting a sales order and rejecting
    If you delete a sale order, you cannot retrieve it or view it.  On the other hand, if you reject any sale order, at any point of time, you can retrieve that sale order and analyse as to why it has been rejected.
    Are there any pre-conditions for deleting a sales order.
    Certainly not.  Its all depends on the discretion of the user.  Of course, you cannot delete a sale order if any subsequent document exists.
    why there is a need to reject line items of a sales order
    Customer has placed an order and at a later date, due to some reason, they have asked the client not to proceed with production against that sale order.  Now if the Management decides to track such of those sale orders, you can assign reason for rejection and have it in system for record purpose.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Moving files from windows to mac

    Hi All, Some time soon my son is going to buy a Mac Pro or if they come out w/ a new model I will buy a new one and give him this one which is not too old. He now uses a windows XP pc. the question I have is how do I / he transfer his files from the

  • Using multiple SMTP servers but a single Internet Service Provider(ISP)

    Hello Sir, I am working on an Enterprise Java Bean Application running on J2EE application server and use JavaMail API to send Emails throu' the application.... In the J2EE Deploytool the SMTP server is set to "smtp.roltanet.com" provided by ISP....a

  • Hi,  So I'm having a problem with Adobe Acrobat 10

    Hi, So I'm having a problem with Adobe Acrobat 10. I have backed up adobe acrobat files and stored them on an external hard drive. When I attach the external hard drive to one laptop I can open the acrobat files just fine but when I try to open the f

  • 'P' in menu bar of iPod when syncing?

    Why is there a 'P' in menu bar of iPod when syncing? Flaky software perhaps. Everywhere I look there's a bug on a rough edge. Firmware please...

  • Install 11g RAC or 10g RAC

    We're in the process getting ready to start the implementation of our first RAC project. We've done a great deal of discovery and prep. We've had Oracle in to discuss the project in detail. We have one open item. Should we go with 11g RAC or 10.2.0.4