Skip to Content
avatar image
Former Member

Save an attachment in FB03 through ABAP code

Hi everyone.

I have a string with xml content, with this I want to generate a xml file and save it in FB03 Tcode according accounting doc. How can I do this? Are there any FM or BAPI?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 22, 2017 at 06:46 AM

    Asked thousands of times in www/SCN. Many ways to do it. Search GOS, CL_BINARY_RELATION, SO_DOCUMENT_INSERT_API1, etc. You need to know the object type related to FB03, which is "BKPF" (same name as the transparent table). The object name will be a concatenation of company code, document number, year (I don't remember the exact order, look at the exact order of key fields in transaction code SWO1).

    Add comment
    10|10000 characters needed characters exceeded