09-05-2011 1:38 PM
Hii...
I have used Table Editor In screen painter. Requirement is file attachment option in a Screen Painter like our workpalce screen.
How It's possible Please suggest.
Thanks in Advance....
Regards
Vshal
09-05-2011 8:57 PM
Hi,
Is it an attachment to a SAPoffice document or to a workitem?
What is Table editor, and how is it related to your attachment requirement?
Is your question about how to create an attachment by program, or how to execute something from the dynpro?
Sandra
09-06-2011 5:39 AM
Hii Sandra,
how to create an attachment by program and how to display in report?
1. how to attach file in program?
2. save attach file in table?
3. attach file dispaly in Report?
09-06-2011 8:31 AM
Hi,
So, your first question was more or less out of context: words like screen painter, table editor, workplace, just were there to confuse us!
As Surendra said, the simple is to use GOS.
But do you want to allow the user to add/view manually, or to do it programmatically?
Steps are:
1) Is your attachment linked to a standard business object or not? If no, then create a Z business object (SWO1) with minimum (keys)
2) Add the GOS toolbox (in the title bar) : CL_GOS_MANAGER
3) If you want the program to add the file on its own, it must be added as a SAPoffice document to root folder 'B' (SO_FOLDER_ROOT_ID_GET, SO_DOCUMENT_INSERT_API1), and linked to the business object (CL_BINARY_RELATION=>CREATE_LINK)
As you see, I didn't give you references as you can now search more precisely by yourself.
Sandra
09-06-2011 6:54 AM