Functionality The BAPI_SCHEDULE_MAINTAIN is used to create or change schedulingagreement delivery schedule lines. Further information The parameter PURCHASEDOCUMENT and the scheduling (delivery scheduleline) data in POSCHEDULE and POSCHEDULEX are to be passed on to theinterface. These three parameters are defined as mandatory. Description Header information of the scheduling agreement. Description Purchasing document number of the scheduling agreement. Description Collection of technical parameters to control general functions such asmessage determination and the authorization check at document level. Description Simulation mode Value range
- If the parameter is initial, the POST method is invoked and in the event
of a COMMIT WORK, the data is updated.
- If the parameter is not initial, the BAPI is in simulation mode. A
COMMIT WORK does not lead to a database update.Default In the standard system, the parameter is initial. Description INCLUDE BAPI_CONTRACT_SAG_MEANING OBJECT DOKU ID TX Default The auxiliary structures have been defined as follows:
- Scheduling (delivery schedule line) data
BAPI_TE_MEOUTSCHEDULE BAPI_TE_MEOUTSCHEDULEXDescription INCLUDE BAPI_CONTRACT_SAG_MEANING OBJECT DOKU ID TX Default INCLUDE BAPI_CONTRACT_SAG_MEAN_DEF2 OBJECT DOKU ID TX Description System messages. Description Delivery schedule line information The table is to be populated as follows:
- The item number must be populated because the relevant schedule line is
created or changed with reference to this number
- The schedule line number must be populated
Description Change parameter for delivery schedule line information. The primary key is the document item number and the schedule linenumber. The assignment between POSCHEDULE and POSCHEDULEX is establishedon the basis of this information. Description In the case of asubcontracting item>, thisparameter contains the assigned subcontracting components.Value range For a change, the CHANGE_ID field can have the following instances:
- I> means 'add new component'
- U> means 'change existing component'
- D> means 'delete existing component'. In the case of an assembly,
the entire assembly is deleted. It is not possible to delete assemblycomponents.
- R> means that the existing subcontracting components are to be
deleted and the components belonging to the delivery schedule line addedfrom the BAPI interface. These components must all have the changeindicator R. If the item has more than one schedule line, it is mandatory to populatethe following fields in the component structure:
- ITEM_NO with the item number
- SCHED_LINE with the delivery schedule line number
Description This parameter contains the change parameter for the subcontractingcomponents. Value range To enable the assignment between COMPONENT and COMPONENTX, the followingfields must be populated straight away:
- ITEM_NO: item number
- SCHED_LINE: schedule line number assigned to the item
- RES_ITEM: item number of subcontracting component
|