cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI to create PM notification for M3 type in IW21

Former Member
0 Kudos

Hi all,

I need to know which BAPI can be used to create PM notification for M3 type in IW21.

I used BAPI_ALM_NOTIGF_CREATE. But notification number is not craeted. Kindly let me know the clarification.

My inputs are,

Notifictaion type           M3

Notification created date     sy-datum

Notification created Time     sy-uzeit

Required Start date           sy-datum

Required Start time          sy-uzeit

Equipment number

Functional Location

Code group

Code

Maintenance plant

Plan group

Thanks in Advance

Regards

CK

Accepted Solutions (0)

Answers (3)

Answers (3)

kcelikmih
Explorer

Hi Chandrakala,

You must use BAPI_ALM_NOTIF_SAVE func. after the BAPI_ALM_NOTIF_CREATE func.

You would get the notifheader_export-notif_no value from BAPI_ALM_NOTIF_CREATE func.

Then send this parameter to BAPI_ALM_NOTIF_SAVE func.

At last you use BAPI_TRANSACTION_COMMIT func.

Regards.

Kadir

Former Member
0 Kudos


Hi Kadir, thanks for your reply.

I got Notif_no from Notifheader_export. But it gives Notification number as "%000000002".

In this case what I should do.

Regards

CK

raymond_giuseppi
Active Contributor
0 Kudos

Also are there some BAdI/Exit/Eancement implemtation in your system which could have broken some SAP logic, and, if they only impact BAPI and not transactions, nobody realized.

Regards,

Raymond

kcelikmih
Explorer
0 Kudos

Hi Chandrakala,

Did you try to give notification number "%000000002" to second function then commit and see the result?


Does it work?

Regards.

Kadir


raymond_giuseppi
Active Contributor
0 Kudos

As already written you must also call BAPI_ALM_NOTIF_SAVE and then BAPI_TRANSACTION_COMMIT.

Pass result of first call ( notifheader_export- notif_no ) to second, then get the generated number from the second call ( notifheader-notif_no ) as only at this step was the number next FM executed.

Regards,

Raymond