Ansicht
Dokumentation

OIRA_GET_LOC_LIST - Get list of locations to be processed

OIRA_GET_LOC_LIST - Get list of locations to be processed

BAL Application Log Documentation   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function will retrieve the list of locations that need to be processed in the following way:

  • Retrieve customising
  • Get the business type linked to the process

  • Get the selection routine linked to the process

  • Get all process control groups to which the process is assigned

  • Get all allowed location statuses for the process

  • Build up location list
  • Get all locations that are linked to one of the above process control groups

  • Deselect all locations where the schedule indicates that it is not valid to be executed at the given date using the selection routine. This this logic can be omitted by setting the input parameter 'L_NO_SCHEDULE_CHECK' to 'X'.

  • Deselect all locations where the location status does not allow process ing (i.e. station closed). This this logic can be omitted by setting the input parameter 'L_NO_LOC_STATUS_CHECK' to 'X'.

  • Deselect all locations where the process has already been executed or is presently running (this is needed for potential parallel processing). This this logic can be omitted by setting the input parameter 'L_NO_PROCESS_EXECUTION_CHECK' to 'X'.

  • Check authorization for selected locations

Example

Example call:

data: l_process like oiraprocdef-procdef,

data: begin of locations occurs 0,
pblnr like oifspbl-pblnr,
pcgroup like oifspbl-pcgroup,
end of locations.

data: begin of locations_rej occurs 0,
pblnr like oifspbl-pblnr,
pcgroup like oifspbl-pcgroup,
reason type c,
end of locations_rej.

data: pc_pc_obj type oira1_pc_refobj,
pc_ce_obj type oira1_ce_refobj,
pc_mm01_obj type oira1_mm01_refobj.

...

Call function 'OIRA_GET_LOCATION_LIST'

EXPORTING
pi_process = process
pi_execution_date = sy-datum
PI_NO_SCHEDULE_CHECK = ' '
PI_NO_LOC_STATUS_CHECK = ' '
pi_loc_status_date = sy-datum
PI_NO_PROCESS_EXECUTION_CHECK = ' '
PI_USE_LOC_DATES = ' '

TABLES
pt_loc = locations
pt_loc_rej = locations_rej
PT_PBLNR_RANGE = s_pblnr
PT_PBLTYP_RANGE = s_pbltyp
PT_CCODE_RANGE = s_ccode

CHANGING
PC_PC_OBJ = pc_pc_obj
PC_CE_OBJ = pc_ce_obj
PC_MM01_OBJ = pc_mm01_obj

EXCEPTIONS
PROCESS_NOT_FOUND_IN_ANY_PCG = 1
SELECTION_ROUTINE_NOT_FOUND = 2
PROCESS_NOT_FOUND = 3
PROCESS_NOT_ASSIGNED_TO_STATUS = 4
NO_LOCATIONS_FOUND_FOR_PROCESS = 5
BUSINESS_TYPE_NOT_FOUND = 6

Notes

Further information

OIRA_GET_PROCESS_RNBT
OIRA_GET_PROCESS_ROUTINES
OIRB_CHECK_STATUS_ACTIVE
OIRA_PROC_EXE_CHECK
OIRA_AUTH_CHECK_LOCATIONS





Parameters

PC_PC_OBJ
PT_CCODE_RANGE
PT_PBLNR_RANGE
PT_PBLTYP_RANGE

Exceptions

NO_LOCATIONS_FOUND_FOR_PROCESS
PROCESS_NOT_FOUND_IN_ANY_PCG
PROCESS_NOT_LINKED_TO_RNBT
UNKNOWN_ERROR

Function Group

OIRA_APP01

ABAP Short Reference   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 4623 Date: 20240523 Time: 134848     sap01-206 ( 44 ms )