on 02-11-2015 4:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandrakala,
Did you try to give notification number "%000000002" to second function then commit and see the result?
Does it work?
Regards.
Kadir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.