BAPI or FM to assign / create service master in maintenance order

Hi Experts,
Can you please help which BAPI or FM to assign / create service master in maintenance order during the creation of order.
Thanks,
Suresh

Hi Suresh Babu,
Look at BAPI_ALM_ORDER_MAINTAIN from IBAPI_ALM_ORDER function group.
As customer enhancement you can use IBAPI_ALM_ORD_MODIFY.
In help documentation you can find more information with examples.
Bear in mind that using the BAPI to process the order data cannot support all the functions of the transaction.
Regards
Pawel Pyda

Similar Messages

  • How Can I create service master

    Hi Gurus,
    I want to create a service master corresponsing to each serial no/equipment( which gets automatically created at the time of GR . Can you please suggest how I can create a service master in the background at the time of GR.
    Thanks
    Tausif

    Hi,
    You can create the Service Master using AC03. Give your Equipment no. While creating Service master. Defaulflt it will be looking like tihs %1.
    If you dont mention the service no System will generate Internal No same as the material master.
    Hope this will help you.
    Reg,
    Ashok
    Reward if useful.

  • Where we have to enter service master in sales order

    Hi guys,
    This is Emmanuel SD consultant, where we have to enter service master in sales order. If possible please help

    I created service master with t.code (Ac01) and saved it. agte careting the the service master where i have to enter in sales order. i have to enetr in line item place or any other place in sales order

  • Create partners for a maintenance order ( IW32 transaction)

    Hello:
    I need create partners for a maintenance order ( IW32 transaction) in a program.
    I'm using IBAPI_ALM_ORDERPARTNER_MAINT but it does not do anything.
    when,in partners data, an error exists, this is returned but when all is correct, bapi does not do anything.
    help me please.
    Thanks's
    REPORT  ZPM_PRUEBA_BAPI_INTER.
    DATA G_PAR TYPE I_PARNR.
    parameters p_aufnr like aufk-aufnr.
    SELECT-OPTIONS: S_PAR FOR G_PAR.
    parameters p_id(2).
    data lv_mens(255)   TYPE c.
    data: BEGIN OF lt_partner OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER.
    data: end of lt_partner.
    data: BEGIN OF lt_partner_UP OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER_UP.
    data: end of lt_partner_UP.
    DATA: BEGIN OF LT_ERR_COM.
           INCLUDE STRUCTURE BAPIRET2.
    DATA      END OF  LT_ERR_COM.
    *data begin of lt_errors occurs 0.
    *       include structure BAL_S_MSG.
    *data end of lt_errors.
    data: lt_errors type standard table of BAL_S_MSG with header line.
    start-of-selection.
      lt_partner-PARTN_ROLE = p_id.
    *  lt_partner_UP
      LOOP AT S_PAR.
        lt_partner-PARTNER = S_PAR-LOW.
        APPEND lt_partner.
      ENDLOOP.
    *1038062
      CALL FUNCTION 'IBAPI_ALM_ORDERPARTNER_MAINT'
        EXPORTING
          IV_ORDERID                           = p_aufnr
    * IMPORTING
    *   EV_CREDITLIMIT_CHECK_NECESSARY       =
      TABLES
        IT_PARTNER                           = lt_partner
    *   IT_PARTNER_UP                        =
    *   ET_PARTNER                            =
          ERRORS                               = lt_errors
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
       RETURN        = LT_ERR_COM
      loop at  lt_errors.
    *    write: /2 lt_errors-MSGV1,lt_errors-MSGV2,lt_errors-MSGV3,lt_errors-MSGV4.
           CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID              = lt_errors-msgid
    *           LANG            = '-D'
            NO              = lt_errors-MSGNO
            V1              = lt_errors-msgv1
            V2              = lt_errors-msgv2
            V3              = lt_errors-msgv3
            V4              = lt_errors-msgv4
          IMPORTING
            MSG             = lv_mens
          EXCEPTIONS
            NOT_FOUND       = 1
            OTHERS          = 2.
         WRITE lv_mens
      endloop         .

    Hi,
    First, you can/should not use the FM IBAPI_ALM_ORDERPARTNER_MAINT. This FM is part of the service order BAPI called BAPI_ALM_ORDER_MAINTAIN and this is the correct FM to call for your requirement.
    A released BAPI by SAP will "survive" any upgrade. This is certainly not true for the mentioned FM IBAPI_ALM_ORDERPARTNER_MAINT, for instance.
    Please read the documentation for FM BAPI_ALM_ORDER_MAINTAIN either from SE37 (use language EN) or from transaction BAPI. There are sections for partner handling there (you must fill both the IT_PARTNER and the IT_PARTNER_UP tables for instance.
    This thread here on SDN will be of interest for solving your problem: Re: Deleting partner with BAPI_ALM_ORDER_MAINTAIN does not work
    If you find this answer of help then award some points so others can benefit from the answer as well.
    Best regards, Johan

  • Create partners for a maintenance order

    Hello:
    I need create partners for a maintenance order ( IW32 transaction) in a program.
    I'm using IBAPI_ALM_ORDERPARTNER_MAINT but it does  not do  anything.
    when,in partners data, an error  exists, this is returned but when all is correct, bapi does not do anything.
    REPORT  ZPM_PRUEBA_BAPI_INTER.
    DATA G_PAR TYPE I_PARNR.
    parameters p_aufnr like aufk-aufnr.
    SELECT-OPTIONS: S_PAR FOR G_PAR.
    parameters p_id(2).
    data lv_mens(255)   TYPE c.
    data: BEGIN OF lt_partner OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER.
    data: end of lt_partner.
    data: BEGIN OF lt_partner_UP OCCURS 0.
            INCLUDE STRUCTURE BAPI_ALM_ORDER_PARTNER_UP.
    data: end of lt_partner_UP.
    DATA: BEGIN OF LT_ERR_COM.
           INCLUDE STRUCTURE BAPIRET2.
    DATA      END OF  LT_ERR_COM.
    *data begin of lt_errors occurs 0.
    *       include structure BAL_S_MSG.
    *data end of lt_errors.
    data: lt_errors type standard table of BAL_S_MSG with header line.
    start-of-selection.
      lt_partner-PARTN_ROLE = p_id.
    *  lt_partner_UP
      LOOP AT S_PAR.
        lt_partner-PARTNER = S_PAR-LOW.
        APPEND lt_partner.
      ENDLOOP.
    *1038062
      CALL FUNCTION 'IBAPI_ALM_ORDERPARTNER_MAINT'
        EXPORTING
          IV_ORDERID                           = p_aufnr
    * IMPORTING
    *   EV_CREDITLIMIT_CHECK_NECESSARY       =
      TABLES
        IT_PARTNER                           = lt_partner
    *   IT_PARTNER_UP                        =
    *   ET_PARTNER                            =
          ERRORS                               = lt_errors
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = 'X'
    IMPORTING
       RETURN        = LT_ERR_COM
      loop at  lt_errors.
    *    write: /2 lt_errors-MSGV1,lt_errors-MSGV2,lt_errors-MSGV3,lt_errors-MSGV4.
           CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            ID              = lt_errors-msgid
    *           LANG            = '-D'
            NO              = lt_errors-MSGNO
            V1              = lt_errors-msgv1
            V2              = lt_errors-msgv2
            V3              = lt_errors-msgv3
            V4              = lt_errors-msgv4
          IMPORTING
            MSG             = lv_mens
          EXCEPTIONS
            NOT_FOUND       = 1
            OTHERS          = 2.
         WRITE lv_mens
      endloop         .
    help me please.
    Thanks's

    Hi,
    First, you can/should not use the FM IBAPI_ALM_ORDERPARTNER_MAINT. This FM is part of the service order BAPI called BAPI_ALM_ORDER_MAINTAIN and this is the correct FM to call for your requirement.
    A released BAPI by SAP will "survive" any upgrade. This is certainly not true for the mentioned FM IBAPI_ALM_ORDERPARTNER_MAINT, for instance.
    Please read the documentation for FM BAPI_ALM_ORDER_MAINTAIN either from SE37 (use language EN) or from transaction BAPI. There are sections for partner handling there (you must fill both the IT_PARTNER and the IT_PARTNER_UP tables for instance.
    This thread here on SDN will be of interest for solving your problem: Re: Deleting partner with BAPI_ALM_ORDER_MAINTAIN does not work
    If you find this answer of help then award some points so others can benefit from the answer as well.
    Best regards, Johan

  • Deletetion of  service PR from maintenance order

    Hi Experts ,
    Is it possible to delete service PR from maintenance order. If it is created from order due to some problem I want to delete it ,so is it possible ?
    With best regards,
    AVI DDS.

    Hi
    Deletion of PR from Maintenance Order is not possible because the PR is created automatically
    This PR will get deleted automatically when you cancel//teco/complete the order
    Otherway around is you can always block the PRs
    Regards
    Kartik

  • Assignment of service master & component

    Hi PM experts,
    Would anyone please clear my following doubts----
    1. whether service master can be assigned to any internal operation or any sub-operation?
    2.Whether any components can be assigned to any sub-operation?
    3.whether screen template for overall completion confirmation is set for order type or user?
    4.can we re-issue a permit assigned to a maintenance order?
    please try to explain in details
    rgds
    rajib

    hi
    1.you can enter the service master for internal operation provided control key has specified as service ie PM05.you cannot plan service or material for sub operation .
    3.screen templates are created for plant and order combination ,which can be specified for user also
    4.i think re issuing the work permit is not possible
    regards
    thyagarajan

  • Assignment of Service master records

    Hi,
    Can I assign service master records to a company code or to a plant (just like Item s?), if so, how can I view the current service master records that are assigned to a specific company code or plant?

    Hi,
    Service master is a master data like material master, vendor master,G/L master &  HR master.But in the case of service master creation,  Service Category , service group/material group & valuation class play vital role which needed most.You can links material group for service  to valuation class of service in t.code: OMQW & the account determination for service which is without material master are done where  G/L accountu2019s are assigned with respected to material group basis of service.
    Service master is at client level not assigned to any company code or any plant. You can check the service master created list in t.code: AC06.
    Regards,
    Biju K

  • BAPI or FM Required to create Material Master

    IS there any BAPI or Function module avaiable in SAP to create Material Master.
    The following Two BAPIs uses Call transaction, which I dont want.
    BAPI_RETAILMATERIAL_CREATE 
    BAPI_STANDARDMATERIAL_CREATE
    Please let me know if any other Function module or BAPI Avaiable in the system.
    Thanks
    Aman

    Yep,  this one works pretty good.
    call function 'MATERIAL_MAINTAIN_DARK'
             exporting
                  sperrmodus                = ' '
                  kz_prf                    = 'W'
                  max_errors                = ' '
                  p_kz_no_warn              = 'X'
                  kz_verw                   = 'X'
                  kz_aend                   = 'X'
                  kz_dispo                  = 'X'
                  kz_test                   = ' '
                  flag_muss_pruefen         = ' '
                  call_mode                 = 'ACT'
             importing
                  number_errors_transaction = numerror
                  matnr_last     = last_matnr
             tables
                 amara_ueb      = i_mara    "Basic Data
    *             amakt_ueb      = i_makt    "Descriptions
                 amarc_ueb      = i_marc    "Plant
    *             amard_ueb      = i_mard    "Storage Location
    *            AMFHM_UEB      = I_MFHM    "Production Tools
    *             amarm_ueb      = i_marm    "Units of Measure
    *            AMEA1_UEB      = I_MEA1    "Internal Mangagement -  EANs
    *             ambew_ueb      = i_mbew    "Accounting/Costing
    *             asteu_ueb      = i_steu    "Tax Data
    *             astmm_ueb      = i_steumm  "Tax Data
    *            AMLGN_UEB      = I_MLGN    "Warehouse Data
    *            AMLGT_UEB      = I_MLGT    "Storage Type Data
    *            AMPGD_UEB      = I_MPGD    "Change Documents
    *            AMPOP_UEB      = I_MPOP    "Forcast Parameters
    *            AMVEG_UEB      = I_MVEG    "Total Consumption Data
    *            AMVEU_UEB      = I_MVEU    "Unplanned Consumption Data
    *             amvke_ueb      = i_mvke    "Sales Data
    *             altx1_ueb      = i_ltx1    "Sales Text
    *            AMPRW_UEB      = I_MPRW    "Forcast Values
                 amfieldres     = i_delfields
                 amerrdat       = i_errors
             exceptions
                  kstatus_empty             = 01
                  tkstatus_empty            = 02
                  t130m_error               = 03
                  internal_error            = 04
                  update_error              = 05
                  too_many_errors           = 06.
    Regards,
    Rich Heilman

  • Service Category Error in Create Service Master Record - AC03

    Hi,
    I'm trying to create a new service master record. When I select  service category "SERV service : purchasing" from the list I get the error "Missing Authorization : Create Service SERV"
    Please help.
    Regards,
    Sriram

    Please use transaction code SU53 to know the object name which is missing in to your profile.
    Once u will get the access of this Object, u will be able to post the SES.
    Please take help from BASIS team.
    Edited by: Manish Kumar Agarwal on Jul 3, 2009 1:38 PM

  • SC-Cost Assignment Create Asset Master Button Hide

    Hi All,
    We are using SRM 5 SP013.
    We have a requirement to hide the 'Create Asset Master' Button under cost assigment tab ( when we select Asset) and to make the Asset class field display mode..
    I used the BADI BBP_UI_CONTROL_BADI ( method BBP_SC_UI_CTRL). For hiding , I used the field ASSET_BUTT and for Asset class, I used the field GS_ASSET_C-ASSET_CLASS.
    But nothing worked out.
    Could you please help me? Am I in right direction or missing something.
    Regards,
    Nikhil

    Hi,
    You are certainly using the right BADI and field name.
    In the BADI, you should set the export parameter as CV_INVISIBLE = 'X' (i.e. invisible) and CV_INPUT_READY= ' ' (i.e. display) for the 2 fields as required. And also activate the BADI.
    If nothing works still, report to SAP support.
    Regards.
    YS

  • Service Master for Maintenance

    Hi MM Consultants
    My client wants to know SAP Ability to record the reasons for the change of maintenance venor for the asset in creating service PO.
    for eg for an asset in AMC i choose a particular vendor for creating service PO and latter change the vendor i need to
    1. Track the vendor changes.
    2. Also need to know what master datas a service master can handle from asset maintenance point of view such as asset details, details of maintenance services etc..
    Please Help
    Thanks
    Jeyashankar

    HI all
    Thanks for reply i wanted to make it clear
    I have a equipment for eg a Fork lift and i am giving AMC to a Vendor X and i am not satisfied  by their service and changing the AMC to another vendor Y.
    Where can i track in the service master or service PO for that equipment that the reason for change in vendor for that asset.
    Thanks
    Jeyashankar

  • Automatic creation of service notification for maintenance order

    hi,
    I created one new document type (SR) as service requestion in material management.
    Then i create maintenance order for service and attached service master. System generated PR. Where document type to be given to get SR instead of PR.
    Kindly explain
    Regards
    sathish. R

    Hi,
    Please check the indicatorsin Actual cost/cost sales  and Valid recevivers in settlement profile.
    If for cost center : 1 settlement optional is maintained in valid recevivers and also for order
    and in actual cost/ cost sales: indicator to be settled in full is selected.
    Also check Allocation structure too if you have assigned the valid allocation structure.
    **check if you have assigned the valid settlement profile to order types.
    *****Most important after doing all these settings you need to create new order. for same order you will not get the automatic settlement rule
    Hope this helps.
    Regards,
    PMAddi

  • Service PR against maintenance order

    Hi dear,
    I have a problem
    1. I have created service purchase requisition against maintenance order, and against that service PO created.
    2. Now i have to give payment to that vendor against that PO (Before Goods receipt)
    3. While doing F-47 (down payment) system shows error, "maintain default cost element in controlling area XXXX"

    Hi,
    Take PM consultant help & ask him to check these settings
    SPRO Path
    Plant Maintenance & Customer Service --> Maintenance & Service Processing --> Basic Settings --> General Order Settlement --> Maintain Allocation Structure.
    Note: Check Assignments of Settlement Cost Elements.
    regards,
    Venkatesan Anandan
    Edited by: Venkatesan Anandan on Feb 16, 2009 1:48 PM

  • Assigning Components to Operations in Maintenance Orders

    Dear Masters,
    I want to assign the component reservation to the operation number in the maintenance order (i.e., In a breakdown order if I reserve a material component it should ask me for the operation number to which I want to link it to). Can anybody help me with this?
    Please do help its a bit urgent. Thanks in advance.
    Chin2

    Hi Pushpa,
    Thanks for taking time to reply to my question. I thinking you might be laughing at this stupid question of mine but sometimes the mind stops working.
    Thanks once again.
    Chin2

Maybe you are looking for

  • Can not open .sit files any more

    I get a warning that it is not a compressed file. I downloaded a new copy of Stuffit 11 and it dosen't work either. The files show as an icon of a little brown suitcase ant the suffix is .sit. If you look under get info it says that it is a stuffit a

  • Unzip files through SAP PI

    Hi all, I have a question about the perfomance in a scenario. I have 250 files zipped (45Kb average each file) in a ftp folder, and I'm using File Adapter to pickup this zip file, and then unzip it, and then process the files which contains, next eac

  • Volume level on Lumia 625 changes by itself

    Hi, On my Lumia 625 I preset the volume to a number (as you do) and after a while it changes to a lower number by itself. Is there any way I can make sure this doesn't happen? Thanks. Solved! Go to Solution.

  • Relation between CRM Order, Order Status by partner

    Hi, Can any one give me an idea to get Order, Order Status based on Partner in CRM.? Are there database tables or fm for that.? i can easily get them in R/3 but not in CRM. thanks, Macs.

  • Best place to create the DHCP scope for Guest SSID for remote office connected to HQ Foreign-Anchor controller

    Hi Experts , Need help with the respect to understand the best practice to place/create the DHCP scope for remote site Guest SSID which will be connected to HQ Foeign-Anchor controller set-up. how about internet traffic for Guest SSID , which one wil