Application Development and Automation 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: 
Read only

Save an attachment in FB03 through ABAP code

Jimmy21
Participant
0 Likes
2,311

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?

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?

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
939

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).