2014 Jul 22 6:27 AM
hi all ,
I am having a doubt regarding subroutine parameter,
data:
gt_events type slis_t_events.
perform event_det1 using gt_events[].
form event_det1 using wt_events type slis_t_events .
why is it necessary to give the wt_events instead of giving gt_events.
With thanks,
Maha
2014 Jul 22 6:44 AM
Hi Mahalakshmi,
perform event_det1 using gt_events[].
form event_det1 using wt_events type slis_t_events .
in this code the data in the table gt_events[] is copied in to wt_events for further processing.
now u can process the data with in the form by using wt_events.
By this way you can reuse the same form for processing another tables which is same type of slis_t_events.
example: perform event_det1 using gt_1 .
perform event_det1 using gt_2 .
from event_det1 using wt_events type slis_t_events.
end form.
Regards Ashwin
2014 Jul 22 6:32 AM
Hi Mahalakshmi,
This is for re usability.
perform event_det1 using gt_events1[].
perform event_det1 using gt_events2[].
perform event_det1 using gt_events3[].
all three will call
form event_det1 using wt_events type slis_t_events .
Need not write 3 forms.
Thanks,
Anil
2014 Jul 22 6:44 AM
Hi Mahalakshmi,
perform event_det1 using gt_events[].
form event_det1 using wt_events type slis_t_events .
in this code the data in the table gt_events[] is copied in to wt_events for further processing.
now u can process the data with in the form by using wt_events.
By this way you can reuse the same form for processing another tables which is same type of slis_t_events.
example: perform event_det1 using gt_1 .
perform event_det1 using gt_2 .
from event_det1 using wt_events type slis_t_events.
end form.
Regards Ashwin
2014 Jul 22 6:57 AM
2014 Jul 22 6:59 AM
2014 Jul 22 7:34 AM
Hi,
Please Go through this link for closing the thread .
Regards,
Pavan
2014 Jul 22 6:59 AM
Hi Mahalakshmi,
It is not mandatory to use the wt_events name you can specify any name as per your understanding or naming standards,the only thing you should keep in mind is both the gt_events[] and wt_events[]
should be of same type.
Regards,
Pavan
2014 Jul 22 7:38 AM