0ACCOUNT (KTOPL)

Hi,
I understand that in account based profitability analysis we do not deal with value fields but rather the char of accounts (field KTOPL in the operating concern).My question is when the data is replicated into BI.Do all accounts in the chart of accounts get assigned an InfoObject.How do we handle these accounts in BI? especially for querys etc. And does KTOPL bring all accounts into BI when replicated?
Thanks

it gets mapped when you create info source and through your transfer rule/structure and communication structure... if you made to customize it then select define diffent info objects there but best is to use whats defined by sap, which are activated through your business content. when you say all acconts in chart of accounts that update would happen through transaction data not through master data, if tht update is necessary you do it while delta is active... you dont handle these accounts in bi the main activity is to do reporting on them... most of the handleing issues are doneby FI guys...if your asking about the assignments then thats done in transfer/communication structure once you make the info sourse...

Similar Messages

  • Difference b/w 0Account and 0GLAccount attribute in R/3

    Hi Gurus,
                   I have a question about the difference between 0Account_attr and 0GLAccount_attr datasources. I know that 0Account is used for data consolidation and 0GLAccount is used for operational.
                   Please some tell me on what purpose we use this two data sources.
    Thanks
    Ganesh Reddy.

    Hi
    Normally 0Account is an individual Account without grouping it to GL and 0GL_Account is assigned to General Ledger
    http://help.sap.com/saphelp_nw70/helpdata/EN/6f/97a16a65fb11d3971c006094b969cf/frameset.htm
    Hope it helps and clear

  • Download the KTOPL  field data and GLT0 table data into one Internal table

    Hi,
    I have downloaded GLT0 table fields  data to PC file . But i need to download KTOPL(Chart Of Accounts) data also. in GLT0 table there is no KTOPL field.
    But in SKA1 table have KTOPL field. Then what is the issue is GLT0 data & KTOPL field data needs to download into one Internal Table.
    anybody could you please solve this problem. immediately need to solve this.
    Below is the code.
    REPORT ZFXXEABL_1 NO STANDARD PAGE HEADING
                    LINE-SIZE 200.
    Tables Declaration
    TABLES : GLT0.
    Data Declaration
    DATA :   FP(8)           TYPE C,
             YEAR           LIKE GLT0-RYEAR,
             PERIOD(3)       TYPE C,
             DBALANCE         LIKE VBAP-NETWR VALUE 0 ,
             CBALANCE         LIKE VBAP-NETWR VALUE 0.
    *Internal table for for final data..
    DATA : BEGIN OF REC1 OCCURS 0,
           BAL             LIKE GLT0-TSLVT value 0,
           COAREA          LIKE GLT0-RBUSA,
          CA(4)           TYPE C,
           KTOPL           LIKE ska1-ktopl, 
           CCODE           LIKE GLT0-BUKRS,
           CREDIT          LIKE  VBAP-NETWR,
           CURRENCY        LIKE GLT0-RTCUR,
           CURTYPE(2)      TYPE N,
           DEBIT           LIKE VBAP-NETWR,
           YEAR(8)         TYPE C,
           FY(2)           TYPE C,
           ACCOUNT         LIKE GLT0-RACCT,
           VER             LIKE GLT0-RVERS,
           VTYPE(2)        TYPE N,
           CLNT            LIKE SY-MANDT,
           S_SYS(3)        TYPE C,
           INDICATOR      LIKE GLT0-DRCRK,
           END OF REC1.
    DATA : C(2) TYPE N,
           D(2) TYPE N.
    DATA REC1_H LIKE REC1.
    Variable declarations
    DATA :
           W_FILES(4) TYPE N,
           W_DEBIT LIKE GLT0-TSLVT,
           W_CREDIT LIKE GLT0-TSLVT,
           W_PCFILE LIKE RLGRAP-FILENAME ,
           W_UNIXFILE LIKE RLGRAP-FILENAME,
           W_PCFILE1 LIKE RLGRAP-FILENAME,
           W_UNIXFIL1 LIKE RLGRAP-FILENAME,
           W_EXT(3) TYPE C,
           W_UEXT(3) TYPE C,
           W_PATH LIKE RLGRAP-FILENAME,
           W_UPATH LIKE RLGRAP-FILENAME,
           W_FIRST(1) TYPE C VALUE 'Y',
           W_CFIRST(1) TYPE C VALUE 'Y',
           W_PCFIL LIKE RLGRAP-FILENAME.
    DATA: "REC LIKE GLT0 OCCURS 0 WITH HEADER LINE,
          T_TEMP LIKE GLT0 OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF REC3 OCCURS 0.
          INCLUDE STRUCTURE GLT0.
    DATA: KTOPL LIKE SKA1-KTOPL,
          END OF REC3.
    DATA: BEGIN OF T_KTOPL OCCURS 0,
          KTOPL LIKE SKA1-KTOPL,
          SAKNR LIKE SKA1-SAKNR,
          END OF T_KTOPL.
    Download data.
    DATA: BEGIN OF I_REC2 OCCURS 0,
           BAL(17),        "             like GLT0-TSLVT value 0,
           COAREA(4),      "          like glt0-rbusa,
           CA(4),          "  chart of accounts
           CCODE(4),       "           like glt0-bukrs,
           CREDIT(17),     "          like  vbap-netwr,
           CURRENCY(5),    "       like glt0-rtcur,
           CURTYPE(2),     "      type n,
           DEBIT(17),      "           like vbap-netwr,
           YEAR(8),        "  type c,
           FY(2),          " type c, fiscal yr variant
           ACCOUNT(10),    " like glt0-racct,
           VER(3),         "    like glt0-rvers,
           VTYPE(3),       " type n,
           CLNT(3),        "like sy-mandt,
           S_SYS(3),       "like sy-sysid,
           INDICATOR(1),   "   like glt0-drcrk,
          END OF I_REC2.
    Selection screen.                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK BL1  WITH FRAME TITLE TEXT-BL1.
    SELECT-OPTIONS : COMPCODE FOR GLT0-BUKRS,
                      GLACC FOR GLT0-RACCT,
                      FISYEAR   FOR GLT0-RYEAR,
                    no intervals no-extension,      "- BG6661-070212
                       FISCPER FOR GLT0-RPMAX,
                     busarea   for glt0-rbusa,
                      CURRENCY  FOR GLT0-RTCUR.
    SELECTION-SCREEN END   OF BLOCK BL1.
    SELECTION-SCREEN BEGIN OF BLOCK BL2  WITH FRAME TITLE TEXT-BL2.
    PARAMETERS:
      P_UNIX AS CHECKBOX,                  "Check box for Unix Option
      P_UNFIL LIKE RLGRAP-FILENAME,        " Unix file Dnload file name
       default '/var/opt/arch/extract/GLT0.ASC',  "- BG6661-070212
      P_PCFILE AS CHECKBOX,                "Check box for Local PC download.
      P_PCFIL LIKE RLGRAP-FILENAME         " PC file Dnload file name
                 default 'C:\GLT0.ASC'.           "- BG6661-070212
          DEFAULT 'C:\glt0_gl_balance_all.asc'.     "+ BG6661-070212
    SELECTION-SCREEN END   OF BLOCK BL2.
    *eject
    Initialization.                                                     *
    INITIALIZATION.
    Try to default download filename
    p_pcfil = c_pcfile.
    p_unfil = c_unixfile.
    if sy-sysid eq c_n01.
       p_unfil =   c_unixfile.
    endif.
    if sy-sysid eq c_g21.
       p_unfil =   c_g21_unixfile.
    endif.
    if sy-sysid eq c_g9d.
       p_unfil =   c_g9d_unixfile.
    endif.
    Default for download filename
    *{ Begin of BG6661-070212
      CONCATENATE C_UNIXFILE
                  SY-SYSID C_FSLASH C_CHRON C_FILENAME INTO P_UNFIL.
    *} End of BG6661-070212
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
       if screen-name = 'P_PCFIL'.        "PC FILE
         screen-input = '0'.
         modify screen.
       endif.
       if screen-name = 'P_UNFIL'.        "UN FILE
         screen-input = '0'.
         modify screen.
       endif.
    endloop.
      if w_first = 'Y'.
        perform path_file.
        w_first = 'N'.
      endif.
    if w_cfirst = 'Y'.
       perform cpath_file.
       w_cfirst = 'N'.
    endif.
    Start-of-Selection.                                                 *
    START-OF-SELECTION.
    *COLLECT DATA
      PERFORM COLLECT_DATA.
    *BUILD FILENAMES
      PERFORM BUILD_FILES.
    *LOCAL
      IF P_PCFILE = C_YES.
       PERFORM LOCAL_DOWNLOAD.
      ENDIF.
    *UNIX
      IF P_UNIX = C_YES.
        PERFORM UNIX_DOWNLOAD.
      ENDIF.
      IF P_PCFILE IS INITIAL AND P_UNIX IS INITIAL.
        MESSAGE I000(ZL) WITH 'Down load flags both are unchecked'.
      ENDIF.
    END-OF-SELECTION.
    IF P_PCFILE = C_YES.
    WRITE :/ 'PC File'  , C_UNDER, P_PCFIL.
    ENDIF.
    *&      Form  DOWNLOAD
          Download                                                       *
    FORM DOWNLOAD.
      P_PCFIL =  W_PATH.
      DATA LIN TYPE I.
      DESCRIBE TABLE I_REC2 LINES LIN.
      WRITE:/ 'No of Records downloaded = ',LIN.
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
               FILENAME            =  P_PCFIL
               FILETYPE            =  C_ASC   "c_dat   "dat
           TABLES
                DATA_TAB            = I_REC2  " t_str
               fieldnames          = t_strhd
           EXCEPTIONS
                FILE_OPEN_ERROR     = 1
                FILE_WRITE_ERROR    = 2
                INVALID_FILESIZE    = 3
                INVALID_TABLE_WIDTH = 4
                INVALID_TYPE        = 5
                NO_BATCH            = 6
                UNKNOWN_ERROR       = 7
                OTHERS              = 8.
      IF SY-SUBRC EQ 0.
      ENDIF.
    ENDFORM.
    *&      Form  WRITE_TO_SERVER
          text                                                           *
    -->  p1        text
    <--  p2        text
    FORM WRITE_TO_SERVER.
      DATA : L_MSG(100) TYPE C,
             L_LINE(5000) TYPE C.
      P_UNFIL =  W_UPATH.
      DATA LIN TYPE I.                           
      DESCRIBE TABLE I_REC2 LINES LIN.           
      WRITE:/ 'No of Records downloaded = ',LIN. 
      OPEN DATASET P_UNFIL FOR OUTPUT IN TEXT MODE.        " message l_msg.
      IF SY-SUBRC <> 0.
        WRITE: / L_MSG.
      ENDIF.
    perform header_text1.
      LOOP AT I_REC2.
        TRANSFER I_REC2 TO P_UNFIL.
      ENDLOOP.
      CLOSE DATASET P_UNFIL.
      WRITE : / C_TEXT , W_UPATH.
      SPLIT W_UNIXFILE AT C_DOT INTO W_UNIXFIL1 W_UEXT.
      CLEAR W_UPATH.
      IF NOT W_UEXT IS INITIAL.
        CONCATENATE W_UNIXFIL1  C_DOT W_UEXT INTO W_UPATH.
      ELSE.
        W_UEXT = C_ASC. " c_csv.
        CONCATENATE W_UNIXFIL1 C_DOT W_UEXT INTO W_UPATH.
      ENDIF.
    ENDFORM.                               " WRITE_TO_SERVER
    *&      Form  BUILD_FILES
    FORM BUILD_FILES.
      IF P_PCFILE = C_YES.
        W_PCFILE = P_PCFIL.
    ***Split path at dot**
        SPLIT W_PCFILE AT C_DOT INTO W_PCFILE1 W_EXT.
        IF NOT W_EXT IS INITIAL.
          CONCATENATE W_PCFILE1 C_DOT W_EXT INTO W_PATH.
        ELSE.
          W_PATH = W_PCFILE1.
        ENDIF.
      ENDIF.
      IF P_UNIX = C_YES.
        W_UNIXFILE = P_UNFIL.
        SPLIT W_UNIXFILE AT C_DOT INTO W_UNIXFIL1 W_UEXT.
        IF NOT W_UEXT IS INITIAL.
          CONCATENATE W_UNIXFIL1  C_DOT W_UEXT INTO W_UPATH.
        ELSE.
          W_UPATH = W_UNIXFIL1.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM CPATH_FILE.
    CLEAR P_PCFIL.
       CONCATENATE C_PCFILE
                   C_COMFILE SY-SYSID C_UNDER SY-DATUM SY-UZEIT
                   C_DOT C_ASC INTO  P_PCFIL.
    ENDFORM.                    " CPATH_FILE
    FORM PATH_FILE.
    CLEAR P_UNFIL.
      if sy-sysid eq c_n01.
       CONCATENATE C_UNIXFILE
                   C_COMFILE SY-SYSID C_UNDER SY-DATUM SY-UZEIT
                    C_DOT C_ASC INTO  P_UNFIL.
      endif.
      if sy-sysid eq c_g21.
      concatenate c_g21_unixfile
                  c_comfile sy-sysid c_under sy-datum sy-uzeit
                   c_dot c_asc into  p_unfil.
      endif.
      if sy-sysid eq c_g9d.
      concatenate c_g9d_unixfile
                  c_comfile sy-sysid c_under sy-datum sy-uzeit
                   c_dot c_asc into  p_unfil.
      endif.
    ENDFORM.                    " PATH_FILE
    Local_Download                                                       *
          Local                                                          *
    FORM LOCAL_DOWNLOAD.
    perform header_text.
    LOOP AT REC1.
    REC1-CLNT = SY-MANDT.
    REC1-S_SYS = SY-SYSID.
    MOVE:  REC1-BAL TO I_REC2-BAL,
            REC1-COAREA TO I_REC2-COAREA,
           REC1-CA TO I_REC2-CA,         
            REC1-KTOPL TO I_REC2-CA,       
            REC1-CCODE TO I_REC2-CCODE,
            REC1-CREDIT TO I_REC2-CREDIT,
            REC1-CURRENCY TO I_REC2-CURRENCY,
            REC1-CURTYPE TO I_REC2-CURTYPE,
            REC1-DEBIT TO I_REC2-DEBIT,
            REC1-YEAR TO I_REC2-YEAR,
            REC1-FY TO I_REC2-FY,
            REC1-ACCOUNT TO I_REC2-ACCOUNT,
            REC1-VER TO I_REC2-VER,
            REC1-VTYPE TO I_REC2-VTYPE,
            REC1-CLNT TO I_REC2-CLNT,
            REC1-S_SYS TO I_REC2-S_SYS,
            REC1-INDICATOR TO I_REC2-INDICATOR.
    APPEND I_REC2.
    CLEAR  I_REC2.
    ENDLOOP.
      IF NOT I_REC2[] IS INITIAL.
        PERFORM DOWNLOAD .
        CLEAR I_REC2.
        REFRESH I_REC2.
       ELSE.
       WRITE : / ' no record exist due to unavailability of data'.
      ENDIF.
    ENDFORM.                               " LOCAL_DOWNLOAD
    *&      Form  UNIX_DOWNLOAD
    FORM UNIX_DOWNLOAD.
    LOOP AT REC1.
    REC1-CLNT = SY-MANDT.
    REC1-S_SYS = SY-SYSID.
    MOVE:  REC1-BAL TO I_REC2-BAL,
            REC1-COAREA TO I_REC2-COAREA,
          REC1-CA TO I_REC2-CA,         
            REC1-KTOPL TO I_REC2-CA,       
            REC1-CCODE TO I_REC2-CCODE,
            REC1-CREDIT TO I_REC2-CREDIT,
            REC1-CURRENCY TO I_REC2-CURRENCY,
            REC1-CURTYPE TO I_REC2-CURTYPE,
            REC1-DEBIT TO I_REC2-DEBIT,
            REC1-YEAR TO I_REC2-YEAR,
            REC1-FY TO I_REC2-FY,
            REC1-ACCOUNT TO I_REC2-ACCOUNT,
            REC1-VER TO I_REC2-VER,
            REC1-VTYPE TO I_REC2-VTYPE,
            SY-MANDT TO I_REC2-CLNT,
            SY-SYSID TO I_REC2-S_SYS,
            REC1-INDICATOR TO I_REC2-INDICATOR.
    APPEND I_REC2.
    CLEAR  I_REC2.
    ENDLOOP.
      IF NOT I_REC2[] IS INITIAL.
        PERFORM WRITE_TO_SERVER.
        CLEAR I_REC2.
        REFRESH I_REC2.
      ELSE.
       WRITE : / ' no record exist due to unavailability of data'.
      ENDIF.
    ENDFORM.                               " UNIX_DOWNLOAD
    *&      Form  HEADER_TEXT
          text                                                           *
    -->  p1        text
    <--  p2        text
    *form header_text.
      concatenate c_bal c_ba c_ca c_cc  c_credit c_currency c_curtype
         c_debit c_fisyear c_fisvar c_acct c_ver c_vtype c_indicator
               into t_strhd
               separated by c_comma.
      append t_strhd.
    *endform.                               " HEADER_TEXT
    *&      Form  HEADER_TEXT1
          text                                                           *
    *form header_text1.
      concatenate c_bal c_ba c_ca c_cc  c_credit c_currency c_curtype
        c_debit c_fisyear c_fisvar c_acct c_ver c_vtype c_indicator
               into t_strhd1
               separated by c_comma.
      append t_strhd1.
      transfer t_strhd1 to p_unfil.
    *endform.                    " HEADER_TEXT1
    *&      Form  COLLECT_DATA
          Collect Data                                                   *
    FORM COLLECT_DATA.
    SELECT * FROM GLT0 INTO  TABLE REC3
                        WHERE   BUKRS IN COMPCODE
                        AND     RYEAR IN FISYEAR
                        AND     RPMAX IN FISCPER
                        AND     RACCT IN GLACC
                        AND     RTCUR IN  CURRENCY.
    SELECT KTOPL FROM SKA1
                 INTO TABLE T_KTOPL
                 FOR ALL ENTRIES IN REC3
                 WHERE SAKNR = REC3-RACCT.
    LOOP AT REC3 .
       select *
       from glt0
       into table t_temp
       where rldnr = rec-rldnr
         and rrcty  = rec-rrcty
          and rvers  = rec-rvers
         and bukrs = rec-bukrs
         and ryear = rec-ryear
          and racct  = rec-racct
           and rbusa  = rec-rbusa
           and rtcur <> 'ZAR'
         and rpmax  = rec-rpmax.
    if sy-subrc = 0.
            rec1-bal = '0.00'.
    else.
      rec1-bal = rec-hslvt.
      endif.
    *READ TABLE T_KTOPL WITH KEY SAKNR = REC-RACCT BINARY SEARCH.
    MOVE T_KTOPL-KTOPL TO REC3-KTOPL.
    CLEAR:  CBALANCE, DBALANCE.
    REC1-BAL = REC3-HSLVT.
    IF REC3-DRCRK = 'S'.
    IF REC3-HSLVT NE C_ZERO.
           YEAR   = REC-RYEAR.
           PERIOD = '000'.
           CONCATENATE PERIOD C_DOT YEAR INTO FP.
           REC1-INDICATOR = REC-DRCRK.
           REC1-DEBIT = C_ZERO.
           REC1-CREDIT = C_ZERO.
           REC1-CCODE = REC-BUKRS.
           REC1-YEAR  = FP.
           REC1-CURRENCY = REC-RTCUR.
           REC1-ACCOUNT  = REC-RACCT.
           rec1-bal      = rec-hslvt.
           dbalance = rec1-bal.
           REC1-CURTYPE = C_CTYPE.
           REC1-FY      = C_FY.
           REC1-COAREA   = REC-RBUSA.
           REC1-VER     = REC-RVERS.
           REC1-VTYPE   = C_CTYPE.
           REC1-CA      = C_CHART.
           APPEND REC1.
            C = 0.
          PERFORM D.
    ENDIF.
    IF REC3-HSL01 NE C_ZERO.
            YEAR   = REC3-RYEAR.
            PERIOD = '001'.
            CONCATENATE PERIOD C_DOT YEAR INTO FP.
            REC1-INDICATOR = REC3-DRCRK.
            REC1-DEBIT = REC3-HSL01 .
            REC1-CCODE = REC3-BUKRS.
            REC1-YEAR  = FP.
            REC1-CURRENCY = REC3-RTCUR.
            REC1-ACCOUNT  = REC3-RACCT.
           rec1-bal      = REC3-hsl01 + dbalance.
           dbalance = rec1-bal.
            REC1-CURTYPE = C_CTYPE.
            REC1-FY      = C_FY.
            REC1-COAREA   = REC3-RBUSA.
            REC1-VER     = REC3-RVERS.
            REC1-VTYPE   = C_CTYPE.
          REC1-CA      = C_CHART. 
            REC1-KTOPL = REC3-KTOPL. 
            APPEND REC1.
            C = 1.
         PERFORM D.
    ENDIF.
    IF  REC3-HSL02 NE C_ZERO.
          REC1-DEBIT = REC3-HSL02.
       YEAR   = REC3-RYEAR.
       PERIOD = '002'.
      CONCATENATE PERIOD C_DOT YEAR INTO FP.
         REC1-INDICATOR = REC3-DRCRK.
       REC1-DEBIT = REC3-HSL02.
       REC1-CCODE = REC3-BUKRS.
       REC1-YEAR  = FP.
       REC1-CURRENCY = REC3-RTCUR.
       REC1-ACCOUNT  = REC3-RACCT.
      rec1-bal      = REC3-hsl02 + dbalance.
      dbalance = rec1-bal.
            REC1-CURTYPE = C_CTYPE.
            REC1-FY      = C_FY.
            REC1-COAREA   = REC3-RBUSA.
            REC1-VER     = REC3-RVERS.
            REC1-VTYPE   = C_CTYPE.
          REC1-CA      = C_CHART. "-BF7957-070503
            REC1-KTOPL = REC3-KTOPL.  "+BF7957-070503
       APPEND REC1.
       C = 2.
    PERFORM D.
    ENDIF.
    IF  REC3-HSL03 NE C_ZERO.
            YEAR   = REC3-RYEAR.
            PERIOD = '003'.
            CONCATENATE PERIOD C_DOT YEAR INTO FP.
               REC1-INDICATOR = REC3-DRCRK.
            REC1-DEBIT = REC3-HSL03.
            REC1-CCODE = REC3-BUKRS.
            REC1-YEAR  = FP.
            REC1-CURRENCY = REC3-RTCUR.
            REC1-ACCOUNT  = REC3-RACCT.
           rec1-bal      = REC3-hsl03 + dbalance .
           dbalance =  rec1-bal.
            REC1-CURTYPE = C_CTYPE.
            REC1-FY      = C_FY.
            REC1-COAREA   = REC3-RBUSA.
            REC1-VER     = REC3-RVERS.
            REC1-VTYPE   = C_CTYPE.
           REC1-CA      = C_CHART. "-BF7957-070503
             REC1-KTOPL = REC3-KTOPL. "+BF7957-070503
            APPEND REC1.
          C = 3.
    PERFORM D.
    ENDIF.
    IF  REC3-HSL04 NE C_ZERO.
           REC1-DEBIT = REC3-HSL04.
              YEAR   = REC3-RYEAR.
              PERIOD = '004'.
             CONCATENATE PERIOD C_DOT YEAR INTO FP.
                REC1-INDICATOR = REC3-DRCRK.
             REC1-DEBIT = REC3-HSL04.
              REC1-CCODE = REC3-BUKRS.
              REC1-YEAR  = FP.
              REC1-CURRENCY = REC3-RTCUR.
              REC1-ACCOUNT  = REC3-RACCT.
             rec1-bal      = REC3-hsl04 + dbalance .
            REC1-CURTYPE = C_CTYPE.
            REC1-FY      = C_FY.
            REC1-COAREA   = REC3-RBUSA.
            REC1-VER     = REC3-RVERS.
            REC1-VTYPE   = C_CTYPE.
          REC1-CA      = C_CHART.  "-BF7957-070503
            REC1-KTOPL = REC3-KTOPL.  "+BF7957-070503
            APPEND REC1.
             dbalance = rec1-bal.
              C = 4.
              PERFORM D.
    ENDIF.
    Thanks and Regards,
    Ram

    use logical database SDF, nodes ska1 and  skc1c
    A.

  • How to get KTOPL for a given BELNR

    Hi all you experts!
    I am codding a simple report that obtains some data from BSAK including BELNR and SAKNR.
    I need to show in this report the description of SAKNR. I know that I can get it from table SKAT but in order to do that I need to know SPRAS and KTOPL.
    I don't have any problem getting SPRAS. But I don't know how to get the correct value for KTOPL.
    Could any of you kindly tell me how can I get KTOPL for a given BSAK-BELNR?
    Many thanks in advance.

    Hello
    Using direct DB selections for such a basic standard functionality is just nonsense.
    BSAK contains both the company code (BUKRS) and the account (SAKNR). Thus, simply feed BAPI_GL_ACC_GETDETAIL with these details and the EXPORTING parameter ACCOUNT_DETAIL contains the required texts.
    Even though there are alternative fm's like
    GL_ACC_GETDETAIL
    READ_SACHKONTO_AND_TEXT
    I always recommend to use the most generic approach (here: BAPI ).
    Regards
      Uwe

  • Some accounts in 0ACCOUNT hierarchy MD not loading from ECC

    Hi,
    I am trying to load 0ACCOUNT hierarchy master data from ECC to BW, using standard data sources. The process is in place in Production and was running fine until couple of days back. All of a sudden, the daily master data load doesn't bring in new accounts added to hierarchy in ECC.
    The user responsible for adding and updating new accounts to hierarchy has checked on the ECC, and I have seen the ECC screen. The new accounts are correctly placed in correct hierarchy on ECC side.
    I have checked and tried couple of things. The Attr and Text are coming through fine, only hierarchy is not getting updated on BW side. I tried to replicate Metadata for the data source on BW side, I have manually run the DTPs, but still no success.
    I will really appreciate your help on this.
    Thanks,
    Abhishek.

    Hi all,
    Thanks for your prompt replies. To answer to all the above replies:
    1) I am not getting any errors while loading the account hierarchy. The process state is Green. It is just skipping the new accounts. There are no new patches installed in BI, check with Basis team
    2) I had checked the ACR, 0ACCOUNT is already included in the process.
    3) At ECC side, the team always added the accounts/accounts ranges manually to the hierarchy and it worked well in the past. The hierarchy data source we are using always is either in Modified/Content mode and I assume we cannot activate the hierarchy data sources that is provided by SAP.
         3.1) Yes, we have maintained the hierarchy structure at Infoobject level. The attributes and texts are coming through fine and those accounts are already in SAP BI attribute/text, but they are not brought over in hierarchy.
         3.2) I am not authorized to access RSHIER/RSH1 T-code.
    Thanks,
    Abhishek.

  • 0ACCOUNT Hierarchy issue

    Hi Guys,
    This is related to 0ACCOUNT Hierarchy. I am running P&L PCA report using this hierarchy. A new account group is added in R/3 system. But the same is not appearing in BW system. I checked in the Infopackage (BWP Systems) with the refresh button " available hierarchies from OLTP system" but this hierarchy is not appearing in the infopackage.
    It is also not appearing in the other hierarchies too where it is being used.
    Can someone tell me what should I do?

    if you are able to see the group in KDH3 then disregard my suggestion...sometimes what happens is it might be defined as a set but not as a group...tcode gs03 for sets...i thought that might be the reason why it wasnt showing up in the infopackage...
    the new group which was added...is this the top node ?? or is this added as a child node ?...i think in the infopackage you will only see the top nodes....
    this particular new hierarchy which was added might be part of a existing parent hierarchy...

  • How to load 0GLACCEXT into 0ACCOUNT

    Hi,
    can someone tell me how to load 0GLACCEXT into 0ACCOUNT?  I have noticed that 0GLACCEXT is an attribute of OACCOUNT.
    I am trying to use 0PCA_C01 for my queries.
    Thanks
    Zev

    Hi Zev,
    May be I'm wrong, but as far as I know 0GLACCEXT is an attribute of <b>0GL_</b>ACCOUNT an used for calculation in balance sheets (FI) and not for PCA.
    Regards
    Joe

  • What is the relation between KTOPL and 0CHRT_ACCTS_ATTR? both Chart of Acct

    Hi
    If an R3 field e.g. KTOPL (in datasource 0fi_gl_4)  which is a "Chart of Accout" is extracted a part of 0fi_gl_4 to BI,
    is there the need to separately extract 0CHRT_ACCTS_ATTR & 0CHRT_ACCTS_TEXT which are also "Chart of Accout"
    What is the relation between KTOPL and 0CHRT_ACCTS_ATTR & 0CHRT_ACCTS_TEXT  in R3?
    What is the relation between KTOPL and 0CHRT_ACCTS_ATTR & 0CHRT_ACCTS_TEXT  in BI?
    Thx

    Hi,
    I get these well with examples so let me see if I get your point:
    So in the tranx data the 0fg_gl will be  a value for KTOPL  e.g. 450009 as a G/L Account number? (Values for chart of Acct should be GL Accounts, right?)
    but before this tranx data is loaded, preferrably,  0CHRT_ACCTS_ATTR and 0CHRT_ACCTS_TEXT should have been extracted to BI; and data loaded; and this will be the master data and there should have been in it:
    .._ATTR   -
    .._TEXT
    450009   -
    Petty cash Expenses
    Is my understanding exact?
    Thnx

  • Hierarchy authorization: profit center,  0account for 0PCA_C01 data.

    Hello my SAP Net friends,
    I have built the authorizations/roles using profit center hierarchy for PCA data based the paper in BWExpert(Avoid these common pitfalls in using reporting authorizations with and without hierachies), it works fine.
    Both 0profit_ctr and 0account are in the 0PCA_C01 cube, they both have hierarchies.
    Now users also want to use the 0account hierarchy to limit PCA data access beside using the profit center. Have any of you had experience to use both profit center and 0account hierarchies for authorization? Could it works? Any limitation or issues?
    I have created authorization object using the profit center, if I create another authorization object using 0account. Could these two authorization objects works together?
    I will assign points to any helpful responses.
    Thanks!
    JXA

    Hello Jun,
    0profit_ctr and 0account are two different characteristics, so authorization to those two are independent of each other.
    I.e., you can set authorization two both characteristics by means of both hierarchies.
    Diogo.

  • Records missing while extracting 0account hierarchy

    Bi experts,
    Two records have been added  by the business to a node in the 0account hierarchy , which can be seen in transaction /nKAH3.
    While extracting the MAE  0account hierarchy using a full InfoPackage no errors occur, but when checking the hierarchy in BW both records are missing. The activate checkbox has been selected in the InfoPackage.
    Has anyone  experienced something simular in the past?
    Regards,

    Hi,
    If once you loaded the Hierarchy, then do the Change run for it.
    If the loading was done manually then go to
    RSA1 --> Tools --> Apply Hierarchy/Attribute Change Run -- > Click on Hierarchy List Puch Button
    Then select the your hierarchy loading and click on save and then click on Execute Hierarchy/Attribute Change Run.
    Hope this will solve your problem
    With Regards
    ARUN
    Edited by: Arun Aravapalli on Mar 16, 2010 11:59 PM

  • Loading 0account hierarchy fails

    Hello Gurus,
    We recently upgraded to 7.0. We are having an issue while loading 0account hierarchy in Q and P systems using a flat file and we are able to load the same file in D system. 
    This is the error meassge in Q and P:
    'Invalid entry, hierarchy 4AF5AVCDUA0077116VFCD does not exist'
    Note: Before the upgrade we were able to load the same file  0account hierarchy in all systems.
    My trouble shooting findings are:
    In D:
    TABLE /BI0/HACCOUNT has field NODENAME and its data element is RSNODENAME CHAR 32
    In Q and P:
    TABLE /BI0/HACCOUNT has field NODENAME and its data element is RSSHNODENAME CHAR 60
    Is this causing the issue or anything else ?
    I appreciate your help and I promise right points.
    Cheers,
    seenu

    HI Seenu !!
    We faced similar troubles, and we resolve it before update the SP.  We are now on 7.0 and the level of sp is 16.
    Could you check that first ?
    If the level is the same then surelly there are any note for that and i could help you to find out.
    Best Regards
    Natalia.

  • Sharing a hierarchy from 0ACCOUNT with 0GL_ACCOUNT

    Is it possible to share a hierarchy that pertains to 0ACCOUNT with another info-object (eg, 0GL_ACCOUNT) ?
    How can this be accomplished, without resorting to a flat file download / upload ?
    Regards,
    Frederick

    We had a similar requirement (to include a 0GL_ACCOUNT hierarchy in a profit centre report) so I'm posting our solution for the benefit of anyone searching the topic in the future.
    My (probably imperfect) understanding is that 0ACCOUNT includes the full list of accounts within a chart of accounts within a controlling area. 0GL_ACCOUNT includes the subset that has been maintained in the hierarchies of financial statements (of which there may be a number of named versions). These hierarchies include the groupings of Assets and Liabilities, and Revenue and Expense items needed to generate balance sheets or income (profit and loss) statements.
    So for many reporting purposes the two can be regarded as synonymous and interchangable. To include a 0GL_ACCOUNT hierarchy in a report that contains 0ACCOUNT:
    add 0GL_ACCOUNT as a navigation attribute of 0ACCOUNT
    assign 0ACCOUNT to 0GL_ACCOUNT in the master data update process
    make the navigation attribute (0GL_ACCOUNT) available in your cube and query
    Be aware that this may result in accounts that are not GL accounts being added to the GL master data, but when reporting against transactional data this should not matter -- only those used in a given context will be referenced.
    Naturally you could add 0ACCOUNT to 0GL_ACCOUNT in the same way.

  • 0Account in Cube

    Hi All,
    As we know that 0CHRT_ACCTS is the Compound attribute for 0Account.
    IN infosurce I maintaind both objects because of compounding 0CHRT_ACCTS added automatically.
    I am designing a new cube, I need to add only 0Account  not 0CHRT_ACCTS. If I avoid 0CHRT_ACCTS, it doesn't allow me to add 0Account without 0CHRT_ACCTS.
    Error:
    "Higher-level InfoObject 0CHRT_ACCTS for InfoObject 0ACCOUNT is not contained"
    Message no. R7 894.
    In Existing cubes I maitained both without any problem.
    How can I  overcome this problem? Pls help me out.
    Shall I create Zaccount number and follow?
    Thanks in advance.
    Sri.

    If you do this then the text object will be the last Account that is loaded - which is probaly going to be the SAP standard South Afican or Zimbabwe Chart of Accounts - and not your individual Chart of Accounts - if the account numbers without COA match SAP standard ones with a COA letter that is greater in the alphabet than your compnaies COA (if you see what I mean..)
    eg
    Your COA is MY01 but when you display text it shows the wrong text
    COA  Account   Text
    MY01 123000    Bank Account
    ZAR1 123000    Revenue
    The text show withotu COA is
    123000    Revenue

  • Difference between 0GL_ACCOUNT and 0ACCOUNT

    Hi all,
    I'd like to have a confirmation regarding the difference between the two BW Infoobjects 0GL_ACCOUNT and 0ACCOUNT. As far as I can suppose, 0GL_ACCOUNT master data flow provides a list of accounts used for general ledger accounting. 0ACCOUNT master data flow provides not only "general ledger" accounts but also accounts used for "account receivable" and "account payable" accounting (that can be the same of general ledger accounting).
    Am I wrong?
    Thanks for your collaboration.

    Hi,
    G/L Account
    Technical name: 0GL_ACCOUNT
    Use
    The G/L account characteristic enables you to define queries that display the balance of your individual G/L accounts, for example. For this to be possible, you must define the G/L account characteristic as a row characteristic.
    You can use a hierarchy for the G/L account characteristic, which allows you to define a structured list of account balances; that is, the G/L account balances are displayed in a predefined structure. This could be a financial statement version or any group of G/L accounts.
    The hierarchy you wish to use must be defined in Customizing in your source system. To do this, choose Financial Accounting ® General Ledger Accounting ® Business Transactions ® Closing ® Documenting ® Define Financial Statement Versions. You can either choose an existing structure (such as your financial statement version) or define a structure specifically for the Business Information Warehouse.
    Check:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/97a16a65fb11d3971c006094b969cf/frameset.htm
    Which 0GL_Account is the general ledger account.
    0ACCOUNT is the Account Number...
    Regards
    Andreas

  • 0Account Hierarchy

    In ECC6 ->KDH3, I can see and display the Account Group USA1-PL.
    However, when I try to load this Hierarchy via Datasource 0ACCOUNT_0109_HIER in RSA3, I hits the following error:
    Errors occurred during the extraction
    Message no. RJ012
    It seems like the Hierarchy doesn't exsits in RSA3.
    Please advice, thank you.

    Hi Lynn,
       RSA3  does'nt really work for hierarchy test in my opinion. The best way to test hierarchy loads is this.
    1) Go to RSA6.
    2) Find you extractor and select your extractor.
    3) There is a Datasource extractor test button next to the object directory entry button. Click on the test.
    4) It will show you a list of all hierarchy under the heading hierarchy catalog. Select any one of the hierarchies  and click on either display tree or display list
    Hope this helps.
    Regards.

Maybe you are looking for

  • GL balance  profitcenter wise

    I want  GL balance  profitcenter wise for balance sheet purpose  is there any report get proper data or T-code.

  • A question related to CRS installation?

    Hi, body: When I try to install Oracle Clusterware using OUI, for the step 5: Specify Cluster Configuration, after add all the nodes' public, private and VIP name, when I click NEXT, it shows "the specified nodes are not clusterable, returned by oper

  • Getting Skype to work correctly on the LG 42LM670T...

    Hi all, I see a lot of complaints on here but havent actually managed to find any advice on how to troubleshoot this issue or potentially resolve. I have bought the LG 42LM670T and the camera that goes with it AN-VC400. I have to say i'm impressed so

  • Erasing free space using disk utility

    Disk utility does not always work when trying to erase free space...  I have 50 gigs of free space that I can not retrieve...   I do not want to have erase my entire SSD like I did a month ago to clean up deleted files...

  • Problem to compile jar file

    Hi, I must to modify jar file umelogonbase.jar (in the package com.sapportal.runtime.logon) To do this I have created a java project with SAP NWDS. Then into this project, I have done an import of a zip file (umelogonbase.jar) to create a the same tr