SAP CACS_LOG_NAV_TO_DOC_01 Function Module for NOTRANSL: Setzen von Navigationsparametern zu einer Meldung
CACS_LOG_NAV_TO_DOC_01 is a standard cacs log nav to doc 01 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: Setzen von Navigationsparametern zu einer Meldung 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 cacs log nav to doc 01 FM, simply by entering the name CACS_LOG_NAV_TO_DOC_01 into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS_CACSPY_TOOLS
Program Name: SAPLCACS_CACSPY_TOOLS
Main Program: SAPLCACS_CACSPY_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS_LOG_NAV_TO_DOC_01 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 'CACS_LOG_NAV_TO_DOC_01'"NOTRANSL: Setzen von Navigationsparametern zu einer Meldung.
EXPORTING
* PERCENTAGE = 0 "
* TIMECONDITION = 0 "
* XDIALOG = 'X' "Boolean Variable (X=True, -=False, Space=Unknown)
* XBATCH = 'X' "Boolean Variable (X=True, -=False, Space=Unknown)
* CONTEXT = "Application Log: Context
* PARAMS = "Application Log: Parameters
* I_LOG_HANDLE = "Application Log: External Identification
* I_SIMU = 'X' "Indicator: Process to be Run in Simulation Mode
I_RUN_ID = "Identification Number of Processing Run
I_BUSOBJ_ID = "Identification of Triggering Business Object
I_TRI_BUSCASE_ID = "Identification of Triggering Bus. Transaction in Op. System
ARBGB = "Application area
I_PERRULE_ID = "Period Rule
I_PERIOD_NO = "Period No.
I_BUSCASETYPE = "Commission Triggering Business Case in Operational System
* EXCEPTION_IF_NOT_ACTIVE = 'X' "
MSGTY = "Message type (E, I, W, ...)
* MSGV1 = ' ' "Messages, Message Variable
* MSGV2 = ' ' "Messages, Message Variable
* MSGV3 = ' ' "Messages, Message Variable
* MSGV4 = ' ' "Messages, Message Variable
TXTNR = "
EXCEPTIONS
LOG_NOT_FOUND = 1 MSG_INCONSISTENT = 2 LOG_IS_FULL = 3 MSG_NOT_STORED = 4 MSG_STORE_NOT_ALLOWED = 5 SEVERE_ERROR = 6
IMPORTING Parameters details for CACS_LOG_NAV_TO_DOC_01
PERCENTAGE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMECONDITION -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
XDIALOG - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
XBATCH - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONTEXT - Application Log: Context
Data type: BAL_S_CONTOptional: Yes
Call by Reference: No ( called with pass by value option)
PARAMS - Application Log: Parameters
Data type: BAL_S_PARMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOG_HANDLE - Application Log: External Identification
Data type: BALLOGHNDLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SIMU - Indicator: Process to be Run in Simulation Mode
Data type: CACSSIMULATIONDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_RUN_ID - Identification Number of Processing Run
Data type: CACS00_DOCHD-RUN_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSOBJ_ID - Identification of Triggering Business Object
Data type: CACS00_DOCHD-BUSOBJ_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_TRI_BUSCASE_ID - Identification of Triggering Bus. Transaction in Op. System
Data type: CACS00_DOCHD-TRI_BUSCASE_IDOptional: No
Call by Reference: No ( called with pass by value option)
ARBGB - Application area
Data type: SMESG-ARBGBOptional: No
Call by Reference: No ( called with pass by value option)
I_PERRULE_ID - Period Rule
Data type: CACSPRDRULEOptional: No
Call by Reference: No ( called with pass by value option)
I_PERIOD_NO - Period No.
Data type: CACSPERIODOptional: No
Call by Reference: No ( called with pass by value option)
I_BUSCASETYPE - Commission Triggering Business Case in Operational System
Data type: CACS00_DOCHD-TRI_BUSCASE_TYPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTION_IF_NOT_ACTIVE -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGTY - Message type (E, I, W, ...)
Data type: SMESG-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
MSGV1 - Messages, Message Variable
Data type: SMESG-MSGV1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV2 - Messages, Message Variable
Data type: SMESG-MSGV2Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV3 - Messages, Message Variable
Data type: SMESG-MSGV3Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSGV4 - Messages, Message Variable
Data type: SMESG-MSGV4Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TXTNR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
LOG_NOT_FOUND - Log Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MSG_INCONSISTENT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LOG_IS_FULL - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MSG_NOT_STORED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MSG_STORE_NOT_ALLOWED - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SEVERE_ERROR - Critical Errors
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS_LOG_NAV_TO_DOC_01 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_percentage | TYPE STRING, " 0 | |||
| lv_log_not_found | TYPE STRING, " | |||
| lv_timecondition | TYPE STRING, " 0 | |||
| lv_xdialog | TYPE BOOLEAN, " 'X' | |||
| lv_xbatch | TYPE BOOLEAN, " 'X' | |||
| lv_context | TYPE BAL_S_CONT, " | |||
| lv_params | TYPE BAL_S_PARM, " | |||
| lv_i_log_handle | TYPE BALLOGHNDL, " | |||
| lv_i_simu | TYPE CACSSIMULATION, " 'X' | |||
| lv_i_run_id | TYPE CACS00_DOCHD-RUN_ID, " | |||
| lv_i_busobj_id | TYPE CACS00_DOCHD-BUSOBJ_ID, " | |||
| lv_i_tri_buscase_id | TYPE CACS00_DOCHD-TRI_BUSCASE_ID, " | |||
| lv_arbgb | TYPE SMESG-ARBGB, " | |||
| lv_msg_inconsistent | TYPE SMESG, " | |||
| lv_i_perrule_id | TYPE CACSPRDRULE, " | |||
| lv_i_period_no | TYPE CACSPERIOD, " | |||
| lv_i_buscasetype | TYPE CACS00_DOCHD-TRI_BUSCASE_TYP, " | |||
| lv_log_is_full | TYPE CACS00_DOCHD, " | |||
| lv_exception_if_not_active | TYPE CACS00_DOCHD, " 'X' | |||
| lv_msgty | TYPE SMESG-MSGTY, " | |||
| lv_msg_not_stored | TYPE SMESG, " | |||
| lv_msgv1 | TYPE SMESG-MSGV1, " SPACE | |||
| lv_msg_store_not_allowed | TYPE SMESG, " | |||
| lv_msgv2 | TYPE SMESG-MSGV2, " SPACE | |||
| lv_severe_error | TYPE SMESG, " | |||
| lv_msgv3 | TYPE SMESG-MSGV3, " SPACE | |||
| lv_msgv4 | TYPE SMESG-MSGV4, " SPACE | |||
| lv_txtnr | TYPE SMESG. " |
|   CALL FUNCTION 'CACS_LOG_NAV_TO_DOC_01' "NOTRANSL: Setzen von Navigationsparametern zu einer Meldung |
| EXPORTING | ||
| PERCENTAGE | = lv_percentage | |
| TIMECONDITION | = lv_timecondition | |
| XDIALOG | = lv_xdialog | |
| XBATCH | = lv_xbatch | |
| CONTEXT | = lv_context | |
| PARAMS | = lv_params | |
| I_LOG_HANDLE | = lv_i_log_handle | |
| I_SIMU | = lv_i_simu | |
| I_RUN_ID | = lv_i_run_id | |
| I_BUSOBJ_ID | = lv_i_busobj_id | |
| I_TRI_BUSCASE_ID | = lv_i_tri_buscase_id | |
| ARBGB | = lv_arbgb | |
| I_PERRULE_ID | = lv_i_perrule_id | |
| I_PERIOD_NO | = lv_i_period_no | |
| I_BUSCASETYPE | = lv_i_buscasetype | |
| EXCEPTION_IF_NOT_ACTIVE | = lv_exception_if_not_active | |
| MSGTY | = lv_msgty | |
| MSGV1 | = lv_msgv1 | |
| MSGV2 | = lv_msgv2 | |
| MSGV3 | = lv_msgv3 | |
| MSGV4 | = lv_msgv4 | |
| TXTNR | = lv_txtnr | |
| EXCEPTIONS | ||
| LOG_NOT_FOUND = 1 | ||
| MSG_INCONSISTENT = 2 | ||
| LOG_IS_FULL = 3 | ||
| MSG_NOT_STORED = 4 | ||
| MSG_STORE_NOT_ALLOWED = 5 | ||
| SEVERE_ERROR = 6 | ||
| . " CACS_LOG_NAV_TO_DOC_01 | ||
ABAP code using 7.40 inline data declarations to call FM CACS_LOG_NAV_TO_DOC_01
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.| DATA(ld_xdialog) | = 'X'. | |||
| DATA(ld_xbatch) | = 'X'. | |||
| DATA(ld_i_simu) | = 'X'. | |||
| "SELECT single RUN_ID FROM CACS00_DOCHD INTO @DATA(ld_i_run_id). | ||||
| "SELECT single BUSOBJ_ID FROM CACS00_DOCHD INTO @DATA(ld_i_busobj_id). | ||||
| "SELECT single TRI_BUSCASE_ID FROM CACS00_DOCHD INTO @DATA(ld_i_tri_buscase_id). | ||||
| "SELECT single ARBGB FROM SMESG INTO @DATA(ld_arbgb). | ||||
| "SELECT single TRI_BUSCASE_TYP FROM CACS00_DOCHD INTO @DATA(ld_i_buscasetype). | ||||
| DATA(ld_exception_if_not_active) | = 'X'. | |||
| "SELECT single MSGTY FROM SMESG INTO @DATA(ld_msgty). | ||||
| "SELECT single MSGV1 FROM SMESG INTO @DATA(ld_msgv1). | ||||
| DATA(ld_msgv1) | = ' '. | |||
| "SELECT single MSGV2 FROM SMESG INTO @DATA(ld_msgv2). | ||||
| DATA(ld_msgv2) | = ' '. | |||
| "SELECT single MSGV3 FROM SMESG INTO @DATA(ld_msgv3). | ||||
| DATA(ld_msgv3) | = ' '. | |||
| "SELECT single MSGV4 FROM SMESG INTO @DATA(ld_msgv4). | ||||
| DATA(ld_msgv4) | = ' '. | |||
Search for further information about these or an SAP related objects