cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to create new notification using Funtion module.

Former Member
0 Kudos

I tried creating a new notification using the Function Module BAPI_ALM_NOTIF_CREATE.

I have passed the notif_type & notif_header values ( filled notif_date in notif_header).

I have called the FMs BAPI_ALM_NOTIF_SAVE and BAPI_TRANSACTION_COMMIT after create.

I am passing NOTIF_NO from NOTIFHEADER_EXPORT as importing parameter for BAPI_ALM_NOTIF_SAVE.

There is no new notification generated , I am getting '%00000000001' as the notification number.

Please advice on how to create new notification.

Thanks,

Vivek.

Accepted Solutions (0)

Answers (1)

Answers (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Vivek,

I understand that (in fm BAPI_ALM_NOTIF_SAVE) you are passing the %00000000001 value in the Importing table. You need to Export this number to the Importing parameter NUMBER of the FM.

I tested the following way. It is working fine.

You too can test from SE37 by selecting menu Function Module --> Test --> Test sequences.


After executing first FM when you press back button, you are directed to the NUMBER field of 2nd fm where you give the temporary Notification number %00000000001. After this you will be directed to the last fm where you need not do anything. The Notification is successfully saved. You can run IW22 and see this Notification Saved just now.

Best of luck

KJogeswaraRao

Former Member
0 Kudos

Hi,

I am calling all these FMs inside a method and I need the generated Notification number for further processing.

But all I was getting was the %000000001 in the exporting parameters.

Thanks,

Vivek.

Former Member
0 Kudos

Hi Vivek,

This number will be getting generating only when database commit happens.

Regards,

VINOD.V

former_member186385
Active Contributor
0 Kudos

Hi Vivek,

Make sure you are not using external number range for the notification

thanks

santosh

jogeswararao_kavala
Active Contributor
0 Kudos

That's right. You need to pass this value to NUMBER field