BAPI_SERVNOT_SUCCESSFUL_TASK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_SERVNOT_SUCCESSFUL_TASK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
IQS7
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_SERVNOT_SUCCESSFUL_TASK' "Release Notification Task
EXPORTING
number = " bapi2080_nothdre-notif_no Notification Number
task_key = " bapi2080_nottaske-task_key Task Number
* langu = SY-LANGU " bapi2080_notsti-langu Language
* languiso = " bapi2080_notsti-languiso Language According to ISO 639
* testrun = SPACE " bapi20783t-status_ind Check Only
IMPORTING
systemstatus = " bapi2080_notadt-systatus System Status of Task
userstatus = " bapi2080_notadt-usrstatus User Status of Task
* TABLES
* return = " bapiret2 Message Type: S Success, E Error, W Warning, I In
. " BAPI_SERVNOT_SUCCESSFUL_TASK
The ABAP code below is a full code listing to execute function module BAPI_SERVNOT_SUCCESSFUL_TASK including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_systemstatus | TYPE BAPI2080_NOTADT-SYSTATUS , |
| ld_userstatus | TYPE BAPI2080_NOTADT-USRSTATUS , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_systemstatus | TYPE BAPI2080_NOTADT-SYSTATUS , |
| ld_number | TYPE BAPI2080_NOTHDRE-NOTIF_NO , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return, |
| ld_userstatus | TYPE BAPI2080_NOTADT-USRSTATUS , |
| ld_task_key | TYPE BAPI2080_NOTTASKE-TASK_KEY , |
| ld_langu | TYPE BAPI2080_NOTSTI-LANGU , |
| ld_languiso | TYPE BAPI2080_NOTSTI-LANGUISO , |
| ld_testrun | TYPE BAPI20783T-STATUS_IND . |
You can use this BAPI to flag a task as successful.
EXAMPLE
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_SERVNOT_SUCCESSFUL_TASK or its description.
BAPI_SERVNOT_SUCCESSFUL_TASK - Release Notification Task BAPI_SERVNOT_SAVE - Save service notification BAPI_SERVNOT_RELEASE_TASK - Release Notification Task BAPI_SERVNOT_PUTINPROGRESS - Put in process a service notification BAPI_SERVNOT_POSTPONE - Postpone service notification BAPI_SERVNOT_MODIFY_DATA - Modify a service notification or associated subdata