Menu

SAP Function Module STATUS_CHANGE_FOR_ACTIVITY

Carry Out Status Changes for an Activity

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module STATUS_CHANGE_FOR_ACTIVITY (Carry Out Status Changes for an Activity) is a standard Function Module in SAP ERP and is part of the function group BSVA within the package BSV.

Technical Information

Function Module STATUS_CHANGE_FOR_ACTIVITY
Short Text Carry Out Status Changes for an Activity
Function Group BSVA
Package BSV
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ACTIVITY_ALLOWED TYPE XFELD SPACE Activity Allowed' Flag (Only for OBTYP - ORC)
CHECK_ONLY TYPE XFELD SPACE 'Carry Out Checks Only' Flag
CLIENT LIKE SY-MANDT SY-MANDT Client (Use Only in Exceptional Cases!)
DATE LIKE SY-DATUM Effective Date for Results Analysis
NO_AUTHORITY_CHECK TYPE XFELD SPACE Suppress Authorization Check
NO_CHECK TYPE XFELD SPACE 'No Check Whether Activity Allowed' Flag
OBJNR LIKE JSTO-OBJNR Object Number
SET_CHGKZ LIKE JSTO-CHGKZ 'Activate Change Documents' Flag
VRGNG LIKE TJ01-VRGNG Activity for which the Subsequent Statuses are to be Set
ZEILE LIKE MESG-ZEILE SPACE Line Number for Message Handler, if Active

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ACTIVITY_NOT_ALLOWED LIKE 'Activity not Allowed' Flag
ERROR_OCCURRED LIKE 'Error Message Occurred' Flag
OBJECT_NOT_FOUND LIKE 'Status Object Not Found' Flag
STATUS_INCONSISTENT LIKE 'Status Set and Deleted' Flag
STATUS_NOT_ALLOWED LIKE 'Status Change Not Allowed' Flag
STONR LIKE TJ30-STONR Status Number
WARNING_OCCURRED LIKE 'Warning Message Occurred' Flag

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
ACTIVITY_NOT_ALLOWED 'Activity not Allowed' Flag
OBJECT_NOT_FOUND 'Status Object Not Found' Flag
STATUS_INCONSISTENT 'Status Set and Deleted' Flag
STATUS_NOT_ALLOWED 'Status Change Not Allowed' Flag
WARNING_OCCURED Activity is -Allowed with Warning- Only
WRONG_INPUT CHECK_ONLY - 'X' and NO_CHECK - 'X'