cancel
Showing results for 
Search instead for 
Did you mean: 

type-pools

Former Member
0 Kudos
153

Hi,

report zdriver message-id co.

type-pools: co.

Can someone tell me whats the use of message-id and type pools in the above lines in an abap report.

Tushar

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

message id is used to tell the program which message class is being used in this program.

If in the program there is a statement like this.



message E000.

The program will issue the error message 000 of message class CO.

The message class can be omitted. Triggering a message would then look like this.



Message E000(CO).

Type-pools are kind of like include programs, they hold TYPES statements which can be referenced in your program. So instead of you having to code your own types, say for instance a field catalog for ALV, you can just reference the type from the type-pool SLIS.

If this post has been helpful, pleae award points accordingly. Thanks.

Regards,

Rich Heilman

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

message id => when you want to issue messages from your program to the users , you can use the message defined under this message id.

type-pools => a collection of predefined variables. instead of defining variables in each and every program, just define it once in a type pool. this addition type-pools:co will allow you to use all the types declared within the typ-pool in your program.

for more on these topics, please check out help.sap.com

Regards

Raja