‎2008 Aug 12 2:06 PM
Hi,
I have a requirement to convert the value in the AMOUNT field based on the content of a field RESERVED in the file. So I have deifined an exit module in the Mapping tab of the Amount field which is of the form
DMEE_EXIT_TEMPLATE_IN_MAPPING. However, the export parameter E_VALUE has the value when it leaves the FM but in the end when I generaete the file. I see no value in the file. I.e. I get empty spaces. Ideally there should be negative amount in the file.
Can someone counsel me in this regard please.
The code in the function module is as below
FUNCTION z_fi_dmee_exit_mapping_amountx.
*"----
""Local interface:
*" IMPORTING
*" REFERENCE(I_INTERFACE) TYPE DMEE_EXIT_INTERFACE_INCOMING
*" EXPORTING
*" REFERENCE(E_VALUE)
*"----
Data : ls_amount(20) type n.
IF i_interface-file_line+1064(1) = '0'.
ls_amount = i_interface-file_line+773(20).
ls_amount = ls_amount * -1.
e_value = ls_amount.
ENDIF.
Cheers,
Amber
‎2008 Aug 12 2:17 PM
in ur program, ur calling this FM and may be u have specified another field name in the export parameter. This field will hold the value returned from the FM. you need to use this field while generation of data.