SAP CTCV_PATTERN_F4 Function Module for









CTCV_PATTERN_F4 is a standard ctcv pattern f4 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 ctcv pattern f4 FM, simply by entering the name CTCV_PATTERN_F4 into the relevant SAP transaction such as SE37 or SE38.

Function Group: CTCV
Program Name: SAPLCTCV
Main Program: SAPLCTCV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CTCV_PATTERN_F4 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 'CTCV_PATTERN_F4'"
EXPORTING
LANGUAGE = "SAP R/3 System, Current Language

IMPORTING
DIMENSION = "Unit of measurement
EXPONENT = "Exponent Display Format
FORM_OF_EXPONENT = "Exponent Display
NUMBER_OF_DECIMALS = "Number of Decimal Places
NUMBER_OF_DIGITS = "Number of Characters
PATTERN = "Value with Template
SIGN = "Value with Plus or Minus Sign

CHANGING
FORMAT = "Data Type of Characteristic

EXCEPTIONS
NO_VALID_PATTERN = 1
.



IMPORTING Parameters details for CTCV_PATTERN_F4

LANGUAGE - SAP R/3 System, Current Language

Data type: SYLANGU
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CTCV_PATTERN_F4

DIMENSION - Unit of measurement

Data type: MSEHI
Optional: No
Call by Reference: No ( called with pass by value option)

EXPONENT - Exponent Display Format

Data type: ATDEX
Optional: No
Call by Reference: No ( called with pass by value option)

FORM_OF_EXPONENT - Exponent Display

Data type: ATDIM
Optional: No
Call by Reference: No ( called with pass by value option)

NUMBER_OF_DECIMALS - Number of Decimal Places

Data type: ANZDZ
Optional: No
Call by Reference: No ( called with pass by value option)

NUMBER_OF_DIGITS - Number of Characters

Data type: ANZST
Optional: No
Call by Reference: No ( called with pass by value option)

PATTERN - Value with Template

Data type: ATSCH
Optional: No
Call by Reference: No ( called with pass by value option)

SIGN - Value with Plus or Minus Sign

Data type: ATVOR
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for CTCV_PATTERN_F4

FORMAT - Data Type of Characteristic

Data type: ATFOR
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_VALID_PATTERN -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CTCV_PATTERN_F4 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_format  TYPE ATFOR, "   
lv_language  TYPE SYLANGU, "   
lv_dimension  TYPE MSEHI, "   
lv_no_valid_pattern  TYPE MSEHI, "   
lv_exponent  TYPE ATDEX, "   
lv_form_of_exponent  TYPE ATDIM, "   
lv_number_of_decimals  TYPE ANZDZ, "   
lv_number_of_digits  TYPE ANZST, "   
lv_pattern  TYPE ATSCH, "   
lv_sign  TYPE ATVOR. "   

  CALL FUNCTION 'CTCV_PATTERN_F4'  "
    EXPORTING
         LANGUAGE = lv_language
    IMPORTING
         DIMENSION = lv_dimension
         EXPONENT = lv_exponent
         FORM_OF_EXPONENT = lv_form_of_exponent
         NUMBER_OF_DECIMALS = lv_number_of_decimals
         NUMBER_OF_DIGITS = lv_number_of_digits
         PATTERN = lv_pattern
         SIGN = lv_sign
    CHANGING
         FORMAT = lv_format
    EXCEPTIONS
        NO_VALID_PATTERN = 1
. " CTCV_PATTERN_F4




ABAP code using 7.40 inline data declarations to call FM CTCV_PATTERN_F4

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.

 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!