Fonction SAP BAPI_COSTESTIMATE_RELEASING - Release of Marked Standard Cost Estimates

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COSTINGRUN BAPIRELEASING-COSTINGRUN C 8 X Name of Costing Run
COSTINGRUN_DATE BAPIRELEASING-COSTINGRUN_DATE D 8 X Costing Run Date
NO_OF_MAT_IN_POST_DOC BAPIRELEASING-NO_OF_MAT_IN_POST_DOC N 4 400 X Number of Materials in Material Ledger Document
POSTING_PERIOD BAPIRELEASING-POSTING_PERIOD N 3 Period of Future Standard Cost Estimate
POSTING_YEAR BAPIRELEASING-POSTING_YEAR N 4 Fiscal Year of Future Standard Cost Estimate
TESTRUN BAPIRELEASING-TESTRUN C 1 SPACE X Execute Test Run

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 BAPIRELEASINGOUTLIST 214 X Structure for Output List Marking
RETURN BAPIRET2 548 X Return Parameters

Functionality
You use the method BAPI_COSTESTIMATE_RELEASING to releasemultiple standard cost 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 are optional. If you don't enter any selectioncriteria, all marked standard cost estimates will be selected (acrossvaluation views). Otherwise, the system releases the intersection ofthe selection criteria (marked cost estimates).

    Notes
    This method locks selected materials and associated standard costestimates.

    Further information
    The test program SAPBAPITESTRELEASING provides an examplescenario.
    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
    Indicates the number of materials in the material ledger document.

    Description
    Posting period of the cost estimate to be released.

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

    Description
    Selection criteria for the company code (ABAP ranges table).

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

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

    Description
    Output list of the released materials.

    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