cancel
Showing results for 
Search instead for 
Did you mean: 

internal table declaration

Former Member
0 Kudos

hi

while doing enhancement in CMOD we have like internal table declaration for table KONV

We have 2 datasources in which the internal table for konv is being used.

We declared it in the begining as

DATA: IT_KONV LIKE KONV

Can I Use the same internal table in the code within two datasources.

or should I define one more internal table like

DATA : IT _KONV1 LIKE KONV.

please tell me

whether if the same internal table can be used in the enchancement code for different datasources or should we declare different internal tables separately to be used in different datasources

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Krishna,

It actually depends on where you are making the declaration and how is your CMOD code structured,

Say for eg. you have made the internal table declaration locally in a Include and you have one include for each DS enhancement then you will have to declare it twice.

If you have all of your coding done in only once include using case statement and all the declarations are in the same include then you will be able to use the same internal table.

If you are following either of the method but if you have maintained a separate include for declarations then you can reuse your internal table.

Regards,

Durgesh.

Answers (0)