‎2008 Nov 30 3:50 AM
Hi Experts,
I am using a BAPI to change/update some fields(Planner group, Iwerks, Work cnetre..etc) in my Notification order (IW52) and for this i am using this BAPI_ALM_NOTIF_DATA_MODIFY. If there is an error the RETURN param shows the message appropriatey but when there is no error this BAPI does not return anything in the RETURN parameter nor it changes the reqd fields.
Please advice me how to use this BAPI?
thanks
Dan
‎2008 Nov 30 10:08 AM
‎2008 Nov 30 11:59 AM
Hi
If the Operation is successful, then the BAPI either returns the success message in the RETURN parameter or nothing. Check the documentation of this BAPI.
Cheers,
Hakim
‎2008 Nov 30 1:38 PM
Hi,
There are many bapis that do not return the value in the return table upon successfull updating..
Hence you should not worry...
Check for values in return table..if it is not empty..do your error procecssing other wise perform success processing as per the requirement..
IF GT_RETURN[] is not intial.
Error record
Error message/Error Processing
ELSE.
success updation
success processin
ENDIF
Note: After using this BAPI to modify notification, You need to call the BAPI_ALM_NOTIFICATION_SAVE to save the notification...
Regards
Shiva
‎2008 Nov 30 1:39 PM
Sorry i dont remember the BAPI to save.. You can search BAPINOTIFSAVE*
‎2008 Nov 30 3:45 PM
Hi All,
Thanks for the replies.
I am also saying that the BAPI is NOT updating/Changing the required fields in the notif order even when the RETURN is empty.
Do you want me to use BAPI_ALM_NOTIF_SAVE after this?
thanks
Dan
‎2008 Nov 30 3:49 PM
Look at this OSS [Note 604300 - FAQ: BAPI_ALM_NOTIF* and BAPI_SERVNOT*|https://service.sap.com/sap/support/notes/604300], also read carefully the online documentation of the FM/BAPI.
You MUST call in sequence
- [BAPI_ALM_NOTIF_CREATE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_create&adv=false&sortby=cm_rnd_rankvalue] or [BAPI_ALM_NOTIF_DATA_MODIFY|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_data_modify&adv=false&sortby=cm_rnd_rankvalue].
- [BAPI_ALM_NOTIF_SAVE|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_alm_notif_save&adv=false&sortby=cm_rnd_rankvalue]
- BAPI_TRANSACTION_COMMIT
Regards
‎2008 Nov 30 4:10 PM
Yes .. We need to call these in sequence:
BAPI_ALM_NOTIF_DATA_MODIFY.
BAPI_ALM_NOTIF_SAVE
BAPI_TRANSACTION_COMMIT