‎2006 Jul 31 5:46 PM
i have problem with coding for the below data. please help me in this regard.
3* 1 = 0003
3* 2 = 0006
3* 3 = 0009
3* 4 = 0012
3* 5 = 0015
See below the structure of local file
__________________________________
Name Cod name No
-
-- Master -
-- Master -
-- Visa -
-- Master -
-- Master -
___________________________________
Write code for Knowing how many master and visa records present in local file
‎2006 Jul 31 6:09 PM
Hi,
Check this :
I.
data : x_fix type i,
x_counter type i,
x_max type i,
x_output(4) type n.
x_fix = 3.
x_max = 5.
x_counter = 1.
loop at x_max
x_output = x_fix * x_counter <---- output
x_counter = x_counter + 1.
if x_counter GE x_max .
exit.
endif.
endloop.
II.
how many master and visa records present in local file
use FM : GUI_UPLOAD to get data into internal table.if data comes to x_tab internal table.
x_tab1[] = x_tab.
delete x_tab where name = 'Master'.
delete x_tab1 where name = 'Visa'.
describe table x_tab lines x_lines.
describe table x_tab1 lines x_lines1.
x_lines contains count of Visa records
x_lines1 contains count of Master records
Regards
Appana
‎2006 Jul 31 6:28 PM
hi aravind,
i have problem with coding for the below data. please help me in this regard.
3* 1 = 0003
3* 2 = 0006
3* 3 = 0009
3* 4 = 0012
3* 5 = 0015
data b type i.
data a type i.
parameters: x type i.
do 10 times.
b = x * sy-index.
write:/ 'result', b.
enddo.
Write code for Knowing how many master and visa records present in local file
upload the data from local file into an internal table (ITAB) using the FM GUI_UPLOAD,
loop at itab.
if itab-name = 'Master'.
describe table itab lines v_lines.
elseif itab-name = 'Visa'.
describe table itab lines v_lines.
endif.
endloop.
hope this helps,
do reward if it helps,
priya.