Ansicht
Dokumentation

/SAPAPO/OM_CONSTRAINT_MODIFY - Change Constraints (Relationships)

/SAPAPO/OM_CONSTRAINT_MODIFY - Change Constraints (Relationships)

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

Further information

@0P@Constraints

Functionality

This function module creates, changes, or deletes constraints between two activities in liveCache.

The parameter IV_METHOD defines the processing method for all constraints listed in the import table IT_CONSTRAINTS:

Value Constant   Meaning
N gc_new   Create constraints
C gc_change   Change existing constraints
O gc_change_or_new   Create; change if it exists
D gc_delete   Delete constraints with the specified keys

CONSTRAINT_MODIFY does not reschedule the affected activities. Therefore, alerts are raised if the required constraints are not met in liveCache. If necessary, call the module OM_ACT_SCHEDULE to get the affected activities rescheduled.

Notes

Error Handling and Troubleshooting

If an error occurs during the processing of one of the specified constraints, no data records in the import table are processed, and all changes made in liveCache are rolled back. Most common error codes:

  • 28 = Reflexive constraint: The predecessor and successor activity are identical.
  • 34 = om_invalid_method: Invalid method; only the methods listed above are valid
  • 43 = om_invalid_segment: At least one of the two activities to be linked by a constraint does not exist in liveCache.
  • 18615 = om_duplicate_constraint: A constraint with the specified key exists already in liveCache.

Further information





Parameters

ET_RC
IS_GEN_PARAMS
IT_CONSTRAINTS
IV_AS_MANY_AS_POSSIBLE
IV_CHECK_MODE_COUPLING
IV_METHOD
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_PLANNING

BAL Application Log Documentation   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 3493 Date: 20240508 Time: 210809     sap01-206 ( 40 ms )