‎2007 Dec 08 10:42 AM
hi all, could u pls help me on my thread.
in my program
data:p_molga type molga.
select-options:s_molga for p_molga.
in function module source code
select
pernr
jobseq
docnum
molga
bukrs
jobname
jobcount
jobtype
jobdate
jobtime
inistat
from ztp_idoc_xref
into table idoc_table
where molga eq r_molga.
and in exporting iam exporting the data.
in the tables R_MOLGA TYPE ZTP_MOLGA_RANGE it is table type.
line type :inv_ranges .
in program
what is the parameter should i give for tables parameter.
and how can i restrict the molga values.
thank u in advance.
‎2007 Dec 08 5:08 PM
Hi,
use
CHANGING idoc_table. You will have to pass your idoc_table structure to the FM. You should not restrict on molga, but you can only do this by hard coding it:
if r_molga eq '07'.
run FM.
else.
do nothing
endif.
thanks.
jamie