Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HELP ON DMEE EXIT MODULE

Former Member
0 Likes
438

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

1 REPLY 1
Read only

Former Member
0 Likes
374

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.