Fonction SAP BAPI_SAG_CREATE - Create a Scheduling Agreement

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
HEADER BAPIMEOUTHEADER u 347 Header Data Outline Agreement
HEADERX BAPIMEOUTHEADERX u 54 Header Data Change Parameter Outline Agreement
HEAD_EXPORT_IMPORT BAPIMEOUTEIKP u 17 X Foreign Trade Data Header - Outline Agreement
HEAD_EXPORT_IMPORTX BAPIMEOUTEIKPX u 3 X Foreign Trade Data Header - Change Parameter Outline Agreement
TECHNICAL_DATA BAPIMEOUTTECH u 4 X Technical Parameters for Outline Agreement BAPIs
TESTRUN BAPIFLAG-BAPIFLAG C 1 X Single-Character Indicator
VENDOR_ADDRESS BAPIMEOUTADDRVENDOR u 1276 X Address Structur Vendor Address

Paramètre Reférence Type Long. Description
EXP_HEADER BAPIMEOUTHEADER u 347 Header Data Outline Agreement
PURCHASINGDOCUMENT BAPIMEOUTHEADER-NUMBER C 10 Purchasing Document Number

Paramètre Reférence Long. Facultatif Description
ACCOUNT BAPIMEOUTACCOUNT 420 X Account Assignment Outline Agreement
ACCOUNTPROFITSEGMENT BAPIMEOUTPROFITSEGMENT 87 X Profitability Segment Calculation Outline Agreement
ACCOUNTX BAPIMEOUTACCOUNTX 50 X Change Parameter Account Assignment Outline Agreement
DELIVERY_ADDRESS BAPIMEOUTADDRDELIVERY 1301 X Delivery Address in Outline Agreement
EXPORT_IMPORT BAPIMEOUTEIPO 45 X Foreign Trade Data - Outline Agreement Item
EXPORT_IMPORTX BAPIMEOUTEIPOX 14 X Change Parameter Foreign Trade Item
EXTENSIONIN BAPIPAREX 990 X Customer Enhancement (Inbound)
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancement (Outbound)
HEADER_TEXT BAPIMEOUTTEXT 139 X Header Texts Outline Agreement
HEAD_CONDITION BAPIMEOUTHEADERCOND 101 X Header Conditions Outline Agreement
HEAD_CONDITIONX BAPIMEOUTHEADERCONDX 37 X Change Parameter Header Conditions Outline Agreement
HEAD_COND_SCALE_QUAN BAPIMEOUTSCALE 39 X Value Scales for Conditions
HEAD_COND_SCALE_VAL BAPIMEOUTSCALEVALUE 46 X Value Scales
HEAD_COND_VALIDITY BAPIMEOUTHEADVALIDITY 26 X Header Conditions Validity of Outline Agreement
HEAD_COND_VALIDITYX BAPIMEOUTHEADVALIDITYX 13 X Change Parameter Header Condition Validity Outline Agreement
ITEM BAPIMEOUTITEM 1000 Item Data Outline Agreement
ITEMX BAPIMEOUTITEMX 145 Change Parameter Item Data Outline Agreement
ITEM_CONDITION BAPIMEOUTCONDITION 106 X Conditions Item Outline Agreement
ITEM_CONDITIONX BAPIMEOUTCONDITIONX 42 X Change Parameter Conditions in Outline Agreement
ITEM_COND_SCALE_QUAN BAPIMEOUTITEMSCALEQUAN 44 X Quantity Scale
ITEM_COND_SCALE_VALUE BAPIMEOUTITEMSCALEVAL 51 X Value Scale
ITEM_COND_VALIDITY BAPIMEOUTVALIDITY 35 X Validity Period of Conditions in Agreement
ITEM_COND_VALIDITYX BAPIMEOUTVALIDITYX 20 X Change Parameter Validity Period of Conditi
ITEM_TEXT BAPIMEOUTITEMTEXT 144 X Item Texts Outline Agreement
PARTNER BAPIMEOUTPARTNER 41 X Partner Outline Agreement
PARTNERX BAPIMEOUTPARTNERX 31 X Change Parameter Partner Outline Agreement
RETURN BAPIRET2 548 X Return Table
SCHEDULE BAPIMEOUTSCHEDULE 132 X Delivery Schedule Lines in Scheduling Agreement
SCHEDULEX BAPIMEOUTSCHEDULEX 30 X Change Parameter Schedule Lines in Scheduling Agreement
SC_COMPONENT BAPIMEOUTCOMPONENT 170 X Subcontracting Components
SC_COMPONENTX BAPIMEOUTCOMPONENTX 35 X Change Parameter Subcontracting Components
SHIPPING BAPIMEOUTSHIPP 44 X BAPI Shipping Data for Stock Transport Orders
SHIPPINGX BAPIMEOUTSHIPPX 11 X Shipping Data Scheduling Agreement
SHIPPING_EXP BAPIMEOUTSHIPPEXP 110 X Export Structure for Shipping Data

