SAP G_UPDATE_T800HIST Function Module for
G_UPDATE_T800HIST is a standard g update t800hist 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 g update t800hist FM, simply by entering the name G_UPDATE_T800HIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: GORG
Program Name: SAPLGORG
Main Program: SAPLGORG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function G_UPDATE_T800HIST 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 'G_UPDATE_T800HIST'".
EXPORTING
I_OBJNAME = "Object Name in Object Directory
* I_UNAME = SY-UNAME "User Name
* I_TCODE = SY-TCODE "Transaction Code
* I_CPROG = SY-CPROG "CALL Program
* I_BATCH = SY-BATCH "Program is running in the background
TABLES
T_RSPARAMS = "ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
EXCEPTIONS
UPDATE_FAILED = 1
IMPORTING Parameters details for G_UPDATE_T800HIST
I_OBJNAME - Object Name in Object Directory
Data type: SOBJ_NAMEOptional: No
Call by Reference: Yes
I_UNAME - User Name
Data type: UNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: Yes
I_TCODE - Transaction Code
Data type: TCODEDefault: SY-TCODE
Optional: Yes
Call by Reference: Yes
I_CPROG - CALL Program
Data type: CPROGDefault: SY-CPROG
Optional: Yes
Call by Reference: Yes
I_BATCH - Program is running in the background
Data type: SYBATCHDefault: SY-BATCH
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for G_UPDATE_T800HIST
T_RSPARAMS - ABAP: General Structure for PARAMETERS and SELECT-OPTIONS
Data type: RSPARAMSOptional: No
Call by Reference: Yes
EXCEPTIONS details
UPDATE_FAILED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for G_UPDATE_T800HIST 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_objname | TYPE SOBJ_NAME, " | |||
lt_t_rsparams | TYPE STANDARD TABLE OF RSPARAMS, " | |||
lv_update_failed | TYPE RSPARAMS, " | |||
lv_i_uname | TYPE UNAME, " SY-UNAME | |||
lv_i_tcode | TYPE TCODE, " SY-TCODE | |||
lv_i_cprog | TYPE CPROG, " SY-CPROG | |||
lv_i_batch | TYPE SYBATCH. " SY-BATCH |
  CALL FUNCTION 'G_UPDATE_T800HIST' " |
EXPORTING | ||
I_OBJNAME | = lv_i_objname | |
I_UNAME | = lv_i_uname | |
I_TCODE | = lv_i_tcode | |
I_CPROG | = lv_i_cprog | |
I_BATCH | = lv_i_batch | |
TABLES | ||
T_RSPARAMS | = lt_t_rsparams | |
EXCEPTIONS | ||
UPDATE_FAILED = 1 | ||
. " G_UPDATE_T800HIST |
ABAP code using 7.40 inline data declarations to call FM G_UPDATE_T800HIST
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_uname) | = SY-UNAME. | |||
DATA(ld_i_tcode) | = SY-TCODE. | |||
DATA(ld_i_cprog) | = SY-CPROG. | |||
DATA(ld_i_batch) | = SY-BATCH. | |||
Search for further information about these or an SAP related objects