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

BAPI_SERVNOT_MODIFY_DATA - Not updating

Former Member
0 Likes
548

Hi,

I am trying to update service notification using the bapi BAPI_SERVNOT_MODIFY_DATA. However, it is not comiting the records. It uses IQS4_MODIFY_NOTIFICATION internally, if I call this, it commits. Pasting the code below.

DATA: qmnum1 TYPE BAPI2080_NOTHDRE-NOTIF_NO,

lv_notifhearder TYPE BAPI2080_NOTHDRI,

lv_notifheader_x TYPE BAPI2080_NOTHDRI_X,

return TYPE BAPIRET2 OCCURS 1 WITH HEADER LINE.

qmnum1 = '020000000031'.

lv_notifhearder-equipment = '10000178'.

"lv_notifhearder-funct_loc = '1000000160'.

lv_notifhearder-short_text = 'TEST FOR THE BAPI'.

lv_notifheader_x-equipment = 'X'.

"lv_notifheader_x-funct_loc = 'X'.

lv_notifheader_x-short_text = 'X'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = '10000178'

IMPORTING

OUTPUT = lv_notifhearder-equipment

.

CALL FUNCTION 'BAPI_SERVNOT_MODIFY_DATA'

EXPORTING

NUMBER = qmnum1

NOTIFHEADER = lv_notifhearder

NOTIFHEADER_X = lv_notifheader_x

" IMPORTING

" NOTIFHEADER_EXPORT =

TABLES

" NOTIFITEM =

" NOTIFITEM_X =

" NOTIFCAUS =

" NOTIFCAUS_X =

" NOTIFACTV = lv_NOTIFACTV

" NOTIFACTV_X = lv_NOTIFACTV_x

" NOTIFTASK =

" NOTIFTASK_X =

" NOTIFPARTNR =

" NOTIFPARTNR_X =

RETURN = return

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

IMPORTING

RETURN = return

.

1 REPLY 1
Read only

Former Member
0 Likes
350

For resolution

Refer SAP Note: 455832