BAPI_SLS_COM_SET_COMMENT 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_SLS_COM_SET_COMMENT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SLSB
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_SLS_COM_SET_COMMENT' "Import Comment
EXPORTING
p_evid = " sls_bapibo-eveid Object ID
p_no_tem = " sls_event-no_tem PAW - Event either from TEM or not
IMPORTING
return = " bapiret1 Return parameter
* TABLES
* p_cevent = " sls_sceve Structure: Comments for an event
* p_cxet = " sls_scxet Structure: Comments for an event / test assignment
* p_cpet = " sls_scpet Structure: Comments for an event / test / participant assign
* p_critem = " sls_scrite Structure: Comments for an event / test / participant assign
. " BAPI_SLS_COM_SET_COMMENT
The ABAP code below is a full code listing to execute function module BAPI_SLS_COM_SET_COMMENT 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_return | TYPE BAPIRET1 , |
| it_p_cevent | TYPE STANDARD TABLE OF SLS_SCEVE,"TABLES PARAM |
| wa_p_cevent | LIKE LINE OF it_p_cevent , |
| it_p_cxet | TYPE STANDARD TABLE OF SLS_SCXET,"TABLES PARAM |
| wa_p_cxet | LIKE LINE OF it_p_cxet , |
| it_p_cpet | TYPE STANDARD TABLE OF SLS_SCPET,"TABLES PARAM |
| wa_p_cpet | LIKE LINE OF it_p_cpet , |
| it_p_critem | TYPE STANDARD TABLE OF SLS_SCRITE,"TABLES PARAM |
| wa_p_critem | LIKE LINE OF it_p_critem . |
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_return | TYPE BAPIRET1 , |
| ld_p_evid | TYPE SLS_BAPIBO-EVEID , |
| it_p_cevent | TYPE STANDARD TABLE OF SLS_SCEVE , |
| wa_p_cevent | LIKE LINE OF it_p_cevent, |
| ld_p_no_tem | TYPE SLS_EVENT-NO_TEM , |
| it_p_cxet | TYPE STANDARD TABLE OF SLS_SCXET , |
| wa_p_cxet | LIKE LINE OF it_p_cxet, |
| it_p_cpet | TYPE STANDARD TABLE OF SLS_SCPET , |
| wa_p_cpet | LIKE LINE OF it_p_cpet, |
| it_p_critem | TYPE STANDARD TABLE OF SLS_SCRITE , |
| wa_p_critem | LIKE LINE OF it_p_critem. |
This BAPI FM imports all the comments at the event level, event-test
level, event-test-participant level, item level and checks whether the
...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_SLS_COM_SET_COMMENT or its description.
BAPI_SLS_COM_SET_COMMENT - Import Comment BAPI_SLS_BOOK_READ_INFTY_1001 - Read Info type 1001 for object from HR TEM BAPI_SLS_BOOK_GET_PARTICIPANT - Selection module for participants of an event BAPI_SLS_BOOK_BOOKING_ONLINE1 - Read bookings of participants in online scenario BAPI_SLS_BOOK_BOOKING_ONLINE - Read bookings of participants in online scenario BAPI_SLS_BOOK_BOOKING_LIST - Read bookings of participants