cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 ECC error message ME045

Former Member
0 Kudos

Hi,

I'm creating a Purchase Order via BAPI_PO_CREATE1 but in tb_return I have always an error message (ME045): "ME045 G/L account XXXXXX cannot be used".

I try to do the same purchase order with same data throught t-code ME21N and it's possibile save PO because there aren't errors

I see abap source of BAPI and error happens in this section:

Include: LMEXFF0

Form: feldauswahl_fehler

Code:

SELECT SINGLE * FROM tmodp WHERE spras = sy-langu

AND fauna = 'SKB1-FAUS1'

AND modif = tmodp-modif.

IF sy-subrc EQ 0.

MESSAGE e045 WITH skb1-saknr t162k-knttp tmodp-ftext.

ELSE.

MESSAGE e045 WITH skb1-saknr t162k-knttp tmodp-modif.

ENDIF.

Thanks for help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try switch E:ME045 - G/L account & cannot be used (please correct) to warning in the Backend using /OME0 (note 815849, )

Maybe that field group settings for additional accounting in the backend ta FS02 - G/L account master, OME9 - AccAssCat

send by SRM PO are not 'Opt.Entry', but 'Display' or 'Hidden'. Check this also.

Answers (0)