‎2013 Jul 31 10:56 AM
Hi,
We have a requirement for Intercompany GL posting , we are using BAPI_ACC_DOCUMENT_POST for standard posting but looks like it does not work with intercompany posting.
We tried posting it thr bapi BAPI_ACC_DOCUMENT_POST bt it gives an error as "Minor difference * USD 30 cannot be allocated across company codes" bt the document is getting posted properly using FB01.
We needed help on this if anyone may have worked on a similar requirement.
Thanks,
Regards,
Ajay.k
‎2013 Aug 06 10:28 AM
Hi
Can you please provide the structures data which are being passed to the BAPI_ACC_DOCUMENT_POST.
Thanks
Mansi
‎2013 Aug 06 1:23 PM
Hi Mansi,
We have a custom program which post's the document to fb01 , we will get the data in flat file ..earlier it is working fine for all scenarious ( Even intercompany postings) earlier they have not provideed the exchange rate in file..but now they are providing the exchange rate in file ( There own exchange rate ..not as maintained in tcurr table )...so when i run the program it is giving the error
Minor difference * USD 30 cannot be allocated across company codes
from FM
CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
EXPORTING
documentheader = gwa_header
TABLES
accountgl = gt_accountgl
accountreceivable = gt_accountreceivable
accountpayable = gt_accountpayable
accounttax = gt_accounttax
currencyamount = gt_currency
criteria = gt_criteria
return = lt_check.
we are populating the currency structure below
gwa_currency-itemno_acc = gv_itemno.
gwa_currency-currency = gwa_prev-waers.
IF gwa_prev-shkzg NE gc_succ.
gwa_prev-wrbtr = gwa_prev-wrbtr * -1.
ENDIF.
gwa_currency-amt_doccur = gwa_prev-wrbtr.
IF gwa_prev-kursf IS NOT INITIAL.
gwa_currency-exch_rate = gwa_prev-kursf
ENDIF
APPEND gwa_currency TO gt_currency.
CLEAR gwa_currency
After this we are using
BAPI_ACC_DOCUMENT_POST.
We are getting error message from BAPI_ACC_DOCUMENT_CHECK.
Please help how to avoid this error and post the document...it is working fine when we do the same using fb01 manually it is getting posted...
Regards
Ajay.k
‎2014 Jul 30 4:40 PM
This is a customizable message and can be switched off with configuration tcode OBA5. Refer OSS note 1120495