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.
*" VALUE(I_SKA1) LIKE SKA1 STRUCTURE SKA1
*" VALUE(I_SKB1) LIKE SKB1 STRUCTURE SKB1
*" REFERENCE(MODE) TYPE CHAR1 OPTIONAL
*" 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.
RETURN-TYPE = 'E'.
RETURN-ID = 'ZF'.
RETURN-NUMBER = '936'.
*>> Testing only, capture message to DB table ZMYLIST
ZMYLIST-PROGRAMM = 'Z_2310_GL_ALT_ACCT'.
'04 Alternate account is not unique'.
endif. " Check for unique alternate account