Skip to Content

Examples on type-pools

Hi all,

I come across type-pool : TRUXS. What is this type-pool use for?

Are there any type-pool? How do i list out all the type-pools available?

Thanks

William.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 03, 2006 at 08:11 AM

    Hi

    The type-pool are a pool of type, i.e. it's a group where all types of certain area are declared.

    For example, when it uses the ALV fm it needs to use the type defined in type-pool SLIS.

    You can find them in dictionary (SE11).

    In a program it declares it wants to use a certain type-pool by statament TYPE-POOLS.

    The types of type-pool TRUXS are used to defined the paramters of the interface of some fm as (for example) SAP_CONVERT_TO*:

    In these fm the internal tables (store the converted data) are like TRUXS_T_TEXT_DATA.

    Max

    Message was edited by: max bianchi

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2006 at 08:09 AM

    goto se11 , and check the radio button <b>Type group</b>,

    and check the where used list of that type pool u want

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2006 at 08:11 AM

    Hi,

    REPORT  ZTESTAA.
    TYPE-POOLS:TRUXS.
    DATA: BEGIN OF ITAB OCCURS 0,
         VBELN
    LIKE VBAP-VBELN,
          POSNR LIKE VBAP-POSNR,
          END OF ITAB.
    DATA:
    ITAB1 TYPE TRUXS_T_TEXT_DATA.
    SELECT VBELN         POSNR         UP TO
    10 ROWS         FROM VBAP         INTO TABLE ITAB.
    CALL FUNCTION
      'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        I_FIELD_SEPERATOR    = ';'
      TABLES
        I_TAB_SAP_DATA       = ITAB
      CHANGING
        I_TAB_CONVERTED_DATA = ITAB1
      EXCEPTIONS
        CONVERSION_FAILED    = 1
        OTHERS               = 2.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO         WITH SY-MSGV1
    SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME = 'C:TEMPtest.txt'
      TABLES
        DATA_TAB = ITAB1
      EXCEPTIONS
        OTHERS   = 1.

    list of available type pools you can get it from SE11,

    use F4 help of TYPE-GROUP in SE11, you can find all.

    regards

    Vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2006 at 08:11 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 03, 2006 at 08:12 AM

    all the type-groups and type-pools can be found in table

    <b>DDTYPET</b>

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2006 at 08:13 AM

    Hi,

    Check this table for type groups <b> DDTYPET</b>

    Regards

    Vijay

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks all for providing me an answer,

      Vijay, Max, Sekhar and all who have provided me solutions...

      Appreciate it.

      Thanks.

      William...

      Marks were assign and i had wish i could assign more marks to everyone but there was limitation to those option buttons...

      Thanks.

  • avatar image
    Former Member
    Apr 03, 2006 at 08:08 AM

    Hello William,

    You can find the Type pools from SE11.

    1. Go to SE11.

    2. Choose the Menu Option <i>Utilities-->Other Dictionary Objects</i>.

    3. The first option on the pop-up screen will be Type Group. Type Group and Type-pool are the same thing. you can use the Find option here.

    Regards,

    Anand Mandalika.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03, 2006 at 08:08 AM

    hi

    type pools are global constants.

    it can be created using se11 transaction or by using forward navigation from se38.

    once defined u can use it in any program by using the statements.for eg..

    type-pools vrm.

    note:the dataobjects in the type pool shoud begin with the type pool name.so in our above case it will begin with vrm_xxxx.

    Cheers,

    Abdul Hakim

    Add comment
    10|10000 characters needed characters exceeded