Application Development 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: 

BTE 00002310, GL ACCT create/change problem

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

closing old post