Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using FM PRELIMINARY_POSTING_FB01 for Posting a Document

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Is there any specific reason for using this function module ? Standard BAPI BAPI_ACC_DOCUMENT_POST already available to post accounting documents.

Regards

Vinod

0 Kudos

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.

0 Kudos

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

0 Kudos

Vinod Kumar, ==>Why you gave the same answer that i proposed????????????????????????

Former Member
0 Kudos

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