MSC Function Modules

PRONOVIA/MSC_MASS_OPER_START

Starts a mass operation, which must be transferred as parameter. The initial screen can be skipped.
In ABAP program /PRONOVIA/MSC_API_EXAMPLE some example calls for this function module are collected.
BAPI Module
/PRONOVIA/MSC_BAPI_OPER_START provides a RFC suitable interface with identical parameters.

Interface Description

Name

Type

Content

Name

Type

Content

Export Parameter

PF_MSCID

/PRONOVIA/MSCID

Valid mass operation ID acc. table /PRONOVIA/MSCOPR.

PS_MSC_DATA

/PRONOVIA/MSC_IO

For transfer of initial fields, if initial screen shall be skipped. Depending on the mass operation ID the data must be filled for the BOM or document structure.

PF_START_DIRECT

FLAG

No initial screen, direct jump to main dialog. All necessary fields must be transferred with PS_MSC_DATA and eventually PT_AENNR_RANGE.

PT_AENNR_RANGE

/PRONOVIA/RANGE_C12_TAB

If a release process shall be performed for several change numbers, they must be entered here.

PT_OBJ_CTRL

/PRONOVIA/MSC_OBJ_CTRL_TAB

Allows control of object selection and filed control in clone processes. Detail can be found in form routine BOM_CLONE_DARK in example program /PRONOVIA/MSC_API_EXAMPLE.
(see also /PRONOVIA/MSC_API_EXAMPLE in ).

Import Parameter

PTX_OBJECTS

/PRONOVIA/MSC_OBJ_TAB

Complete object list after processing. Successfully processed objects will have value C_STATE_ACTION_OK, if not C_STATE_ACTION_ERROR in field MSC_STATE.

PTX_LOG_BUFFER

/PRONOVIA/LISTZEILE_TAB

If set, the action protocol in this buffer will be transferred to the calling program.

Exceptions





INVALID_MSCID



Mass operation ID not valid.

ERROR



Error checking start field (PF_START_DIRECT = 'X') from PS_MSC_DATA.

CANCEL



Operation canceled by user

PRONOVIA/MSC_GET_JOB_INFO

Only for clone processes. Returns current data to a mass operation during a clone process. May be necessary, if in a user exit actions shall be controlled dependent on this data during object creation.

Name

Type

Content

Name

Type

Content

Import Parameter

PSX_MSC_DATA

/PRONOVIA/MSC_IO

Contains all main control parameters for current clone mass operation.

PTX_OBJECTS

/PRONOVIA/MSC_OBJ_TAB

Table of displayed objects and objects to be processed.

PSX_VCLONE_DATA

/PRONOVIA/MSC_VCLONE

Reservation for future versions.

Exceptions

MSC_NOT_RUNNING



No ProMassOperation clone mass operation running.

PRONOVIA/MSC_CLO_CHKBOX_SET

Allows to modify the clone checkboxes or the replacement object key in ProMassOperation. This function module can be used from the Exits "On action on object (double click)" and Click on customer specific checkbox.
To prepare actions set the following fields in the object buffer:

SELFL

Set to X for each record to modify.

NEW_CHECKED

Defines which action is to set, according ProMassOperation constants C_CLO_OPER_*.

NEW_ACTIVE

X = line is active for input, space = line is display only.

Name

Type

Content

Name

Type

Content

Import Parameter

PF_NODE_KEY

C

The node key on which the action is performed.

PF_NEW_OBJ_KEY

C

New internal object key when new state is "replacing".

PF_NEW_DISP_KEY

C

New external object key when new state is "replacing".

PT_MV_INDEX

/PRONOVIA/MSC_MV_INDEX_T

Reserved for internal use.

Exceptions

INVALID_PARAMETER



Invalid parameters for action.

PRONOVIA/MSC_DOC_READ_SAVESEL

Returns all saved documents in a selection to a table, with option of selection by the user. See also ProMassOperation, User Manual.

Name

Type

Content

Name

Type

Content

Export Parameter

PF_SELID

/PRONOVIA/MSC_SELID

ID of a saved selection acc. table /PRONOVIA/MSCSEH with SELTY = „D". Without this parameter, the user cannot choose the selection to read.

Import Parameter





PTX_DOCUMENTS

/PRNOOVIA/DMS_TBL_DRAW

All document stored in the selection.

PFX_SELID

/PRONOVIA/MSC_SELID

Selection ID, chosen or transferred by PF_SELID.

Exceptions

ERROR



Invalid ID has been transferred or other processing error.

CANCEL



Operation cancelled by user.

PRONOVIA/MSC_MAT_READ_SAVESEL

This function module returns material masters who have been saved in a selection back to a table, optionally selectable by the user (see also ProMassOperation, User Manual).

Name

Type

Content

Name

Type

Content

Export Parameter

PF_SELID

/PRONOVIA/MSC_SELID

ID of a saved selection acc. table /PRONOVIA/MSCSEH with SELTY = „M". Without this parameter, the user cannot choose the selection to read.

Import Parameter

PTX_MATERIALS

/PRNOOVIA/TBL_MARA

All material master records saved in the selection.

PFX_SELID

/PRONOVIA/MSC_SELID

Selected or transferred selection ID in PF_SELID.

Exceptions

ERROR



Invalid ID or other processing error.

CANCEL



Operation cancelled by user.

PRONOVIA/MSC_MAINT_SAVED_SEL

Maintenance of saved selections (see also ).

Name

Type

Content

Name

Type

Content

Export Parameter

PF_SELTY

C

User can select the selection to maintain. This parameter will restrict the range of document selection (PF_SELTYP = 'D') or material selection (PF_SELTYP = 'M').



© ProNovia AG | Imprint | Data Protection