Skip to Content
0
Former Member
Jun 17, 2005 at 08:17 PM

BTE 00002310, GL ACCT create/change problem

223 Views

Hello all,

Has anyone who is reading this successfully implemented the Business Transaction Event 00002310, (G/L ACCOUNT MASTER RECORD: Save)? The function module that I created from the sample is being executed correctly. However, the error message is not displaying and stopping the change to the alternate account from being saved.

This is the relevant portion of the function module that I am having a problem with. Can anyone see what is wrong with this? The database table ZMYLIST is being populated so I am sure that this portion of the code is executing.

FUNCTION Z_2310_GL_ALT_ACCT.

*"----


""Local interface:

*" IMPORTING

*" VALUE(I_SKA1) LIKE SKA1 STRUCTURE SKA1

*" VALUE(I_SKB1) LIKE SKB1 STRUCTURE SKB1

*" REFERENCE(MODE) TYPE CHAR1 OPTIONAL

*" TABLES

*" RETURN STRUCTURE BAPIRET2 OPTIONAL

*"----


*

  • .........

  • Code to compare this Alt acct with Alt acct of same GL in another CO

  • .........

*

if skb1-altkt = i_skb1-altkt.

  • OK, do nothing.

else.

RETURN-TYPE = 'E'.

RETURN-ID = 'ZF'.

RETURN-NUMBER = '936'.

Append Return.

*

*>> Testing only, capture message to DB table ZMYLIST

*

ZMYLIST-PROGRAMM = 'Z_2310_GL_ALT_ACCT'.

ZMYLIST-listt =

'04 Alternate account is not unique'.

insert ZMYLIST.

endif. " Check for unique alternate account

Endfunction.