Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function: alm_me_notification_change

Former Member
0 Likes
890

Hi experts,

i need to change cost center and wbs element in trans. iw22.

i try to use this function without succeed.(i call this function and than i do commit)

The sy-subrc = 0 and the "return" value is empty.

thanks in advanced,

Michal.

Edited by: michal_zindorf on Aug 18, 2009 9:06 AM

2 REPLIES 2
Read only

Former Member
0 Likes
562

Hi ,

Single test the Fm and check if ti is working with the smae data that you are trying to update in the FM call.

I think it should be like below:



DATA:l_return       LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
           l_notifheader like ALM_ME_NOTIF_HEADER,
           l_notifcause like ALM_ME_NOTIF_CAUSE occurs 0 with header line,
           l_notifitem like ALM_ME_NOTIF_ITEM occurs 0 with header line.

l_notifitem-NOTIF_NO = '000400000020'   <<<< Notification number 
l_notifitem-ITEM_KEY = '0001'.
append ll_notifitem.
l_notifcause-CAUSE_CODEGRP = 'ZQ5'.
l_notifcause-CAUSE_CODE = '0020'.
append tl_notifcause.

Then call the FM:
CALL FUNCTION 'ALM_ME_NOTIFICATION_CHANGE'
  EXPORTING
    notif_no                         = '000400000020
   NOTIFICATION_HEADER              = l_notifheader
 TABLES
   NOTIFICATION_ITEM                = l_notifitem
   NOTIFICATION_CAUSE               = l_notifcause
   RETURN                           =ll_Return

Also there are several threads on the forum searcha nd hopefully you will get the resolution for your issue, I would also suggets check in debugging if the values are getting properly passed to the FM.

Regards,

Himanshu

Read only

0 Likes
562

thank you very much for reply.

we send OSS to SAP and they said that its not possible to use this function to change KOSTL and WBS element.

thank you very much.

Michal.