Functionality
BAPI to create a scheduling agreement.

Example
Sample Code

Notes
Restrictions on the BAPIs for outline agreements

  • Master conditions:

  • When new items are created, only one period can be specified pervariable key. This means that one period can be specified for thedocument header (i.e. condition table A019), for each item (i.e.condition table A016), and for each item/plant combination (i.e. tableA068).
    Scales are not supported during the creation of outline agreements.
    The creation of scheduling agreements with document conditions isnot supported.
    Since volume rebate conditions are not taken into account inoutline agreements, they are not processed.
    • No subitems (e.g. inclusive/exclusive bonus quantity, display,
    • etc.) are taken into account.
      • The control key for quality management in procurement
      • (EKPO-SSQSS) and the certificate category (EKPO-ZGTYP) are onlytaken into account to a certain extent: these two items of informationare copied from the reference contract or from the material master butcannot be changed and no checks are carried out for these two fields.
        • The revision level (EKPO-REVLV) is not changeable because various
        • quality management routines have not been implemented.
          • Version management is not supported.

          • External services management is not supported (neither planned
          • nor unplanned services).
            • The creation of configurations is not supported.
            • Further information
              When a scheduling agreement is created (activity 01), the followingauthorization objects are checked:

              • M_RAHM_BSA Document type of scheduling agreement

              • M_RAHM_EKG Purchasing group in scheduling agreement

              • M_RAHM_EKO Purchasing organization in scheduling
              • agreement
                • M_RAHM_WRK Plant in scheduling agreement

                • The following Business Add-Ins are available:
                  • MEOUT_BAPI_CUST for customer enhancements
                  • (the BAdI can be implemented multiple times).
                    • MEOUT_BAPI_IBS for SAP-internal enhancements (the BAdI can be
                    • implemented multiple times).

                      Description
                      The parameter contains the header data of the scheduling agreement.

                      Description
                      Uniquely identifies an instance of thebusiness object BUS2013
                      (scheduling agreement).

                      Description
                      This parameter contains the header data of the scheduling agreement andis mandatory.

                      Description
                      The parameter contains the change structure for the header data of thescheduling agreement and is mandatory.

                      Description
                      The parameter contains the data fields for foreign trade processing atthe header level of the scheduling agreement instance.

                      Description
                      The parameter contains the change parameter for the foreign trade dataof a scheduling agreement.

                      Description
                      The following fields can be populated:

                      • MESSAGING_APPL: Selection of application for message output

                      • NO_MESSAGING: No message determination

                      • NO_MESSAGE_REQ: Without message output

                      • NO_AUTHORITY_CHECK: Do not perform authorization check
                      • Value range
                        MESSAGING_APPL can have the following instances:

                        • A: Automatic determination of application

                        • B: Scheduling agreement output without schedule lines or contract

                        • C: Output of scheduling agreement delivery schedule lines

                        • N: No message output

                        • The parameters NO_MESSAGING, NO_MESSAGE_REQ, and NO_AUTHORITY_CHECK canbe
                          • 'X' active

                          • or
                            • ' ' inactive
                            • Description
                              The parameter TestRun is used in the writing BAPIs (CreateXXX andChangeXXX) to check the information on the instance prior to actualcreation of the object instance in the database. In the process, thecreation of the object instance is only simulated and the data is notupdated.

                              Value range
                              The parameter can have the following instances:

                              • 'X' describes the simulation mode

                              • ' ' describes the update run
                              • Description
                                The parameter specifies a vendor address that differs from the one inthe master record.

                                Description
                                The parameter contains the account assignment data for schedulingagreement items.

                                Default
                                It is necessary to populate the item number ITEM_NO and the number ofthe account assignment SERIAL_NO as otherwise an assignment betweendatabase information (EKKN) and BAPI interface is not possible.

                                Description
                                The parameter contains the data on the basis of which a newprofitability segment(CO-PA) is created for the account assignment.
                                At the time of creation, both the characteristics and the characteristicvalues are validated against the information specified in the system.

                                Default

                                Description
                                The parameter contains the change parameter for the account assignmentdata for scheduling agreement items.

                                Default

                                Description
                                The parameter contains the delivery address per item. A separate addressis created in Central Address Management for each address passed on.

                                Default

                                Description
                                If the item is to be delivered to a foreign country, the foreign tradedata can be populated via this parameter.

                                Value range
                                In SAP ECC 6.0, only eight fields are supported.

                                Default

                                Description
                                This parameter contains the change parameter for the foreign trade data.

                                Description
                                INCLUDE BAPI_CONTRACT_SAG_MEANING OBJECT DOKU ID TX

                                Default
                                INCLUDE BAPI_CONTRACT_SAG_MEAN_DEF2 OBJECT DOKU ID TX

                                Description
                                INCLUDE BAPI_CONTRACT_SAG_MEANING OBJECT DOKU ID TX

                                Default
                                INCLUDE BAPI_CONTRACT_SAG_MEAN_DEF2 OBJECT DOKU ID TX

                                Description
                                This parameter contains the long texts of the scheduling agreementheader.

                                Default
                                The TEXT_ID field must always start with L. If you use adifferent value, it will be automatically corrected by the BAPI.
                                Example:

                                • TEXT_ID,,,,L03

                                • TEXT_FORM,,*

                                • TEXT_LINE,,Hello World

                                • DELETE_IND
                                • Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

                                  Description
                                  The parameter contains the change parameter for the master conditions ofthe scheduling agreement header.

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_KOPF OBJECT DOKU ID TX

                                  Description
                                  The parameter contains the change parameter for the validity period ofthe header master conditions.

                                  Description
                                  The parameter contains the general item data for a scheduling agreementinstance and is mandatory.

                                  Description
                                  The parameter contains the change parameter for the general item data ofa scheduling agreement instance and is mandatory.

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

                                  Description
                                  The parameter contains the change parameter for the item masterconditions.

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

                                  Description
                                  INCLUDE BAPI_CONTRACT_SAG_KOND_POSI OBJECT DOKU ID TX

                                  Description
                                  The parameter contains the change parameter for the validity period ofthe item master conditions.

                                  Description
                                  The parameter contains the long texts for a scheduling agreement item.

                                  Default
                                  The TEXT_ID field must always start with L. If you use adifferent value, it is automatically corrected by the BAPI. Example:

                                  • ITEM_NO,,,,00010

                                  • TEXT_ID,,,,L03

                                  • TEXT_FORM,,*

                                  • TEXT_LINE,,Hello World

                                  • DELETE_IND
                                  • Description
                                    The parameter contains the partner data for a scheduling agreement. Youcan specify the partners at the following levels:

                                    • Purchasing organization

                                    • Purchasing organization and plant

                                    • Purchasing organization, plant, and vendor subrange
                                    • Description
                                      The parameter contains the change parameter for the partner data for ascheduling agreement.

                                      Description
                                      With this parameter, messages regarding exception situations or successmessages are returned to the calling program.
                                      Currently, it is only possible to assign the messages for the followingstructures/tables:

                                      • Header data HEADER

                                      • Item data ITEM

                                      • Account assignment data ACCOUNT

                                      • Schedule line data: SCHEDULE
                                      • Description
                                        The parameter contains the delivery schedule lines of a schedulingagreement.

                                        Default

                                        Description
                                        The parameter contains the change parameter for the delivery schedulelines of a scheduling agreement.

                                        Default

                                        Description
                                        In the case of a subcontracting item, this parameter contains theassigned subcontracting components.

                                        Value range
                                        For changing, 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. The deletion of assembly components isnot possible.
                                          R means that the existing subcontracting components are to bedeleted and the components belonging to the schedule line from the BAPIinterface are to be added. 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 schedule line number
                                          • Description
                                            This parameter contains the change parameter for the subcontractingcomponents.

                                            Value range
                                            To enable assignment between COMPONENT and COMPONENTX, the followingfields must be populated at once:

                                            • ITEM_NO: Item number

                                            • SCHED_LINE: Schedule line number assigned to the item

                                            • RES_ITEM: Item number of subcontracting component
                                            • Description
                                              In the case of a stock transfer item, the parameter contains theshipping data information (EKPV), which can also be changed in thetransaction.

                                              Default
                                              Please note that the changing of shipping data is currently notsupported by the system.

                                              Description
                                              This parameter contains the change parameter for the shipping datastructure SHIPPING.

                                              Description
                                              This export parameter contains the shipping data determined by thebusiness logic and changed by the BAPI.

1343907TXJCD out of delivery address in ME31L/ME32L
1327694Dump Type conflict in MM-PUR BAPIs
1046794FAQ: BAPI for outline agreement
1046851MEMASSSA not possible to update SA with document conditions