SAP SD_SHIPMENT_PROTOCOL_APPEND Function Module for NOTRANSL: Anhängen eines Protokoll-Eintrags
SD_SHIPMENT_PROTOCOL_APPEND is a standard sd shipment protocol append SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Anhängen eines Protokoll-Eintrags processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for sd shipment protocol append FM, simply by entering the name SD_SHIPMENT_PROTOCOL_APPEND into the relevant SAP transaction such as SE37 or SE38.
Function Group: V56P
Program Name: SAPLV56P
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function SD_SHIPMENT_PROTOCOL_APPEND pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SD_SHIPMENT_PROTOCOL_APPEND'"NOTRANSL: Anhängen eines Protokoll-Eintrags.
EXPORTING
* I_GET_GLOBAL_LEVEL = ' ' "
* I_VAR3 = ' ' "Message variable 3
* I_VAR4 = ' ' "Message variable 4
* I_AG = 'VW' "Application area
* I_LANGU = SY-LANGU "Language key
* OPT_UPDATE_SY_FIELDS = ' ' "Update SY fields ?
* I_LEVEL = 0 "Log level
* I_MARKER_GET = ' ' "
* I_MARKER_DELETE = ' ' "
I_SEVERITY = "Error level (' ', 'W', 'E', 'A', 'S'...)
I_MSGNR = "Message number
* I_NEWOBJ = ' ' "Log creation: New object
* I_VAR1 = ' ' "Message variable 1
* I_VAR2 = ' ' "Message variable 2
IMPORTING
E_SEVERITY = "
EXCEPTIONS
MARKER_NOT_FOUND = 1
IMPORTING Parameters details for SD_SHIPMENT_PROTOCOL_APPEND
I_GET_GLOBAL_LEVEL -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAR3 - Message variable 3
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAR4 - Message variable 4
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AG - Application area
Data type: SPROT_U-AGDefault: 'VW'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGU - Language key
Data type: SPROT_U-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPT_UPDATE_SY_FIELDS - Update SY fields ?
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LEVEL - Log level
Data type: SPROT_U-LEVELOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MARKER_GET -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MARKER_DELETE -
Data type: RV56A-SELKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEVERITY - Error level (' ', 'W', 'E', 'A', 'S'...)
Data type: SPROT_U-SEVERITYOptional: No
Call by Reference: No ( called with pass by value option)
I_MSGNR - Message number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_NEWOBJ - Log creation: New object
Data type: SPROT_U-NEWOBJDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAR1 - Message variable 1
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VAR2 - Message variable 2
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SD_SHIPMENT_PROTOCOL_APPEND
E_SEVERITY -
Data type: SPROT_U-SEVERITYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MARKER_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_SHIPMENT_PROTOCOL_APPEND Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_e_severity | TYPE SPROT_U-SEVERITY, " | |||
lv_marker_not_found | TYPE SPROT_U, " | |||
lv_i_get_global_level | TYPE RV56A-SELKZ, " SPACE | |||
lv_i_var3 | TYPE RV56A, " SPACE | |||
lv_i_var4 | TYPE RV56A, " SPACE | |||
lv_i_ag | TYPE SPROT_U-AG, " 'VW' | |||
lv_i_langu | TYPE SPROT_U-LANGU, " SY-LANGU | |||
lv_opt_update_sy_fields | TYPE RV56A-SELKZ, " SPACE | |||
lv_i_level | TYPE SPROT_U-LEVEL, " 0 | |||
lv_i_marker_get | TYPE RV56A-SELKZ, " SPACE | |||
lv_i_marker_delete | TYPE RV56A-SELKZ, " SPACE | |||
lv_i_severity | TYPE SPROT_U-SEVERITY, " | |||
lv_i_msgnr | TYPE SPROT_U, " | |||
lv_i_newobj | TYPE SPROT_U-NEWOBJ, " SPACE | |||
lv_i_var1 | TYPE SPROT_U, " SPACE | |||
lv_i_var2 | TYPE SPROT_U. " SPACE |
  CALL FUNCTION 'SD_SHIPMENT_PROTOCOL_APPEND' "NOTRANSL: Anhängen eines Protokoll-Eintrags |
EXPORTING | ||
I_GET_GLOBAL_LEVEL | = lv_i_get_global_level | |
I_VAR3 | = lv_i_var3 | |
I_VAR4 | = lv_i_var4 | |
I_AG | = lv_i_ag | |
I_LANGU | = lv_i_langu | |
OPT_UPDATE_SY_FIELDS | = lv_opt_update_sy_fields | |
I_LEVEL | = lv_i_level | |
I_MARKER_GET | = lv_i_marker_get | |
I_MARKER_DELETE | = lv_i_marker_delete | |
I_SEVERITY | = lv_i_severity | |
I_MSGNR | = lv_i_msgnr | |
I_NEWOBJ | = lv_i_newobj | |
I_VAR1 | = lv_i_var1 | |
I_VAR2 | = lv_i_var2 | |
IMPORTING | ||
E_SEVERITY | = lv_e_severity | |
EXCEPTIONS | ||
MARKER_NOT_FOUND = 1 | ||
. " SD_SHIPMENT_PROTOCOL_APPEND |
ABAP code using 7.40 inline data declarations to call FM SD_SHIPMENT_PROTOCOL_APPEND
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single SEVERITY FROM SPROT_U INTO @DATA(ld_e_severity). | ||||
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_get_global_level). | ||||
DATA(ld_i_get_global_level) | = ' '. | |||
DATA(ld_i_var3) | = ' '. | |||
DATA(ld_i_var4) | = ' '. | |||
"SELECT single AG FROM SPROT_U INTO @DATA(ld_i_ag). | ||||
DATA(ld_i_ag) | = 'VW'. | |||
"SELECT single LANGU FROM SPROT_U INTO @DATA(ld_i_langu). | ||||
DATA(ld_i_langu) | = SY-LANGU. | |||
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_opt_update_sy_fields). | ||||
DATA(ld_opt_update_sy_fields) | = ' '. | |||
"SELECT single LEVEL FROM SPROT_U INTO @DATA(ld_i_level). | ||||
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_marker_get). | ||||
DATA(ld_i_marker_get) | = ' '. | |||
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_marker_delete). | ||||
DATA(ld_i_marker_delete) | = ' '. | |||
"SELECT single SEVERITY FROM SPROT_U INTO @DATA(ld_i_severity). | ||||
"SELECT single NEWOBJ FROM SPROT_U INTO @DATA(ld_i_newobj). | ||||
DATA(ld_i_newobj) | = ' '. | |||
DATA(ld_i_var1) | = ' '. | |||
DATA(ld_i_var2) | = ' '. | |||
Search for further information about these or an SAP related objects