Ansicht
Dokumentation

BAPI_MOSRVAPS_SAVEMULTI3 - Create or Change In-House Production Orders

BAPI_MOSRVAPS_SAVEMULTI3 - Create or Change In-House Production Orders

RFUMSV00 - Advance Return for Tax on Sales/Purchases   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to create or change manufacturing orders.

For you to be able to create an order, a valid source of supply must exist for in-house production. This can be a production process model (PPM) of the type PP/DS or a production data structure (PDS). The source of supply is then used to generate the order. The order structure (components, operations, durations, capacity requirements, and so on) is determined based on the explosion. If a valid source of supply does not exist, a 'dummy' activity is generated and the order is created without structure and with only a main component. The CHECK_PPM_EXISTENCE parameter can be used to check whether a valid source of supply exists for the master product. If a valid source of supply does not exist, the order is not created or changed and an error message is issued.

You can use the change parameters to change an order that already exists.

If data that is relevant to the source of supply (for example, date, quantity, characteristics, or master output) is changed when the order is changed, source of supply selection and explosion is carried out again.

If you are using this BAPI for the first time, read the following important information.

Notes

You have the following options for creating or changing an order:

  • With external number assignment
  • Enter ORDER_NUMBER + ORDER_TYPE
    A GUID is assigned internally. The order is displayed using ORDER_NUMBER in the APO system. The GUID with which the order was created is returned in the mapping table.

  • This is only possible for the active planning version.

  • With internal number assignment
    If an order is created using internal number assignment, it receives the order category APO local order (domain fixed value 8).
  • Entered ORDER_NUMBER
    A GUID and an internal order number as assigned internally. The order is displayed in APO using this internal order number. The GUID and the internally assigned order number are returned in the mapping table, together with the ORDER_NUMBER entered. The ORDER_NUMBER is only used for assignment in the mapping table and it is not used in APO in this case.

  • Entered ORDER_NUMBER + ORDID
    The system behavior is the same as when only ORDER_NUMBER is assigned. The only difference is that a new GUID is not assigned internally. The ORDID entered is used instead.

If the order (ORDER_NUMBER for external number assignment) or the ORDID entered already exist for the logical system used (LOGICAL_SYSTEM), this order is automatically changed; otherwise, it is created. The NO_CREATE parameter can be used to change the system behavior so that an error message is issued and the order is not created, if the order does not exist.

Note:

  • An APO local order (domain fixed value 8) for changing may not be addressed using its external number, rather by using its GUID only.
  • If you want to address an order using its GUID, you have to set EXT_NUMBER_ASSIGNMENT to internal number assignment.
  • Note also that a COMMIT WORK or ROLLBACK WORK is automatically made when the BAPI is executed.
  • An order can only be changed if its status permits this. Orders that have already been released or confirmed may no longer be changed.
    Note also that this BAPI can only be used to change orders that were created using PP/DS PPMs or PDS.
  • Note that this is automatically scheduled during the initial creation of an order or when changing an order.

Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.

Further information

For standard scenarios or to create an order, it is sufficient to fill the required import parameters and the table parameters ORDER_HEAD and ORDER_HEAD_X.





Parameters

CFG_BLOB
CFG_HEADERS
CFG_INSTANCES
CFG_PART_OF
CFG_REF_OBJECT
CFG_VALUES
CFG_VAR_KEYS
CHECK_SOURCE_EXISTENCE
COMMIT_CONTROL
EVENT_CONTROL
EXTENSION_IN
EXT_NUMBER_ASSIGNMENT
LOGICAL_SYSTEM
MAPPING_DATA
NO_CREATE
ORDER_HEAD
ORDER_HEAD_X
ORDER_TYPE
PLANNING_MODE_USAGE
PLNG_VERSION
RETURN
STRATEGY_PROFILE

Exceptions

Function Group

10503

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

Length: 7097 Date: 20240523 Time: 174240     sap01-206 ( 105 ms )