SAP CC1_FILL_FIELDS_2 Function Module for









CC1_FILL_FIELDS_2 is a standard cc1 fill fields 2 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 cc1 fill fields 2 FM, simply by entering the name CC1_FILL_FIELDS_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function CC1_FILL_FIELDS_2 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 'CC1_FILL_FIELDS_2'"
EXPORTING
PERSONNEL_NUMBER = "
KEY_DATE = "
ROW_555I = "
MOLGA = "
MOBDE = "
MOPGK = "
MOZKO = "

IMPORTING
INFOVALUE = "
INFOTEXT = "
INFOFIELD = "
UNITTEXT = "

TABLES
ST = "

EXCEPTIONS
ERROR_GET_LEAVE_DATA = 1 ERROR_GET_QUOTA_DATA = 2 ERROR_GET_L1 = 3 ERROR_GET_G1 = 4 ERROR_READ_T703R = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLPTWAO_BALANCES_001 Customer-Specific Info Field

IMPORTING Parameters details for CC1_FILL_FIELDS_2

PERSONNEL_NUMBER -

Data type: P0001-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

KEY_DATE -

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

ROW_555I -

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

MOLGA -

Data type: T001P-MOLGA
Optional: No
Call by Reference: No ( called with pass by value option)

MOBDE -

Data type: T001P-MOBDE
Optional: No
Call by Reference: No ( called with pass by value option)

MOPGK -

Data type: T503-KONTY
Optional: No
Call by Reference: No ( called with pass by value option)

MOZKO -

Data type: T001P-MOZKO
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CC1_FILL_FIELDS_2

INFOVALUE -

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

INFOTEXT -

Data type: PTWAO_S_INFO-INFOTEXT
Optional: No
Call by Reference: Yes

INFOFIELD -

Data type: PTWAO_S_INFO-INFOFIELD
Optional: No
Call by Reference: Yes

UNITTEXT -

Data type: PTWAO_S_INFO-UNITTEXT
Optional: No
Call by Reference: Yes

TABLES Parameters details for CC1_FILL_FIELDS_2

ST -

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

EXCEPTIONS details

ERROR_GET_LEAVE_DATA -

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

ERROR_GET_QUOTA_DATA -

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

ERROR_GET_L1 -

Data type:
Optional: No
Call by Reference: Yes

ERROR_GET_G1 -

Data type:
Optional: No
Call by Reference: Yes

ERROR_READ_T703R -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CC1_FILL_FIELDS_2 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:
lt_st  TYPE STANDARD TABLE OF PC2B5, "   
lv_infovalue  TYPE PTWAO_S_INFOVALUE, "   
lv_personnel_number  TYPE P0001-PERNR, "   
lv_error_get_leave_data  TYPE P0001, "   
lv_infotext  TYPE PTWAO_S_INFO-INFOTEXT, "   
lv_key_date  TYPE SY-DATUM, "   
lv_error_get_quota_data  TYPE SY, "   
lv_row_555i  TYPE T555I, "   
lv_infofield  TYPE PTWAO_S_INFO-INFOFIELD, "   
lv_error_get_l1  TYPE PTWAO_S_INFO, "   
lv_molga  TYPE T001P-MOLGA, "   
lv_unittext  TYPE PTWAO_S_INFO-UNITTEXT, "   
lv_error_get_g1  TYPE PTWAO_S_INFO, "   
lv_mobde  TYPE T001P-MOBDE, "   
lv_error_read_t703r  TYPE T001P, "   
lv_mopgk  TYPE T503-KONTY, "   
lv_mozko  TYPE T001P-MOZKO. "   

  CALL FUNCTION 'CC1_FILL_FIELDS_2'  "
    EXPORTING
         PERSONNEL_NUMBER = lv_personnel_number
         KEY_DATE = lv_key_date
         ROW_555I = lv_row_555i
         MOLGA = lv_molga
         MOBDE = lv_mobde
         MOPGK = lv_mopgk
         MOZKO = lv_mozko
    IMPORTING
         INFOVALUE = lv_infovalue
         INFOTEXT = lv_infotext
         INFOFIELD = lv_infofield
         UNITTEXT = lv_unittext
    TABLES
         ST = lt_st
    EXCEPTIONS
        ERROR_GET_LEAVE_DATA = 1
        ERROR_GET_QUOTA_DATA = 2
        ERROR_GET_L1 = 3
        ERROR_GET_G1 = 4
        ERROR_READ_T703R = 5
. " CC1_FILL_FIELDS_2




ABAP code using 7.40 inline data declarations to call FM CC1_FILL_FIELDS_2

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 PERNR FROM P0001 INTO @DATA(ld_personnel_number).
 
 
"SELECT single INFOTEXT FROM PTWAO_S_INFO INTO @DATA(ld_infotext).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_key_date).
 
 
 
"SELECT single INFOFIELD FROM PTWAO_S_INFO INTO @DATA(ld_infofield).
 
 
"SELECT single MOLGA FROM T001P INTO @DATA(ld_molga).
 
"SELECT single UNITTEXT FROM PTWAO_S_INFO INTO @DATA(ld_unittext).
 
 
"SELECT single MOBDE FROM T001P INTO @DATA(ld_mobde).
 
 
"SELECT single KONTY FROM T503 INTO @DATA(ld_mopgk).
 
"SELECT single MOZKO FROM T001P INTO @DATA(ld_mozko).
 


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!