Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Examples on type-pools

Wil_Wilstroth
Active Participant
0 Kudos

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.

William Wilstroth
1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

Former Member
0 Kudos

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.

abdul_hakim
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

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

former_member188685
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Also have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/frameset.htm">this link</a>

Former Member
0 Kudos

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

Former Member
0 Kudos

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

<b>DDTYPET</b>

former_member188685
Active Contributor
0 Kudos

Hi,

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

Regards

Vijay

0 Kudos

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.

William Wilstroth