Fonction SAP BAPI_BUPR_ACTIVITYP_CHANGE - SAP BP, BAPI Change Contact Partner Relationship

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACTIVITYPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Activity partner
BUSINESSPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Business partner
VALIDFROMDATE BUT050-DATE_FROM D 8 '00010101' X Validity Date (Valid From)
VALIDFROMDATENEW BUT050-DATE_FROM D 8 Validity Date (Valid From) New
VALIDFROMDATENEW_X BOOLE-BOOLE C 1 Change Information on Validity Date (Valid From)
VALIDUNTILDATE BUT050-DATE_TO D 8 '99991231' X Validity Date (Valid Through)
VALIDUNTILDATENEW BUT050-DATE_TO D 8 Validity Date (Valid To) New
VALIDUNTILDATENEW_X BOOLE-BOOLE C 1 Change Information on Validity Date (Valid To)

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Messages

Functionality
You can use BAPI_BUPR_ACTIVITYP_CHANGE to change the validity period ofan activity partner relationship. Depending on the time constraintsettings for the activity partner relationship category, you mustconsider the following: If there is no time constraint, you do not needto maintain a period with this BAPI.
The following settings apply:

  • There must be no gaps in the record, there must be no duplicate
  • settings for periods
    • Record may have gaps, but no duplicate settings are permitted

    • A record may exist just once in the from date/to date period

    • When you change the validity period, the system checks the entries made
    • in the interface against the time constraint settings. Any errors thatoccur are logged, and output in the RETURN table. If errors occur, nointervals are maintained.

      Description
      Key uniquely identifying an activity partner in the R/3 system perclient.

      Description
      Key uniquely identifying a business partner in the R/3 system perclient.

      Description
      The validity (valid from) date determines the beginning of thevalidity period of an object (of the activity partner relationship, inthis case) on the time axis.

      • You only need to maintain a date if a time constraint has been defined
      • for the activity partner relationship category.
        • If you do not enter a date, the default value is set at 01/01/0001.

        • If no time constraint has been defined in the settings menu for the
        • relationship category, any date entries that differ from the defaultvalue are ignored, and the default date is set.

          Description
          Valid from date; new value.

          Description
          In field VALIDFROMDATENEW_X you must flag whether the value in fieldVALIDFROMDATE is to be copied.

          Description
          The validity (valid to) date determines the end of the validity periodof an object (of the activity partner relationship, in this case) onthe time axis.

          • You only need to maintain a date if a time constraint has been defined
          • for the activity partner relationship category.
            • If you do not enter a date, the default value is set at 12/31/9999.

            • If no time constraint has been defined in the settings menu for the
            • relationship category, any date entries that differ from the defaultvalue are ignored, and the default date is set.

              Description
              Valid to date; new value.

              Description
              In field VALIDUNTILDATENEW_X you must flag whether the value in fieldVALIDUNTILDATE is to be copied.

              Description
              This table contains the return messages from the method call.