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

Similar Messages

  • 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

  • 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

  • Error Message"ERP adapter is called" for CRM sales order replicate to ERP

    Hi All:
    In our implemenation project, we use CRM7.0 stanard sales order type TA for sales order creation. And we did all the right configuration for sales order at CRM side. CRM sales order can be saved correctly.
    But this CRM sales order couldn't be replicate into ERP, as in Middleware the corresponding BDoc message is yellow light and Error messsage show "ERP adapter is called".
    Is anyone have same issue before, please kindly advise how to handling this issue and prossibile solution?
    Best regards:
    Kai

    Hi Kai,
    Is there any queue entry on transactions : SMQ1/SMQ2 with SYSFAIL status. If so, what is the error message it is showing?
    Are you able to process the order further? Or getting an error message like "Document being distributed" or something?
    Good luck,
    Aaru

  • 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

  • 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

  • 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.

  • Add fields to transaction VOV8  - Sales Order types maintaines

    Hi,
    I want to know if it is possible to add new fields to view V_TVAK (threw table TVAK), and then add them also to the view in transaction VOV8  for a sales order type.
    Thanks naama.

    Hi Nilmini,
    In My case, I have added custom fields to MDC change screen by using /AFS/MDC_CHANGE_CUSTOM_FIELDS but its not appearing in Grid list display. Would like to appreciate if you can Help me to achieve this.
    Regards,
    Jelli

  • Webdynpro ---- BAPI/FM used in service call to get sales order

    Hi
    I need to have a main view which contain an inputfield to insert a sales order, then check whether the sales order is existed in database, at last, pop up a message box to show the feedback.
    So which FM or BAPI shall I have to use during service call?
    Best Regards!
    Stephanie

    Hi,
    Use the BAPIs
    To create -
    BAPI_SALESORDER_CREATEFROMDAT2
    To change -
    BAPI_SALESORDER_CHANGE
    I assume that you are trying to create a sales order or You want to change the salesorder.
    For the sales order we need to write a selelct query on the check table for the existence of the sales order.
    Please try to use the SE37 Tcode to view all the BAPIs related to salesorder.
    Are you using WD for Java Or ABAP or BSP.
    Please a\let me know in case of  any issues.
    Regards
    Lekha

  • BAPI/FM used in service call to get sales order

    Hi
    I need to have a main view which contain an inputfield to insert a sales order, then check whether the sales order is existed in database, at last, pop up a message box to show the feedback.
    So which FM or BAPI shall I have to use during service call?
    Best Regards!
    Stephanie

    Hi Stephanie,
    Both the replies given above are correct. Service call is nothing but a method in the Component Controller/Custom Controller of WD Component. It internally calls a function module and does all the required binding to the Context nodes.
    In your scenario, even if you use a service call, finally you will have to check the output and invoke a method of the message manager.
    Writing a simple query onEnter of the input field should be the best for you.
    select single vbeln
    from vbak
    into lv_vbeln
    where vbeln = <value of input field> .
    if sy-subrc = 0.
    * show message using message manager
    else.
    endif.

  • Inventory transaction:ship sales order to the customers

    I know there is Receiving Transactions in docs of inventory user Guide.but I don't know how to use when ship sales order to the customers

    You don't ... because you're shipping, not receiving, unless you are referring to drop shipments which contain a logical receipt element.
    Instead you should be looking at the WSH shipping schema in the relevant eTRM and tables such as:
    wsh_new_deliveries
    wsh_delivery_details
    wsh_delivery_assignments
    wsh_picking_batches
    wsh_trip_stops
    wsh_delivery_legs
    wsh_trips
    Regards,
    Jon

  • MB24-5 SAP TRANSACTION - FIELD "SALES ORDER" EMPTY

    Hi Consultants,
    could you please have a look.... why the program under the transaction MB25 doesn't make the Sales Order to appear in the output. The standard program for MB24-25 is RM07RESL.
    Thankyou in Advance

    Dear,
    It is standard transaction and standard transactions you can say 100% error free.
    System will show sale order in respective field, if any production order created with reference to sale order. rest all reservation will have empty field of sale order.
    Thanks
    Muhammad Ashfaq

  • Joins between transactions and sales order tables?

    Hi all,
    SELECT ott.NAME,
                 msi.organization_id
      FROM apps.mtl_material_transactions mmt,
                apps.mtl_system_items_kfv msi,
                apps.oe_order_headers_all ooha,
                apps.oe_order_lines_all oola,
                apps.oe_transaction_types_tl ott
    WHERE     mmt.transaction_type_id = 12
           AND mmt.inventory_item_id = msi.inventory_item_id
           AND mmt.organization_id = msi.organization_id
           AND ooha.header_id = oola.header_id
           AND oola.line_id = mmt.trx_source_line_id
           AND oola.inventory_item_id= msi.inventory_item_id
           AND ooha.order_type_id= ott.transaction_type_id
           AND mmt.inventory_item_id = 1234
           AND msi.organization_id = 20
    And i don't have inventory item id with this transaction_type_id = 12

    Transaction_type_id 12 is a "Receive from Intransit".  I don't think those will join to sales orders.  What are you trying to accomplish?

Maybe you are looking for

  • When I click on the mail icon on my iPad 2 the mail accounts do not show up.

    iPad 2 32GB Version 8.1.1 When I click on the Mail icon, the mail accounts do not appear. The screen is blank except in the he upper right corner of the screen I can see mini icons: flag, folder, file box, arrow, and pad/pencil mini icon. I've been h

  • Is the Sony ARW raw files supported in Adobe Photoshop Elements 10?

    I downloaded and installed CameraRaw_8_8 and installed it, restarted my Adobe Elements 10, but nothing seemed to change.  My Adobe Elements 10 still does not allow me to select a ARW raw file photo.  Am I missing something?

  • Instance name and Var for Input Text fields

    I have several Input Text fields, as a form, linked to a PHP script for which I require Var's for each field. But I also need Instance names for each field, so I can fix the tabIndex. Yet, everytime I test my movie, the text fields have their Paths (

  • Document sizes and jpeg compression / quality

    In relation to Photoshop, in the status bar at the bottom it displays what it calls "document sizes".  Would someone be able to clarify can this be used to determin the quality of a jpeg file ? For example if I open up a jpeg with no compression (fil

  • Premiere 12  Filmmenü

    Ich kann keine Fimmenüs mehr hochladen. Auch in schon fertigen Filmen mit vorhandenem Menü kann dieses nicht aufgerufen werden. Eine Aktualisierung des Programms habe ich heute vorgenommen. Danach funktionierte es auch nicht. Nun wollte ich Premiere