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 options

Former Member
0 Kudos

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

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

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

0 Kudos

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?

0 Kudos

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

Former Member
0 Kudos

Hi vshal13feb ,

You can try with GOS(Generic Object Services) also find the link

[]

Thanks

Surendra