Skip to Content
avatar image
Former Member

BAPI_ALM_NOTIF_CREATE

Hi

I have searched a lot through sdn, but I couldn't find even one sample data which works.

I need to create a PM notification, with just an equipment.. nothing extra.

I just want some sample data to be passed to BAPI_ALM_NOTIF_CREATE FM.

I am passing the data acc to my understanding, running the BAPI_ALM_NOTIF_CREATE & BAPI_ALM_NOTIF_SAVE & BAPI_TRANSACTION_COMMIT.

The surprising this is I am getting nothing in RETURN in BAPI_ALM_NOTIF_CREATE.

Kindly help.

Regards

Ankur Malhotra

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 04, 2010 at 12:26 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 04, 2010 at 12:31 PM

    Hi Ankur

    WA_NOTIF-NOTIF_TYPE = '05'.
      WA_NOTIF-REFOBJECTTYPE = 'IF1001006'.
     APPEND WA_NOTIF TO IT_NOTIF.
    
      CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
    *   EXTERNAL_NUMBER          = 
        notif_type               =  WA_NOTIF-NOTIF
        notifheader              = WA_NOTIF-REFOBJECTTYPE 
    *   TASK_DETERMINATION       = ' '
    *   SENDER                   =
    *   ORDERID                  =
    * IMPORTING
    *   NOTIFHEADER_EXPORT       =
    * TABLES
    *   NOTITEM                  =
    *   NOTIFCAUS                =
    *   NOTIFACTV                =
    *   NOTIFTASK                =
    *   NOTIFPARTNR              =
    *   LONGTEXTS                =
    *   KEY_RELATIONSHIPS        =
    *  RETURN                   =
              .
    
    
     iF RETURN IS NOT INITIAL.
    
     WRITE : 'SUCCESS'.
    
    ENDIF.

    Use the sample code.

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Just a quick question: What is WA_NOTIF's type?

      And also what is to be passed in REFOBJECTTYPE?

      Also in the below code, we are passing WA_NOTIF-REFOBJECTTYPE to notifheader, Is this right?

      Ankur