Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

Re: BAPI_ACC_DOCUMENT_POST -

$
0
0

Hi Bathineni,

 

No need for BADI, this values are calculates automatically by the BAPI.

 

In the Currency table you just have to pass CURR_TY = 00 document currency and CURR_TY = 40 strong currency with their amount for each record.

 

For example:

     gs_currencyamount-currency = gs_bkpf-waers.

     gs_currencyamount-curr_type = '00'.

     gs_currencyamount-amt_doccur = gs_bseg-wrbtr.

     gs_currencyamount-amt_base = gs_bseg-wrbtr.

     APPEND gs_currencyamount TO gt_currencyamount.

 

     gs_currencyamount-currency = gs_bkpf-hwae2.

     gs_currencyamount-curr_type = '40'.

     gs_currencyamount-amt_doccur = gs_bseg-dmbe2.

     gs_currencyamount-amt_base = gs_bseg-dmbe2.

     APPEND gs_currencyamount TO gt_currencyamount.

 

Kind Regards,

César



Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>