Function Module PM_ORDER_EXTERN_SCHED_DEFAULT 

Use

This function module is a component of the CS-SDL interface with which an external scheduling system can be connected to the order processing function in the application areas Plant Maintenance and Customer Service.

Integration

The system calls up this function module for the following functionality:

Prerequisites

You have assigned the function module PM_ORDER_EXTERN_SCHED_DEFAULT to the fixed value S in Customizing under Plant Maintenance and Customer Service ® Maintenance and Service Processing ® Maintenance and Service Orders ® Scheduling ® External Scheduling ® Configure Communication.

Features

Import Parameters

Parameter Name

Component

Data Type

Length

Short Text

ORDER_HEADER

ORDER_

NUMBER

CHAR

12

Order number

OWN_

LOGICAL_

SYSTEM

CHAR

10

Logical system

START_DATE

DATS

8

Order start date

START_TIME

TIMS

6

Order start date (time)

END_DATE

DATS

8

Order finish date

END_TIME

TIMS

6

Order finish date (time)

PRIORITY

CHAR

1

Order priority

PREFERRED_ ENGINEER

NUMC

8

Object ID

ORDER_TYPE

CHAR

4

Order type

CUSTOMER_
NUMBER

CHAR

10

Customer number

POST_CODE

CHAR

10

Postal code

CITY

CHAR

35

City

STREET

CHAR

35

Street and house number

STATUS

CHAR

4

Individual object status (short form)

DIALOG_

POSSIBLE

 

CHAR

1

One-character indicator

 

Export Parameters

Parameter Name

Component

Data Type

Length

Short Text

ORDER_HEADER_RETURN

ORDER_

NUMBER

CHAR

12

Order number

OWN_

LOGICAL_

SYSTEM

CHAR

10

Logical system

START_DATE

DATS

8

Order start date

START_TIME

TIMS

6

Order start date (time)

END_DATE

DATS

8

Order finish date

END_TIME

TIMS

6

Order finish date (time)

PRIORITY

CHAR

1

Order priority

PREFERRED_
ENGINEER

NUMC

8

Object ID

ORDER_TYPE

CHAR

4

Order type

CUSTOMER_

NUMBER

CHAR

10

Customer number

POST_CODE

CHAR

10

Postal code

CITY

CHAR

35

City

STREET

CHAR

35

Street and house number

STATUS

CHAR

4

Individual object status (short form)

ERROR_CODE

 

NUMC

4

Counter parameters

ERROR_

DESCRIPTION

 

CHAR

70

Character field of list 70

 

Tables

Parameter Name

Component

Data Type

Length

Short Text

OPERATIONS

ID

NUMC

8

General counter for the order

COUNTER

CHAR

4

Operation number

SUB_COUNTER

CHAR

4

Sub-operation

UPDATE_

FLAG

CHAR

1

Update indicator

DESCRIPTION

CHAR

40

Operation short text

EARLIEST_

START_DATE

DATS

8

Earliest scheduled start: Execute (date)

EARLIEST_

START_TIME

TIMS

6

Earliest scheduled start: Execute (time)

LATEST_

START_DATE

DATS

8

Latest scheduled start: Execute (date)

LATEST_

START_TIME

TIMS

6

Latest scheduled start: Execute (time)

EARLIEST_

FINISH_DATE

DATS

8

Earliest scheduled finish: Execute (date)

EARLIEST_

FINISH_TIME

TIMS

6

Earliest scheduled finish: Execute (time)

LATEST_

FINISH_DATE

DATS

8

Latest scheduled finish: Execute (date)

LATEST_

FINISH_TIME

TIMS

6

Latest scheduled finish: Execute (time)

NUMBER_OF_
CAPACITY

NUMC

2

Two-figure number

WORKCENTER

CHAR

8

Work center

PLANT

CHAR

4

Plant

AMOUNT_OF_
WORK

FLTP

16

 

SCHED_

PARAM1

CHAR

4

Scheduling parameters for external scheduling

SCHED_

PARAM2

CHAR

4

Scheduling parameters for external scheduling

SCHED_

PARAM3

CHAR

4

Scheduling parameters for external scheduling

REQUIREMENTS

OPERATION_ID

NUMC

8

General counter for the order

QUALIFICATION_ID

NUMC

8

Object ID

RATING

NUMC

4

Characteristics of a quality scale

ESSENTIAL

CHAR

1

Indicator: Mandatory or optional requirement

Note

The operations to be scheduled are transferred to the interface in the table OPERATIONS.

After this function module has been called, the scheduled dates in the table OPERATIONS in the components EARLIEST_START_DATE/TIME, LATEST_START_DATE/TIME, EARLIEST_FINISH_DATE/TIME, LATEST_FINISH_DATE/TIME must be transferred to the SAP System.