/SAPAPO/OM_PUR_ORDER_CHANGE - Create/Change/Delete Purchase Order Objects in liveCache
CL_GUI_FRONTEND_SERVICES - Frontend Services CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
The puchase order schedule lines specified in the table IT_SCHEDULE are recreated/deleted/changed. Each operation to be executed is based on the content of the field METHOD in IT_SCHEDULE:
- If METHOD = GC_NEW:
- The purchase order schedule line with the key SCHEDULING_LINE is recreated for the order specified under ORDERID. If the order with the key ORDERID does not yet exist, it will be created now.
- If METHOD = GC_DELETE:
- The purchase order schedule line with the key SCHEDULING_LINE is deleted. If it is the only schedule line of the affected purchase order the order itself will also be deleted.
- If METHOD = GC_CHANGE:
- The purchase order schedule line with the key SCHEDULING_LINE is deleted and recreated with the new specified attributes .
- If METHOD = GC_DELETE_ORDER:
- The complete purchase order with the key ORDERID with all its schedule lines will be completely deleted.
In ET_RC, individual error codes are returned for those schedule lines where errors were determined in processing.
If necessary, fixed pegging relationships will be deleted when orders or schedule lines are deletedor changed. These deleted relationships are returned in the table ET_DELETED_FIX_PEGGING. If they need to be regenerated, this is the responsibility of the calling program.
If top level orders have been deleted (explicitly with the method GC_DELETE, or implicitly when the last suborder in the affected top level order was deleted), their keys are returned in the table ET_DELETED_TOP_ORDERS.
Example
Notes
Return codes to be queried (see table ET_RC):
Further information
Parameters
ET_CHANGED_TOP_ORDERSET_DELETED_FIX_PEGGING
ET_DELETED_TOP_ORDERS
ET_RC
IS_ATP_INFO
IS_GEN_PARAMS
IT_CHARACT_VAL_OUTNODE
IT_ORDKEYS
IT_ORDMAPS
IT_SCHEDULE_LINES
IV_SIMSESSION
Exceptions
LC_APPL_ERRORLC_COM_ERROR
LC_CONNECT_FAILED
Function Group
APO/SAPLOM_PURCHASERFUMSV00 - Advance Return for Tax on Sales/Purchases TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 3333 Date: 20120525 Time: 050149 triton ( 121 ms )






