Application Development and Automation 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: 
Read only

asset posting with bapi_acc_document_post

Former Member
0 Likes
939

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.

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
439

Hi,

the SAP code is asking for asset transaction type. But it looks like there is no field for passing this value to BAPI. The field CS_TRANS_T is something else. The transaction 100 corresponds to external asset acquisition. Have you tried to use BAPI BAPI_ASSET_ACQUISITION_POST for your purpose?

Cheers

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
440

Hi,

the SAP code is asking for asset transaction type. But it looks like there is no field for passing this value to BAPI. The field CS_TRANS_T is something else. The transaction 100 corresponds to external asset acquisition. Have you tried to use BAPI BAPI_ASSET_ACQUISITION_POST for your purpose?

Cheers