Skip to Content
0

FI: DMEE_EXIT_TEMPLATE_EXTEND_ABA field unknown

Jul 14, 2017 at 02:19 PM

75

avatar image
Former Member

Hi,

I have created a custom (Z) payment format for custom payment method P.

The file is generated as expected, however, I am now trying to include email in the dme file using my own custom ZDMEE_EXIT_TEMPLATE_EXTEND_ABA.

It activates with error at line :

ls_item–fpayh–INTAD = l_emailid.

Field "LS_ITEM–FPAYH–INTAD" is unknown. It is neither in one of the

specified tables nor defined by a "DATA" statement.

What package should I use for this FM? I included mine in our custom ZFI package.

I feel that somehow my function is not recognizing the structures is LS_ITEM like FPAYH etc....

Any assistance would be greatly appreciated.

See code below:

FUNCTION ZDMEE_EXIT_TEMPLATE_EXTEND_ABA.

*"----------------------------------------------------------------------

*"*"Local Interface:

*"  IMPORTING

*"     VALUE(I_TREE_TYPE) TYPE  DMEE_TREETYPE_ABA

*"     VALUE(I_TREE_ID) TYPE  DMEE_TREEID_ABA

*"     VALUE(I_ITEM) TYPE  DMEE_PAYM_IF_TYPE

*"     VALUE(I_PARAM)

*"     VALUE(I_UPARAM)

*"     REFERENCE(I_EXTENSION) TYPE  DMEE_EXIT_INTERFACE_ABA

*"  EXPORTING

*"     REFERENCE(O_VALUE)

*"     REFERENCE(C_VALUE)

*"     REFERENCE(N_VALUE)

*"     REFERENCE(P_VALUE)

*"  TABLES

*"      I_TAB

*"----------------------------------------------------------------------



* Extended template function module -----------------------------------*



  data:

       ls_item     type dmee_paym_if_type,

      ls_ref_node type dmee_node_if_aba,

  l_adrnr type adrnr,

  l_lifnr type lifnr,

  l_emailid type text40.



  ls_item = i_item.



  case i_extension-node-node_id.

    when 'N_8016715930'.

      

      SELECT SINGLE adrnr FROM lfa1 INTO l_adrnr  WHERE lifnr = l_lifnr .





      SELECT SINGLE smtp_addr FROM adr6 INTO l_emailid WHERE ADDRNUMBER = l_adrnr.





ls_item–fpayh–INTAD = l_emailid.

o_value = l_item–fpayh–INTAD.

c_value = l_item–fpayh–INTAD.



  endcase.



ENDFUNCTION.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bastiaan Jansen Jul 18, 2017 at 02:19 PM
0

Can you replace:

ls_item–fpayh–INTAD = l_emailid.

o_value = l_item–fpayh–INTAD.
 c_value = l_item–fpayh–INTAD.

with:

c_value =l_emailid.

Share
10 |10000 characters needed characters left characters exceeded