Fonction SAP BAPI_XBP_VARIANT_INFO_GET - Determine all defined variants of an ABAP program

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ABAP_PROGRAM_NAME BAPIXMREP-REPORTID C 40 ABAP program name
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 External user name
VARIANT_SELECT_OPTION BAPIXMREP-VARSELOPT C 1 'A' X

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548

Paramètre Reférence Long. Facultatif Description
ABAP_VARIANT_TABLE BAPIXMVAR 54 Table with variants of an ABAP program

Functionality
With this method you can determine the variants that exist for areport. If a report should require selection criteria, the job stepmust specify a variant for the report to transfer the necessaryselection values to the report.
You can choose between the variants that are only permitted forbackground processing and the variants that are permitted for bothdialog mode and background processing.

Further information
XBP documentation (SAPnet/CCMS)

Description
INCLUDE BAPI_TABLE

Value range
MSG_PROGRAM_DOES_NOT_EXIST: The specified ABAP program was not found inthe R/3 System.
MSG_INVALID_SELECTION_OPTION: The indicator that you specified inparameter VARIANT_SELECT_OPTION is invalid. The indicator can havevalue 'A' or 'B'.
MSG_PROGRAM_HAS_NO_VARIANT: There is no variant for the specified ABAPreport.
MSG_NO_VARIANTS_DEFINED: For the specified ABAP report, there are novariants that meet your requiremets (VARIANT_SELECT_OPTION parameter).
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. You can find a detailed description of the problem in the R/3system log.
MSG_PROG_NOT_EXECUTABLE: The specified program cannot be started by thebackground processing system. Only Type 1 (interactive) ABAP reportscan be started as background jobs.
MSG_NO_EXECUTE_PRIVILEGE: The R/3 user the program used to log on tothe R/3 System is not authorized to execute the report. For informationabout the authorizations required, see SAP online help (for example,for Transaction SU21, authorization objects of the developmentenvironment).
MSG_CANT_LOG: The method call was terminated due to an error in the R/3XMI logging system.
MSG_EXT_USER_MISSING: The name of the external user was not specifiedin the call. This name specifies the user who triggered the method callin the external system.
MSG_NOT_LOGGED_ON: The external system administration tool has notlogged onto the CCMS XMI interface. The method call was terminated as aresult.

Description
Enter here the name of the ABAP program for which existing variants areto be determined. The program must be type 1 (interactivelyexecutable).
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX

Description
With this parameter, define which type of variables should be chosen.Permissible values are as follows:

  • A: Determine variants that are permitted for background processing as
  • well as for interactive use.
    • B: Determine variants that are only permitted for background
    • processing.

      Description
      This table contains the variables that meet your selection criteria.
      INCLUDE BAPI_DATAELEMENT ID TX