SAP HR_CH_APPEND_ALV Function Module for









HR_CH_APPEND_ALV is a standard hr ch append alv 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 hr ch append alv FM, simply by entering the name HR_CH_APPEND_ALV into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CH_APPEND_ALV 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 'HR_CH_APPEND_ALV'"
EXPORTING
TABLES_AND_INFOS = "
* CLIST_FIELDCAT = "
* CLIST_LAYOUT = "
* IS_VARIANT_CTRL = "
* GLOBAL_LISTHEADER = "
* MIN_LINESIZE = "
* PF_STATUS = 'LISTSTATUS' "
* PF_STATUS_PROG = 'SAPLRPCG' "
* CLIST_VARIANT_REPID = "
* CALLBACK_PROGRAM = "
* CLIST_TABLEREF = "
* CLIST_STRUCNAME = "

CHANGING
* ERRORLIST = "

EXCEPTIONS
CALL_ERROR = 1
.



IMPORTING Parameters details for HR_CH_APPEND_ALV

TABLES_AND_INFOS -

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

CLIST_FIELDCAT -

Data type: SLIS_T_FIELDCAT_ALV
Optional: Yes
Call by Reference: Yes

CLIST_LAYOUT -

Data type: SLIS_LAYOUT_ALV
Optional: Yes
Call by Reference: Yes

IS_VARIANT_CTRL -

Data type: DISVARIANT
Optional: Yes
Call by Reference: Yes

GLOBAL_LISTHEADER -

Data type: PAY_ALV_COMMENT
Optional: Yes
Call by Reference: Yes

MIN_LINESIZE -

Data type: INT4
Optional: Yes
Call by Reference: Yes

PF_STATUS -

Data type: SYPFKEY
Default: 'LISTSTATUS'
Optional: Yes
Call by Reference: Yes

PF_STATUS_PROG -

Data type: PROGNAME
Default: 'SAPLRPCG'
Optional: Yes
Call by Reference: Yes

CLIST_VARIANT_REPID -

Data type: SY-REPID
Optional: Yes
Call by Reference: Yes

CALLBACK_PROGRAM -

Data type: SY-REPID
Optional: Yes
Call by Reference: Yes

CLIST_TABLEREF -

Data type: PAY_DATA_REFERENCE
Optional: Yes
Call by Reference: Yes

CLIST_STRUCNAME -

Data type: PAY_STRUCNAME
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for HR_CH_APPEND_ALV

ERRORLIST -

Data type: P02VS_ERRLIST
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CALL_ERROR -

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

Copy and paste ABAP code example for HR_CH_APPEND_ALV 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_errorlist  TYPE P02VS_ERRLIST, "   
lv_call_error  TYPE P02VS_ERRLIST, "   
lv_tables_and_infos  TYPE HRPAYCH_TABLEREF_AND_INFO, "   
lv_clist_fieldcat  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_clist_layout  TYPE SLIS_LAYOUT_ALV, "   
lv_is_variant_ctrl  TYPE DISVARIANT, "   
lv_global_listheader  TYPE PAY_ALV_COMMENT, "   
lv_min_linesize  TYPE INT4, "   
lv_pf_status  TYPE SYPFKEY, "   'LISTSTATUS'
lv_pf_status_prog  TYPE PROGNAME, "   'SAPLRPCG'
lv_clist_variant_repid  TYPE SY-REPID, "   
lv_callback_program  TYPE SY-REPID, "   
lv_clist_tableref  TYPE PAY_DATA_REFERENCE, "   
lv_clist_strucname  TYPE PAY_STRUCNAME. "   

  CALL FUNCTION 'HR_CH_APPEND_ALV'  "
    EXPORTING
         TABLES_AND_INFOS = lv_tables_and_infos
         CLIST_FIELDCAT = lv_clist_fieldcat
         CLIST_LAYOUT = lv_clist_layout
         IS_VARIANT_CTRL = lv_is_variant_ctrl
         GLOBAL_LISTHEADER = lv_global_listheader
         MIN_LINESIZE = lv_min_linesize
         PF_STATUS = lv_pf_status
         PF_STATUS_PROG = lv_pf_status_prog
         CLIST_VARIANT_REPID = lv_clist_variant_repid
         CALLBACK_PROGRAM = lv_callback_program
         CLIST_TABLEREF = lv_clist_tableref
         CLIST_STRUCNAME = lv_clist_strucname
    CHANGING
         ERRORLIST = lv_errorlist
    EXCEPTIONS
        CALL_ERROR = 1
. " HR_CH_APPEND_ALV




ABAP code using 7.40 inline data declarations to call FM HR_CH_APPEND_ALV

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_pf_status) = 'LISTSTATUS'.
 
DATA(ld_pf_status_prog) = 'SAPLRPCG'.
 
"SELECT single REPID FROM SY INTO @DATA(ld_clist_variant_repid).
 
"SELECT single REPID FROM SY INTO @DATA(ld_callback_program).
 
 
 


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!