cancel
Showing results for 
Search instead for 
Did you mean: 

group currency amount in BAPI_ACC_DOCUMENT_POST

former_member210266
Active Participant

Hi All,

I am trying to post an accounting document using BAPI_ACC_DOCUMENT_POST. I am adding records for document currency in THB with currency type '00' and group currency 'USD' with currency type '30' in the table currency amount. The document is getting posted without any error, but the amount given for group currency is not taken into account by BAPI and instead the amount for the document currency is being converted and used as group currency amount. Is there any way to disable the automatic currency exchange and use the amount provided instead.

Thanks and regards

Swati

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member210266
Active Participant

The issue was resolved when I passed the amount with currency type '12' as well. So I am passing amounts for four types of currency type i.e '00', '10', '12' all in local currency and '30; in foreign currency.

raymond_giuseppi
Active Contributor
0 Kudos

Are there any messages in RETURN related to currency conversion, type 'S', 'I' or 'W'?

Before filling the CURENCYAMOUNT table parameters with group currency records, did you check the Customizing for the Parallel/Alternative Currency (e.g. if company currency is group currency then group currency amount copied from company currency amount) ?

NB: Usually only transactions such as FBB1 allow to easily bypass this Customizing?

former_member210266
Active Participant
0 Kudos

Hi Raymond

Thank you for your help. There are no messages related to currency conversion in RETURN and we couldn't find any customization related to this.

Thanks and regards

Swati

raymond_giuseppi
Active Contributor
0 Kudos

Could you

  • Execute SM30 on view V_T001A (in display mode, you can also navigate from SM30 to SPRO and read documentation)
  • Try to also pass company currency code (10) amount
former_member210266
Active Participant
0 Kudos
  • Execute SM30 on view V_T001A (in display mode, you can also navigate from SM30 to SPRO and read documentation)

-- change in this config was not an option for me

  • Try to also pass company currency code (10) amount

-- I was passing the amount for currency type 10 as well along with 00 and 30.

However my issue was resolved when I passed the amount with currency type '12' as well. So I am passing amounts for four types of currency type i.e '00', '10', '12' all in local currency and '30; in foreign currency.

Thank you so much for your time 🙂

nishan_dev
Active Contributor
0 Kudos

Hi Swati,

If you want to populate the table CURRENCYAMOUNT ,which is STRUCTURE BAPIACCR09 ,with the currently types to want to have posted with the appropriate amounts. On structure BAPIACCR09, if you look at domain CURTP (Double click component type and then double clock on domain) and look at the value range, you will see the list of keys to populate for the currency type field. (00 = document, 30 = group, 10 = company code currency.)

Thanks,
Nishan D Singh

former_member210266
Active Participant
0 Kudos

Hi Nishan

Thank you for your help. I am already filling the currency type field in CURRENCYAMOUNT. But still the value which I am passing is not being considered.

Thanks and regards

Swati