2006 Nov 20 2:31 PM
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
2006 Nov 20 2:39 PM
Are you checking with the number that is returned from the bapi:
NOTIFHEADER_EXPORT-NOTIF_NO ?
2006 Nov 20 2:36 PM
Did you check if the Notification number exists in the Table QMEL?
~Suresh
2006 Nov 20 2:40 PM
2006 Nov 20 2:39 PM
Are you checking with the number that is returned from the bapi:
NOTIFHEADER_EXPORT-NOTIF_NO ?
2006 Nov 20 2:41 PM
Yes ....I checked with NOTIFHEADER_EXPORT-NOTIF_NO .But doesnt exist.
2006 Nov 30 4:08 AM
Hi Renjitha,
If you call the save BAPI you will be able to retrieve the noti #.
Call these in the following order.
1) BAPI_ALM_NOTIF_CREATE
2) BAPI_ALM_NOTIF_SAVE <--- Noti returned from this BAPI.
3) BAPI_TRANSACTION_COMMIT
Regards,
Jason Lante
2006 Nov 30 4:21 AM
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.
2006 Nov 30 9:33 AM
Hi all,
Thanks a lot for your responses. My problem is solved...
Kindly close this topic.
Thanks a lot,
Renjitha