cancel
Showing results for 
Search instead for 
Did you mean: 

Create notification to order not working

tamas_gaal
Explorer
0 Kudos

Hi All,

I want to create a new notification to an order header, I am using BAPI_ALM_NOTIF_CREATE then I try to assign it to an order.
My problem is the following:
I have created a test report in my development system and it works well, but unfortunately in Quality system it is not working. Notification can't be created and it appears in order's object list tab. But notification does not exist.

In quality system a function module called via RFC and it has the same functionality as in the test report, and in function module it is not working but in the report it is okay. There is no error message, return tables in BAPI-s are always empty, success message appears, nonetheless notification is not created.

My call chain is the following:
BAPI_ALM_NOTIF_CREATE
IOPEXT_MAKE_HEADERNOTIF
BAPI_ALM_NOTIF_SAVE
BAPI_TRANSACTION_COMMIT

Does anybody have an idea what can be the problem, and how can I fix it?

Thank you,

Tamás

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member807770
Discoverer
0 Kudos

Hi,

I am facing similar issue as Tamas. The Object list shows the Notification but when I click on it, it says doesn't exist. Can someone help me understand what might be causing this issue. I am calling BAPI's in the following sequence.

BAPI_ALM_NOTIF_CREATE
BAPI_ALM_NOTIF_SAVE
BAPI_TRANSACTION_COMMIT

Regards,

Rajeshwari

Jelena
Active Contributor
0 Kudos

IOPEXT_MAKE_HEADERNOTIF is not a BAPI and it says "Change Header Notification". If you have not committed then there is probably nothing to change. I'd suspect that plus COMMIT timing could be the issue. Just pointing out the obvious...

tamas_gaal
Explorer
0 Kudos

Hi Jelena,

Thanks for your answer, I changed the order of bapi-s, and now notification is created, but only appears in object list and not in order header. As I know when an order notification is created it will be displayed in object list table too, so I think I am on the good way, but I want to put the notification number into header data. I've checked AFIH table and my notification is not inserted to order header.

Do you have another idea?

Thanks!

Tamás

peter_atkin
Active Contributor
0 Kudos

Check the values in the RETURN table before commiting the following:

  • BAPI_ALM_NOTIF_CREATE
  • BAPI_ALM_NOTIF_SAVE

.

PeteA