SAP Function BAPI_QUALNOT_CREATE - Create QM Notification 2

Parameter Reference Type Length Default Optional Text
EXTERNAL_NUMBER BAPI2078_NOTHDRE-NOTIF_NO C 12 X Message Number
NOTIFHEADER BAPI2078_NOTHDRI u 891 BAPI Quality Notification Header for Creation
NOTIF_TYPE BAPI2078_NOTHDRE-NOTIF_TYPE C 2 Notification Type
SENDER BAPI_SENDER u 10 X Logical system of sender
TASK_DETERMINATION BAPIFLAG u 1 SPACE X Indicator

Parameter Reference Type Length Text
NOTIFHEADER_EXPORT BAPI2078_NOTHDRE u 875 BAPI Quality Notification Header

Parameter Reference Length Optional Text
KEY_RELATIONSHIPS BAPI2078_NOTKEYE 160 X Key Relationships
LONGTEXTS BAPI2078_NOTFULLTXTI 152 X Notification Long Text
NOTIFACTV BAPI2078_NOTACTVI 162 X Notification Activities for Creation
NOTIFCAUS BAPI2078_NOTCAUSI 138 X Notification Cause for Creation
NOTIFPARTNR BAPI2078_NOTPARTNRI 98 X Partner(s) for Creation
NOTIFTASK BAPI2078_NOTTASKI 188 X Notification Task for Creation
NOTITEM BAPI2078_NOTITEMI 304 X Notification Item for Creation
RETURN BAPIRET2 548 X Return Parameter(s)

Functionality
You can use this BAPI to create a new QM notification. You can createcertain fields for the notification header, as well as items, causes,activities, and long texts for the notification. You can also maintainpartner data.

Comments
Errors are transferred in the table RETURN.
The changes to the notification data will only be available on thedatabase after the function modules BAPI_QUALNOT_SAVE andBAPI_TRANSACTION_COMMIT have run successfully.

Notes
The sort field must be filled if you want to create items, causes,tasks, or activities.
If you want to create a cause, the sort field for the item must also befilled.
The fields OBJTYP and OBJKEY must be filled when creating a long text.OBJTYP can contain the following values:
1. QMEL - Notification Header
2. QMFE - Notification Item
3. QMUR - Notification Cause
4. QMSM - Notification Task
5. QMMA - Notification Activity
OBJKEY must contain the corresponding sort field for the values listedabove. The combination of sort fields for the item/cause, item/task, oritem/activity must be unique within the notification. If you leave thesort field blank, and the OBJTYP is QMEL, a long text will be createdfor the notification header.
Example:
OBJTYP OBJKEY
QMEL initial (' ')
---> Long text for notification header
An external reference key can be transferred in the field REFOBJECTKEY.The relationships between external reference keys and SAP keys aretransferred in the export table KEY_RELATIONSHIP. If the fields SENDER,REFOBJECTTYPE, and REFRELTYPE are filled, an object relationship can becreated at notification header level.
Example: The reference object is a quality notification with the number
4711:
SENDER : Field "Logical System" from table T000
REFOBJECTTYPE : BUS2078
REFOBJECTKEY : 000000004711
REFRELTYPE : REFZ.
Sort number in the item:
If several items have the same sort number, you can assign a commoncause and/or a common activity and/or a common task to these items.
Sort number in cause, activity, task:
The sort number is the key field for accessing the relevant cause,activity, or task.
A sort number for the item also exists in the cause, activity, and task.You can use this to sort causes, activities, and tasks at header or itemlevel.
In the causes, the sort number for the item must be filled with a numberthat is greater than or equal to 1, because causes always belong toitems and can never appear at header level. In activities and tasks, thesort number for the item can be zero; then these are part of thenotification header.

Description
Output structure of the notification header

Description
Number of the notification that is to be processed

Description
Structure containing information for the notification header (generaldata)

Description
Notification type

Description
Logical system of sender

Description
Execution indicator: 'X' = execute function.
If this parameter is set, and if a response profile has been maintainedin Customizing for the notification type, the tasks from the responseprofile are automatically generated when the notification is created.

Description
Key relationships within the notification data

Description
Notification long text

Description
Data for the activities of the notification

Description
Data for the notification causes

Description
Partner for notification

Description
Data for the tasks of the notification

Description
Data for the notification items

Description
The table contains the list of errors that occurred during processing