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

BADI for Notification, when system status changes

Former Member
0 Likes
1,625

hi all,

i want to know some BADIS which are triggered when system status of notification changes and i want both statuses i.e. the status from (from which its changing) and to (to which its changing).

e.g if system status changes from NOCO to NOPR , i want both the status, when its saved.

hope will get some help from u people.

hi all,

i want to know some BADIS which are triggered when system status of notification changes and i want both statuses i.e. the status from (from which its changing) and to (to which its changing).

e.g if system status changes from NOCO to NOPR , i want both the status, when its saved.

hope will get some help from u people.

2 REPLIES 2
Read only

Former Member
0 Likes
965

Manish,

Check BAdi : <b>NOTIF_EVENT_SAVE</b> or user exit <b>'ZXWOCU07'</b> and check the status with FM <b>'STATUS_TEXT_EDIT'</b> bypssing buffer:

SImilar code would be like this:

CALL FUNCTION 'STATUS_TEXT_EDIT'

EXPORTING

  • CLIENT = SY-MANDT

flg_user_stat = 'X'

objnr = wa_caufv-objnr

only_active = 'X'

spras = 'E'

  • bypass_buffer = 'X'

IMPORTING

anw_stat_existing = ustatus

e_stsma = status_profile

line = system_status

user_line = user_status

stonr = status_no

EXCEPTIONS

object_not_found = 1

OTHERS = 2

if sytem_status <> wa_caufv-(syatem_status).

. . ..

. . . .

endif.

Read only

IanStubbings
Active Participant
0 Likes
965

Hi

Did this solve your issue?

Cheers

Ian