SAP Function Modules

FKK_PT_GET_EXBELX_SETTING SAP Function module - Gets customizing values for EXBELX generation from DB







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

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


Pattern for FM FKK_PT_GET_EXBELX_SETTING - FKK PT GET EXBELX SETTING





CALL FUNCTION 'FKK_PT_GET_EXBELX_SETTING' "Gets customizing values for EXBELX generation from DB
  EXPORTING
    is_sequence_request =       " fkk_pt_ds_extdoc2_keyvalues  Key Values
  IMPORTING
    es_pt_num_rule =            " fkk_pt_num_rule  Rule to Create Legal Numbers
    ef_cont_num_th_fy =         " general_flag  Continuous Numbering Through Fiscal Years
    ef_create_exbelx =          " general_flag  General Indicator
  EXCEPTIONS
    INVALID_INPUT = 1           "               data to get EXBELX settings are inconsistent/invalid
    ODN_OBJECT_NOT_REGISTERED = 2  "            used Official Document Number Object is not registered to be used
    CONT_NUM_TH_FY_CC_NOT_ALLOWED = 3  "        continuous numbering through fiscal years (or company codes) is disallowed
    .  "  FKK_PT_GET_EXBELX_SETTING

ABAP code example for Function Module FKK_PT_GET_EXBELX_SETTING





The ABAP code below is a full code listing to execute function module FKK_PT_GET_EXBELX_SETTING 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_es_pt_num_rule  TYPE FKK_PT_NUM_RULE ,
ld_ef_cont_num_th_fy  TYPE GENERAL_FLAG ,
ld_ef_create_exbelx  TYPE GENERAL_FLAG .

DATA(ld_is_sequence_request) = 'Check type of data required'. . CALL FUNCTION 'FKK_PT_GET_EXBELX_SETTING' EXPORTING is_sequence_request = ld_is_sequence_request IMPORTING es_pt_num_rule = ld_es_pt_num_rule ef_cont_num_th_fy = ld_ef_cont_num_th_fy ef_create_exbelx = ld_ef_create_exbelx EXCEPTIONS INVALID_INPUT = 1 ODN_OBJECT_NOT_REGISTERED = 2 CONT_NUM_TH_FY_CC_NOT_ALLOWED = 3 . " FKK_PT_GET_EXBELX_SETTING
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_es_pt_num_rule  TYPE FKK_PT_NUM_RULE ,
ld_is_sequence_request  TYPE FKK_PT_DS_EXTDOC2_KEYVALUES ,
ld_ef_cont_num_th_fy  TYPE GENERAL_FLAG ,
ld_ef_create_exbelx  TYPE GENERAL_FLAG .

ld_is_sequence_request = 'Check type of data required'.

SAP Documentation for FM FKK_PT_GET_EXBELX_SETTING


This function module gets the data customized in the DFKK_PT_NUM_RULE table for the Portuguese legal number creation ...See here for full SAP fm documentation

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