‎2007 Jun 08 11:16 AM
Hi,
I've to create a notification with reference to an order from transaction IW42. I'm using the BAPI_ALM_NOTIF_CREATE, BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT.
This works perfectly fine if I dont pass an 'ORDERID' in BAPI_ALM_NOTIF_CREATE. But when I pass ORDERID, the new notification number is created but its not saved to table QMEL.
Pls help if anyone has encountered this problem. Is there any alternative way of creating a Notification? BDC also doesnt work here.
thanks in advance
Cheers
‎2012 Aug 14 7:18 AM
hi, i tried to create the notification but it's not working it shows some error.
eg:
Invalid catalog entry
Problem during number assignment cause record.
if you share ur programm then it will be very helpful for me.
‎2012 Aug 14 9:25 AM
Hello,
It appears to be a data refresh issue. When calling multiple instances of the BAPI ensure that the following points are observed.
- call each BAPI additionally with DESTINATION 'NONE'
- call after each BAPI function module 'BAPI_TRANSACTION_COMMIT' with
DESTINATION 'NONE' and EXPORT-Parameter WAIT = 'X'
- Call function 'RFC_CONNECTION_CLOSE' to refresh LUW
Example:
CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
DESTINATION 'NONE'
EXPORTING
.....
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
DESTINATION 'NONE'
EXPORTING
WAIT = 'X'.
CALL FUNCTION 'RFC_CONNECTION_CLOSE'
EXPORTING
DESTINATION = 'NONE'
EXCEPTIONS
DESTINATION_NOT_OPEN = 1
OTHERS = 2 .
Also see SAP note 770626 for more details on this process and an example (with different BAPI).
Regards,
David
‎2012 Aug 14 11:29 AM
the problem is in bapi_alm_notify_create.
it returns error message 'invalid catalog entry'.