Application Development and Automation 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: 
Read only

BAPI_ALM_NOTIF_CREATE

Former Member
0 Likes
1,191

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

3 REPLIES 3
Read only

Former Member
0 Likes
692

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.

Read only

DavidLY
Product and Topic Expert
Product and Topic Expert
0 Likes
692

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

Read only

Former Member
0 Likes
692

the problem is in bapi_alm_notify_create.

it returns error message 'invalid catalog entry'.