Application Development 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: 

Attachment functionality to custom transaction

Former Member
0 Kudos

Hi All,

I need a help in providing attachment functionality to a custom transaction.

I have build a custom transaction for GL master, the requirement is that i need to provide a attachment functionality to attach a

documents like in standard trasactions(attaching a documents in Va02). How can i achieve this functionality?

Is there any class/FM to call?

Thanks in advance.

Venu.

5 REPLIES 5

former_member184578
Active Contributor
0 Kudos

Hi,

I think you have to use GOS service. Search for GOS. check the below thread or debug the standard transaction, you can find FMs

Hope this helps u.,

Thanks & Regards,

Kiran.

0 Kudos

Thanks for reply,

I am using GOS tool bar, but problem is that i don't have object key untill my transactions is saved.

Once the transaction is saved the request no is generated, i need to use this request no as a object key for attachment.

How can i achieve this?????

Regards,

Venu

0 Kudos

I think it's pretty clear that you must do the attachements AFTER successful save of the document create. Obviously, you would not want to do attachments before you knew you had successfully saved the document, since a save failure would leave you with "orphaned" GOS entries. So, after successful save, proceed to get the new document number and use that to continue with the GOS attachments creation.

0 Kudos

Hi thanks for reply,

Is it possible to attach a document first with GOS and once i save successfully the document object key is generated, assign that object key to attachment in back end???

my requirement is... key in all entries into trasaction and attach a documents and save. once saved successfully the doc no is generated. the attachment should be save with generated doc no.

thanks&regards.

nabheetscn
Active Contributor
0 Kudos

Check this

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/26460] [original link is broken];

Nabheet