Fonction SAP BAPI_EXTSECACCSTMNT_CREATE - Create External Securities Account Statement

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
STATEMENTHEADER BAPI1062_HEADER_CREATE u 303 Header Data of External Securities Account Statement
TESTRUN BAPI1062_GEN-TESTRUN C 1 SPACE X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Type Long. Description
NUMBERID BAPI1062_GEN-NUMBERID N 10 Treasury: Comparison Entity Number

Paramètre Reférence Long. Facultatif Description
POSITIONLIST BAPI1062_POSITION_CREATE 158 Create External Position
RETURN BAPIRET2 548 X Return Parameters

Functionality
You can use this method to create an external securities accountstatement in the SAP System.

Notes
You define the possible entries for the fields 'Status of externalsecurities account statement', 'Position name ' and '
Position classification' in the Securities area Customizingunder 'Transaction Manager -> Securities -> Position Management ->External Securities Account Statement'
INCLUDE BAPI_RET OBJECT DOKU ID TX LANGUAGE EN

Further information
You can find further information in the SAP Library under '
Securities -> Back Office -> Position -> External SecuritiesAccount Statement'.
INCLUDE BAPI_KEYFIELD OBJECT DOKU ID TX LANGUAGE en

Description
You use this import structure to transfer the header data of theexternal securities account statement.
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX LANGUAGE en
Required fields:

  • Company code

  • Use this parameter to specify the short name of the internal securities
  • account or the depository bank key and the securities accountnumber. If you choose the second alternative, the system determines theinternal securities account using the securities account master data.
    • Position date

    • Specification of all other fields is optional.

      Description
      You can find information on the significance of the import parameter inthe relevant data element documentation Switch toSimulation Session for Write BAPIs.

      Description
      You use this import-table-parameter to transfer the individual positiondata to the external securities account statement.
      Required fields:

      • ID number or secondary index

      • External units or external nominal amount and currency, and also
      • external drawn nominal amount and currency, if applicable.
        INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX LANGUAGE EN
        INCLUDE BAPI_TABLE OBJECT DOKU ID TX LANGUAGE en
        Type,,ID ,,No.,,Message
        E,,TRS0,,001,,Company code is not specified
        W,,64,,472
        E,,B0,,008
        E,,B0,,171
        E,,R1,,021
        E,,64,,512
        E,,TRS0,,006,,Depository bank is not specified,,,,
        E,,TRS0,,007,,Security account number is not specified
        E,,TRS0,,008,,No security account exists with security account number1 and depository bank 2
        E,,TRS0,,033,,Status for external securities account statement is notdefined in Customizing
        W,,B1,,547
        E,,,,B1,,537
        E,,B1,,536
        E,,TRS0,,002,,ID number and secondary index are not specified
        E,,64,,006
        E,,RDPT,,068
        E,,TRS0,,009,,Name of secondary index is not specified
        E,,TRS0,,005,,Secondary index is not specified
        E,,TRS0,,010,,A secondary index with this name does not exist
        E,,TRS0,,003,,No ID number exists with secondary index &1
        E,,TRS0,,004,,ID numbers &1 and &2 have the same secondary index &3
        E,,TRS0,,011,,Issue currency &1 and position crcy &1 are not identical
        W,,TRS0,,012,,ID number is unit-quoted, however, a nominal amount wasspecified
        W,,TRS0,,013,,ID number is unit-quoted, however, a drawn nominal amountwas specified
        W,,TRS0,,014,,ID number &1 is percentage quoted, however, a number ofunits was specified
        E,,TRS0,,015,,System key for positions was not created. Locked by user1