SAP HR_PAL_TABLE_CREATE_COLUMN Function Module for









HR_PAL_TABLE_CREATE_COLUMN is a standard hr pal table create column 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 pal table create column FM, simply by entering the name HR_PAL_TABLE_CREATE_COLUMN into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_PAL_TABLE_CREATE_COLUMN 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_PAL_TABLE_CREATE_COLUMN'"
EXPORTING
I_FIELDNAME = "
I_ROLLNAME = "
* I_SELTEXT_S = "
* I_SELTEXT_M = "
* I_SELTEXT_L = "
* I_COL_POS = "
* I_OUTPUTLEN = "
* IV_REPTEXT_DDIC = "

IMPORTING
ES_FIELDCAT = "

CHANGING
* IT_FIELDCAT = "

EXCEPTIONS
PROGRAM_ERROR = 1
.



IMPORTING Parameters details for HR_PAL_TABLE_CREATE_COLUMN

I_FIELDNAME -

Data type: DFIES-FIELDNAME
Optional: No
Call by Reference: Yes

I_ROLLNAME -

Data type: DFIES-ROLLNAME
Optional: No
Call by Reference: Yes

I_SELTEXT_S -

Data type: DFIES-SCRTEXT_S
Optional: Yes
Call by Reference: Yes

I_SELTEXT_M -

Data type: DFIES-SCRTEXT_M
Optional: Yes
Call by Reference: Yes

I_SELTEXT_L -

Data type: DFIES-SCRTEXT_L
Optional: Yes
Call by Reference: Yes

I_COL_POS -

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

I_OUTPUTLEN -

Data type: DD03P-OUTPUTLEN
Optional: Yes
Call by Reference: Yes

IV_REPTEXT_DDIC -

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

EXPORTING Parameters details for HR_PAL_TABLE_CREATE_COLUMN

ES_FIELDCAT -

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

CHANGING Parameters details for HR_PAL_TABLE_CREATE_COLUMN

IT_FIELDCAT -

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

EXCEPTIONS details

PROGRAM_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for HR_PAL_TABLE_CREATE_COLUMN 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_es_fieldcat  TYPE SLIS_FIELDCAT_ALV, "   
lv_it_fieldcat  TYPE SLIS_T_FIELDCAT_ALV, "   
lv_i_fieldname  TYPE DFIES-FIELDNAME, "   
lv_program_error  TYPE DFIES, "   
lv_i_rollname  TYPE DFIES-ROLLNAME, "   
lv_i_seltext_s  TYPE DFIES-SCRTEXT_S, "   
lv_i_seltext_m  TYPE DFIES-SCRTEXT_M, "   
lv_i_seltext_l  TYPE DFIES-SCRTEXT_L, "   
lv_i_col_pos  TYPE I, "   
lv_i_outputlen  TYPE DD03P-OUTPUTLEN, "   
lv_iv_reptext_ddic  TYPE REPTEXT. "   

  CALL FUNCTION 'HR_PAL_TABLE_CREATE_COLUMN'  "
    EXPORTING
         I_FIELDNAME = lv_i_fieldname
         I_ROLLNAME = lv_i_rollname
         I_SELTEXT_S = lv_i_seltext_s
         I_SELTEXT_M = lv_i_seltext_m
         I_SELTEXT_L = lv_i_seltext_l
         I_COL_POS = lv_i_col_pos
         I_OUTPUTLEN = lv_i_outputlen
         IV_REPTEXT_DDIC = lv_iv_reptext_ddic
    IMPORTING
         ES_FIELDCAT = lv_es_fieldcat
    CHANGING
         IT_FIELDCAT = lv_it_fieldcat
    EXCEPTIONS
        PROGRAM_ERROR = 1
. " HR_PAL_TABLE_CREATE_COLUMN




ABAP code using 7.40 inline data declarations to call FM HR_PAL_TABLE_CREATE_COLUMN

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 FIELDNAME FROM DFIES INTO @DATA(ld_i_fieldname).
 
 
"SELECT single ROLLNAME FROM DFIES INTO @DATA(ld_i_rollname).
 
"SELECT single SCRTEXT_S FROM DFIES INTO @DATA(ld_i_seltext_s).
 
"SELECT single SCRTEXT_M FROM DFIES INTO @DATA(ld_i_seltext_m).
 
"SELECT single SCRTEXT_L FROM DFIES INTO @DATA(ld_i_seltext_l).
 
 
"SELECT single OUTPUTLEN FROM DD03P INTO @DATA(ld_i_outputlen).
 
 


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!