Fonction SAP BAPI_COSTESTIMATE_ALLOW_MARK - Grant Marking Allowance for Costing

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COSTESTIM_ID BAPICOSTRE u 29 X Object ID of Cost Estimate
ORG_MEASURE BAPIORGMEASURE u 17 X Checkbox
TESTRUN BAPIREORGANIZATION-TESTRUN C 1 SPACE X Execute Test Run

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameters

Functionality
With the method BAPI_COSTESTIMATE_ALLOW_MARK you can allowmarking for a given cost estimate.
There are two ways to call up the methodBAPI_COSTESTIMATE_ALLOW_MARK.
1st Alternative
The organizational measure (marking allowance) is issued for thefollowing characteristics:

  • Company code

  • Posting period

  • Fiscal year

  • Valuation view

  • Costing variant

  • Costing version

  • These characteristics are derived from the cost estimate identifiedwith the key COSTESTIM_ID. The characteristics are stored internallyand determine the selection criteria for marking.
    2nd Alternative
    You can also specify the following characteristics directly withstructure ORG_MEASURE:
    • Company code

    • Posting period

    • Fiscal year

    • Valuation view

    • Costing variant

    • Costing version

    • In this case, structure COSTESTIM_ID remains blank.

      Further information
      This function corresponds to the functionality of transaction CK24Marking Allowance.
      More information is available in transaction CK24 under Help ->Application Help.
      Test program SAPBAPITESTALLOWMARK1 provides an example scenario foralternative 1, and test program SAPBAPITESTALLOWMARK2 an examplescenario for alternative 2.

      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

      • Line in parameter

      • Field in parameter

      • System (logical system) where the message originated
      • Description
        Object key of the cost estimate.

        Description
        Characteristics that describe an organizational measure:

        • Company code

        • Fiscal year of current cost estimate

        • Period of current cost estimate

        • Costing variant

        • Costing version

        • You transfer either the object key or the characteristicsof the organizational measure.
          For more information, see Execute Test Run.