Ansicht
Dokumentation

ABAPSTATE_ACTIVE_INACTIVE - STATE ACTIVE INACTIVE

ABAPSTATE_ACTIVE_INACTIVE - STATE ACTIVE INACTIVE

Addresses (Business Address Services)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

Effect

This addition determines whether the statement uses the active version or an inactive version of the repository object. state can have the values "A" (for active) and "I" (for inactive), which is checked statically if specified as a literal.

  • If the addition state is not specified, the statement accesses either
  • the active version of the repository object or

  • the inactive version of the repository object in the worklist of the current user. If there are no inactive versions in the worklist of the current user, the statement accesses the active version of the repository object.

Before the statement can evaluate the worklist of the current user, it must be prepared accordingly. This can be done using, for example, the function module RS_WORKING_AREA_PREPARE. If the worklist is not prepared, the statement accesses the active version of the repository object.
  • If the addition state is specified, the statement accesses
  • the active version of the repository object if "A" is specified,

  • the inactive version of the repository object if "I" is specified. The user to which the inactive version is assigned is not important here or whether the version is part of a worklist. If there are no inactive versions, the object is not accessed and sy-subrc is set to 4.






Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1759 Date: 20240426 Time: 132717     sap01-206 ( 32 ms )