Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Notification creation in exit IMRC0001

Former Member
0 Kudos

Hi Experts

i had used the exit IMRC0001 for the creation of notification if reading is out of range using fm

BAPI_ALM_NOTIF_CREATE

BAPI_ALM_NOTIF_SAVE

It is updated in table QMEL

but when i open tcode iw22 is giving me a error message that Object doesnt exists

Please help me .

Babumiya Mohammad

5 REPLIES 5

Former Member
0 Kudos

if i use BAPI Transaction commit it is going to dump

Please gurus help me

peter_atkin
Active Contributor
0 Kudos

Try this instead:


* Create notification header
    CALL FUNCTION  'IQS0_CREATE_VIQMEL'
         EXPORTING  R_VIQMEL = L_VIQMEL
                    I_NO_MSG = 'X'
         TABLES     E_VIQMEL = L_T_VIQMEL
         EXCEPTIONS OTHERS   = 1.

* Create notification item
      CALL FUNCTION  'IQS0_ADD_ITEM'
           EXPORTING  I_QMNUM  = L_T_VIQMEL-QMNUM
                      R_VIQMFE = L_VIQMFE
                      I_NO_MSG = 'X'
           EXCEPTIONS OTHERS   = 1.
    ENDIF.

* Prepare posting of notification.
    CALL FUNCTION  'IQS1_POST_NOTIFICATION'
         EXPORTING  I_COMMIT = ' '
         TABLES     E_VIQMEL = L_T_VIQMEL
         EXCEPTIONS OTHERS   = 1.

0 Kudos

i have tried with same function module stil is not appearing in display mode (iw23) for notification display mode .

i have tried even with sample code provided by sap in cmod , then also same problem it is creating in the table QMEL but when i go for change or display mode it is giving message that object doesnt exist (status management)

0 Kudos

Hi All

i got the solution

i have used PERFORM STATUS_UPDATE in PROGRAM SAPLBSVA

after BAPI_ALM_NOTIF_CREATE

BAPI_ALM_NOTIF_SAVE

Then it is creating Notification

Babumiya Mohammad

sunil_4_kumar
Member
0 Kudos

try this one hopefully  it will solve your Problem


CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'

CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'

after that you call

CALL FUNCTION 'STATUS_UPDATE_TASK_TRIGGER'.

then

CALL FUNCTION 'CREATE_TEXT'.