SAP Function Modules

EXIT_SAPLJHTS_016 SAP Function module - IS-M/AM: Fill Structure RJHATSTAT for the Technical Interface







EXIT_SAPLJHTS_016 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 EXIT_SAPLJHTS_016 into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM EXIT_SAPLJHTS_016 - EXIT SAPLJHTS 016





CALL FUNCTION 'EXIT_SAPLJHTS_016' "IS-M/AM: Fill Structure RJHATSTAT for the Technical Interface
  EXPORTING
    stat_ebene =                " rjhatstat-stat_ebene  Order Level
*   par_rjhak =                 " jha1_rjhak_str  Order header
*   par_rjhap =                 " jha1_rjhap_str  Items
*   par_rjhapa =                " jha1_rjhapa_str  Ad item
*   par_rjhae =                 " jha1_rjhae_str  Schedule line
*   par_rjhaea =                " jha1_rjhaea_str  Ad schedule line
*   par_rjhamot =               " jha1_rjhamot_str  Ad spec
  CHANGING
    par_rjhatstat =             " jha1_rjhatstat_str  Characteristic/status list
    .  "  EXIT_SAPLJHTS_016

ABAP code example for Function Module EXIT_SAPLJHTS_016





The ABAP code below is a full code listing to execute function module EXIT_SAPLJHTS_016 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).


DATA(ld_par_rjhatstat) = 'Check type of data required'.

DATA(ld_stat_ebene) = some text here
DATA(ld_par_rjhak) = 'Check type of data required'.
DATA(ld_par_rjhap) = 'Check type of data required'.
DATA(ld_par_rjhapa) = 'Check type of data required'.
DATA(ld_par_rjhae) = 'Check type of data required'.
DATA(ld_par_rjhaea) = 'Check type of data required'.
DATA(ld_par_rjhamot) = 'Check type of data required'. . CALL FUNCTION 'EXIT_SAPLJHTS_016' EXPORTING stat_ebene = ld_stat_ebene * par_rjhak = ld_par_rjhak * par_rjhap = ld_par_rjhap * par_rjhapa = ld_par_rjhapa * par_rjhae = ld_par_rjhae * par_rjhaea = ld_par_rjhaea * par_rjhamot = ld_par_rjhamot CHANGING par_rjhatstat = ld_par_rjhatstat . " EXIT_SAPLJHTS_016
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_par_rjhatstat  TYPE JHA1_RJHATSTAT_STR ,
ld_stat_ebene  TYPE RJHATSTAT-STAT_EBENE ,
ld_par_rjhak  TYPE JHA1_RJHAK_STR ,
ld_par_rjhap  TYPE JHA1_RJHAP_STR ,
ld_par_rjhapa  TYPE JHA1_RJHAPA_STR ,
ld_par_rjhae  TYPE JHA1_RJHAE_STR ,
ld_par_rjhaea  TYPE JHA1_RJHAEA_STR ,
ld_par_rjhamot  TYPE JHA1_RJHAMOT_STR .

ld_par_rjhatstat = 'Check type of data required'.

ld_stat_ebene = some text here
ld_par_rjhak = 'Check type of data required'.
ld_par_rjhap = 'Check type of data required'.
ld_par_rjhapa = 'Check type of data required'.
ld_par_rjhae = 'Check type of data required'.
ld_par_rjhaea = 'Check type of data required'.
ld_par_rjhamot = 'Check type of data required'.

SAP Documentation for FM EXIT_SAPLJHTS_016


INCLUDE CUSTEXIT_FILL_RJHAT OBJECT DOKU ID TX
















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 EXIT_SAPLJHTS_016 or its description.