SAP Function Modules

FAGL_FSV_WRITE_CHANGE_DOCU SAP Function module - write change document







FAGL_FSV_WRITE_CHANGE_DOCU is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FAGL_FSV_WRITE_CHANGE_DOCU into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FAGL_FSV_GCD
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FAGL_FSV_WRITE_CHANGE_DOCU - FAGL FSV WRITE CHANGE DOCU





CALL FUNCTION 'FAGL_FSV_WRITE_CHANGE_DOCU' "write change document
  EXPORTING
    upd_tgcd_ver =              " cdhdr-change_ind
    upd_gcdpc =                 " cdhdr-change_ind
    upd_gcdvc =                 " cdhdr-change_ind
*   is_xgcd_ver =               " tgcd_ver      GCD Revision: Value of Items
*   it_xgcdvc =                 " fagl_t_gcdvc_ver
*   it_xgcdpc =                 " fagl_t_gcdpc_ver
*   is_ygcd_ver =               " tgcd_ver      GCD Revision: Value of Items
*   it_ygcdvc =                 " fagl_t_gcdvc_ver  GCD Revision: Value of Items
*   it_ygcdpc =                 " fagl_t_gcdpc_ver  GCD Revision: Element Relationships
*   i_gcddate =                 " dats          Field of type DATS
*   i_reporter =                " fagl_gcd_reporter  GCD Reporter
*   i_revision =                " fagl_gcd_revision  Revision
    .  "  FAGL_FSV_WRITE_CHANGE_DOCU

ABAP code example for Function Module FAGL_FSV_WRITE_CHANGE_DOCU





The ABAP code below is a full code listing to execute function module FAGL_FSV_WRITE_CHANGE_DOCU including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

 

SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_upd_tgcd_ver).


SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_upd_gcdpc).


SELECT single CHANGE_IND
FROM CDHDR
INTO @DATA(ld_upd_gcdvc).

DATA(ld_is_xgcd_ver) = 'Check type of data required'.
DATA(ld_it_xgcdvc) = 'Check type of data required'.
DATA(ld_it_xgcdpc) = 'Check type of data required'.
DATA(ld_is_ygcd_ver) = 'Check type of data required'.
DATA(ld_it_ygcdvc) = 'Check type of data required'.
DATA(ld_it_ygcdpc) = 'Check type of data required'.
DATA(ld_i_gcddate) = 'Check type of data required'.
DATA(ld_i_reporter) = 'Check type of data required'.
DATA(ld_i_revision) = 'Check type of data required'. . CALL FUNCTION 'FAGL_FSV_WRITE_CHANGE_DOCU' EXPORTING upd_tgcd_ver = ld_upd_tgcd_ver upd_gcdpc = ld_upd_gcdpc upd_gcdvc = ld_upd_gcdvc * is_xgcd_ver = ld_is_xgcd_ver * it_xgcdvc = ld_it_xgcdvc * it_xgcdpc = ld_it_xgcdpc * is_ygcd_ver = ld_is_ygcd_ver * it_ygcdvc = ld_it_ygcdvc * it_ygcdpc = ld_it_ygcdpc * i_gcddate = ld_i_gcddate * i_reporter = ld_i_reporter * i_revision = ld_i_revision . " FAGL_FSV_WRITE_CHANGE_DOCU
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_upd_tgcd_ver  TYPE CDHDR-CHANGE_IND ,
ld_upd_gcdpc  TYPE CDHDR-CHANGE_IND ,
ld_upd_gcdvc  TYPE CDHDR-CHANGE_IND ,
ld_is_xgcd_ver  TYPE TGCD_VER ,
ld_it_xgcdvc  TYPE FAGL_T_GCDVC_VER ,
ld_it_xgcdpc  TYPE FAGL_T_GCDPC_VER ,
ld_is_ygcd_ver  TYPE TGCD_VER ,
ld_it_ygcdvc  TYPE FAGL_T_GCDVC_VER ,
ld_it_ygcdpc  TYPE FAGL_T_GCDPC_VER ,
ld_i_gcddate  TYPE DATS ,
ld_i_reporter  TYPE FAGL_GCD_REPORTER ,
ld_i_revision  TYPE FAGL_GCD_REVISION .


SELECT single CHANGE_IND
FROM CDHDR
INTO ld_upd_tgcd_ver.


SELECT single CHANGE_IND
FROM CDHDR
INTO ld_upd_gcdpc.


SELECT single CHANGE_IND
FROM CDHDR
INTO ld_upd_gcdvc.

ld_is_xgcd_ver = 'Check type of data required'.
ld_it_xgcdvc = 'Check type of data required'.
ld_it_xgcdpc = 'Check type of data required'.
ld_is_ygcd_ver = 'Check type of data required'.
ld_it_ygcdvc = 'Check type of data required'.
ld_it_ygcdpc = 'Check type of data required'.
ld_i_gcddate = 'Check type of data required'.
ld_i_reporter = 'Check type of data required'.
ld_i_revision = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FAGL_FSV_WRITE_CHANGE_DOCU or its description.