Enhancement on Sales Order SAVE

Dear All,
I want to update and then Close the Service Order, when the Sales Order Line Item rejected.
I have used the BDC - CALL TRANSACTION on IW32 for Closing the service Order. I have written that in one of the BADI on Sales Order SAVE in VA02.
Now, the problem I am facing is, BDC is successful; but, at the last COMMIT in Sales Order old data is rewritten in the Service Order and evn if it shoing the Status CLSD, it is in changable Mode.
So, please suggest me the way to overcome this.
1. Service Order Data (OPERATIONS COMPONENTS) should not be overwritten.
2. Once Closed, Service Order should be in non-chnagable Mode only.
Please help me in this topic ASAP.
Thnaks in advance.
Kind Regards,
Prasad

Can anyone gives something about this?
Thanks a lot.
Best Regards,
Prasad

Similar Messages

  • CALL TRANSACTION at Sales Order SAVE

    Dear All,
    I want to update and then Close the Service Order, when the Sales Order Line Item rejected.
    I have used the BDC - CALL TRANSACTION on IW32 for Closing the service Order. I have written that in one of the BADI on Sales Order SAVE in VA02.
    Now, the problem I am facing is, BDC is successful; but, at the last COMMIT in Sales Order old data is rewritten in the Service Order and evn if it shoing the Status CLSD, it is in changable Mode.
    So, please suggest me the way to overcome this.
    1. Service Order Data (OPERATIONS COMPONENTS) should not be overwritten.
    2. Once Closed, Service Order should be in non-chnagable Mode only.
    Please help me in this topic ASAP.
    Thnaks in advance.
    Kind Regards,
    Prasad

    hi,
    Youcan use TAP, TAN for sub it Level pricing anf at main item level pricing you can use TAQ,TANN.
    AND CHECK IN TAP AND TAQ  That is there structure scope and application  in the BOM section is configured.
    and configure the sub item  sales item category as
    for pricing at sub item level
    sales document type-item category group(lump)-usage-higher item category[TAP]- TAN
    pricing at main item level
    sales document type-item category group(lump)-usage-higher item category[TAQ]- TANN
    you will get this in sales order
    go to Or  add the main material 1 you will get material 2 and material 3 as a subitem to item
    and check the pricing whether it applies to main item or sub item
    gajanan
    Edited by: Rudrag on Feb 10, 2010 8:48 AM

  • Userexit/Function after sales order save

    Hi,
    I want to get sales order and line item number, which I want to pass to function module immediately while sales order creation.
    To get sales order and line item number after sales order save in VA01 is there any userexit or function?
    I tried with userexit_save_document and userexit_save_document_prepare, but it did not solved my purpose.
    Please reply.
    Thanks

    Hi ,
    Could you please let me know what you have written inside your FM which called in update task.
    I have same kind of requirement where i need to update soem custom fields of vbak tables. Here is the details given below .
    CALL FUNCTION '/LGC/SDFGWW_VBAK_UPDATE' in update task
      EXPORTING
        i_vbak          = vbak
        i_sdtv45a       = sdtv45a (Local structure which value i want to update in vbak)
        i_vbeln         = vbak-vbeln.
    Code inside the FM .
      i_vbak-/lgc/banknum  = I_SDTV45A-zcheqbsbno.
      i_vbak-/lgc/bankaccnum = I_SDTV45A-bankn.
      i_vbak-/lgc/cheqnum = I_SDTV45A-zcheqno.
      i_vbak-/lgc/cheqname = I_SDTV45A-zcheqna.
    Please have a look into it and let me know where i am doing wrong.
    Thanks,
    Satya
    Message was edited by: satya pujahari

  • User-exit for  carry out new pricing while sales order save automatically

    Hi all,
    I need to carry out new pricing while sales order save automatically. Please any one help me to finding proper user-exit to achieve my requirement.
    Thanking You.
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Jan 11, 2012 12:53 PM

    Pl help.

  • Availability check run requirement in the Sales order Save user Exit.

    Hi Gurus,
    As per the requirment we are using a user exit SAVE SALE ORDER PREPARE for BOM purpose to reconfirm the confirmation qty.
    Now we need to add one more logic in the same user exit, which will run the availabilty check run for each of the line items of the BOM and consider latest confirmation qty from it. So my concern is it possible that we can call the availabilty check run event with in the user exit SAVE SALE ORDER PREPARE or this not advisable?
    Please let me know..
      Regards,
      Babs

    HI Venkat,
    Thanks for your reply.Yes you are right availability check runs automatically at sub item level.
    But please note the customer requirment iteself is is little different from std BOM configuration.
    Currently the availabilty check is activated both at header and sub item level. They are maintaining the stock for header and sub item level.Also the these sub items are some time being sold as invidual materials. hence there exist a mismatch in the stock value between header and sub items.
    when a sales order is created both header and sub items will have confirmation with different value between each and the same mismatched values are being passed in to delivery. But the deliveries can not be processed for PGI because of the mismatched confirmation qty between header and item level.
    I guess now you the rrequirment.
    So we are using the SAVE SALE ORDER exit which will re check the confirmed qty between header and item and takes lowest confirmed qty and change the confirmed quantities from all the line items to lowest one, so that confirmation qty among all the line items are same. This is the first logic we are planning.
    Further there is one more additional process BOP need to be run for this header and sub items, which will change the confirmed qty based on the latest stock for individual line item. even in this case also the user exit SAVE Sale order is being called but we need to run the availability check run additionally because of which our requirment will be taken care.
    Regards,
    Babs

  • Best Practice - Check/React to Conditions Before Sales Order Save

    I am saving, for discussionu2019s sake, what is essentially a sales order. 
    Component: /ALMGT/BT115H_SLSO
    View: SOHOverView
    When the 'Save' is pushed, we want to do some error checking/handling  u2013 very simple stuff, like
    If attr1 is initial and  attr2 > 0
        Issue message
       set attr_status to u2018Situation1u2019 
    endif .
    It seems like I can just redefine the eh_onsave() method, but I wanted to see if there is a more elegant or best practice methodology for doing this.
    Thanks...
    ...Mike
    Weu2019re running  FRM ( [Fundraising  Management|http://www.sap.com/services/portfolio/customdev/brochures/index.epx] ) u2013 SAP Custom Development u2013 on top of CRM 7.0

    Mike,
    Good to see you here again.  The best approach is actually to implement this logic below the UI layer in the oner order layer instead.  Based on the component it looks like you are using a business transaction, which means you can use the BADI ORDER_SAVE to trigger the error.
    Do a search in the CRM General Forum on how to use this.  Now I'm not familiar with that solution, but the techniques for manipulating transactions and using the BADI's available should be the same if the data is being saved as business transactions inside of CRM.
    Take care,
    Stephen

  • Enhance ERP Sales Order

    Hi Experts,
    I'm searching for detailed technical information how to enhance the ERP Sales Order.
    Let me describe the scenario:
    in ECC the Sales Order is already enhanced in the way that there are some custom fields on Item level under Additional Data B
    Now I want to make this fields also available in CRM.
    I have already executed the steps descriped in the .pdf attached to OSS 1224179 and enhanced the CRM view ERP_I/ItemDetails with corresponding custom fields.
    But two things are not working:
    the CRM fields are read-only and they don't display the data from ECC while displaying an already existing Sales Order.
    I think I have missed something. Any ideas?
    Best regards and thanks in advance,
    Sascha

    Hi Shaik,
    of course it is EHP4.
    Any other hints?
    Best regards,
    Sascha

  • Immediate Delivery Creation on Sales Order Save

    Hi,
    For one my scenario I want delivery to be created immediately after saving the sales order.
    For which i have set the immediate delivery'X' in the sales document type. But when i create the sales order, which is confirmed for today, delivery is not immediately created.
    Let me know what could be the possible reason for this and is there any other place i need to make additional settings?
    Thanks

    Hi there,
    I guess that materials will be maintained in separate storage loc to process immediate delivery scenarios in your company sothat item is confirmed for today.
    When immediate delivery is not happening, thenit means that the system is not calling the delivery creation prog immediately after order save.
    So in sales order prog MV45AFZZ put a code that if the order has to create immediate delivery (like rush orders SO, cash sale BV), system should check if the material is confirmed for today. If yes, it should call delivery creation prog SAPMV50A
    Regards,
    Sivanand

  • Enhancement in Sales Order

    hello
    experts
    i have a requirement that when i am creating a sales order with reference from a inquiry the quantity field will be grayed out.i.e. nobody will be able to change that quanity in item until the quanity is changed in inquiry
    plz help

    hi,
    you can create enhancement point in USEREXIT_FIELD_MODIFICATION, where you can change the property of fields.
    Program Name :  SAPMV45A 
    Include Name   : MV45AFZZ
    Exit :  USEREXIT_FIELD_MODIFICATION
    i.e
    IF  (   SCREEN-GROUP2  = 'LOO'
       AND SCREEN-NAME    = 'VBAP-PRCTR' ).
      SCREEN-INPUT = 0.
    ENDIF.
    Yogesh N

  • Enhance ERP Sales Order search

    Hello experts,
    I would like to know if it is possible to enhance the ERP Sales order search by adding new search criteria.
    Actually, this search criteria is a Z field in the ERP sales order ( In my case, a field displayed in the Additional data B tab at the item level of the ERP sales order)
    Have any of you implement such enhancement? Could you please give me any guidance?
    Thank you very much for your help.
    Best regards.

    Hi Shaik,
    of course it is EHP4.
    Any other hints?
    Best regards,
    Sascha

  • Enhancement for Sales Order

    In standard SAP sales order there is no field to refer the custom field  Z_ID  which is reference of internal orders. if the sales order has any free goods items then a check should be made against relevant item category.
    If free goods are there ZID should be maintained in the sales order if not the end user should be forced to enter the  mandatory Z_ID before saving the order.
    Free goods items can be known by item category  u2018ZAFGu2019  from VBAP
    I need to add the custom field Z_ID to vbap table and put logic in exit to handle and show an error message in va01 screen  saying "Z_ID is missing in line Item XXX"
    User exit : SAVE_DOCUMENT_PREPARE
    Please let me know how can i add custom field to additional data B tab in sales order.Thanks.
    Sanjeev
    Edited by: sanjeev.s on Jun 25, 2010 1:41 PM

    Hi Rajendra,
    I agree it asks for an additional field in 8459 screen, but is there any option we can implement with out using access key.
    Regards,
    Sanjeev

  • Automatic Plan Order Creation on Sales Order save

    Hi friends,
    We are having an requirement where Automatic Plan Order should be created on Sales Order saving.
    We have Material A in Plant 1000 & Plant 5000.
    Plant 5000 in plant where Manufacturing is carried out & Plant 1000 is service Plant.
    We are using Special Procurement key for Material A in 1000 Plant which triggers procurement from Plant 5000.
    When Sales Order is entered in Service Plant 1000, after saving Order Plan Order should be created in both Service Plant 1000 & Manufacturing Plant 5000 along with Sales order reference.
    I have tried using Strategy Type 81 but Plan Order is created while saving Order only in Service plant (1000), but with Procurement Type (E - In-house Production) & No Plan Order created in Plant 5000.
    Can you please guide me how to meet requirement?
    Thanks in advance.

    Hi Jiaul,
    Thanx for reply.
    I have already assigned the Special Procurement Key to Material A in Plant 1000.
    In Plant 1000 procurement type is F (External procurement)
    But when Plan Order is created after saving Sales Order it is created with Procurement type E (In house production).
    If I delete Firm Plan Order generated & run MRP for Sales Order / Item. It gives me required output generating Plan Order in both Plants.
    Regards,
    Rameshvar

  • Prevent Output type creation as Sales order save

    Hi,
    I have a requirement in which i have to chek certain conditions and on that basis i need to stop the creation of output type for Sales order. My code is written in Sales order user exit(Form SAVE_DOCUMENT). Please let me know how can i achieve this.
    The requirement routines are called before the user exit is called...so it does not seem to be possible to call routine afterwards.
    Is there a way in which we can calll the requirement routine again?? Or please suggest some other way
    Thanks
    Saurabh

    hello, friend.
    what are the conditions you are checking for?  and what would be your reasons for not creating an output type?
    not being an ABAPer, i cannot claim to be an expert.  but i think it is possible that instead of the user exit, you could program that the condition check be conducted from within the requirement itself.  the standard requirement "2" for output type BA00 checks for order confirmation, for example.  of course, the use of the requirement assumes the output type has been created, but will not be printed or be issued if the requirement conditions are not satisfied (the output indicator color will remain red).
    regards.

  • Automatic Billing on Sales Order Save

    Is there a way to trigger billing when a sales order is saved? We are using a billing plan and there is no PGI or delivery being created for the billing plan item. Billing should happen immediately when the sales order is saved.

    Dear Sir,
    Is there a way to trigger billing when a sales order is saved?  there is no PGI or delivery being created for the billing plan item. Billing should happen immediately when the sales order is saved.
    Thanks,
    Prateek Chopda

  • Enhancement in Sales order VA01/02

    Hello,
    When user puts reason for rejection for an item and saves the order, at that time you need to give a pop-up saying " Please enter rejection date in Sales Text (DD.MM.YYYY) "
    I need an enhancement for va01/02 to do this...
    How to do this?..
    Thanks!.

    dear nivetha,
    you can use this Funciton Module - EXIT_SAPFV45S_005 for your purpose of displaying the popup message.
    To give the popup message use the FM POP_UP TO_CONFIRM where in you need to give the title of the message and Yes and No button names and then you would have to handle when user clicks on these buttons.
    through your User Command.
    When 'YES'
    Continue.
    when 'NO'
    Call screen 0.
    Hope this helps you.
    Encourage others to answer your queries by suitably rewadring them
    Thanks
    Venugopal

Maybe you are looking for

  • I deactivated my apple id and want to add another id to my icloud acc,how can I do this without deleting all my data from my ph?

    There is an option to delete the account, but then it says it will delete all my data, which I dont want to happen.

  • Unable to launch iTunes 10.4

    I am able to install iTunes 10.4 but when I try to launch it, nothing happens. Task Manager shows iTunes.exe for a few seconds then it disappears. I've tried reinstalling iTunes multiple times following this guide http://support.apple.com/kb/HT1923.

  • HPSM web services

    Hi, I'm trying to use HPSM web service , so i tried to test the wsdl file in soap ui tool. I got an error like 'socket closed'. Is HPSM trial version 9.32 supports web service? Can any one help on this??

  • BT Vision recordings menu gone AWOL

    Just went to watch some recorded programs and the recordings menu has disappeared! Tried recording a program and it says to wait while the recording menu is set up but nothing happens, Any ideas? Its a silver box (not sure of model). Cheers

  • TabNavigator gets confused?

    Using SDK 3.4.1 I'm running into an issue where I have x number of tabs and lose the ability to switch between tabs without selecting the same tab twice.  For example, if I have 6 tabs: (tab1)..tab2..tab3..tab4..tab5..tab6 (tab1) is my currently acti