SAP CK_F_CHECK_FOR_VALID_STRATEGY Function Module for
CK_F_CHECK_FOR_VALID_STRATEGY is a standard ck f check for valid strategy SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ck f check for valid strategy FM, simply by entering the name CK_F_CHECK_FOR_VALID_STRATEGY into the relevant SAP transaction such as SE37 or SE38.
Function Group: 0K02
Program Name: SAPL0K02
Main Program: SAPL0K02
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CK_F_CHECK_FOR_VALID_STRATEGY 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 'CK_F_CHECK_FOR_VALID_STRATEGY'".
EXPORTING
EINGABE_STRING = "
LENGTH = "
* MULTIPLE_STRATEGIES_ALLOWED = ' ' "
EXCEPTIONS
MULTIPLE_STRATEGIES = 1 GAPS_IN_STRATEGY = 2
IMPORTING Parameters details for CK_F_CHECK_FOR_VALID_STRATEGY
EINGABE_STRING -
Data type: TCK06-TXBWVOptional: No
Call by Reference: No ( called with pass by value option)
LENGTH -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
MULTIPLE_STRATEGIES_ALLOWED -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
MULTIPLE_STRATEGIES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GAPS_IN_STRATEGY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CK_F_CHECK_FOR_VALID_STRATEGY 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_eingabe_string | TYPE TCK06-TXBWV, " | |||
| lv_multiple_strategies | TYPE TCK06, " | |||
| lv_length | TYPE SY-TABIX, " | |||
| lv_gaps_in_strategy | TYPE SY, " | |||
| lv_multiple_strategies_allowed | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'CK_F_CHECK_FOR_VALID_STRATEGY' " |
| EXPORTING | ||
| EINGABE_STRING | = lv_eingabe_string | |
| LENGTH | = lv_length | |
| MULTIPLE_STRATEGIES_ALLOWED | = lv_multiple_strategies_allowed | |
| EXCEPTIONS | ||
| MULTIPLE_STRATEGIES = 1 | ||
| GAPS_IN_STRATEGY = 2 | ||
| . " CK_F_CHECK_FOR_VALID_STRATEGY | ||
ABAP code using 7.40 inline data declarations to call FM CK_F_CHECK_FOR_VALID_STRATEGY
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 TXBWV FROM TCK06 INTO @DATA(ld_eingabe_string). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_length). | ||||
| DATA(ld_multiple_strategies_allowed) | = ' '. | |||
Search for further information about these or an SAP related objects