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

Former Member
0 Likes
2,535

I am using the BAPI_ACC_DOCUMENT_POST for my Account Payable data load.

I am unable to find the field "amount in local currecny" and "amount in group currency" in the bapi structures.

I found only "amount is document currency" in CURRENCYAMOUNT table.

Please help me where can we find in the above BAPI.

Note: standard transaction used for this load in FB01.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,226

Hi

All amount data have to be loaded in CURRENCYAMOUNT table parameter, the field CURRENCYAMOUNT-CURR_TYPE indicates the currency type:

00 - Document Currency

10 - Internal Currency

11 - Internal and group currency

.....

See the fix values of domain CURTP

So if yuo need to indicate the amount in document and internal currency, u have to append two records in CURRENCYAMOUNT for each item: one with CURR_TYPE = 00 and one with CURR_TYPE = 10.

Max

9 REPLIES 9
Read only

Former Member
0 Likes
2,227

Hi

All amount data have to be loaded in CURRENCYAMOUNT table parameter, the field CURRENCYAMOUNT-CURR_TYPE indicates the currency type:

00 - Document Currency

10 - Internal Currency

11 - Internal and group currency

.....

See the fix values of domain CURTP

So if yuo need to indicate the amount in document and internal currency, u have to append two records in CURRENCYAMOUNT for each item: one with CURR_TYPE = 00 and one with CURR_TYPE = 10.

Max

Read only

0 Likes
2,226

Max,

Thank you very much for your help.

i will go ahead with this information.

I have one question.

I want to upload only one record. not two.

for same record uploading document currency, local currency, group currency is not possible?

Please help me.

Edited by: puneindian on Aug 11, 2009 3:53 PM

Read only

0 Likes
2,226

you need to pass single record with multiple times like

00 Document currency

append internal table with same data without currency, just change currency

10 Company code currency

again append internal table with same data without currency, just change currency

11 Company code currency, group valuation

12 Company code currency, profit center valuation

20 Controlling area currency

30 Group currency

Read only

0 Likes
2,226

Reddy,

Thank you.

If I append multiple times, multiple line items will be stored. Right?

For one line item, is it not possible to upload the data of therre currencies?

when user checks thru FB03 Tcode, all three currencies are to be displayed for one line item.

I think, three line items will be displayed as per your suggestion.

Read only

0 Likes
2,226

Hi

No! Only one item will be stored in BSEG.

U should considere the system will calculate the amount in internal currency using the rate of the day, I suppose it will do for group currency too.

U can transfer all data in document, internal and group currency the the system wll insert only oner record in BSEG and

- Local currency will be stored in BSEG-WRBTR

- Internal currency will be stored in BSEG-DMBTR

- Groupt currency will be stored in BSEG-DMB* (I don't know the field)

Anyway u should considere If you don't need to specify the amount in internl and group currency while posting the document online by FB01, u don't need to do it by BAPI too.

It usually transfer the amount in internal currency only if it need to use a particular change rate.

Max

Read only

0 Likes
2,226

Max,

thanks for the help .

assume document currency is INR (indian rupees), local currency is also INR, group currency is USD.

My code will be like this.

wa_CURRENCYAMOUNT-CURR_TYPE = '00'.

wa_CURRENCYAMOUNT-AMT_DOCCUR = '1000'. (actually get from file)

wa_CURRENCYAMOUNT-CURR_TYPE = '10'.

wa_CURRENCYAMOUNT-AMT_DOCCUR = '1000'. (actually get from file)

wa_CURRENCYAMOUNT-CURR_TYPE = '30'.

wa_CURRENCYAMOUNT-AMT_DOCCUR = '23'. (actually get from file)

append wa_CURRENCYAMOUNT to gt_CURRENCYAMOUNT.

1)this means, only one record with different currencies uploaded?

2) for group currency(30), based on exhange rate, data is to be populated. how can we achieve this

2a) based on date 31-Oct-2009, group currency is to be calculated based on doc/local currency. how to achieve this?

please help me.

Read only

0 Likes
2,226

Hi

assume document currency is INR (indian rupees), local currency is also INR, group currency is USD.

In this situation u don't need to transfer the record for local currency, but only document and group currency:

wa_CURRENCYAMOUNT-CURR_TYPE = '00'.
wa_CURRENCYAMOUNT-AMT_DOCCUR = '1000'. (actually get from file)

wa_CURRENCYAMOUNT-CURR_TYPE = '30'.
wa_CURRENCYAMOUNT-AMT_DOCCUR = '23'. (actually get from file)

1)this means, only one record with different currencies uploaded?

Yes, only one record

2) for group currency(30), based on exhange rate, data is to be populated. how can we achieve this
2a) based on date 31-Oct-2009, group currency is to be calculated based on doc/local currency. how to achieve this?

I think the system uses the same change date in order to get the exchange rate for internal and/or group currency, if any date is indicate as exchange date, the current date will be used.

If you need a different date u need to insert it in the header data DOCUMENTHEADER-TRANS_DATE;

If you need a different rate u need to insert it in the record for the currency:

wa_CURRENCYAMOUNT-CURR_TYPE = '30'.

wa_CURRENCYAMOUNT-EXCH_RATE = .......

Max

Read only

0 Likes
2,226

Thanks for your help.

Read only

0 Likes
2,226

Hi,

When i try to upload three different currencies,

only final one(group currency doc type "30") is getting appended.

program is dumping . reason is amount for type "00" is not available.

Please help me.