Diff b'ween Type pools & type Groups
Hi!
What is type pools & Can i know the difference between the Type pools & type Groups.
Hi,
Type Groups
Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPEaddition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group pool is always:
TYPE-POOL pool.
After that, you define data types using the statement TYPES. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore: pool_
In an ABAP program, you must declare a type group as follows before you can use it:
TYPE-POOLS pool.
This statement allows you to use all the data types and constants defined in the type group pool in your program. You can use several type groups in the same program.
Note:
As of release 6.40, you can also define data types and constants in the public visibility area of global classes, by which type groups can be completely replaced.
Regards
Sudheer
Similar Messages
-
What is TYPE GROUP /TYPE-POOL? When to use that ?
hello friends
Can any one tell me
What is TYPE GROUP /TYPE-POOL? When to use that ?
Thanks & Best Regards
NileshType group
If you want to define global constants, you have to use a type group. The name of
the type group can only contain a maximum of five characters. In the type group,
you can define constants using the CONSTANTS statement. As types, you are
provided with the integrated ABAP types or the global types of the Dictionary.
In order to be able to use the types of a type group in a program, make the type
group known using the TYPE POOL statement. From these lines on, you can use
all constants of the type group.
The definition of a type group is a piece of ABAP code that is either maintained
via the Dictionary (SE11) or via the ABAP Editor (SE38).
Realization:
The first statement for the type group zmytp is always:
TYPE-POOL zmytp.This is followed by the definition of data types with the statement TYPES, as
described under local program data types. Furthermore, cross-program constants
can be declared using the CONSTANTS statement. All names of this data type
and constants must begin with the name of the type group and an underline:
zmytp_
In an ABAP program, type groups must be made known with the following
statements before they are used:
TYPE-POOLS zmytp.
When using this statement, all data types ansd constants, which are defined in the
zmytp type group can be used in the program. Several type groups can be used
in a program. -
Type Pool/Type Group Question
We are moving Some tax Scheduling reporting into an SEm system that sirs o top of BW. The issue is there were type-pools in the R3 sending system (SAP delivered) that are not in the SEM system. 1)Can I copy and create the type-pool?2)How would I creta a typr pool?
Or is a type-pool/group created automatically when some other deveopment is being created?
Thank-YouHi,
You can use transaction SE11 to create type group.
SE11 -> Enter Type Group name -> Click on Create button -> ...
Regards,
Ferry Lianto -
Condition Type Groups - Rebates
Plz make me understand d use of the "Condition Type Groups" with example. The F1 help n stuff on SDN has already been checked, some1 who has worked on rebates will b able 2 xplain better d xact need of "condition type groups" e.g sometimes v have only 1 condition type assgined 2 it bt diff tables of that condition type n sometimes just 1 table of 1 condition type then wat's d need of it?
An answer with a small scenario would b of gr8 help.
regardsHi,
i think u r working on rebtes,
Condtype grup is used to group the condtypes together to come in an agreement for selection.
for example:
you r working material rebate
for this condtype is BO02, for this condtype you want to use 3 key combination (condtables/accesses in access sequence). how you club these cond accesses to ur agreement type. unless u group them. here u group them when assign condtable 1,2,3, to BO02 in this screen.
observe this example:
condtypegrup counter condtype table
xyz 1 BO02 1 customer/material
xyz 2 BO02 2 region/material
xyz 3 BO02 3 countrly/material
xyz 1 BO03 1 customer/material
xyz 2 BO03 2 region/material
xyz 3 BO03 3 countrly/material
now u assign this condtypegroup to agreemtn type for say XXXX,
finally u create agreement type in BO01 t.code
at the time of agreemtn creation u get all the above combination for selection in a popup. that 6 options in two condtypes in on conditiontypegroup.
hope u understand
regards,
sadanandam kasarla -
what is Type Group? explain it?
<b>Type Groups</b>
Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPE addition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group <pool> is always:
<b>TYPE-POOL <pool>.</b>
After this came the definitions of data types using the TYPES statement, as described in Local Data Types in Programs. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore:
In an ABAP program, you must declare a type group as follows before you can use it:
<b>TYPE-POOLS <pool>.</b>
This statement allows you to use all the data types and constants defined in the type group <pool> in your program. You can use several type groups in the same program.
example :
Let the type group HKTST be created as follows in the ABAP Dictionary:
TYPE-POOL hktst.
TYPES: BEGIN OF hktst_typ1,
col1(10) TYPE c,
col2 TYPE i,
END OF hktst_typ1.
TYPES hktst_typ2 TYPE p DECIMALS 2.
CONSTANTS hktst_eleven TYPE i VALUE 11.
This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
Any ABAP program can use this definition with the TYPE-POOLS statement:
TYPE-POOLS hktst.
DATA: dat1 TYPE hktst_typ1,
dat2 TYPE hktst_typ2 VALUE '1.23'.
WRITE: dat2, / hktst_eleven.
The output is:
1,23
11
The data types defined in the type group are used to declare data objects with the DATA statement and the value of the constant is, as the output shows, known in the program. -
How to add reference to a type group from ABAP webdynpro?
Hi,
When I copied the webdynpro application from a system to another with SCWB, the referenced types in type groups are reported not defined, even the types from basic type group ABAP - the type groups are defined in both systems, the webdynpro app works well in the original system.
And I didn't find the way to add type group references in webdynpro with "TYPE-POOLS:". Anybody knows how to handle this?
Thanks and regards, SaidOK I found it.
Under my main program there is a global include. A co-worker called it somehting different.
So it had:
type-pools: rs, rsr, rro01, rrk, rro04.
And I change it to:
type-pools: rs, rsr, rro01, rrk, rrs0, rro04.
Yes, Then when I r-click on the main program and select "Rebuild Object List" then it added the type group under "Type Group".
Mike -
how many type groups r there for ALV reports
Hi,
The following Groups are used in ALV Reports.
ALVHT ALV Control: HTML Templates
KKBHT Type pool for hierarchy component KKRT
KKBLO Type group for dynamic list output
SLIS Global types for generic list modules
Regards,
Mehul Shah. -
Hi,
I am trying to read the type group ( type-pools ICON ) using below code:
data: obj TYPE REF TO cl_abap_typedescr,
typ TYPE REF TO cl_abap_structdescr,
table TYPE STANDARD TABLE OF abap_componentdescr.
obj = cl_abap_typedescr=>describe_by_name( 'ICON' ).
typ ?= obj.
table = typ->get_components( ).
what i am getting is Transparent table's(ICON) components instead, as Transparent table ICON also exists!!!
i am not able to read Type groups components,
is it possible to read type groups components using above method or any method for that matter????
Please suggest.Type groups are specific DDIC objects, which you cannot evaluate using RTTS classes. This can be provided i.e by fm TYPD_GET_OBJECT , but not the way you are trying. In your case system assumes you provide valid DDIC object (table, structure, data object) to method describe_by_name . That's why it returns components of a table, not a type group with same name.
Regards
Marcin -
Type Groups?????? SLIS??
Hai All,
Can U plzz let me know <b>"what is Type Group" & all about it???? </b> Y that should be used, when should be used, where can that be used, & all.??????????
I have come across <i><b>2716 Type Groups</b></i> in our server & <b>"SLIS"</b> of ALV is one of them, whats this??? I do not know its use in ALV. Explain this as an example.
Thanks in advance.
Regards.
FarooqType Groups
Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPEaddition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group pool is always:
TYPE-POOL pool.
After that, you define data types using the statement TYPES. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore: pool_
In an ABAP program, you must declare a type group as follows before you can use it:
TYPE-POOLS pool.
This statement allows you to use all the data types and constants defined in the type group pool in your program. You can use several type groups in the same program.
Note:
As of release 6.40, you can also define data types and constants in the public visibility area of global classes, by which type groups can be completely replaced.
Let the type group HKTST be created as follows in the ABAP Dictionary:
TYPE-POOL hktst.
TYPES: BEGIN OF hktst_typ1,
col1(10) TYPE c,
col2 TYPE i,
END OF hktst_typ1.
TYPES hktst_typ2 TYPE p DECIMALS 2.
CONSTANTS hktst_eleven TYPE i VALUE 11.
This type group defines two data types HKTST_TYP1 and HKTST_TYP2, as well as a constant HKTST_ELEVEN with the value 11.
Any ABAP program can use this definition with the TYPE-POOLS statement:
TYPE-POOLS hktst.
DATA: dat1 TYPE hktst_typ1,
dat2 TYPE hktst_typ2 VALUE '1.23'.
WRITE: dat2, / hktst_eleven.
The output is:
1,23
11
The data types defined in the type group are used to declare data objects with the DATAstatement and the value of the constant is, as the output shows, known in the program.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm -
HI Friends please help me on what is type group urgently.
<b>Type Groups</b>
Type groups or type pools are created using the ABAP Dictionary tool and are introduced with the TYPE-POOL statement. They may not contain any screens of their own or any processing blocks. Type groups are exclusively used as containers for global data types which can be made visible in any ABAP program using the TYPE-POOLS statement.
TYPE-POOL
Basic form
TYPE-POOL typepool.
Effect
Introduces a type group. You can only maintain a type group via the ABAP/4 Dictionary (using Transaction SE11 ). The name typepool must match the name in the ABAP/4 Dictionary . You can only define types and constants in type groups. The names of all these types and constants must begin with the name of the type group and an underscore.
Example
TYPE-POOL ABCDE.
TYPES: ABCDE_PACKED TYPE P,
ABCDE_INT TYPE I.
TYPE-POOLS
Basic form
TYPE-POOLS typepool.
Effect
Includes the types and constants of a type group. If the type group typepool has already been included, the statement is ignored. You can only maintain a type group via the ABAP/4 Dictionary (using Transaction SE11 ). You introduce a type group with the TYPE-POOL statement. Since the types and constants specified in a type group have global validity, you cannot use the statement within a FORM or FUNCTION .
Example
TYPE-POOLS VERI1.
DATA X TYPE VERI1_TYP1.
reward points if it is usefull ...
Girish -
WHAT IS TYPE GROUPS?WHAT IS IT USE?
Type Groups in the ABAP/4 Dictionary
You can define data types in a type group in the ABAP/4 Dictionary instead of defining them within an ABAP/4 program.
The type group name in the ABAP/4 Dictionary has a maximum of 5 characters. Type names within type group <typepool> must begin with <typepool> followed by an underscore.
The types in a type group must be declared in ABAP/4 programs with the TYPE-POOLS command.
Type Groups
Before Release 4.5A, it was not possible to define standalone types in the ABAP Dictionary to which you could refer using a TYPE addition in an ABAP program. It was only possible to refer to flat structures. Structures in programs corresponded to the structures of database tables or structures in the ABAP Dictionary. In ABAP programs, you could only refer to database tables and structures in the ABAP Dictionary using LIKE. It was, however, possible to refer to individual components of the Dictionary type. Complex local data types such as internal tables or deep structures had no equivalent in the ABAP Dictionary. The solution to this from Release 3.0 onwards was to use type groups. Type groups were based on the include technique, and allowed you to store any type definitions globally in the Dictionary by defining them using TYPES statements.
The definition of a type group is a fragment of ABAP code which you enter in the ABAP Editor. The first statement for the type group <pool> is always:
TYPE-POOL <pool>.
After this came the definitions of data types using the TYPES statement, as described in Local Data Types in Programs. It was also possible to define global constants using the CONSTANTS statement. All the names of these data types and constants must begin with the name of the type group and an underscore:
In an ABAP program, you must declare a type group as follows before you can use it:
TYPE-POOLS <pool>.
This statement allows you to use all the data types and constants defined in the type group <pool> in your program
Check this link for more details with eg
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm -
How to get The users from a Collaborator that is type Group.
Hello, I'm trying to get the users (and their emails) of a collaborator inside a Master Agreement that is type group.
I've tried the following methods:
1- Using a IBeanHomeLocator to get the GroupIBeanHomeIfc (with the static variable of sHOME_NAME) and then trying to get the Group with the DocumentId that the colaborator's method (getDocumentId()) returns and the GroupIBeanHome method findGroup().
The result was null
2 - Using exactly the same method as before, but instead of using the DocumentId, I did a query, in order to get the field USER_GROUP_OBJECT_ID, to get the Id of the group.
The result is still null.
I'm not sure if there is a direct way to get it, or if i'm misusing the GroupIBeanHomeIfc.
Thanks in advance!Hi Oscar,
In the document collaborator class there is a method getCollaboratorType() which returns CollaboratorTypeEnumType and there are certain values assigned to them.
user - A user collaborator
group - A group collaborator
contact - A user contact
So, hashcode of 2 returns the group.
Please have a look in to the below code.
collaborators = doc.getCollaborators();
if(collaborators.size() > 0)
collabIter = collaborators.iterator();
while (collabIter.hasNext())
member = collabIter.next();
collabType= member.getCollaboratorType();
hashValue= collabType.hashCode();
if(hashValue==2)
collabName= member.getDisplayName();
throw new ApplicationException("collabName:" +collabName);
In the above code collabName returns the name of the group, with this you can search for the specified group using IbeanHomeLocator for group and then you can get the members in it and their mail Id's
Hope it helps you and let me know if you need any assistance.
Thanks,
Raj. -
Change transaction type group for transaction type
Hi
Is it possible to change the transaction type group for a TTY.For ex i want to change for 270 and 151 -TTY GRP -32 and 33 respectively.As of now it is TTY grp is 25 and 10.I need to change this so that in Asset history sheet when i do ABT1N i want these values to be in field transfer and not in acquisition and retirement in respective company codes.
Where is TTY grp are set for TTY.Can it be modified.Please suggest.For creating transaction type see the wiki.
In the transaction types you assign them!
For 151
SPRO:
Financial Accounting / Asset Accounting / Transactions / Acquisitions / Define Transaction Types for Acquisitions.
Assign there the asst hist group you need for this transaction type
For 270
SPRO:
Financial Accounting / Asset Accounting / Transactions / Retirements / Define Transaction Types for Retirements
Assign there the asst hist group you need for this transaction type -
Error MIGO AA629 Balance for transac type group 10 negative for the area 01
Hi
I have the following principal case in the PRD (version 60.0 ECC):
Active 25000549 number was discharged from the transaction MIGO 18/12/2009 USD 19295.22 and began to depreciate on 01.01.2010.
On 22.04.2010 the vendor issues a credit note USD 11626.96 therefore created the Purchase Order number 9900000903 and when it will account for the transaction MIGO get the error message AA629 ( Balance for transaction type group 10 negative for the are). In transaction MIGO are using the kind of movement 161.
SAP looked in and found a related note the following: 497297, 541200, 547233 but they refer to version 4.7 and 4.6C and make no reference to version 6.0.
The error detail is as follows:
Balance for transaction type group 10 negative for the area 01
Message no. AA629
Asset affected: 000025000549-0000
Diagnosis
With the transaction entered, the balance for the transactions in group 10 in area 01 will be negative in this fiscal year. However, the balance of transaction type group 10, according to its definition, must be positive in each fiscal year.
System Response
The system rejects this posting.
Procedure
Check the transaction type, the amount and the fiscal year in your posting. If you want to post a credit memo to an acquisition from the previous year, then use a transaction type for a retirement. If necessary, you can change balance rules after talking with your SAP consultant.
My questions are: someone has thought of something similar? how to solve? must implement the foregoing notes?
Thank you very much for your kind helpHi,
notes 20347 and .302756.
Try to change following customizing temporarily to 160:
IMG->FI-AA->Transactions->Determine default transaction types for
internal transactions->Acquisition from goods receipt
Another alternative could be to TEMPORARILY change the definition of transaction type group 10 so that it allows negative values.
139899 AA629 when posting MR01/MRHR/MIRO invoice receipt
AA629 is raised when the transactions per transaction type group in one year are negative in balance and the definition of the transaction type group only allows positive values (that means TABWG-VZJSAL is '+'). This is the case for transaction
type group 10. After posting transaction I recommend to set transaction group 10 back to its original definition.
Regards Bernhard -
CiscoWorks user options "device type groups|switch and Hubs"
Hi,
We are using CiscoWorks software to deploy new configuration to our network devices. Because our environnement is mixed about version of network devices we have to create a new netconfig job for each device model, because in some plate-forme configuration option, syntax maybe different of each other.
When I create a new netconfig job with my username under "device type groups|switch and Hubs" I have a list there of all plate-forme we have in our production environnement managed by CiscoWorks software. I know thoses group was'nt define by on of us and thoses are define by default in CiscoWorks software, but they are hiden by default per user basic.
We have a new one in our team, I had created his user name and password, but I can find the option where I can asked to make visible to him plate-form device type group as I have in my user configuration.
Also, is it possible to copy private define group to an other user without to make thoses as public ?
Thanks a lot !Here,
is a view of what I have with my user
but in his profile he is only see
Device type Groups
+ Routers
+ Switches and Hubs
+ Wireless
if he clic on the plus sing to develop group "Switches and Hubs" he see all switches and hub managed by CiscoWorks software. I know He did not create Cisco Catalyst 2912 XL Switch and Cisco Catalyst 2924 XL Switch group in my profile. I know we have to modify an option in CiscoWorks per user basic to view those group, the person who where that option should be modifiy is currently in vacation, but he will need that option enable before our specialist will be back !
Thanks a lot !
Maybe you are looking for
-
i plugged my new iPhone into the computer for the first time and it proceeded to restore. i accidentally clicked on the storage saved on my iTunes for my old phone. so now all the storage from my old phone is on my new phone and I can't find any of t
-
How do i install Mac os X on my macbook air late 2008
I just did a restore on my macbook air and wan't to instal the mac os x with the install dvd that came with the laptop, i tried doing so buy plugging in the extanal dvd hardrive that came with it but all to no avail, i would appreciate some assiatnce
-
Getting WEBi Error ": MDdatasetBW.Getcelldata"
Hi Gurus, When I am running a WEBi report which is built on top of SAP BW query, I am getting error " Database erro : the error is MDdatasetBW.Getcelldata. Unknown error (WIS 10901). This is an ADHOC query in SAP BW that drills down to the very detai
-
Ipod 3G and iPhone 3s not working
I Think the ipod has water damage because I lost it outside for one year and one month. The phone is stuck in recovery mode but it has no power button and it's to old for iTunes to work with oh and I just remembered the phone is a plain 3
-
I WOULD LIKE TO BUY 2 EACH WITHOUT CONTRACT , BECAUSE I LIVE IN KSA ( Mini ipad )
I HAVE AN ADDRESS LINE1 & LINE 2 , I WOULD LIKE TO BUY 2 EACH MINI IPAD WITHOUT CONRACT , BECAUSE I LIVE IN SAUDI ARABIA .