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: 

how to attach pdf in module pool?

0 Kudos
1,643

hi experts,

i have a requirement in which a user inputs different bill details (like the date of expense, amount etc..)[its done].

now the user needs to attach a pdf file containing the proof of it (scanned billls).

now how can i attach the pdf to that particular reference number.

and also the approver/admin needs to see the pdf on the time of aproval

how should i code for this requirement

7 REPLIES 7

Sandra_Rossi
Active Contributor
1,289

Would you mind give more explanations about what transaction code you're talking about, or what Fiori app, or any clear information you have? You don't even explain what system you're talking about...

0 Kudos
1,289

i am talking about standard modulepool program in ecc system.

venkateswaran_k
Active Contributor
1,289

Dear Anoop,

Please mention your Standard T-code that used by user for entering the expense details.

This will help us to provide you solution that has standard attachment options.

Regards,

Venkat

0 Kudos
1,289

there is no standard tcode every thing is custom. when i click the button beside total amount

there will be a field to select the file from system. there the user selects the file and press save . on saving the file should save corresponding to the reference number along with other data. what i want help with is .. about how to attach a pdf file to this reimbursement.

MateuszAdamus
Active Contributor
0 Kudos
1,289

Hi anoopkrishnanivl96

You can attach a PDF (or any other document) using GOS (Generic Object Services) framework.

Here is a document describing how to do it for a custom object (the document is a PDF, you need to change its extension after download): https://archive.sap.com/documents/docs/DOC-10131

You can also search the web for "sap abap gos for custom object" and "sap abap gos for z object" - there's plenty of information about the topic.

Regards,
Mateusz

venkateswaran_k
Active Contributor
0 Kudos
1,289

Dear Anoop

Since it is your custom module pool program, you need to create BOR object and you create Attach, List buttons in tool bar - which will look like this

You go through this link, a step by step to achieve your goal.

https://blogs.sap.com/2013/03/19/files-and-note-attachments-creation-display-and-deletion-using-gos-...

Regards,

Venkat

Sandra_Rossi
Active Contributor
0 Kudos
1,289

If everything is custom, then why don't you store the file in a custom table? What are the constraints?