cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment: 'Hello World' word doc in zprogram - need sample code

Former Member
0 Kudos

Team,

I want a sample code for using 'Attachment' functionality. How to attach word docs, excel or images using a zprogram. For example, if I have a list of candidates then for each candidate (which is a single record) I want to attach candidate's resume.

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I am looking this functionality in APO - There is a similar functionality in CRM where user attaches documents to Activities.

Former Member
0 Kudos

Hello,

Try finding some information on DMS Document Management System, it will help you to upload and keep all kind of attachements to the system. There is no need to have a Z program for it.

Bye

Gabriel

Former Member
0 Kudos

Gabriel,

I am writing a zprogram - In this zprogram every record will have a word doc or pdf file or a fax. I want to attach the word doc or pdf doc or fax (scanned image) to the record. In CRM--->Activities there is an attachment functionality.

I am looking for something similar.

Thanks

former_member194669
Active Contributor
0 Kudos

Hi,

Do you want to upload the attachments thru programatically or by mannually.(thru user select the file to upload )?

aRs

Former Member
0 Kudos

ArS,

For now, I want to upload the attachments mannually.(thru user select the file to upload ).

Thanks

Naved

PS. (Later on may be programmatically.)

former_member194669
Active Contributor
0 Kudos

Hi,

Check this <a href="http://www.geocities.com/rmtiwari/Resources/Training/BusinessWorkflow/SAPApplicationDevelopment.pdf">Link</a>

and also search CL_GOS in this forum, you will get lot of threads

aRs

Former Member
0 Kudos

Thanks for the link.

I am looking for a simple code - only showing how attachments work. I am not familiar with OO ABAP. That is why I need the complete code just step by step showing how to attach documents.

Thanks

Former Member
0 Kudos

I am lloking for a very basic program/sample code to do this...Is this done in Screens/Module pool SE80 or SE38?

former_member194669
Active Contributor
0 Kudos

Hi,

For attaching the documents to Z(custom) program you need to have a business object. Once you created your object thru SW01 you can easily attach documents thru CL_GOS_MANAGER or use fm CALL FUNCTION 'SWU_OBJECT_PUBLISH'

Former Member
0 Kudos

Hi ArS,

Thanks for your reply.

I am not familiar with SWO1.

I did try to copy an existing object ype 'ADDRESS' to ZADDRESS. On the following screen:

Object Type ADDRESS

Program RSSOOT02

Object name Address

Object Type ZADDRESS

Program ZRSSOOT02

Object name ZAddress .

When I checked there were no inconsistencies. But when I test I get the following:

Obj Type ZADDRESS can not be executed.

***Also, What is CL_GOS_MANAGER?