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

help in perform

Former Member
0 Likes
532

hi

i wont to do perform and i new in this topic

i have program and i wont to insert this code to perform that bring table (becouse the append is to long )<b>t_ran</b> how i can do that?

Regards

TYPES: BEGIN OF ty_ran,

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low TYPE string,

high TYPE string,

END OF ty_ran.

DATA: t_ran TYPE STANDARD TABLE OF ty_ran,

w_ran LIKE LINE OF t_ran.

w_ran-sign = 'I'.

w_ran-option = 'EQ'.

w_ran-low = 'ggg'.

APPEND w_ran TO t_ran.

w_ran-low = 'hhh'.

APPEND w_ran TO t_ran.

w_ran-low = 'st'.

APPEND w_ran TO t_ran.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
509

Hi,

You can do like this :

TYPES: BEGIN OF ty_ran,

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low TYPE string,

high TYPE string,

END OF ty_ran.

start-of-selection.

perform f_fill_itab.

form f_fill_itab.

move your code between this.

endform. "f_fill_itab.

hi

i wont to do perform and i new in this topic

i have program and i wont to insert this code to perform that bring table (becouse the append is to long )<b>t_ran</b> how i can do that?

Regards

TYPES: BEGIN OF ty_ran,

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low TYPE string,

high TYPE string,

END OF ty_ran.

DATA: t_ran TYPE STANDARD TABLE OF ty_ran,

w_ran LIKE LINE OF t_ran.

w_ran-sign = 'I'.

w_ran-option = 'EQ'.

w_ran-low = 'ggg'.

APPEND w_ran TO t_ran.

w_ran-low = 'hhh'.

APPEND w_ran TO t_ran.

w_ran-low = 'st'.

APPEND w_ran TO t_ran.

3 REPLIES 3
Read only

Former Member
0 Likes
510

Hi,

You can do like this :

TYPES: BEGIN OF ty_ran,

sign TYPE c LENGTH 1,

option TYPE c LENGTH 2,

low TYPE string,

high TYPE string,

END OF ty_ran.

start-of-selection.

perform f_fill_itab.

form f_fill_itab.

move your code between this.

endform. "f_fill_itab.

Read only

0 Likes
509

hi sriram

i try your saggstion but its not work i have eroor maybe becouse

i do that in FM?

regards

Read only

0 Likes
509

If you are trying Subroutines in an FM, you have to put the subroutine itself in the top include. Now you can access this subroutine from any FM in this Function Group.

Alternatively, If you want to call this subroutine only in one single FM, you can keep the subroutine after ENDFUNCTION.

You cannot have FORM ... ENDFORM inside FUNCTION... ENDFUNCTION.