2012 Aug 14 11:39 AM
Hi,
I have error (Dump) in the system, when posting data using RFC Function module.
The data is coming from Jco Connection, one RFC Function module is executing.
In that RFC Function Module, we are using BDC for posting the data in FB60.
The error is "ERROR_CNTL_INIT"
How I can solve this problem or post data for FB60 ?
Regards,
Sandeep
2012 Aug 14 11:56 AM
2012 Aug 14 12:22 PM
Thanks Raymond,
The dump is in Method : Constructor of class : C_TEXTEDIT_CONTROL, when calling "Control_init" Function Module.
I am also trying to post data using BAPI_ACC_DOCUMENT_POST, but no success.
Can you please help me by giving some link or code for FB60 posting using this function module ?
Regards,
Sandeep
2012 Aug 14 12:38 PM
Look at the sample of Note 626235 - Tax postings with accounting BAPIs (*) and to reference note Note 306504 - Collective note: BAPIs for the AC interface.
Regards,
Raymond
2012 Aug 17 6:35 AM
Hi Raymond,
Thanks for your reply, it is helpful, but when we are posting data for tax also, the entries are not found in table BSET.
What can be the reason ?
Help us in tax posting also in FB60 data.
Regards,
Sandeep
2012 Aug 17 7:21 AM
Hi,
For updating the tax data via BAPI_ACC_DOCUMENT_POST, use the below FM for calculating the tax.
CALCULATE_TAX_FROM_GROSSAMOUNT
CALL FUNCTION 'CALCULATE_TAX_FROM_GROSSAMOUNT'
EXPORTING
i_bukrs = us_gv_bukrs
i_mwskz = us_gs_itab_mwskz
i_waers = us_gv_currency
i_wrbtr = lv_wrbtr
TABLES
t_mwdat = ch_lt_mwdat
EXCEPTIONS
bukrs_not_found = 1
country_not_found = 2
mwskz_not_defined = 3
mwskz_not_valid = 4
account_not_found = 5
different_discount_base = 6
different_tax_base = 7
txjcd_not_valid = 8
not_found = 9
ktosl_not_found = 10
kalsm_not_found = 11
parameter_error = 12
knumh_not_found = 13
kschl_not_found = 14
unknown_error = 15
OTHERS = 16.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Based on the tax classification recieved from the above FM you can populate the
currencyamount table.
Regards,
Rajesh Akarte