‎2006 Jul 06 7:04 AM
Hi All,
Plz send me details that how can i create a similar functionality behind the Create attachment Button in TXN So00 i debugged but its really confusing there r many screens and as well as many progs which they have integrated!!!
U can even mail me my id is-
seemac1@yahoo.com
seema.chand@vikalpsolutions.com
Your valuable inputs will be surely appreciated...
Thanks in advance.
Seema.
‎2006 Jul 06 8:20 AM
Hi Seema
I understand that you want to attach an external document like maybe a WORD document, a JPG or a PDF file or similar, but to what do you want to attach the document?
There may be different ways to do it depending on that.
Let me know the answer to that and I might be able to give you directions as I have been there myself recently.
Best regards
Arne
‎2006 Jul 06 9:18 AM
Hi Arne,
Actually we r building a custom prog its like user will have a screen where he can enter any sales order no. and then he will get a pop-up askin 4 the attachment and then he will press a pushbutton on the appli toolbar behind which i need tht functionality.
Hope i made ur doubts clear.
Thanks
Seema.
‎2006 Jul 06 12:39 PM
Hi again Seema
If you create the file as an SOFM object via the <b>business object SOFM, method Importfile</b> you can use the created SOFM key (the file is now in SAP) and when calling the function module BINARY_RELATION_CREATE with exporting parameters: OBJ_ROLEA = object key and object type of the document you want to link the file to, OBJ_ROLEB = object key and object type of the created SOFM object (the file) and RELATIONTYPE = 'ATTA'. After committing you have linked the file to the document, and it will be possible to see the attachment via the GOS toolbox -> this is applied to many SAP std applications and you'll see it just above the application toolbar when you for example display a SO via VA03.
The way you display the attachment is to click this <b>'Services to object' button</b> and select <b>'Attachment list'</b>
Hope this helps.
Regards
Arne
‎2006 Jul 06 1:29 PM
Hi Arne,
Thanks for the approach but i dint get wht do u mean by SOFM object and wht r the relevant transactions and tables that get updated???
Thanks again.
Seema.
‎2006 Jul 06 2:35 PM
Hi Seema
SOFM is a business object which display and test via transaction SWO1.
Under methods there is a method implemented call <b>'Importfile'</b>.
You can execute this method and a popup will appear that gives you the opportunity to select a file from your PC workstation. After selecting the file the method will create the file as an SOFM object which key you use as I described in the first reply.
If you are not familiar with working with bus.obj.'s you can copy the code into your own program via the same transaction and make the necessary corrections here.
Hope you are able to get something going.
Regards Arne
‎2006 Jul 07 5:36 AM
Hi Arne,
Sorry 4 bothering u again n again...
But can u plz tel me how can i use this SOFM Importfile in my prog???
Wht i understood is i should use this busi. object and hence i ll get an object key which i can pass in BINARY_RELATION_CREATE right??
Lookin fwd for ur reply!!!
Thank U.
Seema.