Sunday 16 June 2013

How to get the list of internal tables, work area & constants details declared in another program in SAP?

We can get the list of internal tables, work area & constants declared in another program in SAP using the standard function module  ‘GET_GLOBAL_SYMBOLS’.


Demo Example:
Let us create a test program ‘ZVENU_TEST1’ having the structure TY_TAB, T_KNA1 AND X_KNA1.



Now, our aim is access the structures & internal tables declared in ‘ZVENU_TEST1’ program from another program ‘ZVENU_TEST2’. This can be achieved by using the FM‘GET_GLOBAL_SYMBOLS’.


Upon executing the above program the internal table T_FIELDLIST will have the required details.

Regards,
Venugopal M N


No comments:

Post a Comment