Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

CT_DATA Not Populated

$
0
0

Hi Experts,

I'm using the code below:

 

I'm not getting data populated in CT_DATA when QUERY = OFF WRITE = ON.

I only see data populated in CT_DATA when QUERY = ON WRITE = ON.

 

Can you help please...

 

 

*************CODE******

 

 

    TYPES:

 

       BEGIN OF TY_CONSDATA,

          ACCOUNT        TYPE C LENGTH 32,

          AUDIT          TYPE C LENGTH 32,

          CATEGORY       TYPE C LENGTH 32,

          CURRENCY       TYPE C LENGTH 32,

          ENTITY         TYPE C LENGTH 32,

          FLOW           TYPE C LENGTH 32,

          INTERCO        TYPE C LENGTH 32,

          MEASURES       TYPE C LENGTH 32,

          SCOPE          TYPE C LENGTH 32,

          TIME           TYPE C LENGTH 32,

          SIGNEDDATA     TYPE /B28/OISDATA,

       END OF TY_CONSDATA .

 

 

 

FIELD-SYMBOLS:      TYPE  STANDARD TABLE,

 

 

********READ TRANSACTION CONSOLIDATION T-DATA***********

 

 

    LO_APPL_MGR = CL_UJA_BPC_ADMIN_FACTORY=>GET_APPLICATION_MANAGER(

                     I_APPSET_ID      =  LV_ENVIRONMENT_ID

                     I_APPLICATION_ID =  LV_APPLICATION_ID ).

 

    CLEAR LS_APPLICATION.

    LO_APPL_MGR->GET(

      EXPORTING

        IF_WITH_MEASURES = ABAP_FALSE    " BPC: GENERIC INDICATOR

        IF_SUMMARY       = ABAP_FALSE    " BPC: GENERIC INDICATOR

      IMPORTING

        ES_APPLICATION   = LS_APPLICATION ).  " APPLICATIONS TABLE TYPE

 

    REFRESH LT_DIM_LIST.

    LOOP AT LS_APPLICATION-DIMENSIONS INTO LS_DIMENSIONS.

      APPEND LS_DIMENSIONS-DIMENSION TO LT_DIM_LIST.

    ENDLOOP.

 

    LO_APPL_MGR->CREATE_DATA_REF(

      EXPORTING

        I_DATA_TYPE   = 'T'

        IT_DIM_NAME   = LT_DIM_LIST

        IF_TECH_NAME  = ABAP_FALSE

        IF_SIGNEDDATA = ABAP_TRUE

      IMPORTING

        ER_DATA       = LR_DATA ).

 

    ASSIGN LR_DATA->* TO RUN_RSDRI_QUERY(

          EXPORTING

            IT_DIM_NAME       =  LT_DIM_LIST   " BPC: DIMENSION LIST

  •        IT_RANGE          =     " BPC: SELECTION CONDITION

             IF_CHECK_SECURITY = ABAP_FALSE    " BPC: GENERIC INDICATOR

  •        I_PACKAGESIZE     =     " BPC: SIZE OF RETURNED DATA PACKAGE

  •        I_CALL_BADI       = ABAP_TRUE

  •        IF_DB_AGGREGATE   = ABAP_TRUE    " BPC: GENERIC INDICATOR

           IMPORTING

             ET_DATA           =

  •        E_END_OF_DATA     =     " BPC: LAST DATA PACKAGE YES/NO

  •        E_SPLIT_OCCURRED  =     " RESULT MAY NOT BE COMPLETELY AGGREGATED

             ET_MESSAGE        = LT_MESSAGE    " BPC: MESSAGES

  •        E_STATS_GUID      =     " BPC: STATISTICS SESSION

  •        E_CELL_FILTED     =

  •      CHANGING

  •        C_FIRST_CALL      =     " BPC: FIRST CALL YES/NO

        ).

  •      CATCH CX_UJO_READ.    " EXCEPTION OF COMMON READ

 

      CATCH CX_UJO_READ.     " EXCEPTION OF COMMON READ

    ENDTRY.

 

 

 

 

   REFRESH: CT_DATA, LT_QUERY_RESULT .

 

    IF LT_QUERY_RESULT IS NOT INITIAL.

      CT_DATA[] = LT_QUERY_RESULT[].

    ENDIF.

 

  ENDMETHOD.

 

*

*

 


Viewing all articles
Browse latest Browse all 5414

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>