2006 Oct 09 11:35 AM
Hi,
I tried building a dynamic subroutine where the a piece of code is being generated as:
REPORT ZZZZZZ.
FORM dynamic_delete USING
IM_VKORG TYPE SHP_VKORG_RANGE_T
IM_VTWEG TYPE SHP_VTWEG_RANGE_T
IM_SPART TYPE SHP_SPART_RANGE_T
IM_KUNNR TYPE SHP_KUNNR_RANGE_T
CHANGING rt_errlog TYPE type_t_errlog.
DATA : s_errlog TYPE LINE OF rt_errlog.
While GENERATE SUBROUTINE POOL, I am getting an error message(SY-SUBRC = 4):
The type "TYPE_T_ERRLOG" is unknown.
I have globally defined TYPE_T_ERRLOG. It is necessary that TYPE_T_ERRLOG should be defined in dictionary?
Regarding TYPE declaration in Dynamic subroutine, i would like to know the visibility of subroutine. Sub routine can view(parses) DDIC types. Similarly, can it view Global types declared in program from which the dynamic subroutine is being created?
Thanks & Regards,
Surya
2006 Oct 09 11:38 AM
Hi,
you must incude your global data in your subroutine.
report ZZZZZ.
incude ZZZZ_incl.
form...
Message was edited by: Andreas Mann
2006 Oct 09 11:40 AM
Declare a global workarea of type type_t_errlog.
And use that in the changing parameter.
Prakash.