SAP FM_CHANGE_AA_TABWO_HEADER Function Module for









FM_CHANGE_AA_TABWO_HEADER is a standard fm change aa tabwo header 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 fm change aa tabwo header FM, simply by entering the name FM_CHANGE_AA_TABWO_HEADER into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_CHANGE_AA_TABWO_HEADER 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 'FM_CHANGE_AA_TABWO_HEADER'"
EXPORTING
* I_ERROR = "
* I_ERROR_OUT = 'X' "
* I_TEST = "
* I_TEST_OUT = 'X' "
* I_AVC = ' ' "
* I_AVC_OUT = ' ' "
* I_HRDCHG = ' ' "
* I_HRDCHG_OUT = ' ' "

IMPORTING
E_F_LH_ATTRIBUTES = "FM ALV grid lists: Attributes for object info display
E_F_ACTION_INFO = "FM ALV GRID Action Information for General List Headers

TABLES
E_T_TOP_DATA = "Object and Action Information in ALV-GRID List Headers
C_T_FMCHA1 = "Work List for Reassignment Tool
.




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_SAPLFMCH_001 Determine FM Account Assignment from Coding Block
EXIT_SAPLFMCH_002 Own Table Updates During Reassignment
EXIT_SAPLFMCH_003 Change of Account Assignment, Reject Reassignment

IMPORTING Parameters details for FM_CHANGE_AA_TABWO_HEADER

I_ERROR -

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

I_ERROR_OUT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TEST -

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

I_TEST_OUT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AVC -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AVC_OUT -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HRDCHG -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HRDCHG_OUT -

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FM_CHANGE_AA_TABWO_HEADER

E_F_LH_ATTRIBUTES - FM ALV grid lists: Attributes for object info display

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

E_F_ACTION_INFO - FM ALV GRID Action Information for General List Headers

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

TABLES Parameters details for FM_CHANGE_AA_TABWO_HEADER

E_T_TOP_DATA - Object and Action Information in ALV-GRID List Headers

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

C_T_FMCHA1 - Work List for Reassignment Tool

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

Copy and paste ABAP code example for FM_CHANGE_AA_TABWO_HEADER 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_i_error  TYPE C, "   
lt_e_t_top_data  TYPE STANDARD TABLE OF FM_T_LISTHEADER_DATA, "   
lv_e_f_lh_attributes  TYPE IFM_LH_OBJECT_ATTRIBUTES, "   
lt_c_t_fmcha1  TYPE STANDARD TABLE OF FMCHA1, "   
lv_i_error_out  TYPE C, "   'X'
lv_e_f_action_info  TYPE IFM_LISTHEADER_ACTION, "   
lv_i_test  TYPE C, "   
lv_i_test_out  TYPE C, "   'X'
lv_i_avc  TYPE C, "   SPACE
lv_i_avc_out  TYPE C, "   SPACE
lv_i_hrdchg  TYPE C, "   SPACE
lv_i_hrdchg_out  TYPE C. "   SPACE

  CALL FUNCTION 'FM_CHANGE_AA_TABWO_HEADER'  "
    EXPORTING
         I_ERROR = lv_i_error
         I_ERROR_OUT = lv_i_error_out
         I_TEST = lv_i_test
         I_TEST_OUT = lv_i_test_out
         I_AVC = lv_i_avc
         I_AVC_OUT = lv_i_avc_out
         I_HRDCHG = lv_i_hrdchg
         I_HRDCHG_OUT = lv_i_hrdchg_out
    IMPORTING
         E_F_LH_ATTRIBUTES = lv_e_f_lh_attributes
         E_F_ACTION_INFO = lv_e_f_action_info
    TABLES
         E_T_TOP_DATA = lt_e_t_top_data
         C_T_FMCHA1 = lt_c_t_fmcha1
. " FM_CHANGE_AA_TABWO_HEADER




ABAP code using 7.40 inline data declarations to call FM FM_CHANGE_AA_TABWO_HEADER

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_i_error_out) = 'X'.
 
 
 
DATA(ld_i_test_out) = 'X'.
 
DATA(ld_i_avc) = ' '.
 
DATA(ld_i_avc_out) = ' '.
 
DATA(ld_i_hrdchg) = ' '.
 
DATA(ld_i_hrdchg_out) = ' '.
 


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!