Skip to Content
0
Former Member
Mar 12, 2009 at 06:14 PM

BAPI_ACC_DOCUMENT_POST

37 Views

Hi Guys,

during these days I have some problems with FM BAPI_ACC_DOCUMENT_POST.

My header Data is the same as below.

CLEAR: wa_header.

CLEAR t000.

SELECT SINGLE * FROM t000 WHERE mandt = sy-mandt.

wa_header-doc_date = w_lastdaym.

wa_header-pstng_date = w_lastdaym.

wa_header-doc_type = ca_sr.

wa_header-fis_period = p_perio.

wa_header-fisc_year = p_gjahr.

wa_header-username = sy-uname.

wa_header-header_txt = 'TEST'.

wa_header-comp_code = p_bukrs.

BAPI is the same as below.

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

EXPORTING

documentheader = wa_header

IMPORTING

obj_type = w_objtype

obj_key = w_objkey

obj_sys = w_objsys

TABLES

accountgl = t_accountgl

currencyamount = t_currencyamount

return = t_return

extension2 = t_extension.

Why, according to you, after a good posting in BKPF the field BKTXT is empty?

Thanks for your help.