04-29-2010 3:06 PM
Hi there,
Can we use FM PRELIMINARY_POSTING_FB01 for Posting a document? Has anybody done that? Please let me know which of the following needs to be populated? Thanks a lot.
(TEXT_UPDATE)
TEXT_ITEM_UPDATE)
(I_UF05A)
(I_XCMPL)
(FS006_FB01)
(I_TCODE)
(I_PARGB)
(I_TCODE_INT)
Does anybody have any documentation/help on this FM? Please let me know - as I need to do this sometime next week.
Edited by: sam jose on Apr 29, 2010 4:50 PM
Edited by: Rob Burbank on May 5, 2010 10:13 AM
04-30-2010 6:08 AM
Is there any specific reason for using this function module ? Standard BAPI BAPI_ACC_DOCUMENT_POST already available to post accounting documents.
Regards
Vinod
05-05-2010 2:57 PM
Hi Vinod,
Sorry for my delay. The reason I want to use FM PRELIMINARY_POSTING_FB01 over BAPI is, I didn't find some fields in that BAPI that I need to populate. Have you used this FM for Posting a Document? Thanks.
05-06-2010 6:04 AM
Hi,
For updating the fields which are not available in the BAPI structures, use the BTE RWBAPI01. Copy the standard function module "SAMPLE_INTERFACE_RWBAPI01" to a Z function module. Assign this function module to the above BTE using transaction code FIBF -> Settings -> Process Modules -> Of a customer.
Required fields which are missing in BAPI structures can be passed through extension1 structure of BAPI_ACC_DOCUMENT_POST and update the same in the corresponding structures available in the BTE function module.
Regards
Vinod
05-06-2010 2:54 PM
Vinod Kumar, ==>Why you gave the same answer that i proposed????????????????????????
05-05-2010 4:08 PM
Dear Sam,
You can Use the bapi BAPI_ACC_DOCUMENT_POST. By using the extension tables of the BAPI when creating the accoutning documents you will pass all the fields you did not found on the standard tables.
Now, you will use the BTE (Business Transaction Event) RWBAPI01 : SAMPLE_INTERFACE_RWBAPI01, and you will find all the data you fill in the tables Extension in the bapi, and you have to transfer it to table IT_ACCIT.
You can fill even specific fields of table BSEG if you want.
Regards,
Yassine NEJMY