05-30-2008 8:07 AM
Hi,
I am using BAPI_ACC_DOCUMENT_POST.
*In the Header I'm passing the following parameters:
CONCATENATE sy-sysid sy-mandt INTO gv_obj_sys.
CLEAR gs_bapiache09.
gs_bapiache09-obj_type = 'REACI'.
gs_bapiache09-obj_key = 'TEST'.
gs_bapiache09-obj_sys = gv_obj_sys.
gs_bapiache09-bus_act = 'RFBU'.
gs_bapiache09-doc_type = 'AB'.
gs_bapiache09-comp_code = gs_accounts-zsbukrs.
gs_bapiache09-doc_date = sy-datum.
gs_bapiache09-pstng_date = gv_date.
gs_bapiache09-trans_date = sy-datum.
gs_bapiache09-fis_period = '06'.
gs_bapiache09-header_txt = text-001.
gs_bapiache09-username = sy-uname.
gs_bapiache09-fisc_year = 2008.
*In Line items I'm passing the folowing:
CLEAR gs_bapiacgl09.
CLEAR gs_bapiaccr09.
gs_bapiacgl09-itemno_acc = gv_count1.
gs_bapiacgl09-gl_account = gs_accounts-zshkont.
gs_bapiacgl09-comp_code = gs_accounts-zsbukrs.
gs_bapiacgl09-alloc_nmbr = gs_prps-posid.
gs_bapiacgl09-item_text = gv_wbs_posid.
APPEND gs_bapiacgl09 TO gt_bapiacgl09.
CLEAR gs_bapiacgl09.
gs_bapiaccr09-itemno_acc = gv_count1.
gs_bapiaccr09-currency = 'USD'.
gs_bapiaccr09-amt_doccur = gs_faglflext-hsl01.
For certain Company Codes it is giving the erropr message:
FI/CO Interface: Balance in transaction currency.
Even if it gives a success message it is not getting updating updated in the BKPF table in spite of using BAPI_TRANSACTION_COMMIT.
05-30-2008 8:24 AM
Goodmorning,
Have you had a look for notes, Depending on the release and industry sollution you can find several notes on this subject (start looking for message RW 022).
Annemarie de Bruijn
05-30-2008 8:24 AM
Goodmorning,
Have you had a look for notes, Depending on the release and industry sollution you can find several notes on this subject (start looking for message RW 022).
Annemarie de Bruijn