Function Module PM_ORDER_EXTERN_SCHED_APPOINT 

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 components Plant Maintenance and Customer Service.

Integration

The function module PM_ORDER_EXTERN_SCHED_APPOINT defines the interface in order to be able to select a suitable date from the different proposed dates delivered by the external scheduling system.

Prerequisites

You are using the function module PM_ORDER_EXTERN_SCHED_DIALOG and have assigned the function module PM_ORDER_EXTERN_SCHED_APPOINT to the fixed value A 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

OPERATION_ID

 

NUMC

8

General counter for the order

Note

The parameter OPERATION_ID specifies for which operation a date should be agreed.

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 length 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

APPOINTMENTS

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)

PERS_

NUMBER

NUMC

8

Object ID

PERS_NAME

CHAR

40

Text of length 40

Note

The components PERS_NUMBER and PERS_NAME are active, but are not transferred to the interface in Release 4.6C.

After this function module has been called, possible dates must be transferred to the SAP System in the table APPOINTMENTS.