SAP AXT_TABLE_CHDOC_TMPL Function Module for AXT New tables update function module









AXT_TABLE_CHDOC_TMPL is a standard axt table chdoc tmpl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for AXT New tables update function module processing and below is the pattern details for this FM, 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 axt table chdoc tmpl FM, simply by entering the name AXT_TABLE_CHDOC_TMPL into the relevant SAP transaction such as SE37 or SE38.

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



Function AXT_TABLE_CHDOC_TMPL 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 'AXT_TABLE_CHDOC_TMPL'"AXT New tables update function module
EXPORTING
IV_OBJECTID = "Object value
IV_TCODE = "Transaction in which a change was made
IV_UTIME = "Time changed
IV_UDATE = "Creation date of the change document
IV_USERNAME = "User name of the person responsible in change document

TABLES
IT_XTAB = "Table with Strings
IT_YTAB = "Table with Strings
.



IMPORTING Parameters details for AXT_TABLE_CHDOC_TMPL

IV_OBJECTID - Object value

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

IV_TCODE - Transaction in which a change was made

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

IV_UTIME - Time changed

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

IV_UDATE - Creation date of the change document

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

IV_USERNAME - User name of the person responsible in change document

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

TABLES Parameters details for AXT_TABLE_CHDOC_TMPL

IT_XTAB - Table with Strings

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

IT_YTAB - Table with Strings

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

Copy and paste ABAP code example for AXT_TABLE_CHDOC_TMPL 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_it_xtab  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_objectid  TYPE CDHDR-OBJECTID, "   
lt_it_ytab  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_tcode  TYPE CDHDR-TCODE, "   
lv_iv_utime  TYPE CDHDR-UTIME, "   
lv_iv_udate  TYPE CDHDR-UDATE, "   
lv_iv_username  TYPE CDHDR-USERNAME. "   

  CALL FUNCTION 'AXT_TABLE_CHDOC_TMPL'  "AXT New tables update function module
    EXPORTING
         IV_OBJECTID = lv_iv_objectid
         IV_TCODE = lv_iv_tcode
         IV_UTIME = lv_iv_utime
         IV_UDATE = lv_iv_udate
         IV_USERNAME = lv_iv_username
    TABLES
         IT_XTAB = lt_it_xtab
         IT_YTAB = lt_it_ytab
. " AXT_TABLE_CHDOC_TMPL




ABAP code using 7.40 inline data declarations to call FM AXT_TABLE_CHDOC_TMPL

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 OBJECTID FROM CDHDR INTO @DATA(ld_iv_objectid).
 
 
"SELECT single TCODE FROM CDHDR INTO @DATA(ld_iv_tcode).
 
"SELECT single UTIME FROM CDHDR INTO @DATA(ld_iv_utime).
 
"SELECT single UDATE FROM CDHDR INTO @DATA(ld_iv_udate).
 
"SELECT single USERNAME FROM CDHDR INTO @DATA(ld_iv_username).
 


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!