Skip to Content
0

Create notification to order not working

Mar 16, 2017 at 01:34 PM

205

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Peter Atkin Mar 16, 2017 at 04:52 PM
0

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

  • BAPI_ALM_NOTIF_CREATE
  • BAPI_ALM_NOTIF_SAVE

.

PeteA

Share
10 |10000 characters needed characters left characters exceeded
Jelena Perfiljeva
Mar 16, 2017 at 09:27 PM
0

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...

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0