SAP Function Modules

PTCOR_UIA_CUSTOMIZING_GET SAP Function module







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

Associated Function Group: PT_COR_REQUEST_UIA
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM PTCOR_UIA_CUSTOMIZING_GET - PTCOR UIA CUSTOMIZING GET





CALL FUNCTION 'PTCOR_UIA_CUSTOMIZING_GET' "
  EXPORTING
    im_pernr =                  " p_pernr       Personnel Number
    im_command =                " ptreq_command
    im_modus =                  " pt_req_mode   Mode of Web Application
*   im_debug =                  " boolean       Boolean Variable (X=True, -=False, Space=Unknown)
  IMPORTING
    ex_calesettings =           " ptcor_uia_calesettings_struc  Structure for Correction Scenario
    ex_ttypes =                 " ptcor_uia_ttype_tab  Clock-In/Out Corr.: UIA Table of Permitted Time Event Types
    ex_uiaelements =            " ptcor_uia_uiaelements_struc  UIA User Interface Elements
  TABLES
    ex_messages =               " ptcor_uia_message_tab  Leave Request: Message Table
    ex_reasons =                " ptcor_reason_tab  ESS Correction Scenario: Table Type for Abs./Att. Reasons
    .  "  PTCOR_UIA_CUSTOMIZING_GET

ABAP code example for Function Module PTCOR_UIA_CUSTOMIZING_GET





The ABAP code below is a full code listing to execute function module PTCOR_UIA_CUSTOMIZING_GET 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_ex_calesettings  TYPE PTCOR_UIA_CALESETTINGS_STRUC ,
ld_ex_ttypes  TYPE PTCOR_UIA_TTYPE_TAB ,
ld_ex_uiaelements  TYPE PTCOR_UIA_UIAELEMENTS_STRUC ,
it_ex_messages  TYPE STANDARD TABLE OF PTCOR_UIA_MESSAGE_TAB,"TABLES PARAM
wa_ex_messages  LIKE LINE OF it_ex_messages ,
it_ex_reasons  TYPE STANDARD TABLE OF PTCOR_REASON_TAB,"TABLES PARAM
wa_ex_reasons  LIKE LINE OF it_ex_reasons .

DATA(ld_im_pernr) = 'Check type of data required'.
DATA(ld_im_command) = 'Check type of data required'.
DATA(ld_im_modus) = 'Check type of data required'.
DATA(ld_im_debug) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ex_messages to it_ex_messages.

"populate fields of struture and append to itab
append wa_ex_reasons to it_ex_reasons. . CALL FUNCTION 'PTCOR_UIA_CUSTOMIZING_GET' EXPORTING im_pernr = ld_im_pernr im_command = ld_im_command im_modus = ld_im_modus * im_debug = ld_im_debug IMPORTING ex_calesettings = ld_ex_calesettings ex_ttypes = ld_ex_ttypes ex_uiaelements = ld_ex_uiaelements TABLES ex_messages = it_ex_messages ex_reasons = it_ex_reasons . " PTCOR_UIA_CUSTOMIZING_GET
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_ex_calesettings  TYPE PTCOR_UIA_CALESETTINGS_STRUC ,
ld_im_pernr  TYPE P_PERNR ,
it_ex_messages  TYPE STANDARD TABLE OF PTCOR_UIA_MESSAGE_TAB ,
wa_ex_messages  LIKE LINE OF it_ex_messages,
ld_ex_ttypes  TYPE PTCOR_UIA_TTYPE_TAB ,
ld_im_command  TYPE PTREQ_COMMAND ,
it_ex_reasons  TYPE STANDARD TABLE OF PTCOR_REASON_TAB ,
wa_ex_reasons  LIKE LINE OF it_ex_reasons,
ld_ex_uiaelements  TYPE PTCOR_UIA_UIAELEMENTS_STRUC ,
ld_im_modus  TYPE PT_REQ_MODE ,
ld_im_debug  TYPE BOOLEAN .

ld_im_pernr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ex_messages to it_ex_messages.
ld_im_command = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ex_reasons to it_ex_reasons.
ld_im_modus = 'Check type of data required'.
ld_im_debug = '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 PTCOR_UIA_CUSTOMIZING_GET or its description.