Skip to Content
0
Former Member
Jan 29, 2010 at 01:25 AM

asset posting with bapi_acc_document_post

305 Views

Hi,

i have an error message in using bapi_acc_document_post with asset

error message is "Enter a transaction type"

occurs error even though i input it_accountgl-cs_trans_t = '100',

my coding...

Header bus_act = 'RFBU'.

AP

=====================================================

....

GL

=====================================================

DATA : lv_anln1 LIKE anla-anln1,

lv_anln2 LIKE anla-anln2.

IF gs_item-anln1 NE space.

SPLIT gs_item-anln1 AT '-' INTO lv_anln1 lv_anln2.

it_accountgl-asset_no = lv_anln1.

it_accountgl-gl_account = '0012570101'.

it_accountgl-sub_number = lv_anln2.

it_accountgl-acct_type = 'A'.

it_accountgl-cs_trans_t = '100'.

it_accountgl-asval_date = sy-datum.