Skip to Content
author's profile photo Former Member
Former Member

BAPI_SERVNOT_MODIFY_DATA

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 03:36 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.