09-18-2008 10:38 AM
Hi All,
I want to Use BAPI_ACC_DOCUMENT_POST for transaction 'f-02' for posting keys 40 and 15 .But i am not able to execute the BAPI.Can u please provide what are th fields to be filled to execute it successfully.
09-18-2008 10:42 AM
09-18-2008 10:46 AM
Ensure you are passing the RETURN table parameter and check its contents after the call to the FM. It will give you messages about what fields are missing.
Also, if you haven't already got it, you will need to call BAPI_TRANSACTION_COMMIT after your FM call.
09-18-2008 10:48 AM
check below code and see whether you are using all the below data...
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = lw_documentheader
IMPORTING
obj_type = lv_obj_type
obj_key = lv_obj_key
obj_sys = lv_obj_sys
TABLES
accountgl = it_accountgl
currencyamount = it_currencyamount
return = it_return.
09-18-2008 10:51 AM
Hi,
Its depends on your company's functional configuration. Try to crate a record using transaction code and check all the mandatory fields..make sure you are passing all the mandatory fields from your bapi.
Regards,
Naresh.
09-18-2008 2:09 PM
Hi ,
when i am executing BAPI_ACC_DOCUMENT_POST' getting error as 'Balance in transaction currency'.can u please suggest what is the problem.
09-18-2008 2:13 PM
Hi,
This error occurs if you have not balanced the line item amount,for e,g in first line if you have currency amount 50 then you need to balance it by giving -50 on the second line the sum should be zero.
Thanks
Sudharshan
09-19-2008 6:29 AM
Hi,
Actually my requirement is to do general posting using tcode 'F-02' .In this i have to give posting keys 40--Debit and 15-incoming payments of customer .But using BAPI_ACC_DOCUMENT_POST am not able to give the required data.That is in transaction for pstkey 15 i am giving customer number in account field .But am not able to give the data through bapi.so can u please suggest how to give the data.
09-19-2008 6:32 AM
Hi Aruna,
Posting Key Field is handled in this BAPI by the currency amount sign [+/-] so you need not enter posting key values here just take care of sign whenever you are entering amount
+100/-100
Thanks
Sudharshan
09-18-2008 2:11 PM
may be data for transactional currency is missing while using the FM..