2009 Mar 16 5:32 PM
I have this code:
ranges: it_table for table-field.
perform test1 TABLES it_table.
.....
.....
The question is: How can I define the parameter in the form ???
FORM test 1 TABLES it_table ??????
Thanks
2009 Mar 16 5:43 PM
Hi , try this.
DATA : r_matnr TYPE RANGE OF matnr.
PERFORM range_check USING r_matnr[]. " Using/Changing
FORM range_check USING p_test like r_matnr[].
ENDFORM. "range_check
Hope it helps you
Rj
2009 Mar 16 5:38 PM
Hi,
It is Simple Test the code Bellow
REPORT test NO STANDARD PAGE HEADING.
PARAMETERS: ptest TYPE string.
PERFORM test using ptest.
*&---------------------------------------------------------------------*
*& Form test
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* -->FTEST text
*----------------------------------------------------------------------*
FORM test USING ftest.
WRITE: ftest.
ENDFORM. "test
Best Regards,
Faisal
2009 Mar 16 5:38 PM
if u do an epc it will say ranges is obsolete.
use it as
DATA: it_table type range of table-field.
pass it as changing parameter.
кu03B1ятu03B9к
2009 Mar 16 5:42 PM
Hi,
pass it in this way...
RANGES: it_table FOR table-field.
PERFORM test1 CHANGING it_table[].
.....
.....
*The question is: How can I define the parameter in the form ???
FORM test1 CHANGING pv_it_table TYPE STANDARD TABLE.
DATA fs_table LIKE it_table.
LOOP AT pv_it_table INTO fs_table.
" use fs_table to process the statements...
ENDLOOP.
ENDFORM. "test1
Tables statement is obsolete try using this it really works
Regards,
Siddarth
2009 Mar 16 5:43 PM
Hi , try this.
DATA : r_matnr TYPE RANGE OF matnr.
PERFORM range_check USING r_matnr[]. " Using/Changing
FORM range_check USING p_test like r_matnr[].
ENDFORM. "range_check
Hope it helps you
Rj
2009 Mar 16 6:08 PM
Hi try this way:
FORM test 1 TABLES it_table structure selopt.
2013 May 23 1:39 PM
Hi,
If need generic assignmet use field symbols :
PERFORM set_range TABLES r_gbstk USING 'BT' 'A' 'B'.
FORM set_range TABLES t_range
USING p_option
p_low
p_high
.
FIELD-SYMBOLS : <fs>.
ASSIGN COMPONENT 'SIGN' OF STRUCTURE t_range TO <fs>.
<fs> = 'I'.
ASSIGN COMPONENT 'OPTION' OF STRUCTURE t_range TO <fs>.
<fs> = p_option.
ASSIGN COMPONENT 'LOW' OF STRUCTURE t_range TO <fs>.
<fs> = p_low.
ASSIGN COMPONENT 'HIGH' OF STRUCTURE t_range TO <fs>.
<fs> = p_high.
APPEND t_range.
ENDFORM. " SET_RANGE
2013 May 23 1:57 PM
Hi try this,
PERFORM test_1 USING date2 string2 number2 count2.
FORM test_1 USING now
txt TYPE c
value(num) TYPE p
int TYPE i.
perform podata TABLES it_ekko.
form podata tables it_ekko type ekko