Fonction SAP BAPI_BUS2002_CREATE - Create Network Header Using BAPI

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_NETWORK BAPI_BUS2002_NEW u 282 BAPI Structure Network: Create

Paramètre Reférence Long. Facultatif Description
ET_RETURN BAPIRET2 548 Return Parameter
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT

Functionality
Create a network header (BOR object type BUS2002001). Only one networkcan be created each time this BAPI is called.

Example
Transfer the data of the new network in parameter I_NETWORK.

  • Internal number assignment of the network number

  • The network profile is the only required-entry field. The BAPI fails ifan external network number is entered in the interface.
    When the BAPI finishes successfully, the final network number has notbeen determined yet. Instead, the log of the return table ET_RETURNcontains a temporary network number.
    Use this temporary network number, if you do any of the followingbefore carrying out the posting:
    Change this network header (BAPI_BUS2002_CHANGE)
    Create activities for this network (BAPI_BUS2002_ACT_CREATE_MULTI)
    Change activities created for this network(BAPI_BUS2002_ACT_CHANGE_MULTI)
    Create activity elements for this network(BAPI_BUS2002_ACTELEM_CREATE_M)
    Change activity elements that were created for this network(BAPI_BUS2002_ACTELEM_CHANGE)
    Carry out status changes for this network (BAPI_BUS2002_SET_STATUS)
    After the precommit is carried out successfully, the final networknumber along with the current temporary number are displayed in the logof the precommit. All dependent messages for this network header in thelog of the precommit (change header, create/change network activities,create/change activity elements) contain the final number only.
    • External number assignment of the network number

    • In addition to the network profile, the network number is also arequired-entry field. Exception: the external network number isdetermined via user exit CNEX0012 "Derive External Network Number fromWBS Number".
      The BAPI fails if no external network number, or one that is alreadybeing used, is interfaced or determined in the user exit.
      If the BAPI finishes successfully, the log of the ET_RETURN returntable already contains this external network number. If the BAPI fails,the lock of the external network number is immediately lifted.
      INCLUDE CNIF_PI_NOT_MRP_APPLICABLE OBJECT DOKU ID TX
      INCLUDE CNIF_PI_NOT_AUTO_COSTING OBJECT DOKU ID TX
      INCLUDE CNIF_PI_ET_RETURN OBJECT DOKU ID TX

      Notes
      INCLUDE CNIF_PI_BAPI_HINTS OBJECT DOKU ID TX

      Further information

      Description
      Data fields of the new network to be created.

      Description
      Data for customer enhancements is imported using the container"ExtensionIn", as described in the BAPI Programming Guide. Furtherprocessing of the data takes place in the relevant BAdI.

      Description
      Customer enhancement data is exported using the container"ExtensionOut", as described in the BAPI Programming Guide. Procurementof the data takes place in the corresponding BAdI.

894799Module CO_ZF_CHECK_SUBNET is not without dialog II
586151PI-BAPIs Create/change network: CORE corrections II
580136PI-BAPIs create/change network: CORE corrections
563486Module CO_ZF_CHECK_SUBNET is not without dialog