Fonction SAP BAPI_COSTESTIMATE_MARKING - Marking Standard Cost Estimate

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COSTINGRUN BAPIMARKING-COSTINGRUN C 8 X Name of Costing Run
COSTINGRUN_DATE BAPIMARKING-COSTINGRUN_DATE D 8 X Costing Run Date
POSTING_PERIOD BAPIMARKING-POSTING_PERIOD N 3 Period of Future Standard Cost Estimate
POSTING_YEAR BAPIMARKING-POSTING_YEAR N 4 Fiscal Year of Future Standard Cost Estimate
TESTRUN BAPIMARKING-TESTRUN C 1 SPACE X Execute Test Run
VALUATION_VIEW BAPIVALUATION u 3 X Valuation Views

Paramètre Reférence Long. Facultatif Description
IN_COMP_CODE BAPICOMPANYCODE 11 X Ranges Table for Organizational Unit Company Code
IN_MATERIAL BAPIMATERIAL 39 X Ranges Table for Material
IN_PLANT BAPIPLANT 11 X Ranges Table for Organizational Unit Plant
OUT_LIST BAPIMARKINGOUTLIST 217 X Structure for Output List Marking
RETURN BAPIRET2 548 X Return Parameters

Functionality
With the method BAPI_COSTESTIMATE_MARKING you can mark multiplecost estimates using selection criteria.
You can select the cost estimates with the following criteria:

  • IN_MATERIALS (material)

  • IN_COMP_CODE (company code)

  • IN_PLANTS (plant)

  • COSTINGRUN (costing run)

  • COSTINGRUN_DATE (costing run date)

  • All selection criteria is optional. If no criteria are entered, allstandard cost estimates with the status KA are selected and marked inaccordance with marking allowance (organizational measure).

    Notes
    The following methods are used:

    • BAPI_COSTESTIMATE_ALLOW_MA_GET

    • BAPI_COSTESTIMATE_ALLOW_MARK

    • This method locks selected materials and associated cost estimates.

      Further information
      The following test programs contain an example scenario:

      • SAPBAPITESTMARKING

      • SAPBAPITESTRELEASING

      • The functionality of these interfaces corresponds to the functionalityof CK24 Price Update.
        More information is available in transaction CK24 under Help ->Application Help.

        Description
        Selection condition for the costing run. Entry is optional.
        Cost estimates selected accordingly can be further restricted throughadditional selection criteria.

        Description
        Selection condition for the costing run date. Entry is optional.
        Cost estimates selected accordingly can be further restricted throughadditional selection criteria.

        Description
        Posting period of the cost estimate to be marked.

        Description
        Fiscal year of the cost estimate to be marked.
        For more information, see Execute Test Run.

        Description
        Valuation views of the cost estimates to be marked:

        • Legal valuation

        • Group valuation

        • Profit center valuation
        • Description
          Selection conditions for the company code (ABAP ranges table).

          Description
          Selection conditions for the material (ABAP ranges table).

          Description
          Selection conditions for the plant (ABAP ranges table).

          Description
          Output list of the marked cost estimates.

          Description
          The following parameters are returned:

          • Message type: S Success, E Error, W Warning, I Info, A Abort

          • Messages, message class

          • Messages, message number

          • Message text

          • Messages, message variable

          • Parameter name

          • Row in parameter

          • Field in parameter

          • System (logical system) where the message originated