Fonction SAP BUPA_ACT_ANALYZE_FOR_BAPI -

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IV_ACTIVITY TJ01-VRGNG C 4 Business Transaction
IV_BP_NUMBER BU_PARTNER C 10 X Business Partner Number
IV_PARTNER_GUID BU_PARTNER_GUID X 16 X 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_RESULT_TYPE BAPI_MTYPE C 1 Message Type: S Success, E Error, W Warning, I Info, A Abort
EV_SUCCESSOR BU_PARTNER C 10

Paramètre Reférence Long. Facultatif Description
CT_RESULTS BUS_BAPIRET2_T 548 Return Parameter Table

Functionality
This function checks whether a particular activity (in the sense of thegeneral status management) is allowed for a stated business partner.
Result:
In the case of this variant, which is meant to be used in BAPI methods,the result is returned in the following form:

  • ev_result_type = 'S' (Success): Activity is allowed

  • ev_result_type = 'W' (Warning): Activity is allowed with a warning

  • ev_result_type = 'E' (Error): Activity is not allowed

  • In addition, the table et_results returns a complete list of allmessages in the format that is usual for BAPI methods.
    The business partner can be specified via its GUID (parameteriv_partner_guid) or its business partner number (iv_bp_number),whichever is required.
    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 on the parameteriv_activity.
    If you require exceptions instead of a message table, then you can usethe analogous module BUPA_ACT_ANALYZE_FOR_DIALOG.

    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.

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