Fonction SAP BAPI_SCHEDULE_MAINTAIN - Maintenance of Scheduling Agreement Delivery Schedule Lines

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PURCHASINGDOCUMENT BAPIMEOUTHEADER-NUMBER C 10 Purchasing Document Number
TECHNICAL_DATA BAPIMEOUTTECH u 4 X Technical Parameters for Outline Agreement BAPIs
TESTRUN BAPIFLAG-BAPIFLAG C 1 X Single-Character Indicator

Paramètre Reférence Type Long. Description
EXP_HEADER BAPIMEOUTHEADER u 347 Header Data Outline Agreement

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Customer Enhancement (Inbound)
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancement (Outbound)
RETURN BAPIRET2 548 X Return Parameter(s)
SCHEDULE BAPIMEOUTSCHEDULE 132 Delivery Schedule Line Data Outline Agreement
SCHEDULEX BAPIMEOUTSCHEDULEX 30 Schedule Line Data - Change Parameter - Outline Agreement
SC_COMPONENT BAPIMEOUTCOMPONENT 170 X Component Data - Outline Agreement
SC_COMPONENTX BAPIMEOUTCOMPONENTX 35 X Component Data - Change Parameter - Outline Agreement

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_MEOUTSCHEDULEX

        Description
        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

1046794FAQ: BAPI for outline agreement
1046851MEMASSSA not possible to update SA with document conditions