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

bapi_acc_document_post: how to populate dmbtr

Former Member
0 Likes
1,952

hi experts,

I m posting AR Transaction data using bapi_acc_document_post.

I populated all the fields in bapi except two fields, one is amount in local currency(DMBTR) and the other one is tax amount in local

currency (MWSTS).

The reason is, those two fields are not in that bapi table currencamount.

i tried to use bapi extension , but the structure acccr is not having those two fields.

Functional people want those two fields to be updated .

How to populate those fields?

Pls give the solution. It is urgent.

thanks,

hi experts,

I m posting AR Transaction data using bapi_acc_document_post.

I populated all the fields in bapi except two fields, one is amount in local currency(DMBTR) and the other one is tax amount in local

currency (MWSTS).

The reason is, those two fields are not in that bapi table currencamount.

i tried to use bapi extension , but the structure acccr is not having those two fields.

Functional people want those two fields to be updated .

How to populate those fields?

Pls give the solution. It is urgent.

thanks,

1 REPLY 1
Read only

Former Member
0 Likes
862

at table currencyamount (at FM BAPI_ACC_DOCUMENT_POST),

after insert a doc currency and amount value, add for local currency,

sample :

lt_curr-itemno_acc = ld_itemno.

lt_curr-curr_type = '10'.

lt_curr-currency = t_itab-waers1.

lt_curr-amt_doccur = t_itab-dmbtr.

IF t_itab-shkzg = 'H'.

lt_curr-amt_doccur = lt_curr-amt_doccur * -1.

ENDIF.

APPEND lt_curr. CLEAR lt_curr.