SAP Function Modules

LTRT_ROUTE_REPRIORITIZATION SAP Function module - Reprioritize task according to a specific resource







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

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


Pattern for FM LTRT_ROUTE_REPRIORITIZATION - LTRT ROUTE REPRIORITIZATION





CALL FUNCTION 'LTRT_ROUTE_REPRIORITIZATION' "Reprioritize task according to a specific resource
  EXPORTING
    i_locat =                   " lloct-locat   Site
    is_lrsrc =                  " lrsrc         Resource
    it_ltkpl =                  " ltskt_t_ltkpl  Task pool
  IMPORTING
    et_children =               " ltrm_it_field_internal_name
    et_task_prio =              " ltrm_it_task_priority  Output list of tasks' updated priorities
    et_route_prio_details =     " ltrm_it_task_priot_comp
  TABLES
    it_lrsqa =                  " lrsqa         Resource qualifications
    .  "  LTRT_ROUTE_REPRIORITIZATION

ABAP code example for Function Module LTRT_ROUTE_REPRIORITIZATION





The ABAP code below is a full code listing to execute function module LTRT_ROUTE_REPRIORITIZATION 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_et_children  TYPE LTRM_IT_FIELD_INTERNAL_NAME ,
ld_et_task_prio  TYPE LTRM_IT_TASK_PRIORITY ,
ld_et_route_prio_details  TYPE LTRM_IT_TASK_PRIOT_COMP ,
it_it_lrsqa  TYPE STANDARD TABLE OF LRSQA,"TABLES PARAM
wa_it_lrsqa  LIKE LINE OF it_it_lrsqa .


SELECT single LOCAT
FROM LLOCT
INTO @DATA(ld_i_locat).

DATA(ld_is_lrsrc) = 'Check type of data required'.
DATA(ld_it_ltkpl) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_lrsqa to it_it_lrsqa. . CALL FUNCTION 'LTRT_ROUTE_REPRIORITIZATION' EXPORTING i_locat = ld_i_locat is_lrsrc = ld_is_lrsrc it_ltkpl = ld_it_ltkpl IMPORTING et_children = ld_et_children et_task_prio = ld_et_task_prio et_route_prio_details = ld_et_route_prio_details TABLES it_lrsqa = it_it_lrsqa . " LTRT_ROUTE_REPRIORITIZATION
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_et_children  TYPE LTRM_IT_FIELD_INTERNAL_NAME ,
ld_i_locat  TYPE LLOCT-LOCAT ,
it_it_lrsqa  TYPE STANDARD TABLE OF LRSQA ,
wa_it_lrsqa  LIKE LINE OF it_it_lrsqa,
ld_et_task_prio  TYPE LTRM_IT_TASK_PRIORITY ,
ld_is_lrsrc  TYPE LRSRC ,
ld_et_route_prio_details  TYPE LTRM_IT_TASK_PRIOT_COMP ,
ld_it_ltkpl  TYPE LTSKT_T_LTKPL .


SELECT single LOCAT
FROM LLOCT
INTO ld_i_locat.


"populate fields of struture and append to itab
append wa_it_lrsqa to it_it_lrsqa.
ld_is_lrsrc = 'Check type of data required'.
ld_it_ltkpl = 'Check type of data required'.

SAP Documentation for FM LTRT_ROUTE_REPRIORITIZATION


This function reprioritizes tasks according to a specific resource.
Get the following priorities for each task : ...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 LTRT_ROUTE_REPRIORITIZATION or its description.