cancel
Showing results for 
Search instead for 
Did you mean: 

Get actual and target cost of production orders in SAP ABAP query

0 Kudos

Hi,

I'm using FM K_KKB_KKBCS_CO_OBJECT_READ in SAP ABAP query to read actual and target cost of production orders.

The problem I have is that the FM is not give me the target cost when orders are
not settle yet.

If I execute FM K_KKB_KKBCS_ORDER_REPORT which call FM K_KKB_KKBCS_CO_OBJECT_READ then it's OK and I get the target cost.

I found out that this is because of code in one of the form which check global variable --> check g_object = obj-auf.

I want to update the global variable g_object with value 'O' and send it to the function module but don't know how to do that

Any ideas how to resolve it ?

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor

Did you pass i_hcstruktur-obart = 'OR' to the FM?

0 Kudos

Did you find the way to use function: K_KKB_KKBCS_CO_OBJECT_READ to get calculate target cost? Please let me know. I have the same problem and don't know what to do. I just want to pass 'O' to g_object too . T_T