SAP Function Modules

J_7L_MAINTAIN_PACKGROUP SAP Function module







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

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


Pattern for FM J_7L_MAINTAIN_PACKGROUP - J 7L MAINTAIN PACKGROUP





CALL FUNCTION 'J_7L_MAINTAIN_PACKGROUP' "
* EXPORTING
*   i_flg_ch_doc_on = 'X'       " c
*   i_test_modus_on = SPACE     " c
*   i_modus_enqueue_pack_group = 'P'  " c
*   i_modus_condition = 'C'     " c
*   i_modus_update = 'S'        " c
*   i_modus_plausib_check = 'N'  " c
*   i_copy_modus = SPACE        " c
  TABLES
    o_v04 =                     " j_7lv04
    o_v05 =                     " j_7lv05
    o_v07 =                     " j_7lv07
  EXCEPTIONS
    MAINTAIN_ERROR = 1          "
    .  "  J_7L_MAINTAIN_PACKGROUP

ABAP code example for Function Module J_7L_MAINTAIN_PACKGROUP





The ABAP code below is a full code listing to execute function module J_7L_MAINTAIN_PACKGROUP 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:
it_o_v04  TYPE STANDARD TABLE OF J_7LV04,"TABLES PARAM
wa_o_v04  LIKE LINE OF it_o_v04 ,
it_o_v05  TYPE STANDARD TABLE OF J_7LV05,"TABLES PARAM
wa_o_v05  LIKE LINE OF it_o_v05 ,
it_o_v07  TYPE STANDARD TABLE OF J_7LV07,"TABLES PARAM
wa_o_v07  LIKE LINE OF it_o_v07 .

DATA(ld_i_flg_ch_doc_on) = 'Check type of data required'.
DATA(ld_i_test_modus_on) = 'Check type of data required'.
DATA(ld_i_modus_enqueue_pack_group) = 'Check type of data required'.
DATA(ld_i_modus_condition) = 'Check type of data required'.
DATA(ld_i_modus_update) = 'Check type of data required'.
DATA(ld_i_modus_plausib_check) = 'Check type of data required'.
DATA(ld_i_copy_modus) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_o_v04 to it_o_v04.

"populate fields of struture and append to itab
append wa_o_v05 to it_o_v05.

"populate fields of struture and append to itab
append wa_o_v07 to it_o_v07. . CALL FUNCTION 'J_7L_MAINTAIN_PACKGROUP' * EXPORTING * i_flg_ch_doc_on = ld_i_flg_ch_doc_on * i_test_modus_on = ld_i_test_modus_on * i_modus_enqueue_pack_group = ld_i_modus_enqueue_pack_group * i_modus_condition = ld_i_modus_condition * i_modus_update = ld_i_modus_update * i_modus_plausib_check = ld_i_modus_plausib_check * i_copy_modus = ld_i_copy_modus TABLES o_v04 = it_o_v04 o_v05 = it_o_v05 o_v07 = it_o_v07 EXCEPTIONS MAINTAIN_ERROR = 1 . " J_7L_MAINTAIN_PACKGROUP
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_i_flg_ch_doc_on  TYPE C ,
it_o_v04  TYPE STANDARD TABLE OF J_7LV04 ,
wa_o_v04  LIKE LINE OF it_o_v04,
ld_i_test_modus_on  TYPE C ,
it_o_v05  TYPE STANDARD TABLE OF J_7LV05 ,
wa_o_v05  LIKE LINE OF it_o_v05,
ld_i_modus_enqueue_pack_group  TYPE C ,
it_o_v07  TYPE STANDARD TABLE OF J_7LV07 ,
wa_o_v07  LIKE LINE OF it_o_v07,
ld_i_modus_condition  TYPE C ,
ld_i_modus_update  TYPE C ,
ld_i_modus_plausib_check  TYPE C ,
ld_i_copy_modus  TYPE C .

ld_i_flg_ch_doc_on = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_o_v04 to it_o_v04.
ld_i_test_modus_on = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_o_v05 to it_o_v05.
ld_i_modus_enqueue_pack_group = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_o_v07 to it_o_v07.
ld_i_modus_condition = 'Check type of data required'.
ld_i_modus_update = 'Check type of data required'.
ld_i_modus_plausib_check = 'Check type of data required'.
ld_i_copy_modus = '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 J_7L_MAINTAIN_PACKGROUP or its description.