04-07-2010 9:00 AM
We are facing problems with BAPI function module BAPI_ACC_DOCUMENT_CHECK. We are currently using SAP R/3 Enterprise 4.7. The current support patch applied in our server is SAPKH47028. The BAPI in our Z-program respons with errors "Error in document: BKPFF $ DEV320" and "Period 01 is not allowed".
We are trying to transfer existing FI entries of some G/L codes from one company code to another company code.
Regarding mandatory fields, in our Z-program, we followed the instruction of SAP Note 561175. For your reference, we have given below the source code.
We seek your help to sort out the issue.
Thanks and regards,
K. Rangarajan
ABAPER
M/s STRIDES ARCOLAB LIMITED
Bangalore, INDIA.
Source Code of the Program:
-
Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code
Edited by: Rob Burbank on Apr 7, 2010 3:39 PM
04-07-2010 8:01 PM
Hi Prakash Reddy
Fm : OWN_LOGICAL_SYSTEM_GET to get obj_sys
FM :BAPI_ACC_DOCUMENT_REV_POST to get bus_act
cHECK the test program ACC_BAPI_TEST_DOCUMENT and it helps you
to under stand BAPI_ACC_DOCUMENT_CHECK.
i think above info helps you
Thanks
Ramesh Reddy