2020 May 21 2:45 PM
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
2020 May 21 5:31 PM
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...
2020 May 22 7:39 AM
i am talking about standard modulepool program in ecc system.
2020 May 22 8:32 AM
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
2020 May 22 10:00 AM
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.
2020 May 22 10:15 AM
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,2020 May 22 11:52 AM
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.
Regards,
Venkat
2020 May 22 1:22 PM
If everything is custom, then why don't you store the file in a custom table? What are the constraints?