Skip to Content

External invoices to FB01: table TTYP

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 09:11 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 09:11 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.