Ansicht
Dokumentation

/SEPC/PROJS_PROJ_READ_COSTS - PS Cost Data

/SEPC/PROJS_PROJ_READ_COSTS - PS Cost Data

Fill RESBD Structure from EBP Component Structure   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module will provide both planned and actual costs for WBS Elements,

Activities, and Activity Elements related to a specific Project (in the

Project Systems module). Both planned and actual costs are summarized

by cost element and work or quantity Unit of Measure.

Input parameters:

IV_PROJECT_DEFINITION: An SAP project number

IV_LEDGER: The Ledger number that stures cost information for the project

IV_VERSION: The costing version

IV_PLAN: An 'X' in this field indicates that the function module should return

planned cost values

IV_ACTUAL: An 'X' in this field indicates that the function module should return

actual cost values

IV_COST_ELEM_GRP: The name of a cost element group. If a cost element

group is defined, the DATE and COAREA fields are also required. If

an entry is made in this field, the function module will determine a list of

Cost Elements included in the Cost Element Group. The function module will then

only display planned and actual costs for this specific group.

As an example, please assume that Cost Elements A, B, C, and D exist.

Cost Elemenets A and C are assigned to Cost Element Group X. Next,

assume an Activity Element has actual costs for cost elements A, B, C,

and D. If the user were to execute this function module and enter Cost Element

Group X as an input parameter, the results table (E_ACTUAL_COSTS) would

only show costs assigned to Cost Elements A and C.

IV_DATE: The validity date of the Cost Element Group Assignments. By

default, this is set to the system date.

IV_COAREA: The Controlling Area for Cost Element selection for the Cost

Element Group.

IV_NO_FISC_YEAR: Mark this field with an 'X' if you do not want the

fiscal year of the CO posting listed in the output tables (

ET_PLAN_COSTS and ET_ACTUAL_COSTS). This is useful to avoid multiple

rows in the output table for each cost element for each fiscal year

posting

IT_COSEL: This table allows the user of the function module to further limit

the planned or actual cost selection. This table works in a similar

fashion to an SAP selection option table. The user can define

additional limitations for planned or actual cost selections based on

the entries in this table.

As an example, please assume that Cost Elements A, B, C, and D exist.

Cost Elemenets A and C are assigned to Cost Element Group X. Next,

assume an Activity Element has actual costs for cost elements A, B, C,

and D. If the user were to execute this function module and enter Cost Element

Group X as an input parameter, the results table (ET_ACTUAL_COSTS) would

only show costs assigned to Cost Elements A and C. Assume the user

makes the following entry in table IT_COSEL:

Field = KSTAR

Sign = I

Option = EQ

LOW = B

KSTAR is the field name in the cost table for Cost Element. In essence,

we are telling the function module to also choose costs related to Cost Element B

(In addition to Cost Elements A and C which were chosen based on Cost

Element Group X). The results table (ET_ACTUAL_COSTS) would now show

costs assigned to Cost Elements A, B, and C.

!!Caution!! Entries table IT_COSEL can negatively impact the results

of the function module. Within the function module execution logic, IT_COSEL is filled with

various values based on the user import selection values. Please use

caution when utilizing this functionality!!

A list of values that can be used in the field FIELD in table IT_COSEL,

please use the ABAP Dictionary (SE11) and display either table COSS or

COSP.

Export Tables

ET_PLAN_COSTS: The planned costs assigned to the various cost objects

of the project.

ET_ACTUAL_COSTS: The actual costs assigned to the various cost objects

of the project.

The following is a description of each of the output columns in these

tables:

SOURCE_TYPE: Defines the cost object. Possible values are: WBS_ELEMENT,

ACTIVITY, or ACTIVITY_ELEMENT.

SOURCE: The cost object itself. If SOURCE_TYPE is WBS_ELEMENT then the

source field will contain the WBS Element. If SOURCE_TYPE is ACTIVITY

then the source field will contain the concatenated value of the network

- Activity. If SOURCE_TYPE is ACTIVITY_ELEMENT then the source field

will contain the concatenated value of the Network - Activity - Activity

Element.

OBJECT_NO: The internal SAP Object Number for the cost object.

FISC_YEAR: The fiscal year of the cost posting.

COST_ELEM: The Cost Element of the cost posting.

VALUE_TRANS_CUR: The costs for the cost object in transaction currency

TRANS_CUR: Currency Key for the transaction currency

VALUE_OBJECT_CUR: The costs for the cost object in object currency

OBJECT_CUR: Currency Key for the object currency

VALUE_COAREA_CUR: The costs for the cost object in Controlling Area

currency

OBJECT_CUR: Currency Key for the Controlling Area currency

QUANTITY: The planned or actual quantity (In the case of Labor, this

would be the planned or actual labor hours. In the case of components,

this would be the planned or actual component quantity).

QUANTITY_UNIT: The unit of measure of the Quantity field

ET_RETURN: This table provides messages generated from the function module

Example

Notes

Further information





Parameters

ET_ACTUAL_COSTS
ET_PLAN_COSTS
ET_RETURN
IT_COSEL
IV_ACTUAL
IV_COAREA
IV_COST_ELEM_GRP
IV_DATE
IV_LEDGER
IV_NO_FISC_YEAR
IV_PLAN
IV_PROJECT_DEFINITION
IV_VERSION

Exceptions

Function Group

C/SAPLPROJS

Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 6772 Date: 20240505 Time: 001104     sap01-206 ( 64 ms )