Fonction SAP BAPI_SAG_CHANGE - Change a Scheduling Agreement

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
HEADER BAPIMEOUTHEADER u 347 X Header Data Outline Agreement
HEADERX BAPIMEOUTHEADERX u 54 X 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
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
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
EXP_HEAD_EXPORT_IMPORT BAPIMEOUTEIKP u 17 Foreign Trade Data Header - Outline Agreement

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 Enhancment Import
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancement Export
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 Quantity Scale
HEAD_COND_SCALE_VAL BAPIMEOUTSCALEVALUE 46 X Value Scale
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 X Item Data Outline Agreement
ITEMX BAPIMEOUTITEMX 145 X 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 Shipping Data Scheduling Agreement
SHIPPINGX BAPIMEOUTSHIPPX 11 X Change Parameter Shipping Data Scheduling Agreement
SHIPPING_EXP BAPIMEPOSHIPPEXP 196 X Export Structure for Shipping Data

Functionality
BAPI to change a scheduling agreement.

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).
    When changes are made to outline agreements, any periods can be used.The periods may not overlap for a variable key.
    When conditions are changed, new condition records are neverthelesscreated.
    Document conditions are not 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.

            • When a scheduling agreement is changed (activity 02), the followingauthorization objects are checked:
              M_RAHM_BSA Document type in outline agreement
              M_RAHM_EKG Purchasing group in outline agreement
              M_RAHM_EKO Purchasing organization in outlineagreement
              M_RAHM_WRK Plant in outline agreement

              Further information
              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
                  The parameter contains the foreign trade data of a scheduling agreement.

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

                  Default
                  The output of the field values is currently not supported.

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

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

                  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
                  Uniquely identifies an instance of thebusiness object BUS2013
                  (scheduling agreement).

                  Default
                  This is a mandatory field.

                  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.

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

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

                            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.

                            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.

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

                              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 a different valueis used, 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.

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

                                    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. 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.

                                          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
501853FAQ: Mass changes in purchasing