SAP Function SLS_COM_SHOW_COMMENT - Displays the comment of an event, test, person or item

Parameter Reference Type Length Default Optional Text
P_EVEID LS_EVEID N 8 X Event identification (PAW)
P_ITEMID LS_ITEMID N 8 X PAW - Internal Item Identificator
P_MODE LS_FLAGCMO C 1 PAW - Modus indicator for selecting comments
P_NO_TEM LS_NOTEM C 1 X PAW - Event either from TEM or not
P_PETID LS_PETID N 8 X PAW - Test Result ID
P_PLVAR LS_PLVAR C 2 X PAW - Plan Variant (for HR reference use)
P_TESTID LS_TESTID N 8 X PAW - Internal Test Identificator

Exception Text
NO_MODUS_SPECIFIED Selection could not be performed due to missing modus

Functionality
This Function Module(FM) is useful for displaying all the availablecomments of an event, test, person or item.
The FM accepts the following references as importing parameters:
,,MODE: states whether the comments required are for an event, person,test or item.
mode = 'E' then the comments from an event aredisplayed.
mode = 'T' then the comments for an event/test aredisplayed.
mode = 'I' then the comments for an item from aparticipant are displayed.
mode = 'P' then the comments for anevent/test(participant(person) are displayed.
The mode parameter is a obligatory field.
And all the other reference stated below are only optional:
,,plvar(plan version), eveid(Event ID), no_tem( check whether the eventis fron TEM or not), testid( Test ID), petid( Result ID), itemid( ItemID).
If there are no comments then a dialog stating 'No Comments exists forthe selected object' appears.