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: 

External invoices to FB01: table TTYP

Phillip_Morgan
Contributor
0 Kudos

I am importing invoices from another system through the posting* series of function mdodules (like POSTING_INTERFACE_DOCUMENT) and I would like to put the external invoice number in BKPF-AWKEY.

However the system stops wanting also BKPF-AWTYP and BKPF-AWSYS.

Part of this info comes from table TTYP, but I cannot figure out how to customize it for my purpose (if it can be done).

Anybody have any experience/info?

thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi,

if you post FI documents from an external application you must create an new AWTYP for these documents. Normally, you should copy awtyp BKPF. Therefore, go to Transaction SM30 an create an new Z-Entry for your application - no problem at all. Note that to reverse a document you have to use your application and new awtyp also.

Regards,

Christian

Former Member
0 Kudos

Hi

I believe you should try to use the BAPI (ex BAPI_ACC_DOCUMENT_POST) to post those invoices, because the system has to can understand you want to post a document from external application. In the BAPI you can assign the reference keys (BKPF-AWTYP, BKPF-AWKEY).

If you use fm like POSTING_INTERFACE_DOCUMENT you post the document by std transactions of accounting (like FB01): i believe these set always BKPF as BKPF-AWTYP and SAP document number as BKPF-AWKEY, because it's for the system you're posting a document by internal application.

I believe the objects defined in TTYP are linked to the way used to post the document.

Max