Transaction VKM1 - Changes Sales Order Line Items Custom Fileds

Hi,
I have a challenge to indentify the impact of VKM1 on a Sales Order Line Item Customer Enhanced Fields. When credit hold for the customer is released in VKM1, I want to prevent some of the changes to the line items in the User Exit. The Problems I am not sure, How VKM1 is calling the Transaction VA02 or those Sales Order User Exits to modify certain customer enhanced fields. I tried Activation of Break Point in Update Task but did not stop at the Break points set up in the User Exit. How does Transaction VKM1 call the Sales Orders to execute changes? Is it through BAPI or Call Transaction VA02 or some thing else.
Can any One please help me? Appreciate Your Help in advance.
Thanks,
Kannan

VKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.

Similar Messages

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • User Exit to make changes in sales order line item data.

    Hi All,
    I need to know about user exit by whcih I can make changes in sales order line item details --> Account assignment tab --> Sales order no and line item no.
    I want to make changes so as to bring the active maintenance contract no and line item no here instead of sales order no and line item no. So whenever ( Va02 or Va03) we go to sales order line item and se the account assignment tab I should see the contract no there.
    Just let me know the USER EXIT to do the above changes.
    Points will be awarded.
    Regards,
    Satish.

    Hi,
    Please have a look at the following user exits...
    1. user exit_ save_document
    2. user exit_save_document_prepare
    Regards
    sankar

  • FM/Transaction/BAPI to delete sales order line item in APO

    Hi,
    Could you please share the details of FM / Transaction / BAPI to delete sales order line item in APO?
    Tcode - SDORDER_DEL / FM - BAPI_SLSRVAPS_SAVEMULTI2 delete the complete order with all its order items.
    Even the OM function modulesdelete the complete order. We could not locate a BAPI/FM for deleting only specific line items of a Sales order...
    Thanks,
    Arvind.S

    Hi Arvind,
    Can you try the below:-
    Function module : BAPI_SLSRVAPS_REMOVEITEMS
    Bapi object type: BUS10501
    Using this, one can delete One or More Sales Order Items / Schedule Lines.
    Please confirm
    Regards
    R. Senthil Mareeswaran.

  • How to upload sales order line items?

    SAPGurus,
    For years my customer service department has been asking for a way to upload sales order line items into the VA01 sales order-entry screen.
    Many of our customers submit PO's with huge amount of line items, up to 1,000 lines. Our CS reps need to key in the data line by line (or copy/paste
    approx 17 lines at once from Excel into the VA01 screen), and we are looking for a way to make this process leaner. One idea we have is that user creates the order header, and then has a way to upload the material numbers and quantities in a separate (newly created Z-transaction) screen in one go.
    Obviously rules then need to be built that deal with the various pop-up messages related to e.g. ATP, material status, etc.
    Does anyone have any experience or thoughts on how we could achieve this? A way to make the sales order-entry process a bit less time-consuming? Any feedback would be greatly appreciated !
    Thank you,
    RVS

    Take the inputs from this Blog created by  SUNIL PILLAI                   
    Sales Documents upload  using Standard Direct Input Program in LSMW
    G. Lakshmipathi

  • I have a problem regarding sales order line item with confimed quanity

    Hi Experts,
    I have a problem regarding sales order line item with confimed quanity with '0'  with delivery block but confirming the sales order quantity once the order is released from credit check.
    The situation arises as per the below scenarios.
    Scenario - 1 -  When the sales order has two line item - one line item with confirmed qunaity in the schedule line and for the 2nd line item there is no available stock for the Material xxxxxx.
    Initially the sales order is created for the line item 2 with confirmed quantity = 0, and having the delivery block = 01 for the Material xxxxxx  and the order is set with credit check.  Once the order is relased from the credit check.  The quanity for the item 2 where the confirmed quantity will be = 0 ( Where it is not changing the confirmed quantity)
    Scenario -2-  Updating the order qunaity for the line item 2 as (9Pcs) it will goes to credit check and save the order.
    Maintain the stock for the line item 2 ( 5 Pcs).
    Once the order is released from the credit check.  Then  for the line item 2 the confirm quanity will be seting to 5 Pcs with Delivery blcok 01.
    This should not happen, When the credit check is released even though if it has stock based on the delivery blockl it should set the confirmed quanity to Zero.
    Can you please help me how to solve this issue.
    Looking forward for your reply.
    Thanks and Regards,

    Hi,
    I agree with your point.  In the sales order When the complete delivery check box is enabled where the confimed qty is set to zero, it is fine but when we save the orderr it goes to credit check.  Once we release the order using VKM3 where in the sales order the confimed quantity is setting to 5,  But it should set to Zero quantity.  Quatity should not be get confirmed it should be Zero Quantity. 
    Further in SPRO - customizing in the deliveries blocking reasons - It has a tick mark in the confirmation blcok.  But we dont want to remove the - Confirmation Block tick mark
    Please any one can help me if you have any solution to solve this problem.
    Thanks and Regards.

  • Re-Cost (CK55) Marked Sales Order Line Items

    My current client resets standards each quarter. They have requested to re-cost open CTO Sales Order line items and update the valuated sales order cost (EK01). I have reviewed the options available in CK55 - Mass Costing and find the processing log retrurns the following message:
       Cost estimate with status VO exists. See long text
       Message no. CK_MCSO014
       Diagnosis
       A cost estimate with the status VO already exists. This cost estimate will not be overwritten.
       System Response
       Processing continues with the next item.
       Note
       You can remove this message from the log with the customizing transaction User-Defined Error Management for Mass Costing of
       Sales Documents. The item will still not be costed, however.
    Short of manually re-costing each open sales order line item. Is there a way to re-cost open CTO Sales Order Line items?
    Regards,
    Dewayne Wesley

    I didn't realize there was a MASS Cost transaction.
    Is there a MASS delete Sales order Cost estimat transaction? That would help.

  • No cost booking against sales order+line item once accontng release is done

    Dear all,
    I want to stop all cost bookings against a sales order + line item once the accounting release for that item has been done.
    By cost booking i mean, all such transactions that are done for a sales order + line item that involve cost booking. Like, MB1A should not allow any goods issue against that sales order + item once accounting release is done.
    Is it possible to that in sales order? Like by using any status at item level.
    Please guide.
    regards
    SAPshed

    Hi Ajay,
    We have not kept automatic cost estimate marking during saving of sales order as costing dept wants  to confirm whether costing for the SO is correct or not.
    Hence we have to use CK51N.
    Now the problem is for any change in any line item of a sales order is changing the costing status from "VO" to "KA" for all line items of the given sales order in table KEKO.
    This is causing measure problem as production people are facing problem while making any change in production order as already there is a check put in CO02 that if cost estimate does not exist for underlying sales order, then change in production order should not be allowed.
    Similarly production order creation (converting planned order to production order) is getting held up.
    Costing user has to repeated run CK51N for all line items of a single sales order if there is any change in any single line item of the sales order.
    Hence pl. help and suggest as to what is to be done now.
    Regards
    Ratna

  • Copying text from CMIR (KNMT) to the Sales Order Line Item

    We need to copy text from the CMIR (KNMT) to the Sales Order Line Item with two steps in the access sequence. First to look up by the Ship to Partner Function.  If doesn't exist, then look up by Sold to Partner Function.  Have setup a new text id (ZPRN), a new access seq (9011).  The access seq has one seq =5 for KNMT, ZPRN, all languages and that saves fine.  When I set the Partner Function to be SH.  I get the following error msg:
    "The Language does not come from the partner function AG for MVKE".
    Any ideas?  This access seq does not reference MVKE. It only references KNMT.
    Thanks!

    Hi Lisa,
    Just stumbled on this post, as I am searching for something similar.
    What you are attempting to do isn't possible in config.
    This is because as standard Customer Material Info Records are not even considered for ship-to party in the sales order.
    They work for sold-to only.
    Therefore, this funny error message is SAP's way of saying, "Why are you trying to enter a partner here, because the data is determined for sold to only?"
    You can change this with development for other fields (ie, to determine delivery plant, tolerances etc at ship-to) by using
    the exit MV45AFZB with the USEREXIT_CUST_MATERIAL_READ form.
    However, even if you do this, Text Determination is still sold-to only and still doesn't behave.
    I am currently looking myself for a solution for this problem and I will let you know what I find.
    Cheers
    Chris

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • Mass Deletion of Sales order line items

    Dear Gurus..
    There is a transaction VA02 for change and deletion of sales order line items. it takes time to delete line item of sales order one by one.. is there any abap program to do this process..
    if so please let me know
    regards
    Saad Nisar

    Hi,
    You can use trx MASS with object type BUS2032 to change sales order items. Please check this link:
    Re: Mass deletion of  sales orders
    Or try LSMW.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 10, 2009 8:18 AM
    Edited by: Csaba Szommer on Apr 10, 2009 8:21 AM

  • Quantuty on the Sale Order line item

    HI,
    Can anyone suggest how to control the Quantity on the sales order line item.
    Sale order line item should not be reduced below the delivered or invoiced quantity. For EX:Sale order line item 10 has 200kgs,delivery quantity created aganist that order is 100kgs, now the system should not allow us to change the sale order line item quantity below the delivery quantity i.e 100kgs.
    Thanks in Advance.

    In the transaction OVAH, for the message class V4 and message number 083, in the category column, change the entry from W to E. Then system will issue hard error when you change the order qty to below delivered qty.
    Regards
    Sai

  • Tracking Number Information in B2B sales order line item

    Hello Experts
    Does anyone aware of the settings to be done to get tracking number (e.g tracking number given by DHL, Carrier Company) displayed on sales order line item.
    Following steps has been followed, but we can not see the tracking number at the line item level:
    Tracking the Shipping Status
    You can enable customers to track the shipping status of their Web shop orders using an external shipping provider. If the external shipping agency offers shipping information on the Internet, customers can access the shipping status directly via a hyperlink from the order. This enables customers to track their delivery during the shipping process.
    Prerequisites
    u2022     Your appointed haulage firm offers the shipping status tracking service.
    u2022     The haulage firm has assigned a bill of lading for each order and informed you of it.
    Activities
    1.     Call transaction VL03N in the ERP system.
    2.     Choose Display <-> Change.
    3.     Choose   Goto  Header  Partners  . Enter the data of the corresponding carrier.
    4.     Choose Shipment. In BillOfLad, enter the tracking number.
    Folks, any help will be highly appreciated
    Thanks
    DJ

    Hi DJ,
    Most of the settings that are required to display the tracking number in the web shop are ECC dependent. The function module that gets the tracking related information in the Run Time is CRM_ISA_BASKET_STATUS_ENH.
    In the above function module at line number 383 contains the relevant logic to get the tracking related information from the ECC system. At this line number the function module BAPI_XSI_GET_VTRK_G is called remotely in ECC.
    ABAP Stack in ECC:
    BAPI_XSI_GET_VTRK_G (FUNCTION MODULE)
                XSI_CREATE_TRACK_URLS (FUNCTION MODULE)
                                    TRK_GET_URLS (SUBROUTINE)
                                                    XSI_CREATE_TRACK_URL_MULTI (FUNCTION MODULE)
                                                                    XSI_CREATE_TRACK_URL (FUNCTION MODULE)
    Transaction Codes where the settings need to be done in ECC:
    1.     VTRC - Maintain Express Delivery Company
    2.     0VVT - Set Up : Express Delivery Company
    3.     VTRK - Parcel Tracking
    Database tables relevant for Tracking in ECC:
    1.     VXSITDU u2013 Express Delivery Company : URLs
    2.     VXSITDL u2013 Express Delivery Company Data Field
    3.     VTRKH u2013 Tracking Data Header
    4.     VTRKP u2013 Tracking Data Item
    5.     VLBL u2013 Express Delivery Company Data Field
    6.     TCAVAR u2013 Carrier URL Connection (Substitution of Variables)
    7.     TCAURL u2013 Carrier URL Connection
    8.     EKES u2013 Vendor Confirmations
    Best Regards,
    Chanakya Reddy

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • I need to add fields in additional fields B the sales order line item

    i  need to add fields in additional fields B beside the field (icon_val_quantity_ structure) in the sales order line item, How to achicve this? please help me..

    Please fined the below solution for achieving your requirement.
    1. Add new filed "B" in table VBAP.
      a) T.code  SE11 --> Enter structure name VBAP --> display
      b) Goto --> Append Structure --> Enter Structure name and new field "B"
    2. request your basis team and take the access key for modification of stabdard program SAPMV45A & Screen: 8459
       a) After receiving access key for standard program then got o SE51 --> enter program name  SAPMV45A & Screen: 8459
       b) click change Button
       c) click layout button
       d) add new field "B" below of the screen (F6 -> enter table name : VBAP --> get from dictionary --> selet new field and past in screen )
    3) write below code in flow logic
    PROCESS BEFORE OUTPUT.
                               Verarbeitung vor der Ausgabe
      MODULE ZZPB_INITIALIZE_8459.
      MODULE ZZPB_OUTPUT_8459.
    PROCESS AFTER INPUT.
      CHAIN.
        FIELD VBAP-New field name "B".
        FIELD ZVC_SALES_EXPORT-ZZAPLHENKO.
      ENDCHAIN.
      MODULE ZZPA_OUTPUT_8459.
    4. functin Module code
    module ZZPB_OUTPUT_8459 output.
      Data: l_v_actve type ale_active,
            l_v_ttyp  type c.
      Data: l_v_tragr type tragr.
    l_v_ttyp = t180-trtyp.
      if l_v_actve is initial.
        l_v_ttyp = 'A'.
      endif.
      LOOP AT SCREEN.
        CASE l_v_ttyp.
          WHEN 'A' OR 'C'.
            SCREEN-INPUT = 0.
        ENDCASE.
      ENDLOOP.

Maybe you are looking for