Application Development 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: 

BAPI_SERVNOT_MODIFY_DATA

Former Member
0 Kudos

Hi all,

I need to use <b>BAPI_SERVNOT_MODIFY_DATA</b> to modify a field for the service notification.

Can anyone show me an example of the code?

Service Notification Number = 2510034692

I want to add "<i>Testing</i>" into Small Text field

After which I need to Save and Commit.

Thank you for the help.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Functionality

This BAPI enables you to modify the header, items, causes, activities, tasks, and partners of the service notification.

Notes

Errors are returned in the parameter RETURN.

Technical note

If you want to change a field you have to specify the new value of the field in the data structure e.g. NOTIFHEADER-SHORT_TEXT . In addition the corresponding X-structure field e.g. NOTIFHEADER_X-SHORT_TEXT must be checked.

If you want to change a partner in the notification, the fields PARTN_ROLE_OLD and PARTNER_OLD must be specified and the X-structure must be filled as described above.

Parameters

NUMBER

NOTIFHEADER

NOTIFHEADER_X

NOTIFHEADER_EXPORT

NOTIFITEM

NOTIFITEM_X

NOTIFCAUS

NOTIFCAUS_X

NOTIFACTV

NOTIFACTV_X

NOTIFTASK

NOTIFTASK_X

NOTIFPARTNR

NOTIFPARTNR_X

RETURN

call function 'BAPI_SERVNOT_ADD_DATA'

exporting

number = p_number

  • IMPORTING

  • NOTIFHEADER =

  • NOTIFHDTEXT =

tables

notfulltxt = pt_longtext

notitem = pt_item

notifcaus = pt_caus

notifactv = pt_actv

notiftask = pt_task

notifpartnr = pt_partnr

key_relationships = pt_keyinfo

return = lt_return.

append lines of lt_return to pt_return.

1 REPLY 1

Former Member
0 Kudos

Functionality

This BAPI enables you to modify the header, items, causes, activities, tasks, and partners of the service notification.

Notes

Errors are returned in the parameter RETURN.

Technical note

If you want to change a field you have to specify the new value of the field in the data structure e.g. NOTIFHEADER-SHORT_TEXT . In addition the corresponding X-structure field e.g. NOTIFHEADER_X-SHORT_TEXT must be checked.

If you want to change a partner in the notification, the fields PARTN_ROLE_OLD and PARTNER_OLD must be specified and the X-structure must be filled as described above.

Parameters

NUMBER

NOTIFHEADER

NOTIFHEADER_X

NOTIFHEADER_EXPORT

NOTIFITEM

NOTIFITEM_X

NOTIFCAUS

NOTIFCAUS_X

NOTIFACTV

NOTIFACTV_X

NOTIFTASK

NOTIFTASK_X

NOTIFPARTNR

NOTIFPARTNR_X

RETURN

call function 'BAPI_SERVNOT_ADD_DATA'

exporting

number = p_number

  • IMPORTING

  • NOTIFHEADER =

  • NOTIFHDTEXT =

tables

notfulltxt = pt_longtext

notitem = pt_item

notifcaus = pt_caus

notifactv = pt_actv

notiftask = pt_task

notifpartnr = pt_partnr

key_relationships = pt_keyinfo

return = lt_return.

append lines of lt_return to pt_return.