Fonction SAP BAPI_ISET_CREATE - Create InfoSet

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DETAILS BAPI6120 u 227 InfoSet: Details

Paramètre Reférence Type Long. Description
INFOSET BAPI6120-INFOSET C 30

Paramètre Reférence Long. Facultatif Description
FIELDOBJECTS BAPI6120FOBJX 245 X InfoSet: Field Objects
ONCONDITION BAPI6120ONX 144 InfoSet: ON Condition
RETURN BAPIRET2 548 X Return Parameter
TABLEOBJECTS BAPI6120TOBJX 136 InfoSet: Table Objects
TEMPONCONDITION BAPI6120TMONX 183 X InfoSet: Temporal ON Condition
WHERECONDITION BAPI6120WHERE 75 X InfoSet: WHERE Condition

Functionality
This function module creates a new InfoSet. Global properties of theInfoSet are entered in parameter DETAIL. Additional properties of theInfoSet are described using the table parameters:

  • A list of all InfoProviders contained in the InfoSet (InfoObjects / ODS
  • Objects)
    • The JOIN conditions

    • Optional: A list of all fields contained in the InfoSet

    • In the event of an error, a log is returned. The module only saves theInfoSet (M Version), while activation and checking are not executed.
      For an example of how the module can be used, see the source code forprogram RSQ_ISET_BAPI_TEST.

      Description
      Technical name of InfoSet currently being edited

      Description
      Detailled information for the InfoSet.
      At least the name and a description must be assigned.
      See: BAPI_ISET_CHANGE

      Description
      List of all field objects in the InfoSet. Usually, FIELDOBJECTS doesnot need to be filled by the initiator. The system fills thetable with the correct values that can then be modified, if necessary,in a second BAPI call (BAPI_ISET_CHANGE).
      Meaning of the components: See interface documentation for the functionmodule BAPI_ISET_GETDETAIL or BAPI_ISET_CHANGE. Additionally, thecomponent EXTALIAS exists and helps to uniquely identify an InfoProvider(see also parameter TABLEOBJECTS).

      Description
      List of ON conditions in the InfoSet. An entry consists of a unique pairof fields.
      Meaning of components:

      • TNAME_LEFT Name of InfoProvider belonging to the left field

      • FNAME_LEFT Field name / InfoObject

      • EXTALIAS_LEFT - Obsolete

      • External alias (necessary if TNAME_LEFT is not unique. See parameterTABLEOBJECTS)
        • FALIAS_LEFT Internal alias for field. Filled by the system

        • TNAME_RIGHT, FNAME_RIGHT,EXTALIAS_RIGHT - obsolete, FALIAS_RIGHT havethe appropriate meaning for the right field of the ON condition.

          Description
          Return parameter of method. The return parameter tells you whether thecall was successful or unsuccessful.
          The most important error messages refer to

          • no authorization to create the InfoSet

          • Error in sources of InfoSet. In this case, parameter RETURNTABLE gives
          • you an extensive error log.

            Description
            List of all InfoProviders contained in the InfoSet (ODS objects orInfoObjects).
            Meaning of the fields:

            • TALIAS Internal alias for the InfoProvider. Is assigned by the
            • system when creating and cannot be set by the initiator
              • EXTALIAS - obsolete

              • External alias. Must be used to make an InfoProvider unique that existsseveral times in the InfoSet (see also ON conditions).
                • TNAME Name of the InfoProvider

                • BNAME Name of the basic characteristic (filled by system if
                • necessary)
                  • TTYPE Type of InfoProviders in join. Are possibly the values

                  • OUTERFLAG 'X': InfoProvider is connected using the Left Outer
                  • Join. Otherwise, using the Inner Join
                    • TEXTLONG InfoProvider description (if empty, the short text from
                    • the system is used).
                      • ALLFIELDS 'X' All InfoProvider fields/attributes need to be
                      • included in the InfoSet. The table FIELDOBJECTS then do not have to befilled by the initiator.
                        We recommend that you create an InfoSet with BAPI_ISET_CREATE, whereALLFIELDS='X' is set for all included InfoProviders. Subsequently,individual fields can be hidden from the InfoSet with BAPI_ISET_CHANGE,if necessary.
                        See the documentation for: BAPI_ISET_CHANGE

                        Description
                        Filled initially by the system. Can then be changed usingBAPI_ISET_CHANGE, if necessary. See the detailed documentation inBAPI_ISET_CHANGE.

                        Description
                        Filled by the system. See documentation in BAPI_ISET_CHANGE.