Update service order fileds using exits or BADI

Hi,
while creating service order some fileds need to be populated like INGPR, ILART,KOSTL etc. When I create service order these fileds should be populated automatically but this is not happening . Kindly suggest anu BADI or user exit
Regards,
Ram

Thanks Naresh, it helped...
Can you please help on the below:
1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01  for sales order conformation/acknowledgement.
3. Need a BADI after the EDI Sales order is saved.
Thanks in advance
Vijay

Similar Messages

  • Date Error on the Service Order while using service product

    Hi PM experts,
    I am working on the scenario resource-related billing, using service product in the service order created from a service notification linked to a contract with service product as the line item.  service product is the material of DIEN material type.
    when i was trying to save the service order created using transaction code-IW31, i am getting the  Error Message:
    " *SYS:Date 00.00.0000 not expected*".
    This error started only yesterday, and it was not there before. Basis team has confirmed that they have not done any new
    updates to the system.
    Had anyone encounered this problem before, if yes kindly let me know the solution and the steps to resolve it.
    thanks for the help.
    regards,
    rajaraman

    Hi,
    Here is the error description with message number,
    SYST: Date 00.00.0000 not expected.
    Message no. FGV004
    As an update to this thread, while searching for the reasons for the problem, i found that the characteristics used in the
    warranty class were carrying default date value as 00.00.0000.  can this be a reason for getting this error as the service
    product number which is a DIEN material type is linked to the master warranty which is in turn assigned to the equipment.
    Hope this information helps.
    regards,
    rajaraman

  • I open Firefox. It tries to install an update. Updating fails and I get a message" "Another copy of Firefox must be open. Close it. " A second copy is not open a far as I'm concerned. I have to refuse the update in order to use Firefox.

    I don't know what more I can tell you except that I have to refuse an update in order to use Firefox.

    ■ Have a look at these two articles that may help
    # [[firefox hangs]]
    # [[Software update failed]]
    Take care if you update by the last resort method mentioned in the linked article, if you delete settings it will remove all bookmarks etc from all versions of firefox

  • I want to update new tasks by using exit QQMA0014 the notification  qm01

    Hi ,
      i want update some mandatory task from custom table while creating or changing the QM notifiction through tcode QM01 or QM02 by using user exit QQMA0014. am trying to update but its giving one popup message "update was terminated received from author '
    Could you pls provide me solution to update the tasks by using exit. Thanks in advance.

    Please specify your requirement clearly. Are you updating a custom table of any fields in the standard table ?

  • How to update Sales Order status using  BAPI_SALESORDER_CHANGE

    Hi,
    I want to update Sales Order status using BAPI_SALESORDER_CHANGE, this BAPI is called from middle ware, but there is no parameter to pass the status value to this function, please help me how to update sales order status using BAPI only.
    Thanks
    RK

    Hi,
    Can u give me details of what status u would like to update in sales order.
    If we are able to update the status from VA02, Then BAPI will assist for the same.
    Regards.

  • Regarding purchase order pricing conditions using exits or badi

    Hi friends can anybody help me and  let me know the solution.
    Please explain how the change in the pricing condition amount value should update the cost in PO.
    and which EXITS or BADI use for .
    if anybody have the solution send me reply AS SOON AS
    Thanks,
    srinivas

    OK
    But the problem is pricing conditions like transport cost. Because when I do a new purchase order the system use last transport cost and i don´t want it.
    What I want (if possible) with infoupdate is:
    - Update ( PBXX & PB00)
    - Don´t update (other conditions like transport).
    Thanks....

  • Updating service order status in CRM from R3 after the invoice is created

    Hi all ;
    I need to update the user status of an service order in CRM when the invoice related to it in R3 is created, so I have already know  the service order no .
    How can i achieve this by sending BDOC from R3 to CRM? Which BDOC should i use?and is it enough to fill only status data in BDOC?
    Thanks.

    Hi sushant,
    When the R/3 Order status is set to 'Completed' then the system status for order in CRM system is automatically changed to 'Completed'.
    So firstly check whether the User status ('Completed')in SAP CRM has the Business transaction event set to 'FINI'. So when the system status is set to 'Completed' the user status will also change to 'Completed.'
    Secondly even check what are the statuses of item in the Orders.
    regards,
    Anubhav

  • Service Order Operation User exit

    Hi,
    I am looking for user exit to validate operation data in sevice order on entry and while saving.
    I have checked IW01 user exits but enable to find the correct one.

    > Hi,
    >
    > I am looking for user exit to validate operation data
    > in sevice order on entry and while saving.
    >
    > I have checked IW01 user exits but enable to find the
    > correct one.
    Hi,
    This is my first post. I think you can also use function EXIT_SAPLCOIH_009. This is fired on any of maintenance order/service order save event.
    Regards,
    Abhijit

  • Update Service order status based on Sales order billing status

    Hi All,
    Pls give some suggestions for below scenario.
    Sales order will be created from Service order.
    Service order should get completed once the sales order is billed fully.
    Billing status is available in Sales order header. When ever billing is created, sales order status get updated.
    Where I need to have the trigger (User exit etc...) to update the service order status w.r.t sales order billing status.
    Rgds,
    Senni.B

    Hi,
    As standard the system update service status, maybe some config is missing. Please check the copy control conditions in SD.
    Hope this help.
    Regards.

  • PReq not generated from Service Order SM03 using Control Key SM02

    Hi,
    The PReq is not getting generated for Control Key SM02 for service order SM03. I am using PReq generation as "Immediately". The issue is I am filling all the required fileds in the External Processing Operation Popup Screen & saving my Service Order. After that when i check the Document flow - there is no Preq number & in Actual Data for External opration, i find the fileds i have filled in the Preq popup screen as blank (such as Material group, Purc. grp, cost element, vendor etc). I have checked the config also, but cant find any clue.
    Thanks.

    did you check the control key settings for sm02?
    is it happening for this control key with other order types nd sm03 order type with sm03 ( external services ) control key?
    is it possible to replicate it? it is also possible tht the order didnt get saved as the user didnt see some warning info in the bottom bar

  • Service order creation using bapi with repair order number

    Hi experts,
    Pls suggest me a BAPI to create a service order for those repair orders where a PGR has been done(for return delivery type : LR).
    The plant should be 0260 with storage location wh01 and item category ZRRE
    Creation of a service order with repair order type SM03 is not allowed in iw31.
    thanks and regards,
    Vijayb.

    Hi prakash,
    Thank u for the BAPI
    But an error is being displayed saying that the REFURBISHMENT ORDERS CANNOT BE PROCESSED USING BAPI.
    ERROR DURING PROCESSING OF BAPI METHODS.
    This is while u pass the order type as either ZM03 or SM01or SM02 or SM03.
    pls help me on that.
    thanks and regards,
    Vijayb.

  • How to change Service order quantity using BAPI/FM

    Hi All,
    Can any body tell me how to change the Service Order quantity (in IW32) using a FM or a BAPI.
    I tried using the BAPI: BAPI_ALM_ORDER_MAINTAIN but I am unable to change the quantity. May be I might be missing some parameter. If anybody has done this please let me know the parameters that needs to be passed or if there is any other way out.
    Points will be rewarded to useful answers!!
    Thanks,
    Susanth.

    Hi!
    I have used this BAPI.read the documentation properly and after calling this bapi call BAPI_TRANSACTION_COMMIT then only expected results com n get saved.
    for ex:
    call function 'BAPI_ALM_ORDER_MAINTAIN'
        tables
          it_methods              = itab_methods
          it_header               = itab_header
      IT_HEADER_UP            =
          it_header_srv           = itab_header_srv
      IT_HEADER_SRV_UP        =
          it_userstatus           = itab_userstatus
          it_partner              = itab_partner
      IT_PARTNER_UP           =
          it_operation            = itab_operation
      IT_OPERATION_UP         =
          it_relation             = itab_relation
      IT_RELATION_UP          =
          it_component            = itab_component
      IT_COMPONENT_UP         =
          it_objectlist           = itab_objectlist
      IT_OBJECTLIST_UP        =
          it_olist_relation       = itab_olist_relation
          it_text                 = itab_text
          it_text_lines           = it_text_lines
          it_srule                = itab_srule
      IT_SRULE_UP             =
          it_tasklists            = itab_tasklists
          extension_in            = itab_extension_in
          return                  = itab_return
          et_numbers              = itab_et_numbers
      call function 'BAPI_TRANSACTION_COMMIT'
       exporting
         wait          = 'X'
    IMPORTING
      RETURN        =
    reward points if helpful.

  • Plant maintanance service order creation using Sales order

    Hi,
    We have created plant maintanance service orders  using requiremnt class in sales . so in sales order schedule line the service order is created. but in some sales orders it will show the service order number and when we double click on that shows an error service order does not exist. please let us know what would be the problem.
    Thanks & regards,
    Rohit

    Hi ROHIT,
    First check do you have authorization for (IW32 , IW33) and Check your number ranges in OION and check is there any status is blocking  that number.
    Regards
    Nishad

  • Updating service orders

    Hi all,
    I am using the following function to add partners
    to a service order.
    Function : CRM_PARTNER_MAINTAIN_SINGLE_OW
    The function is able to add an new entry. Can I use the same function to modify a partner. Or do I use another
    function..
    Thanks & Regards,
    Abhijeet A Kharade

    Hi Abhijeet,
    Use CRM_ORDER_MAINTAIN function module.
    Refer the following code:
    *& Report  YAM_TEST_CRMORDERMAINTAIN                                   *
    REPORT  yam_test_crmordermaintain               .
    DATA : lit_partner          TYPE crmt_partner_comt,
           wa_partner           LIKE LINE OF lit_partner,
           ls_input_field       TYPE crmt_input_field,
           ls_input_field_names TYPE crmt_input_field_names,
           lt_input_field_names TYPE crmt_input_field_names_tab,
           lt_input_fields      TYPE crmt_input_field_tab.
    DATA : lit_header_guid TYPE crmt_object_guid_tab,
           wa_header_guid  LIKE LINE OF lit_header_guid.
    * Populate the Input Field Structure
    CLEAR ls_input_field_names.
    ls_input_field_names-fieldname = 'PARTNER_FCT'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'PARTNER_NO'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'NO_TYPE'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field_names-fieldname = 'DISPLAY_TYPE'.
    INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_input_field-ref_guid    = '00000000000000000000000000000000'.
    ls_input_field-ref_kind    = 'A'.
    ls_input_field-objectname  = 'PARTNER'.
    ls_input_field-field_names = lt_input_field_names.
    INSERT ls_input_field INTO TABLE lt_input_fields.
    * Bill To Party
    MOVE: '00000000000000000000000000000000'  TO wa_partner-ref_guid,
         'A'        TO wa_partner-ref_kind,
         '0001'     TO wa_partner-ref_partner_handle,
         '00000003' TO wa_partner-partner_fct,
         '10000073' TO wa_partner-partner_no,
         'BP'       TO wa_partner-no_type,
         'BP'       TO wa_partner-display_type,
         'X'        TO wa_partner-mainpartner.
    APPEND wa_partner TO lit_partner.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
           EXPORTING
                it_partner = lit_partner
           CHANGING
                ct_input_fields = lt_input_fields
           EXCEPTIONS
                error_occurred = 1
                document_locked = 2
                no_change_allowed = 3
                no_authority = 4
                OTHERS = 5.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    wa_header_guid = '00000000000000000000000000000000'.
    APPEND wa_header_guid TO lit_header_guid.
    Where ever I have passed the value for GUID as '00000000000000000000000000000000', you need to pass the GUID of your service order.
    <b>Reward points if it helps.</b>

  • How to update Prodcution order qty using /AFS/BAPI_GOODSMVT_CREATE

    Hi Friends,
    I need your help desperately,
    I am using the BAPI, '/AFS/BAPI_GOODSMVT_CREATE' its working fine but it gets updated only Inv management / warehouse management perfectly, but my requirement is this return qty to be adjusted against the production order material. (MB1A with movement type '262' - for returns)
    I need to know any other parameters to be included in the BAPI to update the production order also.
    I have attached the code.
    please reply ASAP.
    Thanks
    Shankar
    *Header Structure
      st_gm_code-gm_code          = '03'. "
      st_gm_header-pstng_date     = st_gm_header-doc_date = sy-datum.
      SORT itab BY aufnr matnr j_3asized.
      LOOP AT itab.
        itab_afs_gm_itemx-material     = itab-matnr.
        itab_afs_gm_itemx-plant        = itab-werks.
        itab_afs_gm_itemx-stge_loc     = itab-lgort.
        itab_afs_gm_itemx-batch        = itab-new_charg .
        itab_afs_gm_itemx-stock_cat    = itab-j_4kscat.
        itab_afs_gm_itemx-stck_type    = 'F'.
        itab_afs_gm_itemx-move_type     = '262'.
        itab_afs_gm_itemx-entry_qnt     = itab-j_3aerfmg  .
        itab_afs_gm_itemx-grid_value   = itab-j_3asized.
        itab_afs_gm_itemx-orderid = itab-aufnr.
        APPEND itab_afs_gm_itemx .
      ENDLOOP.
      CALL FUNCTION '/AFS/BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header             = st_gm_header
        goodsmvt_code               = st_gm_code
    IMPORTING
       goodsmvt_headret            = st_gm_headret
       materialdocument            = mat_doc
       matdocumentyear             = doc_year
      TABLES
        afs_goodsmvt_item           = itab_afs_gm_itemx
        return                      = bapi_return .
      IF sy-subrc = 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        itsoh-mat_doc = mat_doc.
        itsoh-doc_year = doc_year.
        APPEND itsoh.
        status = '06'.
      ENDIF.

    u can use  'BAPI_SALESORDER_CHANGE'
    and see the following link
    http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE
    Edited by: krupa jani on Nov 25, 2008 11:15 AM

Maybe you are looking for

  • How can i connect my macbook air with lion os to a windows 7 pc

    Hi I wondered if anyone could help me as i am new to apple pc's I have recently got a macbook air and i am trying to have file sharing with both pc's unfortunately whatever i try does no allow both pc's to see each other. If i try the connect to serv

  • Some devices are not installed

    Hello:       I think that I already installed all the drivers in my W520 but it still showing that some devices are not installed In "Other devices" I have the folowing four entries: -  Base system device - Biometric Coprocessor - F5521gw - PCI Seria

  • Technical details on 24" iMac HDD

    hi, where can i find technical details on the hard drive of the 24" iMac? I don't own one. i wanted to know what make and model is the 750GB hard drive option please. Thanks!

  • Exchange rate to be the copied from order to  billing

    Hi Friends I have a scenario I am doing an export sale...and have taken the exchange rate type as G which is coming from the customer master with value as ( 1EUR = 54 INR). When I do the billing the g is picked up for the pricing data but for the acc

  • Some edited pictures are un-shareable

    Hi everyone, I have been trying to solve this for the past couple of days and read all the threads on the subject. Since I upgraded (in August) my wife's iMac to Snow Leopard and installed iPhone 9 version 8.1 (415) she is having the weirdest issue w