Skip to Content
0
Former Member
Mar 09, 2009 at 07:46 AM

problem with function module

30 Views

<<Locked. This is not a training forum. A basic level of knowledge is expected>>

Hi,

In the below program function module is not working.Giving runtime errors.

tables : mseg.

types : begin of ty_mseg,

mblnr type mseg-mblnr,

mjahr type mseg-mjahr,

menge type mseg-menge,

end of ty_mseg.

data : menge type mseg-menge.

data : it_mseg type table of ty_mseg with header line.

select-options : s_mblnr for mseg-mblnr,

s_mjahr for mseg-mjahr.

select * from mseg into corresponding fields of table it_mseg

where mblnr in s_mblnr.

CALL FUNCTION 'CO_ZF_QUANTITY_ROUNDING'

EXPORTING

  • FLG_ERROR = ' '

FLG_ROUNDING = 'X'

QUANTITY = mseg-menge

T006WA = ' '

IMPORTING

QUANTITY = mseg-menge.

loop at it_mseg.

write : / it_mseg-mblnr,it_mseg-mjahr,it_mseg-menge.

endloop.

Edited by: Matt on Mar 9, 2009 10:07 AM