2007 Sep 25 4:12 PM
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.
2007 Sep 25 4:18 PM
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.
2007 Sep 25 4:18 PM
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.
2007 Sep 25 4:43 PM
hi sriram
i try your saggstion but its not work i have eroor maybe becouse
i do that in FM?
regards
2007 Sep 25 4:49 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |