Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

subroutine parameters

Former Member
0 Likes
916

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
891

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

7 REPLIES 7
Read only

former_member202771
Contributor
0 Likes
891

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

Read only

Former Member
0 Likes
892

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

Read only

0 Likes
891

hi ashwin,

thanks

Read only

Former Member
0 Likes
891

hi i got it thanks for all just close this  thread

Read only

0 Likes
891

Hi,

Please Go through this link for closing the thread .

How to close a discussion and why


Regards,

Pavan

Read only

pavanm592
Contributor
0 Likes
891

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

Read only

Former Member
0 Likes
891

thanks pavan