Fonction SAP BUPA_ACT_ANALYZE_FOR_DIALOG -

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IV_ACTIVITY TJ01-VRGNG C 4 Business Transaction
IV_PARTNER_GUID BU_PARTNER_GUID X 16 Business Partner GUID
IV_RESET_BUFFER BOOLE-BOOLE C 1 ' ' X
IV_VALDT SYST-DATLO D 8 SY-DATLO X

Paramètre Reférence Type Long. Description
EV_SUCCESSOR BU_PARTNER C 10

Exception Description
ALLOWED_WITH_WARNING
NOT_ALLOWED Activity not Allowed
PARTNER_UNKNOWN

Functionality
This function checks to see if a particular activity (in the sense ofthe general status management) is allowed for a given business partner.
Result:

  • sy-subrc = 0: Activity is allowed

  • sy-subrc <> 0: Activity is not allowed, or is allowed only with a
  • warning
    • Exception NOT_ALLOWED: Activity is not allowed

    • Exception ALLOWED_WITH_WARNING: Activity is allowed with a warning

    • The business partner should be stated by means of its GUID (parameteriv_partner_guid).
      If the activity is not allowed, a successor may (i.e. if correctlyentered) be made known with the help of the parameter ev_successor. Infuture this successor should be used instead of the provided partner.

      Notes
      For more information, also see the documentation for the parameteriv_activity.
      If you require a message table for BAPI methods instead of exceptions,you can use the analogous module BUPA_ACT_ANALYZE_FOR_BAPI.

      Description
      Successor
      If a business partner is replaced by another one (e.g. when duplicatedata records are merged), an alias relationship should be created thatrefers to the replacement business partner in the case of an inactiverecord, which in most cases has been flagged for archiving.
      This relationship is of interest in the context of the status check ofbusiness partners.
      If, for example, a business partner has been flagged for deletion orarchiving and thus should no longer be used for new orders, an errormessage can be issued that instructs you to work at once with thesuccessor master record.

      Value range

      Description
      Business activity in the sense of the general status managment.

      Value range
      The following activities are pre-defined:

      • CHAN: Changing a business partner (business partner maintenance).

      • A check is carried out to see if a business partner can be changed.
        • BPUS: Business partner usage by applications.

        • A check is carried out to see whether a business partner can bereferenced in the case of application objects that should be newlycreated. If a business partner is flagged for archiving, no newreferences should be created.
          Other activities can be defined in the Customizing of the generalstatus management (BS32).
          In addition, it can be set in such a way that the activities areinfluenced by the status given (BS22).