FM to create plant maintenance notification

Hi all,
Could anyone help  me with this problem! Notification is not getting created when i call the standard BAPI BAPI_ALM_NOTIF_CREATE. I have called the BAPI_TRANSACTION_COMMIT .
Tha BAPI returns a notification number .But when i check with this notification number i get a message Notification doesnt exist.
Can anyone give me a solution for this.
Thanks,
Renjitha

Hi Renjitha Nambiar,
You need to call 3 FM's.....
CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
        notif_type         = wa_notif_type-notif_type
        notifheader        = wa_notif_header
      IMPORTING
        notifheader_export = wa_result
      TABLES
        notitem            = t_notifitem
        notifpartnr        = t_notifpartner
        longtexts          = t_longtext
        return             = t_message.
you need to pass the WA_RESULT value in 2nd FM...
CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
        EXPORTING
          number = wa_result-notif_no
        TABLES
          return = t_message.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = c_x.
Regards,
Sivaram.

Similar Messages

  • Actual & planned costs calculated while creating Plant Maintenance Order

    Hi All,
    I would like to know how the actual & planned costs calculated while creating Plant Maintenance Order (PM Order)
    Thanks,
    Ajay

    You need to create an activity rate for 2014 for cost centre 51260201 and activity type NAHG20.
    This can be done via transaction KP26, but is usually performed by your Finance team.
    PeteA

  • Plant Maintenance notification

    Hi all,
    In notification (PM)  the I-button (blue-white) in the reference object screen area is not there for a one of the notification type. User wants this button is to be there. I checked configuration settings , screen category object for this notification type is 0100 (Functional locationequipmentassembly). Please anyone guide me in getting this button in notification. I am new to PM module.

    Hi,
    For that particular notification type you may not have assigned a object information key.
    This can be done in customizing.
    IMG>
    Plant Maintenance and Customer Service
    Maintenance and Service Processing
    Maintenance and Service Notifications
    Notification Processing
    Object Information
    Compare the settings for notification types with those that don't have the icon.
    -Paul

  • Incident/Accident log - plant maintenance notification

    In the incident accident log, from the safety measures screen, there is provision given to raise "os ihs notification" for the technical safety measures suggested. Can anyone explain in details why & where this would be required as the user department (production department) normally raises breakdown notifications if there is damage to any equipment in an incident.
    Thanks and regards,
    Santosh
    Edited by: Santosh.Tiwari on Sep 14, 2009 2:27 PM

    Hi Santosh,
    The facility to create PM notifications from EH&S workbench has been provided for separately tracking EH&S safety measures as deemed by various EH&S departments in organizations. This helps in determining the KPI's and KRA's of the EH&S management in an enterprise. The notification gets created with separate notification type i.e. OS in SAP R/3 which communicates through SAP EH&S through function module "REHS_GET_ACTIONS_FROM_PM". This updates the status of the notification in EH&S. So, for a EH&S representative in an organization, getting a report of what all EHS notifications are open for action, is quite handy to plan his follow-up and reporting. Moreover, it's not always the case that notifications are raised for only braekdown of the equiments. It can be more elementary such as some gasoline spill have occured out of an incident. In this case person reporting the event would like to list safety measure for cleaning the pump area and tightening the leaking flange for arresting the leak. The first would amount to triggering notification to the housekeeping dept by specifying the relevant person responsible, and the second would trigger the notification to the maintainance dept. for flange tightening.

  • Cause Code - Structure for Plant Maintenance Notification

    Dear firends,
    I am trying to create cause code group structure for a notification as follows,
    --> Superior Level Cause Code Group ( XXXX)
                        - -> Cause Code Group (XXXX-SUB)
                                       - -> Cause Code ... (1010)
    In standard SAP we can create a Cause code group for a catalog then assign the Cause codes to the Cause code groups then assign to the Catalog profile ...and the structure looks like as follows (AS IS)
            - -> Cause Code Group(XXXX-SUB)
                                       - -> Cause Code ...(1010)
    But in my case i need to add one more level above the "Cause Code Group" as shown below ( TO BE)
    --> Superior Level Cause Code Group ( XXXX)
                        - -> Cause Code Group (XXXX-SUB)
                                       - -> Cause Code ... (1010)
    Please assist me is there any way to accomplish this requirement through user exit or something else.Thanks.
    Regards,
    MJ.
    Edited by: MJ Masi on Sep 23, 2009 10:43 PM

    Babu,
    Do the Divisions have its own Equipment base?          - Ans  : NO
    Do they create Notification for the same Equipment?   - ANS : YES
    So, lets take the case 2 you mentioned ...
    Case2:
    If they are creating notification for a same equipment (EQ01 is common for all Divisions), you can create Defect code group with Division Name CHEMDEF1, CHEMDEF2,... BIODEF1, BIODEF2... etc ...
    User has to select appropriate Defect code group and defect code.... If he enters Def code as Cause code group system will populate caused relevant for particular Def Code ...
    Problem here is lets say the Defect Code Group CHEMDEF1 has two defect code A010 & A020 ,
                                                                                  CHEMDEF2 has three defect code B010, B020 & B030.
    I would like to bring this Defect Code Group CHEMDEF1 & CHEMDEF2 under DIV1 and Defect Code Group BIODEF1 & BIODEF2 under DIV2.
    Example : The structure should look like this ..
                    - DIV1  ( Superior level needs to be added on the Structure)  - Will it be possible ?
                            - CHEMDEF1  ( Defect Code Group)
                                           - A010 ( Defect Code)
                                           - A020( Defect Code)
                            - CHEMDEF2( Defect Code Group)
                                           - B010( Defect Code)
                                           - B020( Defect Code)
                                           - B030( Defect Code)
                    - DIV2 ( Superior level needs to be added on the Structure)  - Will it be possible ?
                            - BIODEF1
                                           - C010
                                           - C020
                            - BIODEF2
                                           - D010
                                           - D020
                                           - D030
    Please let me know.Thanks.
    Regards,
    MJ Masi

  • How to Retrive Planned Maintenance Notification from server

    Hi Experts
    I have database where Plant Maintenance Notification is already created. Now I want to retrieve Notification from the server. How we can do this.
    In other work how to use BAPI_ALM_NOTIF_GET_DETAIL.
    Thanks
    SIddhartha P

    Hi,
       Did you check here??
    /people/musarrat.husain2/blog/2007/10/23/a-beginners-guide-to-call-an-rfc-in-bls

  • Problem in creation of Maintenance Notification.

    Hi All,
    I have a requirement to create a maintenance notification through BAPI. When I tried to create it by bapi  'BAPI_ALM_NOTIF_CREATE' , I am having one issue.
    Whenever we create a notification by T-code 'IW21' there is one flag for 'Put in Progress' which changes the phase of notification from 'Outstanding' to 'In Progress'. But whenever I am creating with the help of BAPI this notification is deirectly going to 'In progress' Phase. I have checked all the parameters of this BAPI but didn't found any such flag.
    So If anybody have solution like how to create initially notification in Outstanding phase and later if we need to change it how to change it, please help me out.
    Thanks in Advanced.

    Deepak,
    Can you please elaborate your query.
    What all fields are you passing in this BAPI and what the program you are using this BAPI.
    Regards,
    Chin2.

  • What are the steps to configure Fund Management in Plant Maintenance

    Hi Friends,
    while creating Plant Maintenance order through T code iw31.
    In the main menu     Go to-Assisments----Fund management.
    now this Fund management is in grey mode.
    What are the steps i need to carry to make it active mode.
    Please suggest
    Thanks in advance

    Dear
    Ask with your Co person either they activated fund mgt. This is thier Job u can activate your order types for commitmente check at KOAB.
    Ask them to look at SPRO--PUBLIC SECTOR MGT
    Also at SPRO-CONTROLLING-INTERNAL ORDERS-BUDGET AND AVAILABLITY CONTROL
    You also check at your OIOA.
    thenna

  • Settlement rule Mandatory for Plant Maintenance order

    Hi Expert!
    I want to make the option Settlement rule mandatory while creating plant maintenance order. I would really appreciate if you provide me the menu path in customisation to make this mandatory.
    Thanks
    J

    Hi Jean
    I do not think you can make it mandatory while creation itself.
    But, you can make it mandatory (Check Functions for setting order types->settlement rule....) for order release.
    Best regards
    Ramki

  • Plant maintenance Iviews

    Hi Gurus,
    Can we use Business Package Assets to create Plant maintenance iviews?
    Joseph
    Edited by: Anja Engelhardt on Oct 13, 2011 9:10 AM

    Hi joseph,
    You can use this iView to display maintenance-related objects (such as equipment, functional locations, materials, measurement documents, and so on) in the Asset Viewer.
    The Asset Viewer is a display tool that enables simple navigation through complex object relations. You can navigate flexibly within and between objects.
    You can also use object navigator which is a reusable display tool that has been integrated into this iView.
    You can specify which object types can be viewed in the structure view in Customizing for Plant Maintenance and Customer Service under>  Maintenance Roles>  Maintenance Worker --> Asset Viewer  -->Specify Objects for Structure View.
    Thanks&Regards
    AswinChandra Girmaji

  • Unable to create a order in plant maintenance

    Hi,
    I  have deployed BUSINESSPACKAGEs of ERP5 for  PLANT MAINTENANCE,  after deploying i have assigned the roles and configured sso when i go to role maintenance execution and click on create order i can open the screen. but when click on notification and click on create order i could not able to create the order
    The error throughing is iview "maintenance_order" not available.
    Could you please tell for the above iview which BUSINESS PACKAGE is used.
    Regards,
    jagadish

    You need to have Business Package for Common Parts to create manitanance orders, please check these links:
    http://help.sap.com/saphelp_erp2005/helpdata/en/3e/5dd2416d9c1c7be10000000a1550b0/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/fe/5bd2416d9c1c7be10000000a1550b0/content.htm
    Thank you,
    Shyam

  • Creating Z report for material stock (plant maintenance module)

    hello,
    we are implemented Plant maintenance module (SAP PM)  in our organization.
    our requirement is to create a stock report which will incldue
    followings:-
    1)material number
    2)plant number
    3) storage location
    4) material type
    5)valuation type
    6)Opening Stock 
    7) OpValue 
    8)Received Stock  
    9)   ReceiptValue      
    10)   Issue Stock          
    11)  IssueValue        
    12)  Closing Stock      
    13)  Closing Value
    we want above details in ALV grid format.
    to gert all the details for perticular material, we calcute closing stock and closing value in following manner:-
    opening stock + received  stock - issue stock = closing stock
    opening value + recipt value - issue value = closing value
    we are unable to find table name for  accessing  opening stock,  received  stock , issue stock  & opening value ,recipt value , issue value from system. please suggest table name information for getting above details  for creating Z report

    Dear friend,
    Before to make a decision to bulid a custom report make sure you have checked out the following standard transactions:
    MB5T Stock in Transit
    MMBE Stock Overview
    MD04 Stock/Reqs list
    MB53 Plant Stock Availability
    MB52 Warehouse Stock
    MB5M Expiration Date list
    MB5B Stock for Posting Date
    MB5T Stock in Transit
    MBBS Valuated Special Stock
    MBLB Stock with Subcontractor
    The possible tables are:
    MARA, MARD, MARC, VBEP, VBAK(VBAP), EKKO(EKPO), EKBE, EBAN, EBEW, MSEG, MKPF,...
    Good luck!

  • Completion date for manually created maintenance notification

    Hi All,
    When closing maintenance notification created manually by t-code- IW21,there is no field to enter completion date & time. System is proposing the current  date as completion  date by default. However , as I have flagged u201Ccompletion datau201D  in maintenance plan category for notification ,system is asking/proposing completion date/time during NOCO of preventive maintenance.
    Where I can do settings in configuration so that system  will ask/propose to enter completion date/time during NOCO of manually created notification by t-code IW21?
    rgds
    rajib

    In notification type views you have option to set Reference date & time- if you set it to A- Malfunction start date & time will
    be proposed, if  you set it to B- Notification receipt date & time will be proposed, if you set it to C- Malfunction end time will
    be proposed, & in case of D - current date & time of completion of notification will be proposed while completing notification.
    Better set it to B & make the field malfunction start date & time mandatory  so that your history will be with reference to malfunction start. Or you can set it to A, C or D as per your requirement
    Shakti
    Edited by: SHAKTI BEHERA on Aug 14, 2010 10:09 AM

  • Plant Maintenance Schedule Calls not creating Maintenance Order

    Hi,
    I have created a maintenance plan that is schduled on a weekly basis. This worked fine initially but now calls are not being generated and therefore no orders are also being generated. The process I used is:
    1. Create Equipment
    2. Create Task List
    3. Create Maintenance Item
    4. Create Maintenance Plan
    5. Schedule Maintenance Plan
    Can you help?
    Also can you tell me which program you use to create orders for an entire maintenance planning plant, I know IP10 can be used for maintenance plans? For example you schedule your maintenance plans but I assume a periodic job must run to actually create the orders

    Hi Gary,
    I had an issue with calls not being generated and was browsing similar issues when I came across yours. I note that you also asked how you could create orders for a whole maintenance planning plant.
    This can be done by using the sort field on a maintenance plan. You need to define sort fields (config) for the maintenance plans for each of the plants required and then insert them on each plan. You can then use the sort field as a selection when scheduling.
    Hope this helps.
    John

  • Problems in creating maintenance notification BAPI_ALM_NOTIF_CREATE

    Hi,
    I am not able to create a maint. notification of  type M3 using BAPI_ALM_NOTIF_CREATE using JCO block. I am getting notification number as %000000000001 in responce. I feel the notification is getting created in transit but as i have no way to save it (i do not know the notification number), when i disconnect, the R/3 system kills it. I am not passing anyother parameter asa nothing else seems mandatory. Tried passing Short Text as well but same answer
    Is there something i am missing or there is another BAPI by which i can create the maint. notification.
    Is some conf required on the R/3 sysetm as well?
    Thanks,
    Piyush..

    After creating the Notification one has to save it as well. Use BAPI_ALM_NOTIF_SAVE to complete the process.
    If you are making use of the SAP JCO Interface actions in the Logic Editor then the correct steps would be
    1. Open a JCO session
    2. Call Notif Create
    3. Call Notif Save (Pass the Notif number created in 2)
    4. Commit JCO Session
    5. End JCO Session.
    Infact you will have to make use of these new actions (rather than the stand alone SAP JCO Interface action) to create PM Notifications.

Maybe you are looking for