To print created PM notification number using BAPI call

Hi Team,

I am trying to print the created PM notification number using BAPI call by integrating ignition with SAP.
I am able to create the PM notification using the script written in button but I am not able to retrieve and print the created notification number.
I have verified the notification created in SAP using short text, so it has been successfully creating through the script.
Steps:

  1. connections
  2. BAPIs used : BAPI_ALM_NOTIF_CREATE , BAPI_ALM_NOTIF_SAVE,BAPI_TRANSACTION_COMMIT
  3. I am trying to print the RETURN table message, but is shows this error: table BAPIRET2 has no rows.

Please guide how we can fetch the notification number after saving , which displays in SAP status bar(at bottom) when notification created

Thank you