Skip to Content
avatar image
Former Member

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

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 22, 2017 at 10:57 AM

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

    Add comment
    10|10000 characters needed characters exceeded