06-01-2010 2:41 PM
Hi all,
I'm trying to post a FI document with the standard function BAPI_ACC_DOCUMENT_POST. My goal is
to post the document with the field PERNR (Personal number) but I don't find this field in any tables
of the precedent BAPI.
Looking for the field PERNR inside the BAPI_ACC_DOCUMENT_POST I found it in a structure GS_ACCIT but this doesn't help me to reach my goals.
Does anybody know help me?
thank you
Gino
06-02-2010 5:59 AM
Hi,
Fill the PERNR details in the structure EXTENSION1. Implement the BTE "RWBAPI01" to read the data from this structure and
update the same in IT_ACCIT.
Regards
Vinod
06-01-2010 7:12 PM
In the BAPI_ACC_DOCUMENT_POST please check the line 62, there is call for customer function, you need to add an config entry for that OPEN_FI..... and then it will work for you.
perform call_customer_function
tables extension1.
Please let me know if you need more details. Thanks.
Atul
06-01-2010 7:56 PM
My suggestion would be to enter the document manually via FB01. If you are able to enter the PERNR and save the document, then let us know in which BSEG field it is there. Then it will be easier to find. Also, let us know what posting key you use for the lineitem that has PERNR.
Salai.
06-01-2010 9:59 PM
Since PERNR ( Personnel number ) is employee specific. May be you need to use any of the following bapis to post the accounting document. The GL item structures of these bapis have personnel number.
BAPI_ACC_EMPLOYEE_PAY_POST
BAPI_ACC_EMPLOYEE_EXP_POST
BAPI_ACC_EMPLOYEE_REC_POST
06-02-2010 5:59 AM
Hi,
Fill the PERNR details in the structure EXTENSION1. Implement the BTE "RWBAPI01" to read the data from this structure and
update the same in IT_ACCIT.
Regards
Vinod
12-17-2013 12:32 PM
Thanks all. I just implemented the same in my project. with the help of this and following link.
02-10-2014 3:52 AM
thanks all, this post was quite helpful. specially vinod's post was quite helpful