/SAPAPO/OM_CUS_ORDER_CHANGE - Create/Change/Delete Sales Order Objects in liveCache

BAL Application Log Documentation   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Functionality

The sales order schedule lines transferred in the table IT_SCHEDULE are recreated/deleted/changed. Each operation to be carried out is based on the content of the field METHOD in IT_SCHEDULE:

  • If METHOD = GC_NEW:
The schedule line with the key SCHEDULING_LINE is recreated for the specified order under ORDERID. If no order exists with the key ORDERID, one will be created.
  • If METHOD = GC_DELETE:
The schedule line with the key SCHEDULING_LINE is deleted. If this is the only schedule line in the affected sales order, the order itself will also be deleted.
  • If METHOD = GC_CHANGE:
The schedule line with the key SCHEDULING_LINE is deleted and recreated with the new attributes that have been transferred.
  • If METHOD = GC_DELETE_ORDER:
The complete sales order with the key ORDERID and all its schedule lines are deleted.

In ET_RC, individual error codes are returned for those pegging areas where errors were determined in processing.

If necessary, fixed pegging relationships are deleted when deleting or changing schedule lines or orders.These deleted relationships are returned in the table ET_DELETED_FIX_PEGGING. If they should be recreated, this is the task of the calling program.

Example

Notes

Return codes to be queried (see table ET_RC):

  • om_invalid_schedule_line: Incorrect key for a schedule line

Further information


Parameters

ET_CHANGED_PEGIDS
ET_CHANGED_TOP_ORDERS
ET_DELETED_FIX_PEGGING
ET_DELETED_TOP_ORDERS
ET_RC
IS_ATP_INFO
IS_GEN_PARAMS
IT_CHARACT_REQ_INPNODE
IT_CHARACT_VAL_INPNODE
IT_ORDKEYS
IT_ORDMAPS
IT_POSITIONS
IT_SCHEDULE_LINES
IV_SIMSESSION

Exceptions

LC_APPL_ERROR
LC_COM_ERROR
LC_CONNECT_FAILED

Function Group

APO/SAPLOM_CUSTOMER

General Material Data   ABAP Short Reference  
This documentation is copyright by SAP AG.


Length: 3399 Date: 20120525 Time: 041806     triton ( 78 ms )